ソースを参照

feat: 数据扩展

Eureka 8 ヶ月 前
コミット
561c549c3c
1 ファイル変更21 行追加0 行削除
  1. 21 0
      src/views/demo/data/AmplifyForm.vue

+ 21 - 0
src/views/demo/data/AmplifyForm.vue

@@ -131,6 +131,17 @@ const confirmSelection = () => {
   dataDialogVisible.value = false
 }
 
+const labeledTypeData = [
+  {
+    label: 'obb',
+    value: 'obb'
+  },
+  {
+    label: 'hbb',
+    value: 'hbb'
+  }
+]
+
 let items: ProForm.ItemsOptions[] = reactive([
   {
     label: '任务名称',
@@ -142,6 +153,16 @@ let items: ProForm.ItemsOptions[] = reactive([
       clearable: true,
       placeholder: '请输入用户名'
     }
+  },
+  {
+    label: '扩充方式',
+    prop: 'augmentationType',
+    span: 14,
+    rules: [{ required: true, message: '请输入扩充方式' }],
+    compOptions: {
+      elTagName: 'select',
+      enum: labeledTypeData
+    }
   }
 ])
 </script>