@epic-designer/antd 1.1.0 → 1.1.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/button.cjs +1 -1
- package/dist/chunks/button.mjs +1 -1
- package/dist/chunks/form.cjs +5 -5
- package/dist/chunks/form.mjs +5 -5
- package/dist/chunks/modal.cjs +2 -2
- package/dist/chunks/modal.mjs +2 -2
- package/dist/chunks/tabPane.cjs +42 -0
- package/dist/chunks/tabPane.mjs +40 -0
- package/dist/chunks/tabs.cjs +65 -0
- package/dist/chunks/tabs.mjs +63 -0
- package/dist/chunks/uploadImage.cjs +1 -1
- package/dist/chunks/uploadImage.mjs +1 -1
- package/dist/index.cjs +679 -706
- package/dist/index.mjs +679 -706
- package/package.json +1 -2
- package/src/button/button.vue +1 -1
- package/src/button/index.ts +25 -25
- package/src/card/index.ts +9 -9
- package/src/cascader/cascader.vue +2 -2
- package/src/cascader/index.ts +41 -41
- package/src/checkbox/index.ts +16 -16
- package/src/col/index.ts +6 -3
- package/src/color-picker/index.ts +16 -16
- package/src/date-picker/index.ts +79 -79
- package/src/form/form.vue +5 -5
- package/src/form/index.ts +34 -34
- package/src/index.ts +7 -15
- package/src/input/index.ts +25 -25
- package/src/input-number/index.ts +36 -36
- package/src/modal/modal.vue +2 -2
- package/src/radio/index.ts +16 -16
- package/src/row/index.ts +18 -15
- package/src/select/index.ts +37 -38
- package/src/slider/index.ts +28 -28
- package/src/switch/index.ts +38 -38
- package/src/tab-pane/index.ts +22 -0
- package/src/tab-pane/tabPane.ts +43 -0
- package/src/tabs/index.ts +107 -0
- package/src/tabs/tabs.ts +69 -0
- package/src/textarea/index.ts +28 -28
- package/src/time-picker/index.ts +42 -42
- package/src/upload-file/index.ts +18 -18
- package/src/upload-image/index.ts +15 -15
- package/src/upload-image/uploadImage.vue +1 -1
- package/src/input-password/index.ts +0 -154
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epic-designer/antd",
|
|
3
|
-
"version": "1.1.0",
|
|
3
|
+
"version": "1.1.2-beta.0",
|
|
4
4
|
"description": "epic-designer base antd ui",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "kchengz",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@rollup/plugin-alias": "^6.0.0",
|
|
29
29
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
30
|
-
"ant-design-vue": "^4.2.6",
|
|
31
30
|
"rollup-plugin-postcss": "^4.0.2",
|
|
32
31
|
"tsx": "^4.20.6",
|
|
33
32
|
"unbuild": "^3.6.1"
|
package/src/button/button.vue
CHANGED
package/src/button/index.ts
CHANGED
|
@@ -10,7 +10,9 @@ export default {
|
|
|
10
10
|
type: 'input',
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
|
|
13
|
+
field: 'props.type',
|
|
14
|
+
label: '类型',
|
|
15
|
+
props: {
|
|
14
16
|
clearable: true,
|
|
15
17
|
options: [
|
|
16
18
|
{
|
|
@@ -40,12 +42,12 @@ export default {
|
|
|
40
42
|
],
|
|
41
43
|
placeholder: '请选择',
|
|
42
44
|
},
|
|
43
|
-
field: 'componentProps.type',
|
|
44
|
-
label: '类型',
|
|
45
45
|
type: 'select',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
|
|
48
|
+
field: 'props.htmlType',
|
|
49
|
+
label: '操作类型',
|
|
50
|
+
props: {
|
|
49
51
|
clearable: true,
|
|
50
52
|
options: [
|
|
51
53
|
{
|
|
@@ -63,21 +65,21 @@ export default {
|
|
|
63
65
|
],
|
|
64
66
|
placeholder: '请选择',
|
|
65
67
|
},
|
|
66
|
-
field: 'componentProps.htmlType',
|
|
67
|
-
label: '操作类型',
|
|
68
68
|
type: 'select',
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
|
|
71
|
+
field: 'props.href',
|
|
72
|
+
label: '链接',
|
|
73
|
+
props: {
|
|
72
74
|
allowClear: true,
|
|
73
75
|
placeholder: '请输入',
|
|
74
76
|
},
|
|
75
|
-
field: 'componentProps.href',
|
|
76
|
-
label: '链接',
|
|
77
77
|
type: 'input',
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
|
|
80
|
+
field: 'props.target',
|
|
81
|
+
label: '链接打开方式',
|
|
82
|
+
props: {
|
|
81
83
|
clearable: true,
|
|
82
84
|
options: [
|
|
83
85
|
{
|
|
@@ -99,13 +101,13 @@ export default {
|
|
|
99
101
|
],
|
|
100
102
|
placeholder: '请选择',
|
|
101
103
|
},
|
|
102
|
-
|
|
103
|
-
label: '链接打开方式',
|
|
104
|
-
show: ({ values }) => values.componentProps?.href,
|
|
104
|
+
show: ({ values }) => values.props?.href,
|
|
105
105
|
type: 'select',
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
|
|
108
|
+
field: 'props.size',
|
|
109
|
+
label: '尺寸',
|
|
110
|
+
props: {
|
|
109
111
|
allowClear: true,
|
|
110
112
|
options: [
|
|
111
113
|
{
|
|
@@ -123,12 +125,12 @@ export default {
|
|
|
123
125
|
],
|
|
124
126
|
placeholder: '请选择',
|
|
125
127
|
},
|
|
126
|
-
field: 'componentProps.size',
|
|
127
|
-
label: '尺寸',
|
|
128
128
|
type: 'select',
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
|
-
|
|
131
|
+
field: 'props.shape',
|
|
132
|
+
label: '形状',
|
|
133
|
+
props: {
|
|
132
134
|
clearable: true,
|
|
133
135
|
options: [
|
|
134
136
|
{
|
|
@@ -146,37 +148,35 @@ export default {
|
|
|
146
148
|
],
|
|
147
149
|
placeholder: '请选择',
|
|
148
150
|
},
|
|
149
|
-
field: 'componentProps.shape',
|
|
150
|
-
label: '形状',
|
|
151
151
|
type: 'select',
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
field: '
|
|
154
|
+
field: 'props.ghost',
|
|
155
155
|
label: '幽灵按钮',
|
|
156
156
|
type: 'switch',
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
field: '
|
|
159
|
+
field: 'props.loading',
|
|
160
160
|
label: '加载状态',
|
|
161
161
|
type: 'switch',
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
|
-
field: '
|
|
164
|
+
field: 'props.block',
|
|
165
165
|
label: '宽度自适应',
|
|
166
166
|
type: 'switch',
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
field: '
|
|
169
|
+
field: 'props.danger',
|
|
170
170
|
label: '危险按钮',
|
|
171
171
|
type: 'switch',
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
field: '
|
|
174
|
+
field: 'props.disabled',
|
|
175
175
|
label: '禁用',
|
|
176
176
|
type: 'switch',
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
field: '
|
|
179
|
+
field: 'props.hidden',
|
|
180
180
|
label: '隐藏',
|
|
181
181
|
type: 'switch',
|
|
182
182
|
},
|
package/src/card/index.ts
CHANGED
|
@@ -10,7 +10,9 @@ export default {
|
|
|
10
10
|
type: 'input',
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
|
|
13
|
+
field: 'props.size',
|
|
14
|
+
label: '尺寸',
|
|
15
|
+
props: {
|
|
14
16
|
allowClear: true,
|
|
15
17
|
options: [
|
|
16
18
|
{
|
|
@@ -24,31 +26,29 @@ export default {
|
|
|
24
26
|
],
|
|
25
27
|
placeholder: '请选择',
|
|
26
28
|
},
|
|
27
|
-
field: 'componentProps.size',
|
|
28
|
-
label: '尺寸',
|
|
29
29
|
type: 'select',
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
|
|
32
|
+
field: 'props.bordered',
|
|
33
|
+
label: '无边框',
|
|
34
|
+
props: {
|
|
33
35
|
checkedValue: false,
|
|
34
36
|
unCheckedValue: true,
|
|
35
37
|
},
|
|
36
|
-
field: 'componentProps.bordered',
|
|
37
|
-
label: '无边框',
|
|
38
38
|
type: 'switch',
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
field: '
|
|
41
|
+
field: 'props.hoverable',
|
|
42
42
|
label: '鼠标悬停阴影',
|
|
43
43
|
type: 'switch',
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
field: '
|
|
46
|
+
field: 'props.loading',
|
|
47
47
|
label: '加载状态',
|
|
48
48
|
type: 'switch',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
field: '
|
|
51
|
+
field: 'props.hidden',
|
|
52
52
|
label: '隐藏',
|
|
53
53
|
type: 'switch',
|
|
54
54
|
},
|
|
@@ -7,7 +7,7 @@ const emits = defineEmits<{
|
|
|
7
7
|
'update:modelValue': any;
|
|
8
8
|
}>();
|
|
9
9
|
const attrs = useAttrs();
|
|
10
|
-
const
|
|
10
|
+
const getprops = computed(() => ({
|
|
11
11
|
...attrs,
|
|
12
12
|
'onUpdate:value': handleUpdate,
|
|
13
13
|
showCheckedStrategy:
|
|
@@ -20,5 +20,5 @@ function handleUpdate(e = null): void {
|
|
|
20
20
|
}
|
|
21
21
|
</script>
|
|
22
22
|
<template>
|
|
23
|
-
<Cascader v-bind="
|
|
23
|
+
<Cascader v-bind="getprops" />
|
|
24
24
|
</template>
|
package/src/cascader/index.ts
CHANGED
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
attribute: [
|
|
8
8
|
{
|
|
9
9
|
field: 'field',
|
|
10
|
-
label: '
|
|
11
|
-
type: '
|
|
10
|
+
label: '数据字段',
|
|
11
|
+
type: 'EpField',
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
field: 'label',
|
|
@@ -16,17 +16,19 @@ export default {
|
|
|
16
16
|
type: 'input',
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
field: '
|
|
19
|
+
field: 'props.defaultValue',
|
|
20
20
|
label: '默认值',
|
|
21
21
|
type: 'cascader',
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
field: '
|
|
24
|
+
field: 'props.placeholder',
|
|
25
25
|
label: '占位内容',
|
|
26
26
|
type: 'input',
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
|
|
29
|
+
field: 'props.size',
|
|
30
|
+
label: '尺寸',
|
|
31
|
+
props: {
|
|
30
32
|
allowClear: true,
|
|
31
33
|
options: [
|
|
32
34
|
{
|
|
@@ -44,12 +46,12 @@ export default {
|
|
|
44
46
|
],
|
|
45
47
|
placeholder: '请选择',
|
|
46
48
|
},
|
|
47
|
-
field: 'componentProps.size',
|
|
48
|
-
label: '尺寸',
|
|
49
49
|
type: 'select',
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
|
|
52
|
+
field: 'props.placement',
|
|
53
|
+
label: '弹出框位置',
|
|
54
|
+
props: {
|
|
53
55
|
allowClear: true,
|
|
54
56
|
options: [
|
|
55
57
|
{
|
|
@@ -71,50 +73,50 @@ export default {
|
|
|
71
73
|
],
|
|
72
74
|
placeholder: '请选择',
|
|
73
75
|
},
|
|
74
|
-
field: 'componentProps.placement',
|
|
75
|
-
label: '弹出框位置',
|
|
76
76
|
type: 'select',
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
field: '
|
|
79
|
+
field: 'props.showSearch',
|
|
80
80
|
label: '可搜索',
|
|
81
81
|
type: 'switch',
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
|
|
84
|
+
field: 'props.bordered',
|
|
85
|
+
label: '无边框',
|
|
86
|
+
props: {
|
|
85
87
|
checkedValue: false,
|
|
86
88
|
unCheckedValue: true,
|
|
87
89
|
},
|
|
88
|
-
field: 'componentProps.bordered',
|
|
89
|
-
label: '无边框',
|
|
90
90
|
type: 'switch',
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
field: '
|
|
93
|
+
field: 'props.multiple',
|
|
94
94
|
label: '多选',
|
|
95
95
|
type: 'switch',
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
|
|
98
|
+
field: 'props.maxTagTextLength',
|
|
99
|
+
label: '标签最大长度',
|
|
100
|
+
props: {
|
|
99
101
|
placeholder: '请输入',
|
|
100
102
|
},
|
|
101
|
-
|
|
102
|
-
label: '标签最大长度',
|
|
103
|
-
show: ({ values }) => values.componentProps.multiple,
|
|
103
|
+
show: ({ values }) => values.props.multiple,
|
|
104
104
|
type: 'number',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
|
|
107
|
+
field: 'props.maxTagCount',
|
|
108
|
+
label: '标签显示数量',
|
|
109
|
+
props: {
|
|
108
110
|
placeholder: '请输入',
|
|
109
111
|
},
|
|
110
|
-
|
|
111
|
-
label: '标签显示数量',
|
|
112
|
-
show: ({ values }) => values.componentProps.multiple,
|
|
112
|
+
show: ({ values }) => values.props.multiple,
|
|
113
113
|
type: 'number',
|
|
114
114
|
},
|
|
115
115
|
|
|
116
116
|
{
|
|
117
|
-
|
|
117
|
+
field: 'props.showCheckedStrategy',
|
|
118
|
+
label: '回填方式',
|
|
119
|
+
props: {
|
|
118
120
|
clearable: true,
|
|
119
121
|
options: [
|
|
120
122
|
{
|
|
@@ -128,44 +130,42 @@ export default {
|
|
|
128
130
|
],
|
|
129
131
|
placeholder: '请选择',
|
|
130
132
|
},
|
|
131
|
-
|
|
132
|
-
label: '回填方式',
|
|
133
|
-
show: ({ values }) => values.componentProps.multiple,
|
|
133
|
+
show: ({ values }) => values.props.multiple,
|
|
134
134
|
type: 'select',
|
|
135
135
|
},
|
|
136
136
|
|
|
137
137
|
{
|
|
138
|
-
field: '
|
|
138
|
+
field: 'props.allowClear',
|
|
139
139
|
label: '可清空',
|
|
140
140
|
type: 'switch',
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
|
-
field: '
|
|
143
|
+
field: 'props.disabled',
|
|
144
144
|
label: '禁用',
|
|
145
145
|
type: 'switch',
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
|
-
field: '
|
|
148
|
+
field: 'props.hidden',
|
|
149
149
|
label: '隐藏',
|
|
150
150
|
type: 'switch',
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
|
|
154
|
-
tree: true,
|
|
155
|
-
},
|
|
156
|
-
field: 'componentProps.options',
|
|
153
|
+
field: 'props.options',
|
|
157
154
|
label: '选项管理',
|
|
158
155
|
layout: 'vertical',
|
|
156
|
+
props: {
|
|
157
|
+
tree: true,
|
|
158
|
+
},
|
|
159
159
|
type: 'EOptionsEditor',
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
componentProps: {
|
|
163
|
-
ruleType: 'array',
|
|
164
|
-
},
|
|
165
162
|
description: '校验规则需要配合表单使用',
|
|
166
163
|
field: 'rules',
|
|
167
164
|
label: '表单校验',
|
|
168
165
|
layout: 'vertical',
|
|
166
|
+
props: {
|
|
167
|
+
ruleType: 'array',
|
|
168
|
+
},
|
|
169
169
|
type: 'ERuleEditor',
|
|
170
170
|
},
|
|
171
171
|
],
|
|
@@ -177,7 +177,10 @@ export default {
|
|
|
177
177
|
],
|
|
178
178
|
},
|
|
179
179
|
defaultSchema: {
|
|
180
|
-
|
|
180
|
+
field: 'cascader',
|
|
181
|
+
input: true,
|
|
182
|
+
label: '级联选择器',
|
|
183
|
+
props: {
|
|
181
184
|
options: [
|
|
182
185
|
{
|
|
183
186
|
label: '选项1',
|
|
@@ -190,9 +193,6 @@ export default {
|
|
|
190
193
|
],
|
|
191
194
|
placeholder: '请选择',
|
|
192
195
|
},
|
|
193
|
-
field: 'cascader',
|
|
194
|
-
input: true,
|
|
195
|
-
label: '级联选择器',
|
|
196
196
|
type: 'cascader',
|
|
197
197
|
},
|
|
198
198
|
groupName: '表单',
|
package/src/checkbox/index.ts
CHANGED
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
attribute: [
|
|
8
8
|
{
|
|
9
9
|
field: 'field',
|
|
10
|
-
label: '
|
|
11
|
-
type: '
|
|
10
|
+
label: '数据字段',
|
|
11
|
+
type: 'EpField',
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
field: 'label',
|
|
@@ -16,12 +16,14 @@ export default {
|
|
|
16
16
|
type: 'input',
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
field: '
|
|
19
|
+
field: 'props.defaultValue',
|
|
20
20
|
label: '默认值',
|
|
21
21
|
type: 'checkbox',
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
|
|
24
|
+
field: 'props.size',
|
|
25
|
+
label: '尺寸',
|
|
26
|
+
props: {
|
|
25
27
|
allowClear: true,
|
|
26
28
|
options: [
|
|
27
29
|
{
|
|
@@ -39,34 +41,32 @@ export default {
|
|
|
39
41
|
],
|
|
40
42
|
placeholder: '请选择',
|
|
41
43
|
},
|
|
42
|
-
field: 'componentProps.size',
|
|
43
|
-
label: '尺寸',
|
|
44
44
|
type: 'select',
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
field: '
|
|
47
|
+
field: 'props.disabled',
|
|
48
48
|
label: '禁用',
|
|
49
49
|
type: 'switch',
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
field: '
|
|
52
|
+
field: 'props.hidden',
|
|
53
53
|
label: '隐藏',
|
|
54
54
|
type: 'switch',
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
field: '
|
|
57
|
+
field: 'props.options',
|
|
58
58
|
label: '选项管理',
|
|
59
59
|
layout: 'vertical',
|
|
60
60
|
type: 'EOptionsEditor',
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
componentProps: {
|
|
64
|
-
ruleType: 'array',
|
|
65
|
-
},
|
|
66
63
|
description: '校验规则需要配合表单使用',
|
|
67
64
|
field: 'rules',
|
|
68
65
|
label: '表单校验',
|
|
69
66
|
layout: 'vertical',
|
|
67
|
+
props: {
|
|
68
|
+
ruleType: 'array',
|
|
69
|
+
},
|
|
70
70
|
type: 'ERuleEditor',
|
|
71
71
|
},
|
|
72
72
|
],
|
|
@@ -78,7 +78,10 @@ export default {
|
|
|
78
78
|
],
|
|
79
79
|
},
|
|
80
80
|
defaultSchema: {
|
|
81
|
-
|
|
81
|
+
field: 'checkbox',
|
|
82
|
+
input: true,
|
|
83
|
+
label: '多选框',
|
|
84
|
+
props: {
|
|
82
85
|
options: [
|
|
83
86
|
{
|
|
84
87
|
label: '选项1',
|
|
@@ -90,9 +93,6 @@ export default {
|
|
|
90
93
|
},
|
|
91
94
|
],
|
|
92
95
|
},
|
|
93
|
-
field: 'checkbox',
|
|
94
|
-
input: true,
|
|
95
|
-
label: '多选框',
|
|
96
96
|
type: 'checkbox',
|
|
97
97
|
},
|
|
98
98
|
groupName: '表单',
|
package/src/col/index.ts
CHANGED
|
@@ -5,18 +5,21 @@ export default {
|
|
|
5
5
|
config: {
|
|
6
6
|
attribute: [
|
|
7
7
|
{
|
|
8
|
-
field: '
|
|
8
|
+
field: 'props.span',
|
|
9
9
|
label: '占位格数',
|
|
10
10
|
type: 'number',
|
|
11
11
|
},
|
|
12
12
|
],
|
|
13
13
|
},
|
|
14
14
|
defaultSchema: {
|
|
15
|
-
|
|
15
|
+
label: '栅格布局-列',
|
|
16
|
+
props: {
|
|
16
17
|
span: 6,
|
|
17
18
|
},
|
|
18
|
-
label: '栅格布局-列',
|
|
19
19
|
type: 'col',
|
|
20
20
|
children: [],
|
|
21
21
|
},
|
|
22
|
+
editConstraints: {
|
|
23
|
+
locked: true,
|
|
24
|
+
},
|
|
22
25
|
} as ComponentConfigModel;
|
|
@@ -8,8 +8,8 @@ export default {
|
|
|
8
8
|
attribute: [
|
|
9
9
|
{
|
|
10
10
|
field: 'field',
|
|
11
|
-
label: '
|
|
12
|
-
type: '
|
|
11
|
+
label: '数据字段',
|
|
12
|
+
type: 'EpField',
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
field: 'label',
|
|
@@ -17,12 +17,14 @@ export default {
|
|
|
17
17
|
type: 'input',
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
field: '
|
|
20
|
+
field: 'props.defaultValue',
|
|
21
21
|
label: '默认值',
|
|
22
22
|
type: 'input',
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
|
|
25
|
+
field: 'props.size',
|
|
26
|
+
label: '尺寸',
|
|
27
|
+
props: {
|
|
26
28
|
allowClear: true,
|
|
27
29
|
options: [
|
|
28
30
|
{
|
|
@@ -40,31 +42,29 @@ export default {
|
|
|
40
42
|
],
|
|
41
43
|
placeholder: '请选择',
|
|
42
44
|
},
|
|
43
|
-
field: 'componentProps.size',
|
|
44
|
-
label: '尺寸',
|
|
45
45
|
type: 'select',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
|
|
48
|
+
field: 'props.bordered',
|
|
49
|
+
label: '无边框',
|
|
50
|
+
props: {
|
|
49
51
|
checkedValue: false,
|
|
50
52
|
unCheckedValue: true,
|
|
51
53
|
},
|
|
52
|
-
field: 'componentProps.bordered',
|
|
53
|
-
label: '无边框',
|
|
54
54
|
type: 'switch',
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
field: '
|
|
57
|
+
field: 'props.allowClear',
|
|
58
58
|
label: '可清空',
|
|
59
59
|
type: 'switch',
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
field: '
|
|
62
|
+
field: 'props.disabled',
|
|
63
63
|
label: '禁用',
|
|
64
64
|
type: 'switch',
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
field: '
|
|
67
|
+
field: 'props.hidden',
|
|
68
68
|
label: '隐藏',
|
|
69
69
|
type: 'switch',
|
|
70
70
|
},
|
|
@@ -92,15 +92,15 @@ export default {
|
|
|
92
92
|
],
|
|
93
93
|
},
|
|
94
94
|
defaultSchema: {
|
|
95
|
-
|
|
95
|
+
field: 'color-picker',
|
|
96
|
+
input: true,
|
|
97
|
+
label: '颜色选择器',
|
|
98
|
+
props: {
|
|
96
99
|
style: {
|
|
97
100
|
width: '80px',
|
|
98
101
|
},
|
|
99
102
|
type: 'color',
|
|
100
103
|
},
|
|
101
|
-
field: 'color-picker',
|
|
102
|
-
input: true,
|
|
103
|
-
label: '颜色选择器',
|
|
104
104
|
type: 'color-picker',
|
|
105
105
|
},
|
|
106
106
|
groupName: '表单',
|