review:【iot 物联网】场景联动的逻辑
This commit is contained in:
@ -146,6 +146,7 @@ const createDefaultActionData = (): ActionFormData => {
|
||||
}
|
||||
|
||||
// 配置常量
|
||||
// TODO @puhui999:去掉最大;注释风格改下;
|
||||
const maxActions = 5
|
||||
|
||||
// 工具函数
|
||||
|
||||
@ -121,6 +121,7 @@ const triggers = useVModel(props, 'triggers', emit)
|
||||
const triggerTypeOptions = getTriggerTypeOptions()
|
||||
|
||||
// 工具函数
|
||||
// TODO @puhui999:这里是不是重复了哈;
|
||||
const getTriggerTypeLabel = (type: number): string => {
|
||||
const option = triggerTypeOptions.find((opt) => opt.value === type)
|
||||
return option?.label || '未知类型'
|
||||
|
||||
Reference in New Issue
Block a user