@next-bricks/form 1.15.20 → 1.16.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/bricks.json +43 -43
- package/dist/chunks/{149.0d96a17f.js → 149.9f425d9e.js} +2 -2
- package/dist/chunks/{149.0d96a17f.js.map → 149.9f425d9e.js.map} +1 -1
- package/dist/chunks/{1889.efd28cdd.js → 1889.95e02530.js} +2 -2
- package/dist/chunks/1889.95e02530.js.map +1 -0
- package/dist/chunks/4306.c52b6739.js +2 -0
- package/dist/chunks/4306.c52b6739.js.map +1 -0
- package/dist/chunks/{5026.cbd59622.js → 5026.0c71a0de.js} +3 -3
- package/dist/chunks/5026.0c71a0de.js.map +1 -0
- package/dist/chunks/5347.2f87fd08.js +3 -0
- package/dist/chunks/5347.2f87fd08.js.map +1 -0
- package/dist/chunks/{7721.d5cfcbb7.js → 7721.56f06716.js} +3 -3
- package/dist/chunks/7721.56f06716.js.map +1 -0
- package/dist/chunks/9140.92a1595b.js +3 -0
- package/dist/chunks/9140.92a1595b.js.map +1 -0
- package/dist/chunks/9515.c2a64690.js +2 -0
- package/dist/chunks/9515.c2a64690.js.map +1 -0
- package/dist/chunks/{9844.c7921922.js → 9844.0e7eb437.js} +2 -2
- package/dist/chunks/{9844.c7921922.js.map → 9844.0e7eb437.js.map} +1 -1
- package/dist/chunks/eo-color-picker.5f9d5ae6.js +2 -0
- package/dist/chunks/{eo-color-picker.2ca173ad.js.map → eo-color-picker.5f9d5ae6.js.map} +1 -1
- package/dist/chunks/eo-date-picker.e89ab216.js +2 -0
- package/dist/chunks/{eo-date-picker.69734d54.js.map → eo-date-picker.e89ab216.js.map} +1 -1
- package/dist/chunks/eo-dynamic-form-item.4e8ac208.js +3 -0
- package/dist/chunks/{eo-dynamic-form-item.023553e6.js.map → eo-dynamic-form-item.4e8ac208.js.map} +1 -1
- package/dist/chunks/eo-radio.73b27079.js +3 -0
- package/dist/chunks/{eo-radio.d7d5c5cc.js.map → eo-radio.73b27079.js.map} +1 -1
- package/dist/chunks/eo-select.6e142ce3.js +3 -0
- package/dist/chunks/eo-select.6e142ce3.js.map +1 -0
- package/dist/chunks/eo-time-picker.9402ab95.js +2 -0
- package/dist/chunks/{eo-time-picker.af83e9e7.js.map → eo-time-picker.9402ab95.js.map} +1 -1
- package/dist/chunks/eo-time-range-picker.586762ea.js +2 -0
- package/dist/chunks/{eo-time-range-picker.faa63b15.js.map → eo-time-range-picker.586762ea.js.map} +1 -1
- package/dist/chunks/eo-upload-file.044bd857.js +3 -0
- package/dist/chunks/{eo-upload-file.81312b34.js.map → eo-upload-file.044bd857.js.map} +1 -1
- package/dist/chunks/{eo-upload-image.cc41de20.js → eo-upload-image.fea2ce95.js} +3 -3
- package/dist/chunks/{eo-upload-image.cc41de20.js.map → eo-upload-image.fea2ce95.js.map} +1 -1
- package/dist/chunks/main.3fba8d87.js +2 -0
- package/dist/chunks/{main.7b4f5b14.js.map → main.3fba8d87.js.map} +1 -1
- package/dist/chunks/{react.4372d06b.js → react.b86c57e9.js} +2 -2
- package/dist/examples.json +14 -14
- package/dist/index.a43217c7.js +2 -0
- package/dist/index.a43217c7.js.map +1 -0
- package/dist/manifest.json +546 -546
- package/dist/types.json +460 -434
- package/dist-types/interface.d.ts +1 -0
- package/docs/eo-select.md +21 -0
- package/package.json +2 -2
- package/dist/chunks/1889.efd28cdd.js.map +0 -1
- package/dist/chunks/4185.228cd688.js +0 -3
- package/dist/chunks/4185.228cd688.js.map +0 -1
- package/dist/chunks/4306.5ca13833.js +0 -2
- package/dist/chunks/4306.5ca13833.js.map +0 -1
- package/dist/chunks/5026.cbd59622.js.map +0 -1
- package/dist/chunks/5347.00500d5b.js +0 -3
- package/dist/chunks/5347.00500d5b.js.map +0 -1
- package/dist/chunks/7721.d5cfcbb7.js.map +0 -1
- package/dist/chunks/9515.ffbcdd4f.js +0 -2
- package/dist/chunks/9515.ffbcdd4f.js.map +0 -1
- package/dist/chunks/eo-color-picker.2ca173ad.js +0 -2
- package/dist/chunks/eo-date-picker.69734d54.js +0 -2
- package/dist/chunks/eo-dynamic-form-item.023553e6.js +0 -3
- package/dist/chunks/eo-radio.d7d5c5cc.js +0 -3
- package/dist/chunks/eo-select.a3b01a0e.js +0 -3
- package/dist/chunks/eo-select.a3b01a0e.js.map +0 -1
- package/dist/chunks/eo-time-picker.af83e9e7.js +0 -2
- package/dist/chunks/eo-time-range-picker.faa63b15.js +0 -2
- package/dist/chunks/eo-upload-file.81312b34.js +0 -3
- package/dist/chunks/main.7b4f5b14.js +0 -2
- package/dist/index.78c877f2.js +0 -2
- package/dist/index.78c877f2.js.map +0 -1
- /package/dist/chunks/{5026.cbd59622.js.LICENSE.txt → 5026.0c71a0de.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5347.00500d5b.js.LICENSE.txt → 5347.2f87fd08.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7721.d5cfcbb7.js.LICENSE.txt → 7721.56f06716.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4185.228cd688.js.LICENSE.txt → 9140.92a1595b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.023553e6.js.LICENSE.txt → eo-dynamic-form-item.4e8ac208.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.d7d5c5cc.js.LICENSE.txt → eo-radio.73b27079.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.a3b01a0e.js.LICENSE.txt → eo-select.6e142ce3.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.81312b34.js.LICENSE.txt → eo-upload-file.044bd857.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.cc41de20.js.LICENSE.txt → eo-upload-image.fea2ce95.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{react.4372d06b.js.LICENSE.txt → react.b86c57e9.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -4,24 +4,112 @@
|
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
6
|
{
|
|
7
|
-
"name": "eo-
|
|
7
|
+
"name": "eo-radio",
|
|
8
8
|
"alias": [
|
|
9
|
-
"form.general-
|
|
9
|
+
"form.general-radio"
|
|
10
10
|
],
|
|
11
11
|
"properties": [
|
|
12
12
|
{
|
|
13
13
|
"name": "name",
|
|
14
|
-
"description": "
|
|
14
|
+
"description": "下拉框字段名",
|
|
15
15
|
"type": "string"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "label",
|
|
19
|
-
"description": "
|
|
19
|
+
"description": "单选框字段说明",
|
|
20
20
|
"type": "string"
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
"name": "options",
|
|
24
|
+
"description": "单选框选项表",
|
|
25
|
+
"required": true,
|
|
26
|
+
"attribute": false,
|
|
27
|
+
"type": "GeneralOption[]"
|
|
28
|
+
},
|
|
22
29
|
{
|
|
23
30
|
"name": "value",
|
|
24
|
-
"description": "
|
|
31
|
+
"description": "单选框当前选中始值",
|
|
32
|
+
"attribute": false,
|
|
33
|
+
"type": "any"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "required",
|
|
37
|
+
"description": "是否必填",
|
|
38
|
+
"type": "boolean"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "message",
|
|
42
|
+
"description": "校验文本信息",
|
|
43
|
+
"attribute": false,
|
|
44
|
+
"type": "Record<string, string>"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "disabled",
|
|
48
|
+
"description": "是否禁用",
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "type",
|
|
53
|
+
"description": "单选框样式类型",
|
|
54
|
+
"default": "\"default\"",
|
|
55
|
+
"type": "RadioType"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "ui",
|
|
59
|
+
"description": "UI样式",
|
|
60
|
+
"default": "\"default\"",
|
|
61
|
+
"type": "UIType"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "size",
|
|
65
|
+
"description": "大小,只对按钮样式生效",
|
|
66
|
+
"default": "\"medium\"",
|
|
67
|
+
"type": "ComponentSize"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "customStyle",
|
|
71
|
+
"description": "自定义radio的外层样式",
|
|
72
|
+
"attribute": false,
|
|
73
|
+
"type": "React.CSSProperties"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "useBrick",
|
|
77
|
+
"description": "自定义radio的内容",
|
|
78
|
+
"attribute": false,
|
|
79
|
+
"type": "UseSingleBrickConf"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"events": [
|
|
83
|
+
{
|
|
84
|
+
"name": "change",
|
|
85
|
+
"description": "值变化事件",
|
|
86
|
+
"detail": {
|
|
87
|
+
"type": "GeneralComplexOption | undefined"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "options.change",
|
|
92
|
+
"description": "选项列表变化事件",
|
|
93
|
+
"detail": {
|
|
94
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"slots": [],
|
|
99
|
+
"methods": [],
|
|
100
|
+
"parts": [],
|
|
101
|
+
"description": "通用单选构件",
|
|
102
|
+
"category": "form-input-basic"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "eo-select",
|
|
106
|
+
"alias": [
|
|
107
|
+
"form.general-select"
|
|
108
|
+
],
|
|
109
|
+
"properties": [
|
|
110
|
+
{
|
|
111
|
+
"name": "name",
|
|
112
|
+
"description": "字段名称",
|
|
25
113
|
"type": "string"
|
|
26
114
|
},
|
|
27
115
|
{
|
|
@@ -29,76 +117,136 @@
|
|
|
29
117
|
"description": "占位说明",
|
|
30
118
|
"type": "string"
|
|
31
119
|
},
|
|
120
|
+
{
|
|
121
|
+
"name": "label",
|
|
122
|
+
"description": "字段文本",
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "options",
|
|
127
|
+
"description": "选项列表",
|
|
128
|
+
"required": true,
|
|
129
|
+
"attribute": false,
|
|
130
|
+
"type": "GeneralComplexOption[]"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "value",
|
|
134
|
+
"description": "值",
|
|
135
|
+
"attribute": false,
|
|
136
|
+
"type": "any"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "required",
|
|
140
|
+
"description": "是否必填",
|
|
141
|
+
"type": "boolean"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "message",
|
|
145
|
+
"description": "校验文本信息",
|
|
146
|
+
"attribute": false,
|
|
147
|
+
"type": "Record<string, string>"
|
|
148
|
+
},
|
|
32
149
|
{
|
|
33
150
|
"name": "disabled",
|
|
34
151
|
"description": "是否禁用",
|
|
35
152
|
"type": "boolean"
|
|
36
153
|
},
|
|
37
154
|
{
|
|
38
|
-
"name": "
|
|
39
|
-
"description": "
|
|
40
|
-
"type": "
|
|
155
|
+
"name": "mode",
|
|
156
|
+
"description": "类型",
|
|
157
|
+
"type": "\"tags\" | \"multiple\""
|
|
41
158
|
},
|
|
42
159
|
{
|
|
43
|
-
"name": "
|
|
44
|
-
"description": "
|
|
160
|
+
"name": "tokenSeparators",
|
|
161
|
+
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
162
|
+
"attribute": false,
|
|
163
|
+
"type": "string[]"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "maxTagCount",
|
|
167
|
+
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
45
168
|
"type": "number"
|
|
46
169
|
},
|
|
47
170
|
{
|
|
48
|
-
"name": "
|
|
49
|
-
"description": "
|
|
171
|
+
"name": "groupBy",
|
|
172
|
+
"description": "分组字段",
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "suffix",
|
|
177
|
+
"description": "",
|
|
50
178
|
"attribute": false,
|
|
51
|
-
"type": "
|
|
179
|
+
"type": "{ useBrick: UseSingleBrickConf }"
|
|
52
180
|
},
|
|
53
181
|
{
|
|
54
|
-
"name": "
|
|
55
|
-
"description": "
|
|
182
|
+
"name": "clearable",
|
|
183
|
+
"description": "是否支持清除",
|
|
184
|
+
"default": "true",
|
|
56
185
|
"type": "boolean"
|
|
57
186
|
},
|
|
58
187
|
{
|
|
59
|
-
"name": "
|
|
60
|
-
"description": "
|
|
61
|
-
"
|
|
188
|
+
"name": "fields",
|
|
189
|
+
"description": "列表指定字段作为 label 和 value",
|
|
190
|
+
"attribute": false,
|
|
191
|
+
"type": "{ label?: string; value?: string }"
|
|
62
192
|
},
|
|
63
193
|
{
|
|
64
|
-
"name": "
|
|
65
|
-
"description": "
|
|
66
|
-
"
|
|
194
|
+
"name": "useBackend",
|
|
195
|
+
"description": "后端搜索",
|
|
196
|
+
"attribute": false,
|
|
197
|
+
"type": "UseBackendConf"
|
|
67
198
|
},
|
|
68
199
|
{
|
|
69
|
-
"name": "
|
|
70
|
-
"description": "
|
|
71
|
-
"
|
|
72
|
-
"type": "Record<string, string>"
|
|
200
|
+
"name": "debounceSearchDelay",
|
|
201
|
+
"description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
|
|
202
|
+
"type": "number"
|
|
73
203
|
},
|
|
74
204
|
{
|
|
75
|
-
"name": "
|
|
76
|
-
"description": "
|
|
205
|
+
"name": "inputStyle",
|
|
206
|
+
"description": "输入框样式",
|
|
77
207
|
"attribute": false,
|
|
78
208
|
"type": "React.CSSProperties"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "dropdownHoist",
|
|
212
|
+
"description": "下拉框是否使用固定定位防止内容被裁切",
|
|
213
|
+
"type": "boolean"
|
|
79
214
|
}
|
|
80
215
|
],
|
|
81
216
|
"events": [
|
|
82
217
|
{
|
|
83
218
|
"name": "change",
|
|
84
|
-
"description": "",
|
|
219
|
+
"description": "下拉选择事件",
|
|
85
220
|
"detail": {
|
|
86
|
-
"
|
|
87
|
-
"type": "string"
|
|
221
|
+
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
88
222
|
}
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"slots": [],
|
|
92
|
-
"methods": [
|
|
223
|
+
},
|
|
93
224
|
{
|
|
94
|
-
"name": "
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
225
|
+
"name": "search",
|
|
226
|
+
"description": "下拉框search事件",
|
|
227
|
+
"detail": {
|
|
228
|
+
"type": "{\n value: string;\n }"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "select.focus",
|
|
233
|
+
"description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
|
|
234
|
+
"detail": {
|
|
235
|
+
"type": "void"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "options.change",
|
|
240
|
+
"description": "选项列表变化事件",
|
|
241
|
+
"detail": {
|
|
242
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
243
|
+
}
|
|
98
244
|
}
|
|
99
245
|
],
|
|
246
|
+
"slots": [],
|
|
247
|
+
"methods": [],
|
|
100
248
|
"parts": [],
|
|
101
|
-
"description": "
|
|
249
|
+
"description": "通用下拉选择构件",
|
|
102
250
|
"category": "form-input-basic"
|
|
103
251
|
},
|
|
104
252
|
{
|
|
@@ -247,192 +395,90 @@
|
|
|
247
395
|
"category": "form-input-basic"
|
|
248
396
|
},
|
|
249
397
|
{
|
|
250
|
-
"name": "eo-
|
|
398
|
+
"name": "eo-submit-buttons",
|
|
251
399
|
"alias": [
|
|
252
|
-
"form.
|
|
400
|
+
"form.submit-buttons"
|
|
253
401
|
],
|
|
254
402
|
"properties": [
|
|
255
403
|
{
|
|
256
|
-
"name": "
|
|
257
|
-
"description": "
|
|
404
|
+
"name": "submitText",
|
|
405
|
+
"description": "提交按钮的文字",
|
|
406
|
+
"default": "\"提交\"",
|
|
258
407
|
"type": "string"
|
|
259
408
|
},
|
|
260
409
|
{
|
|
261
|
-
"name": "
|
|
262
|
-
"description": "
|
|
410
|
+
"name": "cancelText",
|
|
411
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
263
412
|
"type": "string"
|
|
264
413
|
},
|
|
265
414
|
{
|
|
266
|
-
"name": "
|
|
267
|
-
"description": "
|
|
268
|
-
"type": "
|
|
415
|
+
"name": "disableAfterClick",
|
|
416
|
+
"description": "点击确定按钮后自动禁用",
|
|
417
|
+
"type": "boolean"
|
|
269
418
|
},
|
|
270
419
|
{
|
|
271
|
-
"name": "
|
|
272
|
-
"description": "
|
|
273
|
-
"
|
|
274
|
-
"attribute": false,
|
|
275
|
-
"type": "GeneralComplexOption[]"
|
|
420
|
+
"name": "submitDisabled",
|
|
421
|
+
"description": "禁用提交按钮",
|
|
422
|
+
"type": "boolean"
|
|
276
423
|
},
|
|
277
424
|
{
|
|
278
|
-
"name": "
|
|
279
|
-
"description": "
|
|
280
|
-
"
|
|
281
|
-
"type": "any"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"name": "required",
|
|
285
|
-
"description": "是否必填",
|
|
286
|
-
"type": "boolean"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"name": "message",
|
|
290
|
-
"description": "校验文本信息",
|
|
291
|
-
"attribute": false,
|
|
292
|
-
"type": "Record<string, string>"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"name": "disabled",
|
|
296
|
-
"description": "是否禁用",
|
|
297
|
-
"type": "boolean"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"name": "mode",
|
|
301
|
-
"description": "类型",
|
|
302
|
-
"type": "\"tags\" | \"multiple\""
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"name": "tokenSeparators",
|
|
306
|
-
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
307
|
-
"attribute": false,
|
|
308
|
-
"type": "string[]"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"name": "maxTagCount",
|
|
312
|
-
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
313
|
-
"type": "number"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"name": "groupBy",
|
|
317
|
-
"description": "分组字段",
|
|
318
|
-
"type": "string"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"name": "suffix",
|
|
322
|
-
"description": "",
|
|
323
|
-
"attribute": false,
|
|
324
|
-
"type": "{ useBrick: UseSingleBrickConf }"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"name": "clearable",
|
|
328
|
-
"description": "是否支持清除",
|
|
329
|
-
"default": "true",
|
|
330
|
-
"type": "boolean"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"name": "fields",
|
|
334
|
-
"description": "列表指定字段作为 label 和 value",
|
|
335
|
-
"attribute": false,
|
|
336
|
-
"type": "{ label?: string; value?: string }"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
"name": "useBackend",
|
|
340
|
-
"description": "后端搜索",
|
|
341
|
-
"attribute": false,
|
|
342
|
-
"type": "UseBackendConf"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"name": "debounceSearchDelay",
|
|
346
|
-
"description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
|
|
347
|
-
"type": "number"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"name": "inputStyle",
|
|
351
|
-
"description": "输入框样式",
|
|
352
|
-
"attribute": false,
|
|
353
|
-
"type": "React.CSSProperties"
|
|
425
|
+
"name": "submitType",
|
|
426
|
+
"description": "提交按钮类型",
|
|
427
|
+
"type": "ButtonType"
|
|
354
428
|
},
|
|
355
429
|
{
|
|
356
|
-
"name": "
|
|
357
|
-
"description": "
|
|
358
|
-
"type": "
|
|
430
|
+
"name": "cancelType",
|
|
431
|
+
"description": "取消按钮类型",
|
|
432
|
+
"type": "ButtonType"
|
|
359
433
|
}
|
|
360
434
|
],
|
|
361
435
|
"events": [
|
|
362
436
|
{
|
|
363
|
-
"name": "
|
|
364
|
-
"description": "
|
|
365
|
-
"detail": {
|
|
366
|
-
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"name": "search",
|
|
371
|
-
"description": "下拉框search事件",
|
|
372
|
-
"detail": {
|
|
373
|
-
"type": "{\n value: string;\n }"
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
"name": "select.focus",
|
|
378
|
-
"description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
|
|
437
|
+
"name": "submit",
|
|
438
|
+
"description": "点击提交按钮触发的事件",
|
|
379
439
|
"detail": {
|
|
380
440
|
"type": "void"
|
|
381
441
|
}
|
|
382
442
|
},
|
|
383
443
|
{
|
|
384
|
-
"name": "
|
|
385
|
-
"description": "
|
|
444
|
+
"name": "cancel",
|
|
445
|
+
"description": "点击取消按钮触发的事件",
|
|
386
446
|
"detail": {
|
|
387
|
-
"type": "
|
|
447
|
+
"type": "void"
|
|
388
448
|
}
|
|
389
449
|
}
|
|
390
450
|
],
|
|
391
451
|
"slots": [],
|
|
392
452
|
"methods": [],
|
|
393
453
|
"parts": [],
|
|
394
|
-
"description": "
|
|
454
|
+
"description": "表单提交按钮",
|
|
395
455
|
"category": "form-input-basic"
|
|
396
456
|
},
|
|
397
457
|
{
|
|
398
|
-
"name": "eo-
|
|
458
|
+
"name": "eo-textarea",
|
|
399
459
|
"alias": [
|
|
400
|
-
"form.general-
|
|
460
|
+
"form.general-textarea"
|
|
401
461
|
],
|
|
402
462
|
"properties": [
|
|
403
463
|
{
|
|
404
464
|
"name": "name",
|
|
405
|
-
"description": "
|
|
465
|
+
"description": "字段名称",
|
|
406
466
|
"type": "string"
|
|
407
467
|
},
|
|
408
468
|
{
|
|
409
469
|
"name": "label",
|
|
410
|
-
"description": "
|
|
470
|
+
"description": "标签文字",
|
|
411
471
|
"type": "string"
|
|
412
472
|
},
|
|
413
|
-
{
|
|
414
|
-
"name": "options",
|
|
415
|
-
"description": "单选框选项表",
|
|
416
|
-
"required": true,
|
|
417
|
-
"attribute": false,
|
|
418
|
-
"type": "GeneralOption[]"
|
|
419
|
-
},
|
|
420
473
|
{
|
|
421
474
|
"name": "value",
|
|
422
|
-
"description": "
|
|
423
|
-
"
|
|
424
|
-
"type": "any"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"name": "required",
|
|
428
|
-
"description": "是否必填",
|
|
429
|
-
"type": "boolean"
|
|
475
|
+
"description": "值",
|
|
476
|
+
"type": "string"
|
|
430
477
|
},
|
|
431
478
|
{
|
|
432
|
-
"name": "
|
|
433
|
-
"description": "
|
|
434
|
-
"
|
|
435
|
-
"type": "Record<string, string>"
|
|
479
|
+
"name": "placeholder",
|
|
480
|
+
"description": "占位说明",
|
|
481
|
+
"type": "string"
|
|
436
482
|
},
|
|
437
483
|
{
|
|
438
484
|
"name": "disabled",
|
|
@@ -440,116 +486,70 @@
|
|
|
440
486
|
"type": "boolean"
|
|
441
487
|
},
|
|
442
488
|
{
|
|
443
|
-
"name": "
|
|
444
|
-
"description": "
|
|
445
|
-
"
|
|
446
|
-
"type": "RadioType"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"name": "ui",
|
|
450
|
-
"description": "UI样式",
|
|
451
|
-
"default": "\"default\"",
|
|
452
|
-
"type": "UIType"
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"name": "size",
|
|
456
|
-
"description": "大小,只对按钮样式生效",
|
|
457
|
-
"default": "\"medium\"",
|
|
458
|
-
"type": "ComponentSize"
|
|
489
|
+
"name": "minLength",
|
|
490
|
+
"description": "最小长度",
|
|
491
|
+
"type": "number"
|
|
459
492
|
},
|
|
460
493
|
{
|
|
461
|
-
"name": "
|
|
462
|
-
"description": "
|
|
463
|
-
"
|
|
464
|
-
"type": "React.CSSProperties"
|
|
494
|
+
"name": "maxLength",
|
|
495
|
+
"description": "最大长度",
|
|
496
|
+
"type": "number"
|
|
465
497
|
},
|
|
466
498
|
{
|
|
467
|
-
"name": "
|
|
468
|
-
"description": "
|
|
499
|
+
"name": "autoSize",
|
|
500
|
+
"description": "大小自适应",
|
|
469
501
|
"attribute": false,
|
|
470
|
-
"type": "
|
|
471
|
-
}
|
|
472
|
-
],
|
|
473
|
-
"events": [
|
|
474
|
-
{
|
|
475
|
-
"name": "change",
|
|
476
|
-
"description": "值变化事件",
|
|
477
|
-
"detail": {
|
|
478
|
-
"type": "GeneralComplexOption | undefined"
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
"name": "options.change",
|
|
483
|
-
"description": "选项列表变化事件",
|
|
484
|
-
"detail": {
|
|
485
|
-
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
],
|
|
489
|
-
"slots": [],
|
|
490
|
-
"methods": [],
|
|
491
|
-
"parts": [],
|
|
492
|
-
"description": "通用单选构件",
|
|
493
|
-
"category": "form-input-basic"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
"name": "eo-submit-buttons",
|
|
497
|
-
"alias": [
|
|
498
|
-
"form.submit-buttons"
|
|
499
|
-
],
|
|
500
|
-
"properties": [
|
|
501
|
-
{
|
|
502
|
-
"name": "submitText",
|
|
503
|
-
"description": "提交按钮的文字",
|
|
504
|
-
"default": "\"提交\"",
|
|
505
|
-
"type": "string"
|
|
502
|
+
"type": "AutoSize"
|
|
506
503
|
},
|
|
507
504
|
{
|
|
508
|
-
"name": "
|
|
509
|
-
"description": "
|
|
510
|
-
"type": "
|
|
505
|
+
"name": "required",
|
|
506
|
+
"description": "是否必填",
|
|
507
|
+
"type": "boolean"
|
|
511
508
|
},
|
|
512
509
|
{
|
|
513
|
-
"name": "
|
|
514
|
-
"description": "
|
|
515
|
-
"type": "
|
|
510
|
+
"name": "max",
|
|
511
|
+
"description": "表单校验最大长度",
|
|
512
|
+
"type": "number"
|
|
516
513
|
},
|
|
517
514
|
{
|
|
518
|
-
"name": "
|
|
519
|
-
"description": "
|
|
520
|
-
"type": "
|
|
515
|
+
"name": "min",
|
|
516
|
+
"description": "表单校验最小长度",
|
|
517
|
+
"type": "number"
|
|
521
518
|
},
|
|
522
519
|
{
|
|
523
|
-
"name": "
|
|
524
|
-
"description": "
|
|
525
|
-
"
|
|
520
|
+
"name": "message",
|
|
521
|
+
"description": "校验信息",
|
|
522
|
+
"attribute": false,
|
|
523
|
+
"type": "Record<string, string>"
|
|
526
524
|
},
|
|
527
525
|
{
|
|
528
|
-
"name": "
|
|
529
|
-
"description": "
|
|
530
|
-
"
|
|
526
|
+
"name": "textareaStyle",
|
|
527
|
+
"description": "自定义样式",
|
|
528
|
+
"attribute": false,
|
|
529
|
+
"type": "React.CSSProperties"
|
|
531
530
|
}
|
|
532
531
|
],
|
|
533
532
|
"events": [
|
|
534
533
|
{
|
|
535
|
-
"name": "
|
|
536
|
-
"description": "
|
|
537
|
-
"detail": {
|
|
538
|
-
"type": "void"
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
"name": "cancel",
|
|
543
|
-
"description": "点击取消按钮触发的事件",
|
|
534
|
+
"name": "change",
|
|
535
|
+
"description": "",
|
|
544
536
|
"detail": {
|
|
545
|
-
"
|
|
537
|
+
"description": null,
|
|
538
|
+
"type": "string"
|
|
546
539
|
}
|
|
547
540
|
}
|
|
548
541
|
],
|
|
549
542
|
"slots": [],
|
|
550
|
-
"methods": [
|
|
543
|
+
"methods": [
|
|
544
|
+
{
|
|
545
|
+
"name": "focusTextarea",
|
|
546
|
+
"params": [],
|
|
547
|
+
"description": "focus",
|
|
548
|
+
"returns": {}
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
551
|
"parts": [],
|
|
552
|
-
"description": "
|
|
552
|
+
"description": "通用多行文本输入框构件",
|
|
553
553
|
"category": "form-input-basic"
|
|
554
554
|
},
|
|
555
555
|
{
|
|
@@ -804,9 +804,9 @@
|
|
|
804
804
|
"category": "interact-basic"
|
|
805
805
|
},
|
|
806
806
|
{
|
|
807
|
-
"name": "eo-
|
|
807
|
+
"name": "eo-upload-image",
|
|
808
808
|
"alias": [
|
|
809
|
-
"form.
|
|
809
|
+
"form.upload-image"
|
|
810
810
|
],
|
|
811
811
|
"properties": [
|
|
812
812
|
{
|
|
@@ -823,13 +823,28 @@
|
|
|
823
823
|
"name": "value",
|
|
824
824
|
"description": "值",
|
|
825
825
|
"attribute": false,
|
|
826
|
-
"type": "
|
|
826
|
+
"type": "ImageData[]"
|
|
827
827
|
},
|
|
828
828
|
{
|
|
829
|
-
"name": "
|
|
830
|
-
"description": "
|
|
829
|
+
"name": "bucketName",
|
|
830
|
+
"description": "对象存储桶名字",
|
|
831
|
+
"type": "string"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "maxCount",
|
|
835
|
+
"description": "最大上传数量",
|
|
836
|
+
"type": "number"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"name": "multiple",
|
|
840
|
+
"description": "是否支持选定的多张图片",
|
|
831
841
|
"type": "boolean"
|
|
832
842
|
},
|
|
843
|
+
{
|
|
844
|
+
"name": "limitSize",
|
|
845
|
+
"description": "上传大小限制(单位为 MB)",
|
|
846
|
+
"type": "number"
|
|
847
|
+
},
|
|
833
848
|
{
|
|
834
849
|
"name": "required",
|
|
835
850
|
"description": "是否必填",
|
|
@@ -837,7 +852,7 @@
|
|
|
837
852
|
},
|
|
838
853
|
{
|
|
839
854
|
"name": "message",
|
|
840
|
-
"description": "
|
|
855
|
+
"description": "校验文本信息",
|
|
841
856
|
"attribute": false,
|
|
842
857
|
"type": "Record<string, string>"
|
|
843
858
|
}
|
|
@@ -847,20 +862,20 @@
|
|
|
847
862
|
"name": "change",
|
|
848
863
|
"description": "值变化时触发",
|
|
849
864
|
"detail": {
|
|
850
|
-
"type": "
|
|
865
|
+
"type": "ImageData[]"
|
|
851
866
|
}
|
|
852
867
|
}
|
|
853
868
|
],
|
|
854
869
|
"slots": [],
|
|
855
870
|
"methods": [],
|
|
856
871
|
"parts": [],
|
|
857
|
-
"description": "
|
|
872
|
+
"description": "上传图片构件",
|
|
858
873
|
"category": "form-input-basic"
|
|
859
874
|
},
|
|
860
875
|
{
|
|
861
|
-
"name": "eo-
|
|
876
|
+
"name": "eo-icon-select",
|
|
862
877
|
"alias": [
|
|
863
|
-
"form.
|
|
878
|
+
"form.icon-select"
|
|
864
879
|
],
|
|
865
880
|
"properties": [
|
|
866
881
|
{
|
|
@@ -877,28 +892,13 @@
|
|
|
877
892
|
"name": "value",
|
|
878
893
|
"description": "值",
|
|
879
894
|
"attribute": false,
|
|
880
|
-
"type": "
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
"name": "bucketName",
|
|
884
|
-
"description": "对象存储桶名字",
|
|
885
|
-
"type": "string"
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
"name": "maxCount",
|
|
889
|
-
"description": "最大上传数量",
|
|
890
|
-
"type": "number"
|
|
895
|
+
"type": "Icon"
|
|
891
896
|
},
|
|
892
897
|
{
|
|
893
|
-
"name": "
|
|
894
|
-
"description": "
|
|
898
|
+
"name": "disabled",
|
|
899
|
+
"description": "是否禁用",
|
|
895
900
|
"type": "boolean"
|
|
896
901
|
},
|
|
897
|
-
{
|
|
898
|
-
"name": "limitSize",
|
|
899
|
-
"description": "上传大小限制(单位为 MB)",
|
|
900
|
-
"type": "number"
|
|
901
|
-
},
|
|
902
902
|
{
|
|
903
903
|
"name": "required",
|
|
904
904
|
"description": "是否必填",
|
|
@@ -906,7 +906,7 @@
|
|
|
906
906
|
},
|
|
907
907
|
{
|
|
908
908
|
"name": "message",
|
|
909
|
-
"description": "
|
|
909
|
+
"description": "是否必填",
|
|
910
910
|
"attribute": false,
|
|
911
911
|
"type": "Record<string, string>"
|
|
912
912
|
}
|
|
@@ -916,14 +916,14 @@
|
|
|
916
916
|
"name": "change",
|
|
917
917
|
"description": "值变化时触发",
|
|
918
918
|
"detail": {
|
|
919
|
-
"type": "
|
|
919
|
+
"type": "Icon | undefined"
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
],
|
|
923
923
|
"slots": [],
|
|
924
924
|
"methods": [],
|
|
925
925
|
"parts": [],
|
|
926
|
-
"description": "
|
|
926
|
+
"description": "图标选择构件",
|
|
927
927
|
"category": "form-input-basic"
|
|
928
928
|
},
|
|
929
929
|
{
|
|
@@ -995,6 +995,129 @@
|
|
|
995
995
|
"description": "开关",
|
|
996
996
|
"category": "form-input-basic"
|
|
997
997
|
},
|
|
998
|
+
{
|
|
999
|
+
"name": "eo-upload-file",
|
|
1000
|
+
"properties": [
|
|
1001
|
+
{
|
|
1002
|
+
"name": "label",
|
|
1003
|
+
"description": "字段说明",
|
|
1004
|
+
"type": "string"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "name",
|
|
1008
|
+
"description": "字段名称",
|
|
1009
|
+
"type": "string"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "required",
|
|
1013
|
+
"description": "是否必填",
|
|
1014
|
+
"type": "boolean"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"name": "message",
|
|
1018
|
+
"description": "校验文本信息",
|
|
1019
|
+
"attribute": false,
|
|
1020
|
+
"type": "Record<string, string>"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"name": "value",
|
|
1024
|
+
"description": "值",
|
|
1025
|
+
"attribute": false,
|
|
1026
|
+
"type": "FileData[]"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"name": "multiple",
|
|
1030
|
+
"description": "是否支持多选",
|
|
1031
|
+
"type": "boolean"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"name": "accept",
|
|
1035
|
+
"description": "接受上传的文件类型,多个之间用 `,` 连接",
|
|
1036
|
+
"type": "string"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"name": "maxCount",
|
|
1040
|
+
"description": "最大上传数量",
|
|
1041
|
+
"type": "number"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "limitSize",
|
|
1045
|
+
"description": "上传大小限制(单位为 MB)",
|
|
1046
|
+
"type": "number"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"name": "buttonText",
|
|
1050
|
+
"description": "上传按钮文本",
|
|
1051
|
+
"default": "上传",
|
|
1052
|
+
"type": "string"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "buttonType",
|
|
1056
|
+
"description": "上传按钮类型",
|
|
1057
|
+
"type": "ButtonProps[\"type\"]"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"name": "buttonIcon",
|
|
1061
|
+
"description": "上传按钮类型",
|
|
1062
|
+
"default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
|
|
1063
|
+
"attribute": false,
|
|
1064
|
+
"type": "GeneralIconProps"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "overMaxCountMode",
|
|
1068
|
+
"description": "超出最大上传数量时文件的保留方式",
|
|
1069
|
+
"default": "\"replace\"",
|
|
1070
|
+
"type": "\"ignore\" | \"replace\""
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "uploadDraggable",
|
|
1074
|
+
"description": "是否可以拖拽上传",
|
|
1075
|
+
"type": "boolean"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "draggableUploadTip",
|
|
1079
|
+
"description": "拖拽上传的提示信息",
|
|
1080
|
+
"type": "string"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "autoUpload",
|
|
1084
|
+
"description": "是否自动上传",
|
|
1085
|
+
"default": "false",
|
|
1086
|
+
"type": "boolean"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"name": "url",
|
|
1090
|
+
"description": "自动上传的地址",
|
|
1091
|
+
"type": "string"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"name": "method",
|
|
1095
|
+
"description": "自动上传的方法",
|
|
1096
|
+
"default": "\"POST\"",
|
|
1097
|
+
"type": "string"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"name": "uploadName",
|
|
1101
|
+
"description": "自动上传的文件参数名",
|
|
1102
|
+
"default": "\"file\"",
|
|
1103
|
+
"type": "string"
|
|
1104
|
+
}
|
|
1105
|
+
],
|
|
1106
|
+
"events": [
|
|
1107
|
+
{
|
|
1108
|
+
"name": "change",
|
|
1109
|
+
"description": "值变化时触发",
|
|
1110
|
+
"detail": {
|
|
1111
|
+
"type": "FileData[]"
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
"slots": [],
|
|
1116
|
+
"methods": [],
|
|
1117
|
+
"parts": [],
|
|
1118
|
+
"description": "上传文件",
|
|
1119
|
+
"category": "form-input-basic"
|
|
1120
|
+
},
|
|
998
1121
|
{
|
|
999
1122
|
"name": "eo-auto-complete",
|
|
1000
1123
|
"properties": [
|
|
@@ -1113,167 +1236,44 @@
|
|
|
1113
1236
|
"type": "boolean"
|
|
1114
1237
|
},
|
|
1115
1238
|
{
|
|
1116
|
-
"name": "required",
|
|
1117
|
-
"description": "是否必填",
|
|
1118
|
-
"type": "boolean"
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
"name": "configProps",
|
|
1122
|
-
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1123
|
-
"attribute": false,
|
|
1124
|
-
"type": "Partial<TimePickerProps>"
|
|
1125
|
-
}
|
|
1126
|
-
],
|
|
1127
|
-
"events": [
|
|
1128
|
-
{
|
|
1129
|
-
"name": "change",
|
|
1130
|
-
"description": "时间变化时触发",
|
|
1131
|
-
"detail": {
|
|
1132
|
-
"type": "string"
|
|
1133
|
-
}
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
"name": "open",
|
|
1137
|
-
"description": "面板打开时触发, 传出当前时间值",
|
|
1138
|
-
"detail": {
|
|
1139
|
-
"type": "string"
|
|
1140
|
-
}
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
"name": "close",
|
|
1144
|
-
"description": "面板关闭时触发,传出当前时间值",
|
|
1145
|
-
"detail": {
|
|
1146
|
-
"type": "string"
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
],
|
|
1150
|
-
"slots": [],
|
|
1151
|
-
"methods": [],
|
|
1152
|
-
"parts": [],
|
|
1153
|
-
"description": "时间选择器",
|
|
1154
|
-
"category": "form-input-basic"
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"name": "eo-upload-file",
|
|
1158
|
-
"properties": [
|
|
1159
|
-
{
|
|
1160
|
-
"name": "label",
|
|
1161
|
-
"description": "字段说明",
|
|
1162
|
-
"type": "string"
|
|
1163
|
-
},
|
|
1164
|
-
{
|
|
1165
|
-
"name": "name",
|
|
1166
|
-
"description": "字段名称",
|
|
1167
|
-
"type": "string"
|
|
1168
|
-
},
|
|
1169
|
-
{
|
|
1170
|
-
"name": "required",
|
|
1171
|
-
"description": "是否必填",
|
|
1172
|
-
"type": "boolean"
|
|
1173
|
-
},
|
|
1174
|
-
{
|
|
1175
|
-
"name": "message",
|
|
1176
|
-
"description": "校验文本信息",
|
|
1177
|
-
"attribute": false,
|
|
1178
|
-
"type": "Record<string, string>"
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
"name": "value",
|
|
1182
|
-
"description": "值",
|
|
1183
|
-
"attribute": false,
|
|
1184
|
-
"type": "FileData[]"
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
"name": "multiple",
|
|
1188
|
-
"description": "是否支持多选",
|
|
1189
|
-
"type": "boolean"
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
"name": "accept",
|
|
1193
|
-
"description": "接受上传的文件类型,多个之间用 `,` 连接",
|
|
1194
|
-
"type": "string"
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
"name": "maxCount",
|
|
1198
|
-
"description": "最大上传数量",
|
|
1199
|
-
"type": "number"
|
|
1200
|
-
},
|
|
1201
|
-
{
|
|
1202
|
-
"name": "limitSize",
|
|
1203
|
-
"description": "上传大小限制(单位为 MB)",
|
|
1204
|
-
"type": "number"
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
"name": "buttonText",
|
|
1208
|
-
"description": "上传按钮文本",
|
|
1209
|
-
"default": "上传",
|
|
1210
|
-
"type": "string"
|
|
1211
|
-
},
|
|
1212
|
-
{
|
|
1213
|
-
"name": "buttonType",
|
|
1214
|
-
"description": "上传按钮类型",
|
|
1215
|
-
"type": "ButtonProps[\"type\"]"
|
|
1216
|
-
},
|
|
1217
|
-
{
|
|
1218
|
-
"name": "buttonIcon",
|
|
1219
|
-
"description": "上传按钮类型",
|
|
1220
|
-
"default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
|
|
1221
|
-
"attribute": false,
|
|
1222
|
-
"type": "GeneralIconProps"
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
"name": "overMaxCountMode",
|
|
1226
|
-
"description": "超出最大上传数量时文件的保留方式",
|
|
1227
|
-
"default": "\"replace\"",
|
|
1228
|
-
"type": "\"ignore\" | \"replace\""
|
|
1229
|
-
},
|
|
1230
|
-
{
|
|
1231
|
-
"name": "uploadDraggable",
|
|
1232
|
-
"description": "是否可以拖拽上传",
|
|
1233
|
-
"type": "boolean"
|
|
1234
|
-
},
|
|
1235
|
-
{
|
|
1236
|
-
"name": "draggableUploadTip",
|
|
1237
|
-
"description": "拖拽上传的提示信息",
|
|
1238
|
-
"type": "string"
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
"name": "autoUpload",
|
|
1242
|
-
"description": "是否自动上传",
|
|
1243
|
-
"default": "false",
|
|
1244
|
-
"type": "boolean"
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
"name": "url",
|
|
1248
|
-
"description": "自动上传的地址",
|
|
1249
|
-
"type": "string"
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
"name": "method",
|
|
1253
|
-
"description": "自动上传的方法",
|
|
1254
|
-
"default": "\"POST\"",
|
|
1255
|
-
"type": "string"
|
|
1239
|
+
"name": "required",
|
|
1240
|
+
"description": "是否必填",
|
|
1241
|
+
"type": "boolean"
|
|
1256
1242
|
},
|
|
1257
1243
|
{
|
|
1258
|
-
"name": "
|
|
1259
|
-
"description": "
|
|
1260
|
-
"
|
|
1261
|
-
"type": "
|
|
1244
|
+
"name": "configProps",
|
|
1245
|
+
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1246
|
+
"attribute": false,
|
|
1247
|
+
"type": "Partial<TimePickerProps>"
|
|
1262
1248
|
}
|
|
1263
1249
|
],
|
|
1264
1250
|
"events": [
|
|
1265
1251
|
{
|
|
1266
1252
|
"name": "change",
|
|
1267
|
-
"description": "
|
|
1253
|
+
"description": "时间变化时触发",
|
|
1268
1254
|
"detail": {
|
|
1269
|
-
"type": "
|
|
1255
|
+
"type": "string"
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"name": "open",
|
|
1260
|
+
"description": "面板打开时触发, 传出当前时间值",
|
|
1261
|
+
"detail": {
|
|
1262
|
+
"type": "string"
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "close",
|
|
1267
|
+
"description": "面板关闭时触发,传出当前时间值",
|
|
1268
|
+
"detail": {
|
|
1269
|
+
"type": "string"
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
1272
|
],
|
|
1273
1273
|
"slots": [],
|
|
1274
1274
|
"methods": [],
|
|
1275
1275
|
"parts": [],
|
|
1276
|
-
"description": "
|
|
1276
|
+
"description": "时间选择器",
|
|
1277
1277
|
"category": "form-input-basic"
|
|
1278
1278
|
},
|
|
1279
1279
|
{
|
|
@@ -1536,114 +1536,6 @@
|
|
|
1536
1536
|
"parts": [],
|
|
1537
1537
|
"description": "构件 `eo-color-picker`"
|
|
1538
1538
|
},
|
|
1539
|
-
{
|
|
1540
|
-
"name": "eo-form-item",
|
|
1541
|
-
"alias": [
|
|
1542
|
-
"form.general-form-item"
|
|
1543
|
-
],
|
|
1544
|
-
"properties": [
|
|
1545
|
-
{
|
|
1546
|
-
"name": "formElement",
|
|
1547
|
-
"attribute": false,
|
|
1548
|
-
"type": "Form"
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
"name": "curElement",
|
|
1552
|
-
"attribute": false,
|
|
1553
|
-
"type": "HTMLElement"
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
"name": "name",
|
|
1557
|
-
"description": "字段名称",
|
|
1558
|
-
"type": "string"
|
|
1559
|
-
},
|
|
1560
|
-
{
|
|
1561
|
-
"name": "label",
|
|
1562
|
-
"type": "string"
|
|
1563
|
-
},
|
|
1564
|
-
{
|
|
1565
|
-
"name": "pattern",
|
|
1566
|
-
"type": "string"
|
|
1567
|
-
},
|
|
1568
|
-
{
|
|
1569
|
-
"name": "message",
|
|
1570
|
-
"attribute": false,
|
|
1571
|
-
"type": "Record<string, string>"
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
"name": "type",
|
|
1575
|
-
"type": "string"
|
|
1576
|
-
},
|
|
1577
|
-
{
|
|
1578
|
-
"name": "max",
|
|
1579
|
-
"type": "number"
|
|
1580
|
-
},
|
|
1581
|
-
{
|
|
1582
|
-
"name": "min",
|
|
1583
|
-
"type": "number"
|
|
1584
|
-
},
|
|
1585
|
-
{
|
|
1586
|
-
"name": "required",
|
|
1587
|
-
"description": "表单项是否为必填",
|
|
1588
|
-
"type": "boolean"
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
"name": "value",
|
|
1592
|
-
"description": "初始值",
|
|
1593
|
-
"type": "string"
|
|
1594
|
-
},
|
|
1595
|
-
{
|
|
1596
|
-
"name": "valuePropsName",
|
|
1597
|
-
"type": "string"
|
|
1598
|
-
},
|
|
1599
|
-
{
|
|
1600
|
-
"name": "layout",
|
|
1601
|
-
"type": "Layout"
|
|
1602
|
-
},
|
|
1603
|
-
{
|
|
1604
|
-
"name": "size",
|
|
1605
|
-
"type": "ComponentSize"
|
|
1606
|
-
},
|
|
1607
|
-
{
|
|
1608
|
-
"name": "trim",
|
|
1609
|
-
"description": "是否自动去除前后的空白字符",
|
|
1610
|
-
"default": "true"
|
|
1611
|
-
},
|
|
1612
|
-
{
|
|
1613
|
-
"name": "trigger",
|
|
1614
|
-
"description": "事件触发方法名",
|
|
1615
|
-
"type": "string"
|
|
1616
|
-
},
|
|
1617
|
-
{
|
|
1618
|
-
"name": "validator",
|
|
1619
|
-
"description": "表单项校验方法",
|
|
1620
|
-
"attribute": false,
|
|
1621
|
-
"type": "((value: any) => MessageBody)"
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
"name": "needValidate",
|
|
1625
|
-
"description": "值变化时是否主动出发校验",
|
|
1626
|
-
"type": "boolean"
|
|
1627
|
-
},
|
|
1628
|
-
{
|
|
1629
|
-
"name": "textContent",
|
|
1630
|
-
"type": "string",
|
|
1631
|
-
"description": "文本内容"
|
|
1632
|
-
}
|
|
1633
|
-
],
|
|
1634
|
-
"events": [],
|
|
1635
|
-
"slots": [
|
|
1636
|
-
{
|
|
1637
|
-
"name": null,
|
|
1638
|
-
"description": "表单项内容"
|
|
1639
|
-
}
|
|
1640
|
-
],
|
|
1641
|
-
"methods": [],
|
|
1642
|
-
"parts": [],
|
|
1643
|
-
"description": "通用输入框构件",
|
|
1644
|
-
"category": "form-input-basic",
|
|
1645
|
-
"insider": true
|
|
1646
|
-
},
|
|
1647
1539
|
{
|
|
1648
1540
|
"name": "eo-input",
|
|
1649
1541
|
"alias": [
|
|
@@ -1828,6 +1720,114 @@
|
|
|
1828
1720
|
],
|
|
1829
1721
|
"description": "通用输入框构件",
|
|
1830
1722
|
"category": "form-input-basic"
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"name": "eo-form-item",
|
|
1726
|
+
"alias": [
|
|
1727
|
+
"form.general-form-item"
|
|
1728
|
+
],
|
|
1729
|
+
"properties": [
|
|
1730
|
+
{
|
|
1731
|
+
"name": "formElement",
|
|
1732
|
+
"attribute": false,
|
|
1733
|
+
"type": "Form"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"name": "curElement",
|
|
1737
|
+
"attribute": false,
|
|
1738
|
+
"type": "HTMLElement"
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"name": "name",
|
|
1742
|
+
"description": "字段名称",
|
|
1743
|
+
"type": "string"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "label",
|
|
1747
|
+
"type": "string"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"name": "pattern",
|
|
1751
|
+
"type": "string"
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
"name": "message",
|
|
1755
|
+
"attribute": false,
|
|
1756
|
+
"type": "Record<string, string>"
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "type",
|
|
1760
|
+
"type": "string"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"name": "max",
|
|
1764
|
+
"type": "number"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"name": "min",
|
|
1768
|
+
"type": "number"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"name": "required",
|
|
1772
|
+
"description": "表单项是否为必填",
|
|
1773
|
+
"type": "boolean"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"name": "value",
|
|
1777
|
+
"description": "初始值",
|
|
1778
|
+
"type": "string"
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
"name": "valuePropsName",
|
|
1782
|
+
"type": "string"
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
"name": "layout",
|
|
1786
|
+
"type": "Layout"
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"name": "size",
|
|
1790
|
+
"type": "ComponentSize"
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
"name": "trim",
|
|
1794
|
+
"description": "是否自动去除前后的空白字符",
|
|
1795
|
+
"default": "true"
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"name": "trigger",
|
|
1799
|
+
"description": "事件触发方法名",
|
|
1800
|
+
"type": "string"
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
"name": "validator",
|
|
1804
|
+
"description": "表单项校验方法",
|
|
1805
|
+
"attribute": false,
|
|
1806
|
+
"type": "((value: any) => MessageBody)"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"name": "needValidate",
|
|
1810
|
+
"description": "值变化时是否主动出发校验",
|
|
1811
|
+
"type": "boolean"
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"name": "textContent",
|
|
1815
|
+
"type": "string",
|
|
1816
|
+
"description": "文本内容"
|
|
1817
|
+
}
|
|
1818
|
+
],
|
|
1819
|
+
"events": [],
|
|
1820
|
+
"slots": [
|
|
1821
|
+
{
|
|
1822
|
+
"name": null,
|
|
1823
|
+
"description": "表单项内容"
|
|
1824
|
+
}
|
|
1825
|
+
],
|
|
1826
|
+
"methods": [],
|
|
1827
|
+
"parts": [],
|
|
1828
|
+
"description": "通用输入框构件",
|
|
1829
|
+
"category": "form-input-basic",
|
|
1830
|
+
"insider": true
|
|
1831
1831
|
}
|
|
1832
1832
|
],
|
|
1833
1833
|
"providers": []
|