Bläddra i källkod

新增单选框、多选框配置

Wind-Breaker1 1 år sedan
förälder
incheckning
20f7d5c976
1 ändrade filer med 38 tillägg och 32 borttagningar
  1. 38 32
      src/services/defaults.ts

+ 38 - 32
src/services/defaults.ts

@@ -1595,8 +1595,10 @@ export const formComponents = [
           name:'leTab',
           width: 500,
           height: 50,
-          direction:'horizontal',
-          selectKey:'0',
+          direction:'vertical',
+          selectKey:'1',
+          selectedKeys:[],
+          them:'',
           data:[
             {text:'场景一',key:'0',isForbidden:true},
             {text:'场景二',key:'1'},
@@ -1605,23 +1607,23 @@ export const formComponents = [
           ]
         },
       },
-      {
-        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'}
-          ]
-        },
-      },
+      // {
+      //   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'}
+      //     ]
+      //   },
+      // },
     ],
   },
   {
@@ -1682,32 +1684,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',
+          name: 'leCheckBox',
           width: 100,
           height: 30,
-          fontSize: 16,
-          disableAnchor: true,
-          direction: 'vertical',
-          checked: true,
-          // isForbidden: true,
-          value: '选项一',
+          direction: 'horizontal', // 'vertical', //'horizontal',
+          them:'',
+          data: [
+            {key:'1', text: '选项一', isForbidden: true },
+            {key:'2', text: '选项二徐昂选' },
+            {key:'3', text: '选项三' },
+          ],
+          selectedKeys:['2','3']
         },
       },
       {