|
@@ -177,18 +177,18 @@ export interface FormItemType extends FormItem {
|
|
|
tips?: string; // 提示
|
|
|
placeholder?: string; // input placeholder
|
|
|
type:
|
|
|
- | 'text' // string 类型输入框
|
|
|
- | 'number'
|
|
|
- | 'color'
|
|
|
- | 'textarea'
|
|
|
- | 'select'
|
|
|
- | 'switch'
|
|
|
- | 'code'
|
|
|
- | 'image'
|
|
|
- | 'icon'
|
|
|
- | 'slider'
|
|
|
- | 'autoComplete'
|
|
|
- | 'label'; // 文字,不含输入框;
|
|
|
+ | 'text' // string 类型输入框
|
|
|
+ | 'number'
|
|
|
+ | 'color'
|
|
|
+ | 'textarea'
|
|
|
+ | 'select'
|
|
|
+ | 'switch'
|
|
|
+ | 'code'
|
|
|
+ | 'image'
|
|
|
+ | 'icon'
|
|
|
+ | 'slider'
|
|
|
+ | 'autoComplete'
|
|
|
+ | 'label'; // 文字,不含输入框;
|
|
|
options?: {
|
|
|
// 选项
|
|
|
label: string; // 选项的标题,可以使用 html
|
|
@@ -1620,13 +1620,13 @@ export const formComponents = [
|
|
|
children: [
|
|
|
{
|
|
|
key: '1-1',
|
|
|
- label: '1-1'
|
|
|
+ label: '1-1',
|
|
|
},
|
|
|
{
|
|
|
key: '1-1',
|
|
|
- label: '1-2'
|
|
|
- }
|
|
|
- ]
|
|
|
+ label: '1-2',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
key: '2',
|
|
@@ -1642,19 +1642,19 @@ export const formComponents = [
|
|
|
},
|
|
|
{
|
|
|
key: '2-1-2',
|
|
|
- label: '2-2-2'
|
|
|
- }
|
|
|
- ]
|
|
|
+ label: '2-2-2',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
key: '2-2',
|
|
|
- label: '2-2'
|
|
|
- }
|
|
|
- ]
|
|
|
+ label: '2-2',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
key: '3',
|
|
|
- label: '3'
|
|
|
+ label: '3',
|
|
|
},
|
|
|
],
|
|
|
props: {
|
|
@@ -1668,9 +1668,9 @@ export const formComponents = [
|
|
|
key: 'data',
|
|
|
label: '数据',
|
|
|
type: 'code',
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -2079,20 +2079,20 @@ export const formComponents = [
|
|
|
key: '1',
|
|
|
text: '页面1',
|
|
|
to: 'https://www.baidu.com',
|
|
|
- target: '_blank'
|
|
|
+ target: '_blank',
|
|
|
},
|
|
|
{
|
|
|
key: '2',
|
|
|
text: '页面2',
|
|
|
to: 'https://2d.le5le.com/?id=641d524a8df2c654ea652d7e',
|
|
|
- target: '_blank'
|
|
|
+ target: '_blank',
|
|
|
},
|
|
|
{
|
|
|
key: '3',
|
|
|
text: '页面3',
|
|
|
to: 'https://2d.le5le.com/?id=6357a9e2d44b9402de84d2e8',
|
|
|
- target: '_self'
|
|
|
- }
|
|
|
+ target: '_self',
|
|
|
+ },
|
|
|
],
|
|
|
props: {
|
|
|
custom: [
|
|
@@ -2107,8 +2107,8 @@ export const formComponents = [
|
|
|
label: '数据',
|
|
|
type: 'code',
|
|
|
},
|
|
|
- ]
|
|
|
- }
|
|
|
+ ],
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -2326,10 +2326,10 @@ export const formComponents = [
|
|
|
{
|
|
|
key: 'data',
|
|
|
label: '数据',
|
|
|
- type: 'code'
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+ type: 'code',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -2355,10 +2355,10 @@ export const formComponents = [
|
|
|
{
|
|
|
key: 'data',
|
|
|
label: '数据',
|
|
|
- type: 'code'
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+ type: 'code',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
],
|
|
@@ -2465,7 +2465,7 @@ export const formComponents = [
|
|
|
{
|
|
|
key: 'data',
|
|
|
label: '数据',
|
|
|
- type: 'code'
|
|
|
+ type: 'code',
|
|
|
},
|
|
|
{
|
|
|
key: 'direction',
|
|
@@ -2485,8 +2485,8 @@ export const formComponents = [
|
|
|
{ label: '按钮模式', value: 'button' },
|
|
|
],
|
|
|
},
|
|
|
- ]
|
|
|
- }
|
|
|
+ ],
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -2497,7 +2497,7 @@ export const formComponents = [
|
|
|
width: 300,
|
|
|
height: 30,
|
|
|
direction: 'horizontal', // 'vertical', //'horizontal',
|
|
|
- theme: 'normal',//button normal
|
|
|
+ theme: 'normal', //button normal
|
|
|
data: [
|
|
|
{ key: '1', text: '选项一', isForbidden: true },
|
|
|
{ key: '2', text: '选项示例二' },
|
|
@@ -2509,7 +2509,7 @@ export const formComponents = [
|
|
|
{
|
|
|
key: 'data',
|
|
|
label: '数据',
|
|
|
- type: 'code'
|
|
|
+ type: 'code',
|
|
|
},
|
|
|
{
|
|
|
key: 'direction',
|
|
@@ -2528,9 +2528,9 @@ export const formComponents = [
|
|
|
{ label: '通用模式', value: 'normal' },
|
|
|
{ label: '按钮模式', value: 'button' },
|
|
|
],
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -2728,7 +2728,7 @@ export const formComponents = [
|
|
|
color: '#4583FF', //66 33
|
|
|
background: '#4583FF33',
|
|
|
offShadowColor: '#FF5D3C',
|
|
|
- onShadowColor: '#58CC84'
|
|
|
+ onShadowColor: '#58CC84',
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -2759,7 +2759,7 @@ export const formComponents = [
|
|
|
color: '#4583FF', //66 33
|
|
|
background: '#4583FF33',
|
|
|
offShadowColor: '#FF5D3C',
|
|
|
- onShadowColor: '#58CC84'
|
|
|
+ onShadowColor: '#58CC84',
|
|
|
},
|
|
|
},
|
|
|
{
|