@next-bricks/form 1.15.11 → 1.15.12
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 +39 -39
- package/dist/chunks/{5347.43440365.js → 5347.76715392.js} +3 -3
- package/dist/chunks/{5347.43440365.js.map → 5347.76715392.js.map} +1 -1
- package/dist/chunks/{eo-select.2cfc0a5e.js → eo-select.0c8b186c.js} +3 -3
- package/dist/chunks/{eo-select.2cfc0a5e.js.map → eo-select.0c8b186c.js.map} +1 -1
- package/dist/chunks/{main.b91dc13c.js → main.6cfe39b3.js} +2 -2
- package/dist/chunks/{main.b91dc13c.js.map → main.6cfe39b3.js.map} +1 -1
- package/dist/examples.json +14 -14
- package/dist/index.4ac47ef2.js +2 -0
- package/dist/{index.a78e64c5.js.map → index.4ac47ef2.js.map} +1 -1
- package/dist/manifest.json +425 -425
- package/dist/types.json +1012 -1012
- package/package.json +2 -2
- package/dist/index.a78e64c5.js +0 -2
- /package/dist/chunks/{5347.43440365.js.LICENSE.txt → 5347.76715392.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.2cfc0a5e.js.LICENSE.txt → eo-select.0c8b186c.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -3,6 +3,249 @@
|
|
|
3
3
|
"package": "@next-bricks/form",
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
|
+
{
|
|
7
|
+
"name": "eo-textarea",
|
|
8
|
+
"alias": [
|
|
9
|
+
"form.general-textarea"
|
|
10
|
+
],
|
|
11
|
+
"properties": [
|
|
12
|
+
{
|
|
13
|
+
"name": "name",
|
|
14
|
+
"description": "字段名称",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "label",
|
|
19
|
+
"description": "标签文字",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "value",
|
|
24
|
+
"description": "值",
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "placeholder",
|
|
29
|
+
"description": "占位说明",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "disabled",
|
|
34
|
+
"description": "是否禁用",
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "minLength",
|
|
39
|
+
"description": "最小长度",
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "maxLength",
|
|
44
|
+
"description": "最大长度",
|
|
45
|
+
"type": "number"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "autoSize",
|
|
49
|
+
"description": "大小自适应",
|
|
50
|
+
"attribute": false,
|
|
51
|
+
"type": "AutoSize"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "required",
|
|
55
|
+
"description": "是否必填",
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "max",
|
|
60
|
+
"description": "表单校验最大长度",
|
|
61
|
+
"type": "number"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "min",
|
|
65
|
+
"description": "表单校验最小长度",
|
|
66
|
+
"type": "number"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "message",
|
|
70
|
+
"description": "校验信息",
|
|
71
|
+
"attribute": false,
|
|
72
|
+
"type": "Record<string, string>"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "textareaStyle",
|
|
76
|
+
"description": "自定义样式",
|
|
77
|
+
"attribute": false,
|
|
78
|
+
"type": "React.CSSProperties"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"events": [
|
|
82
|
+
{
|
|
83
|
+
"name": "change",
|
|
84
|
+
"description": "",
|
|
85
|
+
"detail": {
|
|
86
|
+
"description": null,
|
|
87
|
+
"type": "string"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"slots": [],
|
|
92
|
+
"methods": [
|
|
93
|
+
{
|
|
94
|
+
"name": "focusTextarea",
|
|
95
|
+
"params": [],
|
|
96
|
+
"description": "focus",
|
|
97
|
+
"returns": {}
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"parts": [],
|
|
101
|
+
"description": "通用多行文本输入框构件",
|
|
102
|
+
"category": "form-input-basic"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "eo-form",
|
|
106
|
+
"alias": [
|
|
107
|
+
"form.general-form"
|
|
108
|
+
],
|
|
109
|
+
"properties": [
|
|
110
|
+
{
|
|
111
|
+
"name": "staticValues",
|
|
112
|
+
"attribute": false,
|
|
113
|
+
"type": "Record<string, unknown>"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "layout",
|
|
117
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
118
|
+
"default": "vertical",
|
|
119
|
+
"type": "Layout"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "size",
|
|
123
|
+
"description": "表单组件尺寸",
|
|
124
|
+
"type": "ComponentSize"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "labelCol",
|
|
128
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
129
|
+
"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 }",
|
|
130
|
+
"attribute": false,
|
|
131
|
+
"type": "ColProps"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "wrapperCol",
|
|
135
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
136
|
+
"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 }",
|
|
137
|
+
"attribute": false,
|
|
138
|
+
"type": "ColProps"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "formStyle",
|
|
142
|
+
"attribute": false,
|
|
143
|
+
"type": "React.CSSProperties"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "textContent",
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "文本内容"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"events": [
|
|
152
|
+
{
|
|
153
|
+
"name": "values.change",
|
|
154
|
+
"description": "表单值变更事件",
|
|
155
|
+
"detail": {
|
|
156
|
+
"description": null,
|
|
157
|
+
"type": "Record<string, unknown>"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "validate.success",
|
|
162
|
+
"description": "表单验证成功时触发事件",
|
|
163
|
+
"detail": {
|
|
164
|
+
"type": "Record<string, unknown>"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "validate.error",
|
|
169
|
+
"description": "表单验证报错时触发事件",
|
|
170
|
+
"detail": {
|
|
171
|
+
"type": "(MessageBody & { name: string })[]"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"slots": [
|
|
176
|
+
{
|
|
177
|
+
"name": null,
|
|
178
|
+
"description": "表单内容"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"methods": [
|
|
182
|
+
{
|
|
183
|
+
"name": "validate",
|
|
184
|
+
"params": [],
|
|
185
|
+
"description": "表单校验方法",
|
|
186
|
+
"returns": {
|
|
187
|
+
"type": "boolean | Record<string, unknown>"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "setInitValue",
|
|
192
|
+
"params": [
|
|
193
|
+
{
|
|
194
|
+
"name": "values",
|
|
195
|
+
"type": "Record<string, unknown>"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "options",
|
|
199
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"description": "表单设置值方法",
|
|
203
|
+
"returns": {}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "resetFields",
|
|
207
|
+
"params": [
|
|
208
|
+
{
|
|
209
|
+
"name": "name",
|
|
210
|
+
"type": "string"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"description": "表单重置值方法",
|
|
214
|
+
"returns": {}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "getFieldsValue",
|
|
218
|
+
"params": [
|
|
219
|
+
{
|
|
220
|
+
"name": "name",
|
|
221
|
+
"type": "string"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"description": "获取表单值方法",
|
|
225
|
+
"returns": {}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "validateField",
|
|
229
|
+
"params": [
|
|
230
|
+
{
|
|
231
|
+
"name": "name",
|
|
232
|
+
"type": "string"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"description": "校验表单字段方法",
|
|
236
|
+
"returns": {}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "resetValidateState",
|
|
240
|
+
"params": [],
|
|
241
|
+
"description": "重置表单校验状态方法",
|
|
242
|
+
"returns": {}
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"parts": [],
|
|
246
|
+
"description": "表单构件",
|
|
247
|
+
"category": "form-input-basic"
|
|
248
|
+
},
|
|
6
249
|
{
|
|
7
250
|
"name": "eo-radio",
|
|
8
251
|
"alias": [
|
|
@@ -250,112 +493,20 @@
|
|
|
250
493
|
"category": "form-input-basic"
|
|
251
494
|
},
|
|
252
495
|
{
|
|
253
|
-
"name": "eo-
|
|
496
|
+
"name": "eo-submit-buttons",
|
|
254
497
|
"alias": [
|
|
255
|
-
"form.
|
|
498
|
+
"form.submit-buttons"
|
|
256
499
|
],
|
|
257
500
|
"properties": [
|
|
258
501
|
{
|
|
259
|
-
"name": "
|
|
260
|
-
"description": "
|
|
502
|
+
"name": "submitText",
|
|
503
|
+
"description": "提交按钮的文字",
|
|
504
|
+
"default": "\"提交\"",
|
|
261
505
|
"type": "string"
|
|
262
506
|
},
|
|
263
507
|
{
|
|
264
|
-
"name": "
|
|
265
|
-
"description": "
|
|
266
|
-
"type": "string"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"name": "value",
|
|
270
|
-
"description": "值",
|
|
271
|
-
"attribute": false,
|
|
272
|
-
"type": "CheckboxValueType[]"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"name": "options",
|
|
276
|
-
"description": "多选框选项表",
|
|
277
|
-
"required": true,
|
|
278
|
-
"default": "[]",
|
|
279
|
-
"attribute": false,
|
|
280
|
-
"type": "CheckboxOptionType[]"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"name": "type",
|
|
284
|
-
"description": "类型",
|
|
285
|
-
"default": "\"default\"",
|
|
286
|
-
"type": "CheckboxType"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"name": "disabled",
|
|
290
|
-
"description": "是否禁用",
|
|
291
|
-
"type": "boolean"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"name": "isCustom",
|
|
295
|
-
"description": "是否为自定义",
|
|
296
|
-
"default": "false",
|
|
297
|
-
"type": "boolean"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"name": "required",
|
|
301
|
-
"description": "是否必填",
|
|
302
|
-
"type": "boolean"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"name": "message",
|
|
306
|
-
"description": "校验文本",
|
|
307
|
-
"attribute": false,
|
|
308
|
-
"type": "Record<string, string>"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"name": "isGroup",
|
|
312
|
-
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
313
|
-
"type": "boolean"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"name": "optionGroups",
|
|
317
|
-
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
318
|
-
"attribute": false,
|
|
319
|
-
"type": "OptionGroup[]"
|
|
320
|
-
}
|
|
321
|
-
],
|
|
322
|
-
"events": [
|
|
323
|
-
{
|
|
324
|
-
"name": "change",
|
|
325
|
-
"description": "复选框变化事件",
|
|
326
|
-
"detail": {
|
|
327
|
-
"type": "CheckboxOptionType[]"
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"name": "options.change",
|
|
332
|
-
"description": "复选框变化事件",
|
|
333
|
-
"detail": {
|
|
334
|
-
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
],
|
|
338
|
-
"slots": [],
|
|
339
|
-
"methods": [],
|
|
340
|
-
"parts": [],
|
|
341
|
-
"description": "表单复选框构件",
|
|
342
|
-
"category": "form-input-basic"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"name": "eo-submit-buttons",
|
|
346
|
-
"alias": [
|
|
347
|
-
"form.submit-buttons"
|
|
348
|
-
],
|
|
349
|
-
"properties": [
|
|
350
|
-
{
|
|
351
|
-
"name": "submitText",
|
|
352
|
-
"description": "提交按钮的文字",
|
|
353
|
-
"default": "\"提交\"",
|
|
354
|
-
"type": "string"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
"name": "cancelText",
|
|
358
|
-
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
508
|
+
"name": "cancelText",
|
|
509
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
359
510
|
"type": "string"
|
|
360
511
|
},
|
|
361
512
|
{
|
|
@@ -402,9 +553,9 @@
|
|
|
402
553
|
"category": "form-input-basic"
|
|
403
554
|
},
|
|
404
555
|
{
|
|
405
|
-
"name": "eo-
|
|
556
|
+
"name": "eo-checkbox",
|
|
406
557
|
"alias": [
|
|
407
|
-
"form.
|
|
558
|
+
"form.general-checkbox"
|
|
408
559
|
],
|
|
409
560
|
"properties": [
|
|
410
561
|
{
|
|
@@ -417,293 +568,173 @@
|
|
|
417
568
|
"description": "字段说明",
|
|
418
569
|
"type": "string"
|
|
419
570
|
},
|
|
420
|
-
{
|
|
421
|
-
"name": "required",
|
|
422
|
-
"description": "是否必填",
|
|
423
|
-
"type": "boolean"
|
|
424
|
-
},
|
|
425
571
|
{
|
|
426
572
|
"name": "value",
|
|
427
573
|
"description": "值",
|
|
428
574
|
"attribute": false,
|
|
429
|
-
"type": "
|
|
575
|
+
"type": "CheckboxValueType[]"
|
|
430
576
|
},
|
|
431
577
|
{
|
|
432
|
-
"name": "
|
|
433
|
-
"description": "
|
|
578
|
+
"name": "options",
|
|
579
|
+
"description": "多选框选项表",
|
|
580
|
+
"required": true,
|
|
581
|
+
"default": "[]",
|
|
434
582
|
"attribute": false,
|
|
435
|
-
"type": "
|
|
583
|
+
"type": "CheckboxOptionType[]"
|
|
436
584
|
},
|
|
437
585
|
{
|
|
438
|
-
"name": "
|
|
439
|
-
"description": "
|
|
440
|
-
"
|
|
441
|
-
"type": "
|
|
586
|
+
"name": "type",
|
|
587
|
+
"description": "类型",
|
|
588
|
+
"default": "\"default\"",
|
|
589
|
+
"type": "CheckboxType"
|
|
442
590
|
},
|
|
443
591
|
{
|
|
444
|
-
"name": "
|
|
445
|
-
"description": "
|
|
446
|
-
"
|
|
447
|
-
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
592
|
+
"name": "disabled",
|
|
593
|
+
"description": "是否禁用",
|
|
594
|
+
"type": "boolean"
|
|
448
595
|
},
|
|
449
596
|
{
|
|
450
|
-
"name": "
|
|
451
|
-
"description": "
|
|
452
|
-
"
|
|
453
|
-
"type": "boolean
|
|
597
|
+
"name": "isCustom",
|
|
598
|
+
"description": "是否为自定义",
|
|
599
|
+
"default": "false",
|
|
600
|
+
"type": "boolean"
|
|
454
601
|
},
|
|
455
602
|
{
|
|
456
|
-
"name": "
|
|
457
|
-
"description": "
|
|
603
|
+
"name": "required",
|
|
604
|
+
"description": "是否必填",
|
|
605
|
+
"type": "boolean"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "message",
|
|
609
|
+
"description": "校验文本",
|
|
458
610
|
"attribute": false,
|
|
459
|
-
"type": "
|
|
611
|
+
"type": "Record<string, string>"
|
|
460
612
|
},
|
|
461
613
|
{
|
|
462
|
-
"name": "
|
|
463
|
-
"description": "
|
|
614
|
+
"name": "isGroup",
|
|
615
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
616
|
+
"type": "boolean"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "optionGroups",
|
|
620
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
464
621
|
"attribute": false,
|
|
465
|
-
"type": "
|
|
622
|
+
"type": "OptionGroup[]"
|
|
466
623
|
}
|
|
467
624
|
],
|
|
468
625
|
"events": [
|
|
469
626
|
{
|
|
470
627
|
"name": "change",
|
|
628
|
+
"description": "复选框变化事件",
|
|
471
629
|
"detail": {
|
|
472
|
-
"type": "
|
|
473
|
-
}
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
"name": "row.add",
|
|
477
|
-
"description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
|
|
478
|
-
"detail": {
|
|
479
|
-
"type": "rowDataType"
|
|
630
|
+
"type": "CheckboxOptionType[]"
|
|
480
631
|
}
|
|
481
632
|
},
|
|
482
633
|
{
|
|
483
|
-
"name": "
|
|
484
|
-
"description": "
|
|
634
|
+
"name": "options.change",
|
|
635
|
+
"description": "复选框变化事件",
|
|
485
636
|
"detail": {
|
|
486
|
-
"type": "
|
|
637
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
487
638
|
}
|
|
488
639
|
}
|
|
489
640
|
],
|
|
490
641
|
"slots": [],
|
|
491
642
|
"methods": [],
|
|
492
643
|
"parts": [],
|
|
493
|
-
"description": "
|
|
644
|
+
"description": "表单复选框构件",
|
|
494
645
|
"category": "form-input-basic"
|
|
495
646
|
},
|
|
496
647
|
{
|
|
497
|
-
"name": "eo-form",
|
|
648
|
+
"name": "eo-dynamic-form-item",
|
|
498
649
|
"alias": [
|
|
499
|
-
"form.
|
|
650
|
+
"form.dynamic-form-item"
|
|
500
651
|
],
|
|
501
652
|
"properties": [
|
|
502
653
|
{
|
|
503
|
-
"name": "
|
|
504
|
-
"
|
|
505
|
-
"type": "
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
"name": "layout",
|
|
509
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
510
|
-
"default": "vertical",
|
|
511
|
-
"type": "Layout"
|
|
654
|
+
"name": "name",
|
|
655
|
+
"description": "字段名称",
|
|
656
|
+
"type": "string"
|
|
512
657
|
},
|
|
513
658
|
{
|
|
514
|
-
"name": "
|
|
515
|
-
"description": "
|
|
516
|
-
"type": "
|
|
659
|
+
"name": "label",
|
|
660
|
+
"description": "字段说明",
|
|
661
|
+
"type": "string"
|
|
517
662
|
},
|
|
518
663
|
{
|
|
519
|
-
"name": "
|
|
520
|
-
"description": "
|
|
521
|
-
"
|
|
522
|
-
"attribute": false,
|
|
523
|
-
"type": "ColProps"
|
|
664
|
+
"name": "required",
|
|
665
|
+
"description": "是否必填",
|
|
666
|
+
"type": "boolean"
|
|
524
667
|
},
|
|
525
668
|
{
|
|
526
|
-
"name": "
|
|
527
|
-
"description": "
|
|
528
|
-
"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 }",
|
|
669
|
+
"name": "value",
|
|
670
|
+
"description": "值",
|
|
529
671
|
"attribute": false,
|
|
530
|
-
"type": "
|
|
672
|
+
"type": "DynamicFormValuesItem[]"
|
|
531
673
|
},
|
|
532
674
|
{
|
|
533
|
-
"name": "
|
|
675
|
+
"name": "message",
|
|
676
|
+
"description": "校验文本",
|
|
534
677
|
"attribute": false,
|
|
535
|
-
"type": "
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
"name": "textContent",
|
|
539
|
-
"type": "string",
|
|
540
|
-
"description": "文本内容"
|
|
541
|
-
}
|
|
542
|
-
],
|
|
543
|
-
"events": [
|
|
544
|
-
{
|
|
545
|
-
"name": "values.change",
|
|
546
|
-
"description": "表单值变更事件",
|
|
547
|
-
"detail": {
|
|
548
|
-
"description": null,
|
|
549
|
-
"type": "Record<string, unknown>"
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
"name": "validate.success",
|
|
554
|
-
"description": "表单验证成功时触发事件",
|
|
555
|
-
"detail": {
|
|
556
|
-
"type": "Record<string, unknown>"
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"name": "validate.error",
|
|
561
|
-
"description": "表单验证报错时触发事件",
|
|
562
|
-
"detail": {
|
|
563
|
-
"type": "(MessageBody & { name: string })[]"
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
],
|
|
567
|
-
"slots": [
|
|
568
|
-
{
|
|
569
|
-
"name": null,
|
|
570
|
-
"description": "表单内容"
|
|
571
|
-
}
|
|
572
|
-
],
|
|
573
|
-
"methods": [
|
|
574
|
-
{
|
|
575
|
-
"name": "validate",
|
|
576
|
-
"params": [],
|
|
577
|
-
"description": "表单校验方法",
|
|
578
|
-
"returns": {
|
|
579
|
-
"type": "boolean | Record<string, unknown>"
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
"name": "setInitValue",
|
|
584
|
-
"params": [
|
|
585
|
-
{
|
|
586
|
-
"name": "values",
|
|
587
|
-
"type": "Record<string, unknown>"
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"name": "options",
|
|
591
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
592
|
-
}
|
|
593
|
-
],
|
|
594
|
-
"description": "表单设置值方法",
|
|
595
|
-
"returns": {}
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
"name": "resetFields",
|
|
599
|
-
"params": [
|
|
600
|
-
{
|
|
601
|
-
"name": "name",
|
|
602
|
-
"type": "string"
|
|
603
|
-
}
|
|
604
|
-
],
|
|
605
|
-
"description": "表单重置值方法",
|
|
606
|
-
"returns": {}
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
"name": "getFieldsValue",
|
|
610
|
-
"params": [
|
|
611
|
-
{
|
|
612
|
-
"name": "name",
|
|
613
|
-
"type": "string"
|
|
614
|
-
}
|
|
615
|
-
],
|
|
616
|
-
"description": "获取表单值方法",
|
|
617
|
-
"returns": {}
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
"name": "validateField",
|
|
621
|
-
"params": [
|
|
622
|
-
{
|
|
623
|
-
"name": "name",
|
|
624
|
-
"type": "string"
|
|
625
|
-
}
|
|
626
|
-
],
|
|
627
|
-
"description": "校验表单字段方法",
|
|
628
|
-
"returns": {}
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
"name": "resetValidateState",
|
|
632
|
-
"params": [],
|
|
633
|
-
"description": "重置表单校验状态方法",
|
|
634
|
-
"returns": {}
|
|
635
|
-
}
|
|
636
|
-
],
|
|
637
|
-
"parts": [],
|
|
638
|
-
"description": "表单构件",
|
|
639
|
-
"category": "form-input-basic"
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
"name": "eo-search",
|
|
643
|
-
"alias": [
|
|
644
|
-
"form.general-search"
|
|
645
|
-
],
|
|
646
|
-
"properties": [
|
|
647
|
-
{
|
|
648
|
-
"name": "value",
|
|
649
|
-
"description": "搜索框的值",
|
|
650
|
-
"default": "\"\"",
|
|
651
|
-
"type": "string"
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"name": "placeholder",
|
|
655
|
-
"description": "提示语",
|
|
656
|
-
"type": "string"
|
|
678
|
+
"type": "Record<string, string>"
|
|
657
679
|
},
|
|
658
680
|
{
|
|
659
|
-
"name": "
|
|
660
|
-
"description": "
|
|
661
|
-
"
|
|
681
|
+
"name": "hideRemoveButton",
|
|
682
|
+
"description": "是否隐藏每一行删除的按钮",
|
|
683
|
+
"attribute": false,
|
|
684
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
662
685
|
},
|
|
663
686
|
{
|
|
664
|
-
"name": "
|
|
665
|
-
"description": "
|
|
666
|
-
"
|
|
687
|
+
"name": "disabledRemoveButton",
|
|
688
|
+
"description": "是否禁止每一行删除的按钮",
|
|
689
|
+
"attribute": false,
|
|
690
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
667
691
|
},
|
|
668
692
|
{
|
|
669
|
-
"name": "
|
|
670
|
-
"description": "
|
|
671
|
-
"
|
|
693
|
+
"name": "hideAddButton",
|
|
694
|
+
"description": "是否隐藏添加的按钮",
|
|
695
|
+
"attribute": false,
|
|
696
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
672
697
|
},
|
|
673
698
|
{
|
|
674
|
-
"name": "
|
|
675
|
-
"description": "
|
|
676
|
-
"
|
|
677
|
-
"type": "
|
|
699
|
+
"name": "disabledAddButton",
|
|
700
|
+
"description": "是否禁止添加的按钮",
|
|
701
|
+
"attribute": false,
|
|
702
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
678
703
|
},
|
|
679
704
|
{
|
|
680
|
-
"name": "
|
|
681
|
-
"description": "
|
|
705
|
+
"name": "useBrick",
|
|
706
|
+
"description": "动态表单子项构件列表",
|
|
682
707
|
"attribute": false,
|
|
683
|
-
"type": "
|
|
708
|
+
"type": "UseBrickConf"
|
|
684
709
|
}
|
|
685
710
|
],
|
|
686
711
|
"events": [
|
|
687
712
|
{
|
|
688
713
|
"name": "change",
|
|
689
|
-
"description": "输入的搜索字符,输入变化时触发",
|
|
690
714
|
"detail": {
|
|
691
|
-
"type": "
|
|
715
|
+
"type": "DynamicFormValuesItem[]"
|
|
692
716
|
}
|
|
693
717
|
},
|
|
694
718
|
{
|
|
695
|
-
"name": "
|
|
696
|
-
"description": "
|
|
719
|
+
"name": "row.add",
|
|
720
|
+
"description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
|
|
697
721
|
"detail": {
|
|
698
|
-
"type": "
|
|
722
|
+
"type": "rowDataType"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "row.remove",
|
|
727
|
+
"description": "移除一行时触发,detail为该行的值,index为该行的位置",
|
|
728
|
+
"detail": {
|
|
729
|
+
"type": "rowDataType"
|
|
699
730
|
}
|
|
700
731
|
}
|
|
701
732
|
],
|
|
702
733
|
"slots": [],
|
|
703
734
|
"methods": [],
|
|
704
735
|
"parts": [],
|
|
705
|
-
"description": "
|
|
706
|
-
"category": "
|
|
736
|
+
"description": "动态表单",
|
|
737
|
+
"category": "form-input-basic"
|
|
707
738
|
},
|
|
708
739
|
{
|
|
709
740
|
"name": "eo-icon-select",
|
|
@@ -760,9 +791,9 @@
|
|
|
760
791
|
"category": "form-input-basic"
|
|
761
792
|
},
|
|
762
793
|
{
|
|
763
|
-
"name": "eo-
|
|
794
|
+
"name": "eo-upload-image",
|
|
764
795
|
"alias": [
|
|
765
|
-
"form.
|
|
796
|
+
"form.upload-image"
|
|
766
797
|
],
|
|
767
798
|
"properties": [
|
|
768
799
|
{
|
|
@@ -772,66 +803,66 @@
|
|
|
772
803
|
},
|
|
773
804
|
{
|
|
774
805
|
"name": "label",
|
|
775
|
-
"description": "
|
|
806
|
+
"description": "字段说明",
|
|
776
807
|
"type": "string"
|
|
777
808
|
},
|
|
778
809
|
{
|
|
779
810
|
"name": "value",
|
|
780
|
-
"description": "
|
|
781
|
-
"
|
|
811
|
+
"description": "值",
|
|
812
|
+
"attribute": false,
|
|
813
|
+
"type": "ImageData[]"
|
|
782
814
|
},
|
|
783
815
|
{
|
|
784
|
-
"name": "
|
|
785
|
-
"description": "
|
|
786
|
-
"type": "
|
|
816
|
+
"name": "bucketName",
|
|
817
|
+
"description": "对象存储桶名字",
|
|
818
|
+
"type": "string"
|
|
787
819
|
},
|
|
788
820
|
{
|
|
789
|
-
"name": "
|
|
790
|
-
"description": "
|
|
791
|
-
"type": "
|
|
821
|
+
"name": "maxCount",
|
|
822
|
+
"description": "最大上传数量",
|
|
823
|
+
"type": "number"
|
|
792
824
|
},
|
|
793
825
|
{
|
|
794
|
-
"name": "
|
|
795
|
-
"description": "
|
|
796
|
-
"type": "
|
|
826
|
+
"name": "multiple",
|
|
827
|
+
"description": "是否支持选定的多张图片",
|
|
828
|
+
"type": "boolean"
|
|
797
829
|
},
|
|
798
830
|
{
|
|
799
|
-
"name": "
|
|
800
|
-
"description": "
|
|
801
|
-
"type": "
|
|
831
|
+
"name": "limitSize",
|
|
832
|
+
"description": "上传大小限制(单位为 MB)",
|
|
833
|
+
"type": "number"
|
|
802
834
|
},
|
|
803
835
|
{
|
|
804
|
-
"name": "
|
|
805
|
-
"description": "
|
|
806
|
-
"
|
|
807
|
-
"type": "GeneralIconProps"
|
|
836
|
+
"name": "required",
|
|
837
|
+
"description": "是否必填",
|
|
838
|
+
"type": "boolean"
|
|
808
839
|
},
|
|
809
840
|
{
|
|
810
|
-
"name": "
|
|
811
|
-
"description": "
|
|
841
|
+
"name": "message",
|
|
842
|
+
"description": "校验文本信息",
|
|
812
843
|
"attribute": false,
|
|
813
|
-
"type": "
|
|
844
|
+
"type": "Record<string, string>"
|
|
814
845
|
}
|
|
815
846
|
],
|
|
816
847
|
"events": [
|
|
817
848
|
{
|
|
818
|
-
"name": "
|
|
819
|
-
"description": "
|
|
849
|
+
"name": "change",
|
|
850
|
+
"description": "值变化时触发",
|
|
820
851
|
"detail": {
|
|
821
|
-
"type": "
|
|
852
|
+
"type": "ImageData[]"
|
|
822
853
|
}
|
|
823
854
|
}
|
|
824
855
|
],
|
|
825
856
|
"slots": [],
|
|
826
857
|
"methods": [],
|
|
827
858
|
"parts": [],
|
|
828
|
-
"description": "
|
|
859
|
+
"description": "上传图片构件",
|
|
829
860
|
"category": "form-input-basic"
|
|
830
861
|
},
|
|
831
862
|
{
|
|
832
|
-
"name": "eo-
|
|
863
|
+
"name": "eo-switch",
|
|
833
864
|
"alias": [
|
|
834
|
-
"form.
|
|
865
|
+
"form.general-switch"
|
|
835
866
|
],
|
|
836
867
|
"properties": [
|
|
837
868
|
{
|
|
@@ -841,60 +872,60 @@
|
|
|
841
872
|
},
|
|
842
873
|
{
|
|
843
874
|
"name": "label",
|
|
844
|
-
"description": "
|
|
875
|
+
"description": "字段文本",
|
|
845
876
|
"type": "string"
|
|
846
877
|
},
|
|
847
878
|
{
|
|
848
879
|
"name": "value",
|
|
849
|
-
"description": "
|
|
850
|
-
"
|
|
851
|
-
"type": "ImageData[]"
|
|
880
|
+
"description": "初始值",
|
|
881
|
+
"type": "boolean"
|
|
852
882
|
},
|
|
853
883
|
{
|
|
854
|
-
"name": "
|
|
855
|
-
"description": "
|
|
856
|
-
"type": "
|
|
884
|
+
"name": "disabled",
|
|
885
|
+
"description": "是否禁用",
|
|
886
|
+
"type": "boolean"
|
|
857
887
|
},
|
|
858
888
|
{
|
|
859
|
-
"name": "
|
|
860
|
-
"description": "
|
|
861
|
-
"type": "
|
|
889
|
+
"name": "size",
|
|
890
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
891
|
+
"type": "ComponentSize"
|
|
862
892
|
},
|
|
863
893
|
{
|
|
864
|
-
"name": "
|
|
865
|
-
"description": "
|
|
866
|
-
"type": "
|
|
894
|
+
"name": "checkedText",
|
|
895
|
+
"description": "选中时的文本",
|
|
896
|
+
"type": "string"
|
|
867
897
|
},
|
|
868
898
|
{
|
|
869
|
-
"name": "
|
|
870
|
-
"description": "
|
|
871
|
-
"type": "
|
|
899
|
+
"name": "unCheckedText",
|
|
900
|
+
"description": "非选中时的文本",
|
|
901
|
+
"type": "string"
|
|
872
902
|
},
|
|
873
903
|
{
|
|
874
|
-
"name": "
|
|
875
|
-
"description": "
|
|
876
|
-
"
|
|
904
|
+
"name": "checkedIcon",
|
|
905
|
+
"description": "选中时的图标",
|
|
906
|
+
"attribute": false,
|
|
907
|
+
"type": "GeneralIconProps"
|
|
877
908
|
},
|
|
878
909
|
{
|
|
879
|
-
"name": "
|
|
880
|
-
"description": "
|
|
910
|
+
"name": "unCheckedIcon",
|
|
911
|
+
"description": "非选中时的文本",
|
|
881
912
|
"attribute": false,
|
|
882
|
-
"type": "
|
|
913
|
+
"type": "GeneralIconProps"
|
|
883
914
|
}
|
|
884
915
|
],
|
|
885
916
|
"events": [
|
|
886
917
|
{
|
|
887
|
-
"name": "
|
|
888
|
-
"description": "
|
|
918
|
+
"name": "switch",
|
|
919
|
+
"description": "开关改变时触发",
|
|
889
920
|
"detail": {
|
|
890
|
-
"type": "
|
|
921
|
+
"type": "boolean"
|
|
891
922
|
}
|
|
892
923
|
}
|
|
893
924
|
],
|
|
894
925
|
"slots": [],
|
|
895
926
|
"methods": [],
|
|
896
927
|
"parts": [],
|
|
897
|
-
"description": "
|
|
928
|
+
"description": "开关",
|
|
898
929
|
"category": "form-input-basic"
|
|
899
930
|
},
|
|
900
931
|
{
|
|
@@ -1279,102 +1310,71 @@
|
|
|
1279
1310
|
"category": "form-input-basic"
|
|
1280
1311
|
},
|
|
1281
1312
|
{
|
|
1282
|
-
"name": "eo-
|
|
1313
|
+
"name": "eo-search",
|
|
1283
1314
|
"alias": [
|
|
1284
|
-
"form.general-
|
|
1315
|
+
"form.general-search"
|
|
1285
1316
|
],
|
|
1286
1317
|
"properties": [
|
|
1287
|
-
{
|
|
1288
|
-
"name": "name",
|
|
1289
|
-
"description": "字段名称",
|
|
1290
|
-
"type": "string"
|
|
1291
|
-
},
|
|
1292
|
-
{
|
|
1293
|
-
"name": "label",
|
|
1294
|
-
"description": "标签文字",
|
|
1295
|
-
"type": "string"
|
|
1296
|
-
},
|
|
1297
1318
|
{
|
|
1298
1319
|
"name": "value",
|
|
1299
|
-
"description": "
|
|
1320
|
+
"description": "搜索框的值",
|
|
1321
|
+
"default": "\"\"",
|
|
1300
1322
|
"type": "string"
|
|
1301
1323
|
},
|
|
1302
1324
|
{
|
|
1303
1325
|
"name": "placeholder",
|
|
1304
|
-
"description": "
|
|
1326
|
+
"description": "提示语",
|
|
1305
1327
|
"type": "string"
|
|
1306
1328
|
},
|
|
1307
1329
|
{
|
|
1308
|
-
"name": "
|
|
1309
|
-
"description": "
|
|
1330
|
+
"name": "autoFocus",
|
|
1331
|
+
"description": "是否自动聚焦",
|
|
1310
1332
|
"type": "boolean"
|
|
1311
1333
|
},
|
|
1312
1334
|
{
|
|
1313
|
-
"name": "
|
|
1314
|
-
"description": "
|
|
1315
|
-
"type": "number"
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
"name": "maxLength",
|
|
1319
|
-
"description": "最大长度",
|
|
1320
|
-
"type": "number"
|
|
1321
|
-
},
|
|
1322
|
-
{
|
|
1323
|
-
"name": "autoSize",
|
|
1324
|
-
"description": "大小自适应",
|
|
1325
|
-
"attribute": false,
|
|
1326
|
-
"type": "AutoSize"
|
|
1327
|
-
},
|
|
1328
|
-
{
|
|
1329
|
-
"name": "required",
|
|
1330
|
-
"description": "是否必填",
|
|
1335
|
+
"name": "clearable",
|
|
1336
|
+
"description": "可以点击清除图标删除内容",
|
|
1331
1337
|
"type": "boolean"
|
|
1332
1338
|
},
|
|
1333
1339
|
{
|
|
1334
|
-
"name": "
|
|
1335
|
-
"description": "
|
|
1336
|
-
"type": "
|
|
1340
|
+
"name": "trim",
|
|
1341
|
+
"description": "是否剔除前后空格",
|
|
1342
|
+
"type": "boolean"
|
|
1337
1343
|
},
|
|
1338
1344
|
{
|
|
1339
|
-
"name": "
|
|
1340
|
-
"description": "
|
|
1345
|
+
"name": "debounceTime",
|
|
1346
|
+
"description": "默认延迟时间",
|
|
1347
|
+
"default": "0",
|
|
1341
1348
|
"type": "number"
|
|
1342
1349
|
},
|
|
1343
1350
|
{
|
|
1344
|
-
"name": "
|
|
1345
|
-
"description": "
|
|
1346
|
-
"attribute": false,
|
|
1347
|
-
"type": "Record<string, string>"
|
|
1348
|
-
},
|
|
1349
|
-
{
|
|
1350
|
-
"name": "textareaStyle",
|
|
1351
|
-
"description": "自定义样式",
|
|
1351
|
+
"name": "inputStyle",
|
|
1352
|
+
"description": "输入框样式",
|
|
1352
1353
|
"attribute": false,
|
|
1353
|
-
"type": "
|
|
1354
|
+
"type": "CSSProperties"
|
|
1354
1355
|
}
|
|
1355
1356
|
],
|
|
1356
1357
|
"events": [
|
|
1357
1358
|
{
|
|
1358
1359
|
"name": "change",
|
|
1359
|
-
"description": "",
|
|
1360
|
+
"description": "输入的搜索字符,输入变化时触发",
|
|
1360
1361
|
"detail": {
|
|
1361
|
-
"description": null,
|
|
1362
1362
|
"type": "string"
|
|
1363
1363
|
}
|
|
1364
|
-
}
|
|
1365
|
-
],
|
|
1366
|
-
"slots": [],
|
|
1367
|
-
"methods": [
|
|
1364
|
+
},
|
|
1368
1365
|
{
|
|
1369
|
-
"name": "
|
|
1370
|
-
"
|
|
1371
|
-
"
|
|
1372
|
-
|
|
1366
|
+
"name": "search",
|
|
1367
|
+
"description": "搜索时触发",
|
|
1368
|
+
"detail": {
|
|
1369
|
+
"type": "string"
|
|
1370
|
+
}
|
|
1373
1371
|
}
|
|
1374
1372
|
],
|
|
1373
|
+
"slots": [],
|
|
1374
|
+
"methods": [],
|
|
1375
1375
|
"parts": [],
|
|
1376
|
-
"description": "
|
|
1377
|
-
"category": "
|
|
1376
|
+
"description": "搜索框",
|
|
1377
|
+
"category": "interact-basic"
|
|
1378
1378
|
},
|
|
1379
1379
|
{
|
|
1380
1380
|
"name": "eo-time-range-picker",
|