瀏覽代碼

基础表单用例修改

tongshangming 2 年之前
父節點
當前提交
7dbbd15ed6
共有 1 個文件被更改,包括 52 次插入0 次删除
  1. 52 0
      src/views/form/Basic.vue

+ 52 - 0
src/views/form/Basic.vue

@@ -158,6 +158,58 @@ const formConfig = reactive<BasicForm>({
         }
       }
     },
+    {
+      label: '树选择',
+      value: '',
+      name: 'tree',
+      type: 'tree-select',
+      props: {
+        data: [
+          {
+            value: '1',
+            label: 'Level one 1',
+            children: [
+              {
+                value: '1-1',
+                label: 'Level two 1-1',
+                children: [
+                  {
+                    value: '1-1-1',
+                    label: 'Level three 1-1-1'
+                  }
+                ]
+              }
+            ]
+          },
+          {
+            value: '2',
+            label: 'Level one 2',
+            children: [
+              {
+                value: '2-1',
+                label: 'Level two 2-1',
+                children: [
+                  {
+                    value: '2-1-1',
+                    label: 'Level three 2-1-1'
+                  }
+                ]
+              },
+              {
+                value: '2-2',
+                label: 'Level two 2-2',
+                children: [
+                  {
+                    value: '2-2-1',
+                    label: 'Level three 2-2-1'
+                  }
+                ]
+              }
+            ]
+          }
+        ]
+      }
+    },
     {
       label: '图片',
       value: '',