Browse Source

Merge branch 'main' of github.com:le5le-com/visualization-design

Alsmile 1 year ago
parent
commit
ab40e0cff0
1 changed files with 38 additions and 31 deletions
  1. 38 31
      src/services/defaults.ts

+ 38 - 31
src/services/defaults.ts

@@ -1685,31 +1685,34 @@ export const formComponents = [
           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' },
-          ],
+          direction:'vertical',
+          selectKey:'1',
+          selectedKeys:[],
+          them:'',
+          data:[
+            {text:'场景一',key:'0',isForbidden:true},
+            {text:'场景二',key:'1'},
+            {text:'场景三',key:'2'},
+            {text:'场景四',key:'3'}
+          ]
         },
       },
       {
         name: '多选选项卡',
         icon: 'l-pc',
         data: {
-          name: 'leTabs',
+          name:'leTab',
           width: 500,
           height: 50,
-          direction: 'horizontal',
-          selectedKeys: ['0'],
-          data: [
-            { text: '场景一', key: '0' },
-            { text: '场景二', key: '1', isForbidden: true },
-            { text: '场景三', key: '2' },
-            { text: '场景四', key: '3' },
-          ],
+          direction:'horizontal',
+          selectedKeys:['0'],
+          them:'multiple',
+          data:[
+            {text:'场景一',key:'0'},
+            {text:'场景二',key:'1',isForbidden:true},
+            {text:'场景三',key:'2'},
+            {text:'场景四',key:'3'}
+          ]
         },
       },
     ],
@@ -1772,32 +1775,36 @@ export const formComponents = [
         name: '单选框',
         icon: 'l-danxuankuang',
         data: {
-          name: 'radio',
+          name: 'leRadio',
           width: 150,
           height: 30,
           disableAnchor: true,
           direction: 'horizontal', // 'vertical', //'horizontal',
-          options: [
-            { text: '选项一', isForbidden: true },
-            { text: '选项二' },
-            { text: '选项三' },
+          them:'button',
+          itemPosition:[],
+          data: [
+            {key:'1', text: '选项一', isForbidden: true },
+            {key:'2', text: '选项示例二' },
+            {key:'3', text: '选项三' },
           ],
-          checked: '选项二',
+          selectKey: '2',
         },
       },
       {
         name: '多选框',
         icon: 'l-xuanzeqi',
         data: {
-          name: 'checkbox',
-          width: 100,
+          name: 'leCheckBox',
+          width: 300,
           height: 30,
-          fontSize: 16,
-          disableAnchor: true,
-          direction: 'vertical',
-          checked: true,
-          // isForbidden: true,
-          value: '选项一',
+          direction: 'horizontal', // 'vertical', //'horizontal',
+          them:'button',
+          data: [
+            {key:'1', text: '选项一', isForbidden: true },
+            {key:'2', text: '选项示例二' },
+            {key:'3', text: '选项三' },
+          ],
+          selectedKeys:['2','3']
         },
       },
       {