@next-bricks/form 1.15.19 → 1.15.21
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 +21 -21
- 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.585f3de2.js +3 -0
- package/dist/chunks/{5347.c78ea3ac.js.map → 5347.585f3de2.js.map} +1 -1
- 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.6690abaf.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.ae4ed137.js +3 -0
- package/dist/chunks/{eo-select.a3b01a0e.js.map → eo-select.ae4ed137.js.map} +1 -1
- 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.8695b116.js +2 -0
- package/dist/chunks/{main.b1b4878e.js.map → main.8695b116.js.map} +1 -1
- package/dist/chunks/{react.4372d06b.js → react.b86c57e9.js} +2 -2
- package/dist/examples.json +8 -8
- package/dist/index.2ae50082.js +2 -0
- package/dist/index.2ae50082.js.map +1 -0
- package/dist/manifest.json +304 -304
- package/dist/types.json +1088 -1088
- 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.c78ea3ac.js +0 -3
- 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.6690abaf.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-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.b1b4878e.js +0 -2
- package/dist/index.71da0358.js +0 -2
- package/dist/index.71da0358.js.map +0 -1
- /package/dist/chunks/{5026.cbd59622.js.LICENSE.txt → 5026.0c71a0de.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5347.c78ea3ac.js.LICENSE.txt → 5347.585f3de2.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.ae4ed137.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
|
@@ -3,6 +3,202 @@
|
|
|
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-radio",
|
|
106
|
+
"alias": [
|
|
107
|
+
"form.general-radio"
|
|
108
|
+
],
|
|
109
|
+
"properties": [
|
|
110
|
+
{
|
|
111
|
+
"name": "name",
|
|
112
|
+
"description": "下拉框字段名",
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "label",
|
|
117
|
+
"description": "单选框字段说明",
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "options",
|
|
122
|
+
"description": "单选框选项表",
|
|
123
|
+
"required": true,
|
|
124
|
+
"attribute": false,
|
|
125
|
+
"type": "GeneralOption[]"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "value",
|
|
129
|
+
"description": "单选框当前选中始值",
|
|
130
|
+
"attribute": false,
|
|
131
|
+
"type": "any"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "required",
|
|
135
|
+
"description": "是否必填",
|
|
136
|
+
"type": "boolean"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "message",
|
|
140
|
+
"description": "校验文本信息",
|
|
141
|
+
"attribute": false,
|
|
142
|
+
"type": "Record<string, string>"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "disabled",
|
|
146
|
+
"description": "是否禁用",
|
|
147
|
+
"type": "boolean"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "type",
|
|
151
|
+
"description": "单选框样式类型",
|
|
152
|
+
"default": "\"default\"",
|
|
153
|
+
"type": "RadioType"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "ui",
|
|
157
|
+
"description": "UI样式",
|
|
158
|
+
"default": "\"default\"",
|
|
159
|
+
"type": "UIType"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "size",
|
|
163
|
+
"description": "大小,只对按钮样式生效",
|
|
164
|
+
"default": "\"medium\"",
|
|
165
|
+
"type": "ComponentSize"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "customStyle",
|
|
169
|
+
"description": "自定义radio的外层样式",
|
|
170
|
+
"attribute": false,
|
|
171
|
+
"type": "React.CSSProperties"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "useBrick",
|
|
175
|
+
"description": "自定义radio的内容",
|
|
176
|
+
"attribute": false,
|
|
177
|
+
"type": "UseSingleBrickConf"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"events": [
|
|
181
|
+
{
|
|
182
|
+
"name": "change",
|
|
183
|
+
"description": "值变化事件",
|
|
184
|
+
"detail": {
|
|
185
|
+
"type": "GeneralComplexOption | undefined"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "options.change",
|
|
190
|
+
"description": "选项列表变化事件",
|
|
191
|
+
"detail": {
|
|
192
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"slots": [],
|
|
197
|
+
"methods": [],
|
|
198
|
+
"parts": [],
|
|
199
|
+
"description": "通用单选构件",
|
|
200
|
+
"category": "form-input-basic"
|
|
201
|
+
},
|
|
6
202
|
{
|
|
7
203
|
"name": "eo-select",
|
|
8
204
|
"alias": [
|
|
@@ -212,101 +408,148 @@
|
|
|
212
408
|
"category": "form-input-basic"
|
|
213
409
|
},
|
|
214
410
|
{
|
|
215
|
-
"name": "eo-
|
|
411
|
+
"name": "eo-form",
|
|
216
412
|
"alias": [
|
|
217
|
-
"form.general-
|
|
413
|
+
"form.general-form"
|
|
218
414
|
],
|
|
219
415
|
"properties": [
|
|
220
416
|
{
|
|
221
|
-
"name": "
|
|
222
|
-
"
|
|
223
|
-
"type": "string"
|
|
417
|
+
"name": "staticValues",
|
|
418
|
+
"attribute": false,
|
|
419
|
+
"type": "Record<string, unknown>"
|
|
224
420
|
},
|
|
225
421
|
{
|
|
226
|
-
"name": "
|
|
227
|
-
"description": "
|
|
228
|
-
"
|
|
422
|
+
"name": "layout",
|
|
423
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
424
|
+
"default": "vertical",
|
|
425
|
+
"type": "Layout"
|
|
229
426
|
},
|
|
230
427
|
{
|
|
231
|
-
"name": "
|
|
232
|
-
"description": "
|
|
233
|
-
"
|
|
234
|
-
"attribute": false,
|
|
235
|
-
"type": "GeneralOption[]"
|
|
428
|
+
"name": "size",
|
|
429
|
+
"description": "表单组件尺寸",
|
|
430
|
+
"type": "ComponentSize"
|
|
236
431
|
},
|
|
237
432
|
{
|
|
238
|
-
"name": "
|
|
239
|
-
"description": "
|
|
433
|
+
"name": "labelCol",
|
|
434
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
435
|
+
"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 }",
|
|
240
436
|
"attribute": false,
|
|
241
|
-
"type": "
|
|
437
|
+
"type": "ColProps"
|
|
242
438
|
},
|
|
243
439
|
{
|
|
244
|
-
"name": "
|
|
245
|
-
"description": "
|
|
246
|
-
"
|
|
440
|
+
"name": "wrapperCol",
|
|
441
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
442
|
+
"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 }",
|
|
443
|
+
"attribute": false,
|
|
444
|
+
"type": "ColProps"
|
|
247
445
|
},
|
|
248
446
|
{
|
|
249
|
-
"name": "
|
|
250
|
-
"description": "校验文本信息",
|
|
447
|
+
"name": "formStyle",
|
|
251
448
|
"attribute": false,
|
|
252
|
-
"type": "
|
|
449
|
+
"type": "React.CSSProperties"
|
|
253
450
|
},
|
|
254
451
|
{
|
|
255
|
-
"name": "
|
|
256
|
-
"
|
|
257
|
-
"
|
|
452
|
+
"name": "textContent",
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "文本内容"
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"events": [
|
|
458
|
+
{
|
|
459
|
+
"name": "values.change",
|
|
460
|
+
"description": "表单值变更事件",
|
|
461
|
+
"detail": {
|
|
462
|
+
"description": null,
|
|
463
|
+
"type": "Record<string, unknown>"
|
|
464
|
+
}
|
|
258
465
|
},
|
|
259
466
|
{
|
|
260
|
-
"name": "
|
|
261
|
-
"description": "
|
|
262
|
-
"
|
|
263
|
-
|
|
467
|
+
"name": "validate.success",
|
|
468
|
+
"description": "表单验证成功时触发事件",
|
|
469
|
+
"detail": {
|
|
470
|
+
"type": "Record<string, unknown>"
|
|
471
|
+
}
|
|
264
472
|
},
|
|
265
473
|
{
|
|
266
|
-
"name": "
|
|
267
|
-
"description": "
|
|
268
|
-
"
|
|
269
|
-
|
|
474
|
+
"name": "validate.error",
|
|
475
|
+
"description": "表单验证报错时触发事件",
|
|
476
|
+
"detail": {
|
|
477
|
+
"type": "(MessageBody & { name: string })[]"
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
"slots": [
|
|
482
|
+
{
|
|
483
|
+
"name": null,
|
|
484
|
+
"description": "表单内容"
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"methods": [
|
|
488
|
+
{
|
|
489
|
+
"name": "validate",
|
|
490
|
+
"params": [],
|
|
491
|
+
"description": "表单校验方法",
|
|
492
|
+
"returns": {
|
|
493
|
+
"type": "boolean | Record<string, unknown>"
|
|
494
|
+
}
|
|
270
495
|
},
|
|
271
496
|
{
|
|
272
|
-
"name": "
|
|
273
|
-
"
|
|
274
|
-
|
|
275
|
-
|
|
497
|
+
"name": "setInitValue",
|
|
498
|
+
"params": [
|
|
499
|
+
{
|
|
500
|
+
"name": "values",
|
|
501
|
+
"type": "Record<string, unknown>"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "options",
|
|
505
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
"description": "表单设置值方法",
|
|
509
|
+
"returns": {}
|
|
276
510
|
},
|
|
277
511
|
{
|
|
278
|
-
"name": "
|
|
279
|
-
"
|
|
280
|
-
|
|
281
|
-
|
|
512
|
+
"name": "resetFields",
|
|
513
|
+
"params": [
|
|
514
|
+
{
|
|
515
|
+
"name": "name",
|
|
516
|
+
"type": "string"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"description": "表单重置值方法",
|
|
520
|
+
"returns": {}
|
|
282
521
|
},
|
|
283
522
|
{
|
|
284
|
-
"name": "
|
|
285
|
-
"
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
523
|
+
"name": "getFieldsValue",
|
|
524
|
+
"params": [
|
|
525
|
+
{
|
|
526
|
+
"name": "name",
|
|
527
|
+
"type": "string"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"description": "获取表单值方法",
|
|
531
|
+
"returns": {}
|
|
532
|
+
},
|
|
291
533
|
{
|
|
292
|
-
"name": "
|
|
293
|
-
"
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
534
|
+
"name": "validateField",
|
|
535
|
+
"params": [
|
|
536
|
+
{
|
|
537
|
+
"name": "name",
|
|
538
|
+
"type": "string"
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"description": "校验表单字段方法",
|
|
542
|
+
"returns": {}
|
|
297
543
|
},
|
|
298
544
|
{
|
|
299
|
-
"name": "
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
|
|
303
|
-
}
|
|
545
|
+
"name": "resetValidateState",
|
|
546
|
+
"params": [],
|
|
547
|
+
"description": "重置表单校验状态方法",
|
|
548
|
+
"returns": {}
|
|
304
549
|
}
|
|
305
550
|
],
|
|
306
|
-
"slots": [],
|
|
307
|
-
"methods": [],
|
|
308
551
|
"parts": [],
|
|
309
|
-
"description": "
|
|
552
|
+
"description": "表单构件",
|
|
310
553
|
"category": "form-input-basic"
|
|
311
554
|
},
|
|
312
555
|
{
|
|
@@ -401,104 +644,6 @@
|
|
|
401
644
|
"description": "表单复选框构件",
|
|
402
645
|
"category": "form-input-basic"
|
|
403
646
|
},
|
|
404
|
-
{
|
|
405
|
-
"name": "eo-textarea",
|
|
406
|
-
"alias": [
|
|
407
|
-
"form.general-textarea"
|
|
408
|
-
],
|
|
409
|
-
"properties": [
|
|
410
|
-
{
|
|
411
|
-
"name": "name",
|
|
412
|
-
"description": "字段名称",
|
|
413
|
-
"type": "string"
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
"name": "label",
|
|
417
|
-
"description": "标签文字",
|
|
418
|
-
"type": "string"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"name": "value",
|
|
422
|
-
"description": "值",
|
|
423
|
-
"type": "string"
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"name": "placeholder",
|
|
427
|
-
"description": "占位说明",
|
|
428
|
-
"type": "string"
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"name": "disabled",
|
|
432
|
-
"description": "是否禁用",
|
|
433
|
-
"type": "boolean"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"name": "minLength",
|
|
437
|
-
"description": "最小长度",
|
|
438
|
-
"type": "number"
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"name": "maxLength",
|
|
442
|
-
"description": "最大长度",
|
|
443
|
-
"type": "number"
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"name": "autoSize",
|
|
447
|
-
"description": "大小自适应",
|
|
448
|
-
"attribute": false,
|
|
449
|
-
"type": "AutoSize"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"name": "required",
|
|
453
|
-
"description": "是否必填",
|
|
454
|
-
"type": "boolean"
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
"name": "max",
|
|
458
|
-
"description": "表单校验最大长度",
|
|
459
|
-
"type": "number"
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
"name": "min",
|
|
463
|
-
"description": "表单校验最小长度",
|
|
464
|
-
"type": "number"
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"name": "message",
|
|
468
|
-
"description": "校验信息",
|
|
469
|
-
"attribute": false,
|
|
470
|
-
"type": "Record<string, string>"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"name": "textareaStyle",
|
|
474
|
-
"description": "自定义样式",
|
|
475
|
-
"attribute": false,
|
|
476
|
-
"type": "React.CSSProperties"
|
|
477
|
-
}
|
|
478
|
-
],
|
|
479
|
-
"events": [
|
|
480
|
-
{
|
|
481
|
-
"name": "change",
|
|
482
|
-
"description": "",
|
|
483
|
-
"detail": {
|
|
484
|
-
"description": null,
|
|
485
|
-
"type": "string"
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
],
|
|
489
|
-
"slots": [],
|
|
490
|
-
"methods": [
|
|
491
|
-
{
|
|
492
|
-
"name": "focusTextarea",
|
|
493
|
-
"params": [],
|
|
494
|
-
"description": "focus",
|
|
495
|
-
"returns": {}
|
|
496
|
-
}
|
|
497
|
-
],
|
|
498
|
-
"parts": [],
|
|
499
|
-
"description": "通用多行文本输入框构件",
|
|
500
|
-
"category": "form-input-basic"
|
|
501
|
-
},
|
|
502
647
|
{
|
|
503
648
|
"name": "eo-dynamic-form-item",
|
|
504
649
|
"alias": [
|
|
@@ -850,151 +995,6 @@
|
|
|
850
995
|
"description": "开关",
|
|
851
996
|
"category": "form-input-basic"
|
|
852
997
|
},
|
|
853
|
-
{
|
|
854
|
-
"name": "eo-form",
|
|
855
|
-
"alias": [
|
|
856
|
-
"form.general-form"
|
|
857
|
-
],
|
|
858
|
-
"properties": [
|
|
859
|
-
{
|
|
860
|
-
"name": "staticValues",
|
|
861
|
-
"attribute": false,
|
|
862
|
-
"type": "Record<string, unknown>"
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
"name": "layout",
|
|
866
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
867
|
-
"default": "vertical",
|
|
868
|
-
"type": "Layout"
|
|
869
|
-
},
|
|
870
|
-
{
|
|
871
|
-
"name": "size",
|
|
872
|
-
"description": "表单组件尺寸",
|
|
873
|
-
"type": "ComponentSize"
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
"name": "labelCol",
|
|
877
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
878
|
-
"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 }",
|
|
879
|
-
"attribute": false,
|
|
880
|
-
"type": "ColProps"
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
"name": "wrapperCol",
|
|
884
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
885
|
-
"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 }",
|
|
886
|
-
"attribute": false,
|
|
887
|
-
"type": "ColProps"
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
"name": "formStyle",
|
|
891
|
-
"attribute": false,
|
|
892
|
-
"type": "React.CSSProperties"
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
"name": "textContent",
|
|
896
|
-
"type": "string",
|
|
897
|
-
"description": "文本内容"
|
|
898
|
-
}
|
|
899
|
-
],
|
|
900
|
-
"events": [
|
|
901
|
-
{
|
|
902
|
-
"name": "values.change",
|
|
903
|
-
"description": "表单值变更事件",
|
|
904
|
-
"detail": {
|
|
905
|
-
"description": null,
|
|
906
|
-
"type": "Record<string, unknown>"
|
|
907
|
-
}
|
|
908
|
-
},
|
|
909
|
-
{
|
|
910
|
-
"name": "validate.success",
|
|
911
|
-
"description": "表单验证成功时触发事件",
|
|
912
|
-
"detail": {
|
|
913
|
-
"type": "Record<string, unknown>"
|
|
914
|
-
}
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"name": "validate.error",
|
|
918
|
-
"description": "表单验证报错时触发事件",
|
|
919
|
-
"detail": {
|
|
920
|
-
"type": "(MessageBody & { name: string })[]"
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
],
|
|
924
|
-
"slots": [
|
|
925
|
-
{
|
|
926
|
-
"name": null,
|
|
927
|
-
"description": "表单内容"
|
|
928
|
-
}
|
|
929
|
-
],
|
|
930
|
-
"methods": [
|
|
931
|
-
{
|
|
932
|
-
"name": "validate",
|
|
933
|
-
"params": [],
|
|
934
|
-
"description": "表单校验方法",
|
|
935
|
-
"returns": {
|
|
936
|
-
"type": "boolean | Record<string, unknown>"
|
|
937
|
-
}
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
"name": "setInitValue",
|
|
941
|
-
"params": [
|
|
942
|
-
{
|
|
943
|
-
"name": "values",
|
|
944
|
-
"type": "Record<string, unknown>"
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
"name": "options",
|
|
948
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
949
|
-
}
|
|
950
|
-
],
|
|
951
|
-
"description": "表单设置值方法",
|
|
952
|
-
"returns": {}
|
|
953
|
-
},
|
|
954
|
-
{
|
|
955
|
-
"name": "resetFields",
|
|
956
|
-
"params": [
|
|
957
|
-
{
|
|
958
|
-
"name": "name",
|
|
959
|
-
"type": "string"
|
|
960
|
-
}
|
|
961
|
-
],
|
|
962
|
-
"description": "表单重置值方法",
|
|
963
|
-
"returns": {}
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"name": "getFieldsValue",
|
|
967
|
-
"params": [
|
|
968
|
-
{
|
|
969
|
-
"name": "name",
|
|
970
|
-
"type": "string"
|
|
971
|
-
}
|
|
972
|
-
],
|
|
973
|
-
"description": "获取表单值方法",
|
|
974
|
-
"returns": {}
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"name": "validateField",
|
|
978
|
-
"params": [
|
|
979
|
-
{
|
|
980
|
-
"name": "name",
|
|
981
|
-
"type": "string"
|
|
982
|
-
}
|
|
983
|
-
],
|
|
984
|
-
"description": "校验表单字段方法",
|
|
985
|
-
"returns": {}
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"name": "resetValidateState",
|
|
989
|
-
"params": [],
|
|
990
|
-
"description": "重置表单校验状态方法",
|
|
991
|
-
"returns": {}
|
|
992
|
-
}
|
|
993
|
-
],
|
|
994
|
-
"parts": [],
|
|
995
|
-
"description": "表单构件",
|
|
996
|
-
"category": "form-input-basic"
|
|
997
|
-
},
|
|
998
998
|
{
|
|
999
999
|
"name": "eo-upload-file",
|
|
1000
1000
|
"properties": [
|