浏览代码

feat:新增选项卡配置

Wind-Breaker1 1 年之前
父节点
当前提交
586dbd05ae
共有 1 个文件被更改,包括 28 次插入2 次删除
  1. 28 2
      src/services/defaults.ts

+ 28 - 2
src/services/defaults.ts

@@ -1592,8 +1592,34 @@ export const formComponents = [
         name: '选项卡',
         icon: 'l-pc',
         data: {
-          width: 200,
-          height: 200,
+          name:'leTab',
+          width: 500,
+          height: 50,
+          direction:'horizontal',
+          selectKey:'0',
+          data:[
+            {text:'场景一',key:'0',isForbidden:true},
+            {text:'场景二',key:'1'},
+            {text:'场景三',key:'2'},
+            {text:'场景四',key:'3'}
+          ]
+        },
+      },
+      {
+        name: '多选选项卡',
+        icon: 'l-pc',
+        data: {
+          name:'leTabs',
+          width: 500,
+          height: 50,
+          direction:'horizontal',
+          selectedKeys:['0'],
+          data:[
+            {text:'场景一',key:'0'},
+            {text:'场景二',key:'1',isForbidden:true},
+            {text:'场景三',key:'2'},
+            {text:'场景四',key:'3'}
+          ]
         },
       },
     ],