邓洁 : 传感器接口对接

This commit is contained in:
dengj
2023-12-13 12:52:59 +08:00
parent 241a031cc5
commit 2d1fbb27ca
4 changed files with 58 additions and 87 deletions

View File

@@ -15,8 +15,6 @@
</template>
<script setup>
import {reactive, onMounted, watch, defineProps, computed} from "vue";
const params = defineProps({
wp: Object,
index: Number,
@@ -27,18 +25,16 @@ const params = defineProps({
// value: 40, //测量值
// point: 60, //阈值
// };
// const wp = reactive(info);
const length = ref(null);
const value = ref(null);
const point = ref(null);
onMounted(handleOnMounted);
function handleOnMounted() {
// const = length.value.offsetWidth);
setValue();
}
watch(() => params.wp.value, (value) => {
watch(() => params.wp.value, () => {
setValue();
});