Explorar o código

fix(metadata): rule type

Lind %!s(int64=4) %!d(string=hai) anos
pai
achega
8dd8012982
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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',