Browse Source

完善控件配置

Wind-Breaker1 1 year ago
parent
commit
d438b2280a
1 changed files with 58 additions and 58 deletions
  1. 58 58
      src/services/defaults.ts

+ 58 - 58
src/services/defaults.ts

@@ -1611,54 +1611,54 @@ export const formComponents = [
           width: 150,
           height: 210,
           expanded: ['1', '2'],
-          fontSize:20,
+          fontSize: 20,
           disableInput: true,
           data: [
             {
-              key:'1',
+              key: '1',
               label: '1',
               children: [
                 {
-                  key:'1-1',
+                  key: '1-1',
                   label: '1-1'
                 },
                 {
-                  key:'1-1',
+                  key: '1-1',
                   label: '1-2'
                 }
               ]
             },
             {
-              key:'2',
+              key: '2',
               label: '2',
               children: [
                 {
-                  key:'2-1',
+                  key: '2-1',
                   label: '2-1',
                   children: [
                     {
-                      key:'2-1-1',
+                      key: '2-1-1',
                       label: '2-1-1',
                     },
                     {
-                      key:'2-1-2',
+                      key: '2-1-2',
                       label: '2-2-2'
                     }
                   ]
                 },
                 {
-                  key:'2-2',
+                  key: '2-2',
                   label: '2-2'
                 }
               ]
             },
             {
-              key:'3',
+              key: '3',
               label: '3'
             },
           ],
-          props:{
-            custom:[
+          props: {
+            custom: [
               {
                 key: 'expandAll',
                 label: '展开全部节点',
@@ -2078,24 +2078,24 @@ export const formComponents = [
             {
               key: '1',
               text: '页面1',
-              to:'https://www.baidu.com',
-              target:'_blank'
+              to: 'https://www.baidu.com',
+              target: '_blank'
             },
             {
               key: '2',
               text: '页面2',
-              to:'https://2d.le5le.com/?id=641d524a8df2c654ea652d7e',
-              target:'_blank'
-            }, 
+              to: 'https://2d.le5le.com/?id=641d524a8df2c654ea652d7e',
+              target: '_blank'
+            },
             {
               key: '3',
               text: '页面3',
-              to:'https://2d.le5le.com/?id=6357a9e2d44b9402de84d2e8',
-              target:'_self'
+              to: 'https://2d.le5le.com/?id=6357a9e2d44b9402de84d2e8',
+              target: '_self'
             }
           ],
-          props:{
-            custom:[
+          props: {
+            custom: [
               {
                 key: 'gap',
                 label: '间距',
@@ -2237,7 +2237,7 @@ export const formComponents = [
           pageSize: 5,
           current: 1,
           maxPageBtn: 5,
-          disableInput:true,
+          disableInput: true,
           pageSizeOptions: [5, 10, 20, 30],
           props: {
             custom: [
@@ -2314,19 +2314,19 @@ export const formComponents = [
           selectKey: '1',
           selectedKeys: [],
           theme: '',
-          disableInput:true,
+          disableInput: true,
           data: [
             { text: '场景一', key: '0', isForbidden: true },
             { text: '场景二', key: '1' },
             { text: '场景三', key: '2' },
             { text: '场景四', key: '3' },
           ],
-          props:{
-            custom:[
+          props: {
+            custom: [
               {
-                key:'data',
-                label:'数据',
-                type:'code'
+                key: 'data',
+                label: '数据',
+                type: 'code'
               }
             ]
           }
@@ -2342,7 +2342,7 @@ export const formComponents = [
           direction: 'horizontal',
           selectedKeys: ['0'],
           theme: 'multiple',
-          disableInput:true,
+          disableInput: true,
 
           data: [
             { text: '场景一', key: '0' },
@@ -2350,12 +2350,12 @@ export const formComponents = [
             { text: '场景三', key: '2' },
             { text: '场景四', key: '3' },
           ],
-          props:{
-            custom:[
+          props: {
+            custom: [
               {
-                key:'data',
-                label:'数据',
-                type:'code'
+                key: 'data',
+                label: '数据',
+                type: 'code'
               }
             ]
           }
@@ -2460,26 +2460,26 @@ export const formComponents = [
             { key: '3', text: '选项三' },
           ],
           selectKey: '2',
-          props:{
-            custom:[
+          props: {
+            custom: [
               {
-                key:'data',
-                label:'数据',
-                type:'code'
+                key: 'data',
+                label: '数据',
+                type: 'code'
               },
               {
-                key:'direction',
-                label:'排列方向',
-                type:'select',
+                key: 'direction',
+                label: '排列方向',
+                type: 'select',
                 options: [
                   { label: '横向', value: 'horizontal' },
                   { label: '纵向', value: 'vertical' },
                 ],
               },
               {
-                key:'theme',
-                label:'模式',
-                type:'select',
+                key: 'theme',
+                label: '模式',
+                type: 'select',
                 options: [
                   { label: '通用模式', value: 'normal' },
                   { label: '按钮模式', value: 'button' },
@@ -2504,26 +2504,26 @@ export const formComponents = [
             { key: '3', text: '选项三' },
           ],
           selectedKeys: ['2', '3'],
-          props:{
-            custom:[
+          props: {
+            custom: [
               {
-                key:'data',
-                label:'数据',
-                type:'code'
+                key: 'data',
+                label: '数据',
+                type: 'code'
               },
               {
-                key:'direction',
-                label:'排列方向',
-                type:'select',
+                key: 'direction',
+                label: '排列方向',
+                type: 'select',
                 options: [
                   { label: '横向', value: 'horizontal' },
                   { label: '纵向', value: 'vertical' },
                 ],
               },
               {
-                key:'theme',
-                label:'模式',
-                type:'select',
+                key: 'theme',
+                label: '模式',
+                type: 'select',
                 options: [
                   { label: '通用模式', value: 'normal' },
                   { label: '按钮模式', value: 'button' },
@@ -2721,7 +2721,7 @@ export const formComponents = [
           name: 'roundSwitch',
           width: 128,
           height: 128,
-          checked:true,
+          checked: true,
           disableInput: true,
           offColor: '#FFA98F',
           onColor: '#80D99F',
@@ -2752,7 +2752,7 @@ export const formComponents = [
           name: 'changeOverSwitch',
           width: 128,
           height: 128,
-          checked:true,
+          checked: true,
           disableInput: true,
           offColor: '#FFA98F',
           onColor: '#80D99F',