邓洁 : 传感器接口对接
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user