perf:【IoT 物联网】场景联动触发器优化

This commit is contained in:
puhui999
2025-08-01 16:56:22 +08:00
parent a554bc5309
commit 081603788a
7 changed files with 21 additions and 169 deletions

View File

@ -134,21 +134,17 @@ import type { IotThingModelTSLRespVO, PropertySelectorItem } from './types'
/** 属性选择器组件 */
defineOptions({ name: 'PropertySelector' })
interface Props {
const props = defineProps<{
modelValue?: string
triggerType: number
productId?: number
deviceId?: number
}
}>()
interface Emits {
const emit = defineEmits<{
(e: 'update:modelValue', value: string): void
(e: 'change', value: { type: string; config: any }): void
}
const props = defineProps<Props>()
const emit = defineEmits<Emits>()
}>()
const localValue = useVModel(props, 'modelValue', emit)