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

This commit is contained in:
puhui999
2025-08-01 17:18:23 +08:00
parent 081603788a
commit a5d458b96d
16 changed files with 122 additions and 435 deletions

View File

@ -104,19 +104,15 @@ import { useVModel } from '@vueuse/core'
/** 主条件内部配置组件 */
defineOptions({ name: 'MainConditionInnerConfig' })
interface Props {
const props = defineProps<{
modelValue: ConditionFormData
triggerType: number
}
}>()
interface Emits {
const emit = defineEmits<{
(e: 'update:modelValue', value: ConditionFormData): void
(e: 'validate', result: { valid: boolean; message: string }): void
}
const props = defineProps<Props>()
const emit = defineEmits<Emits>()
}>()
// 响应式数据
const condition = useVModel(props, 'modelValue', emit)