@next-bricks/form 1.15.16 → 1.15.18
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 +35 -35
- package/dist/chunks/{5347.e2aed5bb.js → 5347.062653c6.js} +3 -3
- package/dist/chunks/{5347.e2aed5bb.js.map → 5347.062653c6.js.map} +1 -1
- package/dist/chunks/{eo-color-picker.5d90dd14.js → eo-color-picker.ddddea8e.js} +2 -2
- package/dist/chunks/{eo-color-picker.5d90dd14.js.map → eo-color-picker.ddddea8e.js.map} +1 -1
- package/dist/chunks/{main.025109f3.js → main.8f0c9874.js} +2 -2
- package/dist/chunks/{main.025109f3.js.map → main.8f0c9874.js.map} +1 -1
- package/dist/examples.json +10 -10
- package/dist/{index.46ad4bec.js → index.02c0692b.js} +2 -2
- package/dist/{index.46ad4bec.js.map → index.02c0692b.js.map} +1 -1
- package/dist/manifest.json +452 -452
- package/dist/types.json +836 -836
- package/package.json +3 -3
- /package/dist/chunks/{5347.e2aed5bb.js.LICENSE.txt → 5347.062653c6.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -4,246 +4,101 @@
|
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
6
|
{
|
|
7
|
-
"name": "eo-
|
|
8
|
-
"alias": [
|
|
9
|
-
"form.general-form"
|
|
10
|
-
],
|
|
11
|
-
"properties": [
|
|
12
|
-
{
|
|
13
|
-
"name": "staticValues",
|
|
14
|
-
"attribute": false,
|
|
15
|
-
"type": "Record<string, unknown>"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "layout",
|
|
19
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
20
|
-
"default": "vertical",
|
|
21
|
-
"type": "Layout"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "size",
|
|
25
|
-
"description": "表单组件尺寸",
|
|
26
|
-
"type": "ComponentSize"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "labelCol",
|
|
30
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
31
|
-
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
32
|
-
"attribute": false,
|
|
33
|
-
"type": "ColProps"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "wrapperCol",
|
|
37
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
38
|
-
"default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
|
|
39
|
-
"attribute": false,
|
|
40
|
-
"type": "ColProps"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "formStyle",
|
|
44
|
-
"attribute": false,
|
|
45
|
-
"type": "React.CSSProperties"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "textContent",
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "文本内容"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"events": [
|
|
54
|
-
{
|
|
55
|
-
"name": "values.change",
|
|
56
|
-
"description": "表单值变更事件",
|
|
57
|
-
"detail": {
|
|
58
|
-
"description": null,
|
|
59
|
-
"type": "Record<string, unknown>"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "validate.success",
|
|
64
|
-
"description": "表单验证成功时触发事件",
|
|
65
|
-
"detail": {
|
|
66
|
-
"type": "Record<string, unknown>"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "validate.error",
|
|
71
|
-
"description": "表单验证报错时触发事件",
|
|
72
|
-
"detail": {
|
|
73
|
-
"type": "(MessageBody & { name: string })[]"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"slots": [
|
|
78
|
-
{
|
|
79
|
-
"name": null,
|
|
80
|
-
"description": "表单内容"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"methods": [
|
|
84
|
-
{
|
|
85
|
-
"name": "validate",
|
|
86
|
-
"params": [],
|
|
87
|
-
"description": "表单校验方法",
|
|
88
|
-
"returns": {
|
|
89
|
-
"type": "boolean | Record<string, unknown>"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "setInitValue",
|
|
94
|
-
"params": [
|
|
95
|
-
{
|
|
96
|
-
"name": "values",
|
|
97
|
-
"type": "Record<string, unknown>"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "options",
|
|
101
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"description": "表单设置值方法",
|
|
105
|
-
"returns": {}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"name": "resetFields",
|
|
109
|
-
"params": [
|
|
110
|
-
{
|
|
111
|
-
"name": "name",
|
|
112
|
-
"type": "string"
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"description": "表单重置值方法",
|
|
116
|
-
"returns": {}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "getFieldsValue",
|
|
120
|
-
"params": [
|
|
121
|
-
{
|
|
122
|
-
"name": "name",
|
|
123
|
-
"type": "string"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"description": "获取表单值方法",
|
|
127
|
-
"returns": {}
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"name": "validateField",
|
|
131
|
-
"params": [
|
|
132
|
-
{
|
|
133
|
-
"name": "name",
|
|
134
|
-
"type": "string"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"description": "校验表单字段方法",
|
|
138
|
-
"returns": {}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "resetValidateState",
|
|
142
|
-
"params": [],
|
|
143
|
-
"description": "重置表单校验状态方法",
|
|
144
|
-
"returns": {}
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"parts": [],
|
|
148
|
-
"description": "表单构件",
|
|
149
|
-
"category": "form-input-basic"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"name": "eo-textarea",
|
|
7
|
+
"name": "eo-radio",
|
|
153
8
|
"alias": [
|
|
154
|
-
"form.general-
|
|
9
|
+
"form.general-radio"
|
|
155
10
|
],
|
|
156
11
|
"properties": [
|
|
157
12
|
{
|
|
158
13
|
"name": "name",
|
|
159
|
-
"description": "
|
|
14
|
+
"description": "下拉框字段名",
|
|
160
15
|
"type": "string"
|
|
161
16
|
},
|
|
162
17
|
{
|
|
163
18
|
"name": "label",
|
|
164
|
-
"description": "
|
|
19
|
+
"description": "单选框字段说明",
|
|
165
20
|
"type": "string"
|
|
166
21
|
},
|
|
167
22
|
{
|
|
168
|
-
"name": "
|
|
169
|
-
"description": "
|
|
170
|
-
"
|
|
23
|
+
"name": "options",
|
|
24
|
+
"description": "单选框选项表",
|
|
25
|
+
"required": true,
|
|
26
|
+
"attribute": false,
|
|
27
|
+
"type": "GeneralOption[]"
|
|
171
28
|
},
|
|
172
29
|
{
|
|
173
|
-
"name": "
|
|
174
|
-
"description": "
|
|
175
|
-
"
|
|
30
|
+
"name": "value",
|
|
31
|
+
"description": "单选框当前选中始值",
|
|
32
|
+
"attribute": false,
|
|
33
|
+
"type": "any"
|
|
176
34
|
},
|
|
177
35
|
{
|
|
178
|
-
"name": "
|
|
179
|
-
"description": "
|
|
36
|
+
"name": "required",
|
|
37
|
+
"description": "是否必填",
|
|
180
38
|
"type": "boolean"
|
|
181
39
|
},
|
|
182
40
|
{
|
|
183
|
-
"name": "
|
|
184
|
-
"description": "
|
|
185
|
-
"type": "number"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"name": "maxLength",
|
|
189
|
-
"description": "最大长度",
|
|
190
|
-
"type": "number"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"name": "autoSize",
|
|
194
|
-
"description": "大小自适应",
|
|
41
|
+
"name": "message",
|
|
42
|
+
"description": "校验文本信息",
|
|
195
43
|
"attribute": false,
|
|
196
|
-
"type": "
|
|
44
|
+
"type": "Record<string, string>"
|
|
197
45
|
},
|
|
198
46
|
{
|
|
199
|
-
"name": "
|
|
200
|
-
"description": "
|
|
47
|
+
"name": "disabled",
|
|
48
|
+
"description": "是否禁用",
|
|
201
49
|
"type": "boolean"
|
|
202
50
|
},
|
|
203
51
|
{
|
|
204
|
-
"name": "
|
|
205
|
-
"description": "
|
|
206
|
-
"
|
|
52
|
+
"name": "type",
|
|
53
|
+
"description": "单选框样式类型",
|
|
54
|
+
"default": "\"default\"",
|
|
55
|
+
"type": "RadioType"
|
|
207
56
|
},
|
|
208
57
|
{
|
|
209
|
-
"name": "
|
|
210
|
-
"description": "
|
|
211
|
-
"
|
|
58
|
+
"name": "ui",
|
|
59
|
+
"description": "UI样式",
|
|
60
|
+
"default": "\"default\"",
|
|
61
|
+
"type": "UIType"
|
|
212
62
|
},
|
|
213
63
|
{
|
|
214
|
-
"name": "
|
|
215
|
-
"description": "
|
|
216
|
-
"
|
|
217
|
-
"type": "
|
|
64
|
+
"name": "size",
|
|
65
|
+
"description": "大小,只对按钮样式生效",
|
|
66
|
+
"default": "\"medium\"",
|
|
67
|
+
"type": "ComponentSize"
|
|
218
68
|
},
|
|
219
69
|
{
|
|
220
|
-
"name": "
|
|
221
|
-
"description": "
|
|
70
|
+
"name": "customStyle",
|
|
71
|
+
"description": "自定义radio的外层样式",
|
|
222
72
|
"attribute": false,
|
|
223
73
|
"type": "React.CSSProperties"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "useBrick",
|
|
77
|
+
"description": "自定义radio的内容",
|
|
78
|
+
"attribute": false,
|
|
79
|
+
"type": "UseSingleBrickConf"
|
|
224
80
|
}
|
|
225
81
|
],
|
|
226
82
|
"events": [
|
|
227
83
|
{
|
|
228
84
|
"name": "change",
|
|
229
|
-
"description": "",
|
|
85
|
+
"description": "值变化事件",
|
|
230
86
|
"detail": {
|
|
231
|
-
"
|
|
232
|
-
"type": "string"
|
|
87
|
+
"type": "GeneralComplexOption | undefined"
|
|
233
88
|
}
|
|
234
|
-
}
|
|
235
|
-
],
|
|
236
|
-
"slots": [],
|
|
237
|
-
"methods": [
|
|
89
|
+
},
|
|
238
90
|
{
|
|
239
|
-
"name": "
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
|
|
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
|
+
}
|
|
243
96
|
}
|
|
244
97
|
],
|
|
98
|
+
"slots": [],
|
|
99
|
+
"methods": [],
|
|
245
100
|
"parts": [],
|
|
246
|
-
"description": "
|
|
101
|
+
"description": "通用单选构件",
|
|
247
102
|
"category": "form-input-basic"
|
|
248
103
|
},
|
|
249
104
|
{
|
|
@@ -395,101 +250,148 @@
|
|
|
395
250
|
"category": "form-input-basic"
|
|
396
251
|
},
|
|
397
252
|
{
|
|
398
|
-
"name": "eo-
|
|
253
|
+
"name": "eo-form",
|
|
399
254
|
"alias": [
|
|
400
|
-
"form.general-
|
|
255
|
+
"form.general-form"
|
|
401
256
|
],
|
|
402
257
|
"properties": [
|
|
403
258
|
{
|
|
404
|
-
"name": "
|
|
405
|
-
"
|
|
406
|
-
"type": "string"
|
|
259
|
+
"name": "staticValues",
|
|
260
|
+
"attribute": false,
|
|
261
|
+
"type": "Record<string, unknown>"
|
|
407
262
|
},
|
|
408
263
|
{
|
|
409
|
-
"name": "
|
|
410
|
-
"description": "
|
|
411
|
-
"
|
|
264
|
+
"name": "layout",
|
|
265
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
266
|
+
"default": "vertical",
|
|
267
|
+
"type": "Layout"
|
|
412
268
|
},
|
|
413
269
|
{
|
|
414
|
-
"name": "
|
|
415
|
-
"description": "
|
|
416
|
-
"
|
|
417
|
-
"attribute": false,
|
|
418
|
-
"type": "GeneralOption[]"
|
|
270
|
+
"name": "size",
|
|
271
|
+
"description": "表单组件尺寸",
|
|
272
|
+
"type": "ComponentSize"
|
|
419
273
|
},
|
|
420
274
|
{
|
|
421
|
-
"name": "
|
|
422
|
-
"description": "
|
|
275
|
+
"name": "labelCol",
|
|
276
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
277
|
+
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
423
278
|
"attribute": false,
|
|
424
|
-
"type": "
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"name": "required",
|
|
428
|
-
"description": "是否必填",
|
|
429
|
-
"type": "boolean"
|
|
279
|
+
"type": "ColProps"
|
|
430
280
|
},
|
|
431
281
|
{
|
|
432
|
-
"name": "
|
|
433
|
-
"description": "
|
|
282
|
+
"name": "wrapperCol",
|
|
283
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
284
|
+
"default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
|
|
434
285
|
"attribute": false,
|
|
435
|
-
"type": "
|
|
286
|
+
"type": "ColProps"
|
|
436
287
|
},
|
|
437
288
|
{
|
|
438
|
-
"name": "
|
|
439
|
-
"
|
|
440
|
-
"type": "
|
|
289
|
+
"name": "formStyle",
|
|
290
|
+
"attribute": false,
|
|
291
|
+
"type": "React.CSSProperties"
|
|
441
292
|
},
|
|
442
293
|
{
|
|
443
|
-
"name": "
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
|
|
447
|
-
|
|
294
|
+
"name": "textContent",
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "文本内容"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"events": [
|
|
448
300
|
{
|
|
449
|
-
"name": "
|
|
450
|
-
"description": "
|
|
451
|
-
"
|
|
452
|
-
|
|
301
|
+
"name": "values.change",
|
|
302
|
+
"description": "表单值变更事件",
|
|
303
|
+
"detail": {
|
|
304
|
+
"description": null,
|
|
305
|
+
"type": "Record<string, unknown>"
|
|
306
|
+
}
|
|
453
307
|
},
|
|
454
308
|
{
|
|
455
|
-
"name": "
|
|
456
|
-
"description": "
|
|
457
|
-
"
|
|
458
|
-
|
|
309
|
+
"name": "validate.success",
|
|
310
|
+
"description": "表单验证成功时触发事件",
|
|
311
|
+
"detail": {
|
|
312
|
+
"type": "Record<string, unknown>"
|
|
313
|
+
}
|
|
459
314
|
},
|
|
460
315
|
{
|
|
461
|
-
"name": "
|
|
462
|
-
"description": "
|
|
463
|
-
"
|
|
464
|
-
|
|
465
|
-
|
|
316
|
+
"name": "validate.error",
|
|
317
|
+
"description": "表单验证报错时触发事件",
|
|
318
|
+
"detail": {
|
|
319
|
+
"type": "(MessageBody & { name: string })[]"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"slots": [
|
|
466
324
|
{
|
|
467
|
-
"name":
|
|
468
|
-
"description": "
|
|
469
|
-
"attribute": false,
|
|
470
|
-
"type": "UseSingleBrickConf"
|
|
325
|
+
"name": null,
|
|
326
|
+
"description": "表单内容"
|
|
471
327
|
}
|
|
472
328
|
],
|
|
473
|
-
"
|
|
329
|
+
"methods": [
|
|
474
330
|
{
|
|
475
|
-
"name": "
|
|
476
|
-
"
|
|
477
|
-
"
|
|
478
|
-
|
|
331
|
+
"name": "validate",
|
|
332
|
+
"params": [],
|
|
333
|
+
"description": "表单校验方法",
|
|
334
|
+
"returns": {
|
|
335
|
+
"type": "boolean | Record<string, unknown>"
|
|
479
336
|
}
|
|
480
337
|
},
|
|
481
338
|
{
|
|
482
|
-
"name": "
|
|
483
|
-
"
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
339
|
+
"name": "setInitValue",
|
|
340
|
+
"params": [
|
|
341
|
+
{
|
|
342
|
+
"name": "values",
|
|
343
|
+
"type": "Record<string, unknown>"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"name": "options",
|
|
347
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"description": "表单设置值方法",
|
|
351
|
+
"returns": {}
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "resetFields",
|
|
355
|
+
"params": [
|
|
356
|
+
{
|
|
357
|
+
"name": "name",
|
|
358
|
+
"type": "string"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"description": "表单重置值方法",
|
|
362
|
+
"returns": {}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "getFieldsValue",
|
|
366
|
+
"params": [
|
|
367
|
+
{
|
|
368
|
+
"name": "name",
|
|
369
|
+
"type": "string"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"description": "获取表单值方法",
|
|
373
|
+
"returns": {}
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "validateField",
|
|
377
|
+
"params": [
|
|
378
|
+
{
|
|
379
|
+
"name": "name",
|
|
380
|
+
"type": "string"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"description": "校验表单字段方法",
|
|
384
|
+
"returns": {}
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "resetValidateState",
|
|
388
|
+
"params": [],
|
|
389
|
+
"description": "重置表单校验状态方法",
|
|
390
|
+
"returns": {}
|
|
487
391
|
}
|
|
488
392
|
],
|
|
489
|
-
"slots": [],
|
|
490
|
-
"methods": [],
|
|
491
393
|
"parts": [],
|
|
492
|
-
"description": "
|
|
394
|
+
"description": "表单构件",
|
|
493
395
|
"category": "form-input-basic"
|
|
494
396
|
},
|
|
495
397
|
{
|
|
@@ -552,6 +454,104 @@
|
|
|
552
454
|
"description": "表单提交按钮",
|
|
553
455
|
"category": "form-input-basic"
|
|
554
456
|
},
|
|
457
|
+
{
|
|
458
|
+
"name": "eo-textarea",
|
|
459
|
+
"alias": [
|
|
460
|
+
"form.general-textarea"
|
|
461
|
+
],
|
|
462
|
+
"properties": [
|
|
463
|
+
{
|
|
464
|
+
"name": "name",
|
|
465
|
+
"description": "字段名称",
|
|
466
|
+
"type": "string"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "label",
|
|
470
|
+
"description": "标签文字",
|
|
471
|
+
"type": "string"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "value",
|
|
475
|
+
"description": "值",
|
|
476
|
+
"type": "string"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "placeholder",
|
|
480
|
+
"description": "占位说明",
|
|
481
|
+
"type": "string"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "disabled",
|
|
485
|
+
"description": "是否禁用",
|
|
486
|
+
"type": "boolean"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "minLength",
|
|
490
|
+
"description": "最小长度",
|
|
491
|
+
"type": "number"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "maxLength",
|
|
495
|
+
"description": "最大长度",
|
|
496
|
+
"type": "number"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"name": "autoSize",
|
|
500
|
+
"description": "大小自适应",
|
|
501
|
+
"attribute": false,
|
|
502
|
+
"type": "AutoSize"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "required",
|
|
506
|
+
"description": "是否必填",
|
|
507
|
+
"type": "boolean"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "max",
|
|
511
|
+
"description": "表单校验最大长度",
|
|
512
|
+
"type": "number"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "min",
|
|
516
|
+
"description": "表单校验最小长度",
|
|
517
|
+
"type": "number"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "message",
|
|
521
|
+
"description": "校验信息",
|
|
522
|
+
"attribute": false,
|
|
523
|
+
"type": "Record<string, string>"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "textareaStyle",
|
|
527
|
+
"description": "自定义样式",
|
|
528
|
+
"attribute": false,
|
|
529
|
+
"type": "React.CSSProperties"
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
"events": [
|
|
533
|
+
{
|
|
534
|
+
"name": "change",
|
|
535
|
+
"description": "",
|
|
536
|
+
"detail": {
|
|
537
|
+
"description": null,
|
|
538
|
+
"type": "string"
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
"slots": [],
|
|
543
|
+
"methods": [
|
|
544
|
+
{
|
|
545
|
+
"name": "focusTextarea",
|
|
546
|
+
"params": [],
|
|
547
|
+
"description": "focus",
|
|
548
|
+
"returns": {}
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"parts": [],
|
|
552
|
+
"description": "通用多行文本输入框构件",
|
|
553
|
+
"category": "form-input-basic"
|
|
554
|
+
},
|
|
555
555
|
{
|
|
556
556
|
"name": "eo-checkbox",
|
|
557
557
|
"alias": [
|
|
@@ -857,75 +857,6 @@
|
|
|
857
857
|
"description": "图标选择构件",
|
|
858
858
|
"category": "form-input-basic"
|
|
859
859
|
},
|
|
860
|
-
{
|
|
861
|
-
"name": "eo-upload-image",
|
|
862
|
-
"alias": [
|
|
863
|
-
"form.upload-image"
|
|
864
|
-
],
|
|
865
|
-
"properties": [
|
|
866
|
-
{
|
|
867
|
-
"name": "name",
|
|
868
|
-
"description": "字段名称",
|
|
869
|
-
"type": "string"
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
"name": "label",
|
|
873
|
-
"description": "字段说明",
|
|
874
|
-
"type": "string"
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
"name": "value",
|
|
878
|
-
"description": "值",
|
|
879
|
-
"attribute": false,
|
|
880
|
-
"type": "ImageData[]"
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
"name": "bucketName",
|
|
884
|
-
"description": "对象存储桶名字",
|
|
885
|
-
"type": "string"
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
"name": "maxCount",
|
|
889
|
-
"description": "最大上传数量",
|
|
890
|
-
"type": "number"
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
"name": "multiple",
|
|
894
|
-
"description": "是否支持选定的多张图片",
|
|
895
|
-
"type": "boolean"
|
|
896
|
-
},
|
|
897
|
-
{
|
|
898
|
-
"name": "limitSize",
|
|
899
|
-
"description": "上传大小限制(单位为 MB)",
|
|
900
|
-
"type": "number"
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
"name": "required",
|
|
904
|
-
"description": "是否必填",
|
|
905
|
-
"type": "boolean"
|
|
906
|
-
},
|
|
907
|
-
{
|
|
908
|
-
"name": "message",
|
|
909
|
-
"description": "校验文本信息",
|
|
910
|
-
"attribute": false,
|
|
911
|
-
"type": "Record<string, string>"
|
|
912
|
-
}
|
|
913
|
-
],
|
|
914
|
-
"events": [
|
|
915
|
-
{
|
|
916
|
-
"name": "change",
|
|
917
|
-
"description": "值变化时触发",
|
|
918
|
-
"detail": {
|
|
919
|
-
"type": "ImageData[]"
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
],
|
|
923
|
-
"slots": [],
|
|
924
|
-
"methods": [],
|
|
925
|
-
"parts": [],
|
|
926
|
-
"description": "上传图片构件",
|
|
927
|
-
"category": "form-input-basic"
|
|
928
|
-
},
|
|
929
860
|
{
|
|
930
861
|
"name": "eo-switch",
|
|
931
862
|
"alias": [
|
|
@@ -1157,27 +1088,96 @@
|
|
|
1157
1088
|
"type": "string"
|
|
1158
1089
|
},
|
|
1159
1090
|
{
|
|
1160
|
-
"name": "options",
|
|
1161
|
-
"description": "选项列表",
|
|
1162
|
-
"required": true,
|
|
1163
|
-
"attribute": false,
|
|
1164
|
-
"type": "string[] | OptionType[]"
|
|
1091
|
+
"name": "options",
|
|
1092
|
+
"description": "选项列表",
|
|
1093
|
+
"required": true,
|
|
1094
|
+
"attribute": false,
|
|
1095
|
+
"type": "string[] | OptionType[]"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"name": "filterByCaption",
|
|
1099
|
+
"description": "搜索时是否根据caption过滤options",
|
|
1100
|
+
"type": "boolean"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "validator",
|
|
1104
|
+
"description": "表单项校验方法",
|
|
1105
|
+
"attribute": false,
|
|
1106
|
+
"type": "((value: any) => MessageBody)"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"name": "pattern",
|
|
1110
|
+
"description": "正则校验规则",
|
|
1111
|
+
"type": "string"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"name": "message",
|
|
1115
|
+
"description": "校验文本信息",
|
|
1116
|
+
"attribute": false,
|
|
1117
|
+
"type": "Record<string, string>"
|
|
1118
|
+
}
|
|
1119
|
+
],
|
|
1120
|
+
"events": [
|
|
1121
|
+
{
|
|
1122
|
+
"name": "change",
|
|
1123
|
+
"description": "值改变事件",
|
|
1124
|
+
"detail": {
|
|
1125
|
+
"type": "string"
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
],
|
|
1129
|
+
"slots": [],
|
|
1130
|
+
"methods": [],
|
|
1131
|
+
"parts": [],
|
|
1132
|
+
"description": "带候选项的输入框",
|
|
1133
|
+
"category": "form-input-basic"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "eo-upload-image",
|
|
1137
|
+
"alias": [
|
|
1138
|
+
"form.upload-image"
|
|
1139
|
+
],
|
|
1140
|
+
"properties": [
|
|
1141
|
+
{
|
|
1142
|
+
"name": "name",
|
|
1143
|
+
"description": "字段名称",
|
|
1144
|
+
"type": "string"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"name": "label",
|
|
1148
|
+
"description": "字段说明",
|
|
1149
|
+
"type": "string"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"name": "value",
|
|
1153
|
+
"description": "值",
|
|
1154
|
+
"attribute": false,
|
|
1155
|
+
"type": "ImageData[]"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"name": "bucketName",
|
|
1159
|
+
"description": "对象存储桶名字",
|
|
1160
|
+
"type": "string"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"name": "maxCount",
|
|
1164
|
+
"description": "最大上传数量",
|
|
1165
|
+
"type": "number"
|
|
1165
1166
|
},
|
|
1166
1167
|
{
|
|
1167
|
-
"name": "
|
|
1168
|
-
"description": "
|
|
1168
|
+
"name": "multiple",
|
|
1169
|
+
"description": "是否支持选定的多张图片",
|
|
1169
1170
|
"type": "boolean"
|
|
1170
1171
|
},
|
|
1171
1172
|
{
|
|
1172
|
-
"name": "
|
|
1173
|
-
"description": "
|
|
1174
|
-
"
|
|
1175
|
-
"type": "((value: any) => MessageBody)"
|
|
1173
|
+
"name": "limitSize",
|
|
1174
|
+
"description": "上传大小限制(单位为 MB)",
|
|
1175
|
+
"type": "number"
|
|
1176
1176
|
},
|
|
1177
1177
|
{
|
|
1178
|
-
"name": "
|
|
1179
|
-
"description": "
|
|
1180
|
-
"type": "
|
|
1178
|
+
"name": "required",
|
|
1179
|
+
"description": "是否必填",
|
|
1180
|
+
"type": "boolean"
|
|
1181
1181
|
},
|
|
1182
1182
|
{
|
|
1183
1183
|
"name": "message",
|
|
@@ -1189,16 +1189,16 @@
|
|
|
1189
1189
|
"events": [
|
|
1190
1190
|
{
|
|
1191
1191
|
"name": "change",
|
|
1192
|
-
"description": "
|
|
1192
|
+
"description": "值变化时触发",
|
|
1193
1193
|
"detail": {
|
|
1194
|
-
"type": "
|
|
1194
|
+
"type": "ImageData[]"
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
1197
|
],
|
|
1198
1198
|
"slots": [],
|
|
1199
1199
|
"methods": [],
|
|
1200
1200
|
"parts": [],
|
|
1201
|
-
"description": "
|
|
1201
|
+
"description": "上传图片构件",
|
|
1202
1202
|
"category": "form-input-basic"
|
|
1203
1203
|
},
|
|
1204
1204
|
{
|
|
@@ -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": []
|