Przeglądaj źródła

fix(metadata): rule type

Lind 3 lat temu
rodzic
commit
8dd8012982

+ 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',