Lind 3 лет назад
Родитель
Сommit
8dd8012982
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      src/pages/device/components/Metadata/Base/Edit/index.tsx

+ 7 - 0
src/pages/device/components/Metadata/Base/Edit/index.tsx

@@ -414,6 +414,13 @@ const Edit = observer((props: Props) => {
             'x-component': 'Select',
             enum: PropertySource,
           },
+          'virtualRule.type': {
+            type: 'string',
+            'x-value': 'script',
+            'x-component': 'Input',
+            'x-decorator': 'FormItem',
+            'x-hidden': true,
+          },
           'virtualRule.script': {
             type: 'string',
             'x-component': 'FRuleEditor',