Showing
1 changed file
with
0 additions
and
5 deletions
| @@ -7,8 +7,6 @@ | @@ -7,8 +7,6 @@ | ||
| 7 | import { useComponentScale } from '../../../hook/useComponentScale'; | 7 | import { useComponentScale } from '../../../hook/useComponentScale'; |
| 8 | import { DeviceName } from '/@/views/visual/commonComponents/DeviceName'; | 8 | import { DeviceName } from '/@/views/visual/commonComponents/DeviceName'; |
| 9 | import { useSendCommand } from '../../../hook/useSendCommand'; | 9 | import { useSendCommand } from '../../../hook/useSendCommand'; |
| 10 | - // import { useDebounceFn } from '@vueuse/core'; | ||
| 11 | - // import { simpleDebounce } from '/@/utils/common/compUtils'; | ||
| 12 | import { useReceiveValue } from '../../../hook/useReceiveValue'; | 10 | import { useReceiveValue } from '../../../hook/useReceiveValue'; |
| 13 | 11 | ||
| 14 | const props = defineProps<{ | 12 | const props = defineProps<{ |
| @@ -38,7 +36,6 @@ | @@ -38,7 +36,6 @@ | ||
| 38 | const index = ref<number>(0); | 36 | const index = ref<number>(0); |
| 39 | 37 | ||
| 40 | const handleChange = async (e) => { | 38 | const handleChange = async (e) => { |
| 41 | - console.log(e); | ||
| 42 | index.value++; | 39 | index.value++; |
| 43 | if (index.value == 1) { | 40 | if (index.value == 1) { |
| 44 | oldSliderValue.value = unref(sliderValue); | 41 | oldSliderValue.value = unref(sliderValue); |
| @@ -46,8 +43,6 @@ | @@ -46,8 +43,6 @@ | ||
| 46 | sliderValue.value = e; | 43 | sliderValue.value = e; |
| 47 | }; | 44 | }; |
| 48 | 45 | ||
| 49 | - // const debounceChanage = useDebounceFn(handleChange, 1); | ||
| 50 | - | ||
| 51 | const handleAfterChange = async (e) => { | 46 | const handleAfterChange = async (e) => { |
| 52 | const flag = await sendCommand(props.config.option, unref(sliderValue)); | 47 | const flag = await sendCommand(props.config.option, unref(sliderValue)); |
| 53 | flag | 48 | flag |