@next-bricks/form 1.15.15 → 1.15.16
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 +25 -25
- package/dist/chunks/{149.3c454551.js → 149.0d96a17f.js} +2 -2
- package/dist/chunks/{149.3c454551.js.map → 149.0d96a17f.js.map} +1 -1
- package/dist/chunks/{4185.c4525861.js → 4185.228cd688.js} +3 -3
- package/dist/chunks/4185.228cd688.js.map +1 -0
- package/dist/chunks/5347.e2aed5bb.js +3 -0
- package/dist/chunks/{5347.88980d83.js.map → 5347.e2aed5bb.js.map} +1 -1
- package/dist/chunks/eo-color-picker.5d90dd14.js +2 -0
- package/dist/chunks/{eo-color-picker.26cc5ea4.js.map → eo-color-picker.5d90dd14.js.map} +1 -1
- package/dist/chunks/eo-date-picker.69734d54.js +2 -0
- package/dist/chunks/{eo-date-picker.9349f52d.js.map → eo-date-picker.69734d54.js.map} +1 -1
- package/dist/chunks/eo-dynamic-form-item.023553e6.js +3 -0
- package/dist/chunks/{eo-dynamic-form-item.2fc6c469.js.map → eo-dynamic-form-item.023553e6.js.map} +1 -1
- package/dist/chunks/eo-radio.d7d5c5cc.js +3 -0
- package/dist/chunks/{eo-radio.7733eba5.js.map → eo-radio.d7d5c5cc.js.map} +1 -1
- package/dist/chunks/eo-select.a3b01a0e.js +3 -0
- package/dist/chunks/{eo-select.007e32cf.js.map → eo-select.a3b01a0e.js.map} +1 -1
- package/dist/chunks/eo-time-picker.af83e9e7.js +2 -0
- package/dist/chunks/{eo-time-picker.a1616caa.js.map → eo-time-picker.af83e9e7.js.map} +1 -1
- package/dist/chunks/eo-time-range-picker.faa63b15.js +2 -0
- package/dist/chunks/{eo-time-range-picker.7f0e155a.js.map → eo-time-range-picker.faa63b15.js.map} +1 -1
- package/dist/chunks/eo-upload-file.81312b34.js +3 -0
- package/dist/chunks/{eo-upload-file.4f90038d.js.map → eo-upload-file.81312b34.js.map} +1 -1
- package/dist/chunks/{eo-upload-image.528e6cba.js → eo-upload-image.cc41de20.js} +3 -3
- package/dist/chunks/{eo-upload-image.528e6cba.js.map → eo-upload-image.cc41de20.js.map} +1 -1
- package/dist/chunks/main.025109f3.js +2 -0
- package/dist/chunks/{main.962fdfff.js.map → main.025109f3.js.map} +1 -1
- package/dist/chunks/{react.711f0c64.js → react.4372d06b.js} +2 -2
- package/dist/examples.json +11 -11
- package/dist/index.46ad4bec.js +2 -0
- package/dist/index.46ad4bec.js.map +1 -0
- package/dist/manifest.json +372 -372
- package/dist/types.json +703 -703
- package/package.json +2 -2
- package/dist/chunks/4185.c4525861.js.map +0 -1
- package/dist/chunks/5347.88980d83.js +0 -3
- package/dist/chunks/eo-color-picker.26cc5ea4.js +0 -2
- package/dist/chunks/eo-date-picker.9349f52d.js +0 -2
- package/dist/chunks/eo-dynamic-form-item.2fc6c469.js +0 -3
- package/dist/chunks/eo-radio.7733eba5.js +0 -3
- package/dist/chunks/eo-select.007e32cf.js +0 -3
- package/dist/chunks/eo-time-picker.a1616caa.js +0 -2
- package/dist/chunks/eo-time-range-picker.7f0e155a.js +0 -2
- package/dist/chunks/eo-upload-file.4f90038d.js +0 -3
- package/dist/chunks/main.962fdfff.js +0 -2
- package/dist/index.227a37c9.js +0 -2
- package/dist/index.227a37c9.js.map +0 -1
- /package/dist/chunks/{4185.c4525861.js.LICENSE.txt → 4185.228cd688.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5347.88980d83.js.LICENSE.txt → 5347.e2aed5bb.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.2fc6c469.js.LICENSE.txt → eo-dynamic-form-item.023553e6.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.7733eba5.js.LICENSE.txt → eo-radio.d7d5c5cc.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.007e32cf.js.LICENSE.txt → eo-select.a3b01a0e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.4f90038d.js.LICENSE.txt → eo-upload-file.81312b34.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.528e6cba.js.LICENSE.txt → eo-upload-image.cc41de20.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{react.711f0c64.js.LICENSE.txt → react.4372d06b.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -4,44 +4,175 @@
|
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
6
|
{
|
|
7
|
-
"name": "eo-
|
|
7
|
+
"name": "eo-form",
|
|
8
8
|
"alias": [
|
|
9
|
-
"form.general-
|
|
9
|
+
"form.general-form"
|
|
10
10
|
],
|
|
11
11
|
"properties": [
|
|
12
12
|
{
|
|
13
|
-
"name": "
|
|
14
|
-
"
|
|
15
|
-
"type": "string"
|
|
13
|
+
"name": "staticValues",
|
|
14
|
+
"attribute": false,
|
|
15
|
+
"type": "Record<string, unknown>"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
"name": "
|
|
19
|
-
"description": "
|
|
20
|
-
"
|
|
18
|
+
"name": "layout",
|
|
19
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
20
|
+
"default": "vertical",
|
|
21
|
+
"type": "Layout"
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
|
-
"name": "
|
|
24
|
-
"description": "
|
|
25
|
-
"
|
|
26
|
-
"attribute": false,
|
|
27
|
-
"type": "GeneralOption[]"
|
|
24
|
+
"name": "size",
|
|
25
|
+
"description": "表单组件尺寸",
|
|
26
|
+
"type": "ComponentSize"
|
|
28
27
|
},
|
|
29
28
|
{
|
|
30
|
-
"name": "
|
|
31
|
-
"description": "
|
|
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
32
|
"attribute": false,
|
|
33
|
-
"type": "
|
|
33
|
+
"type": "ColProps"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
"name": "
|
|
37
|
-
"description": "
|
|
38
|
-
"
|
|
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"
|
|
39
41
|
},
|
|
40
42
|
{
|
|
41
|
-
"name": "
|
|
42
|
-
"description": "校验文本信息",
|
|
43
|
+
"name": "formStyle",
|
|
43
44
|
"attribute": false,
|
|
44
|
-
"type": "
|
|
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",
|
|
153
|
+
"alias": [
|
|
154
|
+
"form.general-textarea"
|
|
155
|
+
],
|
|
156
|
+
"properties": [
|
|
157
|
+
{
|
|
158
|
+
"name": "name",
|
|
159
|
+
"description": "字段名称",
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "label",
|
|
164
|
+
"description": "标签文字",
|
|
165
|
+
"type": "string"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "value",
|
|
169
|
+
"description": "值",
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "placeholder",
|
|
174
|
+
"description": "占位说明",
|
|
175
|
+
"type": "string"
|
|
45
176
|
},
|
|
46
177
|
{
|
|
47
178
|
"name": "disabled",
|
|
@@ -49,56 +180,70 @@
|
|
|
49
180
|
"type": "boolean"
|
|
50
181
|
},
|
|
51
182
|
{
|
|
52
|
-
"name": "
|
|
53
|
-
"description": "
|
|
54
|
-
"
|
|
55
|
-
"type": "RadioType"
|
|
183
|
+
"name": "minLength",
|
|
184
|
+
"description": "最小长度",
|
|
185
|
+
"type": "number"
|
|
56
186
|
},
|
|
57
187
|
{
|
|
58
|
-
"name": "
|
|
59
|
-
"description": "
|
|
60
|
-
"
|
|
61
|
-
"type": "UIType"
|
|
188
|
+
"name": "maxLength",
|
|
189
|
+
"description": "最大长度",
|
|
190
|
+
"type": "number"
|
|
62
191
|
},
|
|
63
192
|
{
|
|
64
|
-
"name": "
|
|
65
|
-
"description": "
|
|
66
|
-
"
|
|
67
|
-
"type": "
|
|
193
|
+
"name": "autoSize",
|
|
194
|
+
"description": "大小自适应",
|
|
195
|
+
"attribute": false,
|
|
196
|
+
"type": "AutoSize"
|
|
68
197
|
},
|
|
69
198
|
{
|
|
70
|
-
"name": "
|
|
71
|
-
"description": "
|
|
199
|
+
"name": "required",
|
|
200
|
+
"description": "是否必填",
|
|
201
|
+
"type": "boolean"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "max",
|
|
205
|
+
"description": "表单校验最大长度",
|
|
206
|
+
"type": "number"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "min",
|
|
210
|
+
"description": "表单校验最小长度",
|
|
211
|
+
"type": "number"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "message",
|
|
215
|
+
"description": "校验信息",
|
|
72
216
|
"attribute": false,
|
|
73
|
-
"type": "
|
|
217
|
+
"type": "Record<string, string>"
|
|
74
218
|
},
|
|
75
219
|
{
|
|
76
|
-
"name": "
|
|
77
|
-
"description": "
|
|
220
|
+
"name": "textareaStyle",
|
|
221
|
+
"description": "自定义样式",
|
|
78
222
|
"attribute": false,
|
|
79
|
-
"type": "
|
|
223
|
+
"type": "React.CSSProperties"
|
|
80
224
|
}
|
|
81
225
|
],
|
|
82
226
|
"events": [
|
|
83
227
|
{
|
|
84
228
|
"name": "change",
|
|
85
|
-
"description": "
|
|
86
|
-
"detail": {
|
|
87
|
-
"type": "GeneralComplexOption | undefined"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "options.change",
|
|
92
|
-
"description": "选项列表变化事件",
|
|
229
|
+
"description": "",
|
|
93
230
|
"detail": {
|
|
94
|
-
"
|
|
231
|
+
"description": null,
|
|
232
|
+
"type": "string"
|
|
95
233
|
}
|
|
96
234
|
}
|
|
97
235
|
],
|
|
98
236
|
"slots": [],
|
|
99
|
-
"methods": [
|
|
237
|
+
"methods": [
|
|
238
|
+
{
|
|
239
|
+
"name": "focusTextarea",
|
|
240
|
+
"params": [],
|
|
241
|
+
"description": "focus",
|
|
242
|
+
"returns": {}
|
|
243
|
+
}
|
|
244
|
+
],
|
|
100
245
|
"parts": [],
|
|
101
|
-
"description": "
|
|
246
|
+
"description": "通用多行文本输入框构件",
|
|
102
247
|
"category": "form-input-basic"
|
|
103
248
|
},
|
|
104
249
|
{
|
|
@@ -249,6 +394,104 @@
|
|
|
249
394
|
"description": "通用下拉选择构件",
|
|
250
395
|
"category": "form-input-basic"
|
|
251
396
|
},
|
|
397
|
+
{
|
|
398
|
+
"name": "eo-radio",
|
|
399
|
+
"alias": [
|
|
400
|
+
"form.general-radio"
|
|
401
|
+
],
|
|
402
|
+
"properties": [
|
|
403
|
+
{
|
|
404
|
+
"name": "name",
|
|
405
|
+
"description": "下拉框字段名",
|
|
406
|
+
"type": "string"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"name": "label",
|
|
410
|
+
"description": "单选框字段说明",
|
|
411
|
+
"type": "string"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "options",
|
|
415
|
+
"description": "单选框选项表",
|
|
416
|
+
"required": true,
|
|
417
|
+
"attribute": false,
|
|
418
|
+
"type": "GeneralOption[]"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "value",
|
|
422
|
+
"description": "单选框当前选中始值",
|
|
423
|
+
"attribute": false,
|
|
424
|
+
"type": "any"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "required",
|
|
428
|
+
"description": "是否必填",
|
|
429
|
+
"type": "boolean"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "message",
|
|
433
|
+
"description": "校验文本信息",
|
|
434
|
+
"attribute": false,
|
|
435
|
+
"type": "Record<string, string>"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "disabled",
|
|
439
|
+
"description": "是否禁用",
|
|
440
|
+
"type": "boolean"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "type",
|
|
444
|
+
"description": "单选框样式类型",
|
|
445
|
+
"default": "\"default\"",
|
|
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"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "customStyle",
|
|
462
|
+
"description": "自定义radio的外层样式",
|
|
463
|
+
"attribute": false,
|
|
464
|
+
"type": "React.CSSProperties"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "useBrick",
|
|
468
|
+
"description": "自定义radio的内容",
|
|
469
|
+
"attribute": false,
|
|
470
|
+
"type": "UseSingleBrickConf"
|
|
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
|
+
},
|
|
252
495
|
{
|
|
253
496
|
"name": "eo-submit-buttons",
|
|
254
497
|
"alias": [
|
|
@@ -683,6 +926,75 @@
|
|
|
683
926
|
"description": "上传图片构件",
|
|
684
927
|
"category": "form-input-basic"
|
|
685
928
|
},
|
|
929
|
+
{
|
|
930
|
+
"name": "eo-switch",
|
|
931
|
+
"alias": [
|
|
932
|
+
"form.general-switch"
|
|
933
|
+
],
|
|
934
|
+
"properties": [
|
|
935
|
+
{
|
|
936
|
+
"name": "name",
|
|
937
|
+
"description": "字段名称",
|
|
938
|
+
"type": "string"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"name": "label",
|
|
942
|
+
"description": "字段文本",
|
|
943
|
+
"type": "string"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"name": "value",
|
|
947
|
+
"description": "初始值",
|
|
948
|
+
"type": "boolean"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"name": "disabled",
|
|
952
|
+
"description": "是否禁用",
|
|
953
|
+
"type": "boolean"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "size",
|
|
957
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
958
|
+
"type": "ComponentSize"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "checkedText",
|
|
962
|
+
"description": "选中时的文本",
|
|
963
|
+
"type": "string"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "unCheckedText",
|
|
967
|
+
"description": "非选中时的文本",
|
|
968
|
+
"type": "string"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"name": "checkedIcon",
|
|
972
|
+
"description": "选中时的图标",
|
|
973
|
+
"attribute": false,
|
|
974
|
+
"type": "GeneralIconProps"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"name": "unCheckedIcon",
|
|
978
|
+
"description": "非选中时的文本",
|
|
979
|
+
"attribute": false,
|
|
980
|
+
"type": "GeneralIconProps"
|
|
981
|
+
}
|
|
982
|
+
],
|
|
983
|
+
"events": [
|
|
984
|
+
{
|
|
985
|
+
"name": "switch",
|
|
986
|
+
"description": "开关改变时触发",
|
|
987
|
+
"detail": {
|
|
988
|
+
"type": "boolean"
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
],
|
|
992
|
+
"slots": [],
|
|
993
|
+
"methods": [],
|
|
994
|
+
"parts": [],
|
|
995
|
+
"description": "开关",
|
|
996
|
+
"category": "form-input-basic"
|
|
997
|
+
},
|
|
686
998
|
{
|
|
687
999
|
"name": "eo-upload-file",
|
|
688
1000
|
"properties": [
|
|
@@ -784,95 +1096,26 @@
|
|
|
784
1096
|
"default": "\"POST\"",
|
|
785
1097
|
"type": "string"
|
|
786
1098
|
},
|
|
787
|
-
{
|
|
788
|
-
"name": "uploadName",
|
|
789
|
-
"description": "自动上传的文件参数名",
|
|
790
|
-
"default": "\"file\"",
|
|
791
|
-
"type": "string"
|
|
792
|
-
}
|
|
793
|
-
],
|
|
794
|
-
"events": [
|
|
795
|
-
{
|
|
796
|
-
"name": "change",
|
|
797
|
-
"description": "值变化时触发",
|
|
798
|
-
"detail": {
|
|
799
|
-
"type": "FileData[]"
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
],
|
|
803
|
-
"slots": [],
|
|
804
|
-
"methods": [],
|
|
805
|
-
"parts": [],
|
|
806
|
-
"description": "上传文件",
|
|
807
|
-
"category": "form-input-basic"
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
"name": "eo-switch",
|
|
811
|
-
"alias": [
|
|
812
|
-
"form.general-switch"
|
|
813
|
-
],
|
|
814
|
-
"properties": [
|
|
815
|
-
{
|
|
816
|
-
"name": "name",
|
|
817
|
-
"description": "字段名称",
|
|
818
|
-
"type": "string"
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
"name": "label",
|
|
822
|
-
"description": "字段文本",
|
|
823
|
-
"type": "string"
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"name": "value",
|
|
827
|
-
"description": "初始值",
|
|
828
|
-
"type": "boolean"
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
"name": "disabled",
|
|
832
|
-
"description": "是否禁用",
|
|
833
|
-
"type": "boolean"
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
"name": "size",
|
|
837
|
-
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
838
|
-
"type": "ComponentSize"
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
"name": "checkedText",
|
|
842
|
-
"description": "选中时的文本",
|
|
843
|
-
"type": "string"
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
"name": "unCheckedText",
|
|
847
|
-
"description": "非选中时的文本",
|
|
848
|
-
"type": "string"
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"name": "checkedIcon",
|
|
852
|
-
"description": "选中时的图标",
|
|
853
|
-
"attribute": false,
|
|
854
|
-
"type": "GeneralIconProps"
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
"name": "unCheckedIcon",
|
|
858
|
-
"description": "非选中时的文本",
|
|
859
|
-
"attribute": false,
|
|
860
|
-
"type": "GeneralIconProps"
|
|
1099
|
+
{
|
|
1100
|
+
"name": "uploadName",
|
|
1101
|
+
"description": "自动上传的文件参数名",
|
|
1102
|
+
"default": "\"file\"",
|
|
1103
|
+
"type": "string"
|
|
861
1104
|
}
|
|
862
1105
|
],
|
|
863
1106
|
"events": [
|
|
864
1107
|
{
|
|
865
|
-
"name": "
|
|
866
|
-
"description": "
|
|
1108
|
+
"name": "change",
|
|
1109
|
+
"description": "值变化时触发",
|
|
867
1110
|
"detail": {
|
|
868
|
-
"type": "
|
|
1111
|
+
"type": "FileData[]"
|
|
869
1112
|
}
|
|
870
1113
|
}
|
|
871
1114
|
],
|
|
872
1115
|
"slots": [],
|
|
873
1116
|
"methods": [],
|
|
874
1117
|
"parts": [],
|
|
875
|
-
"description": "
|
|
1118
|
+
"description": "上传文件",
|
|
876
1119
|
"category": "form-input-basic"
|
|
877
1120
|
},
|
|
878
1121
|
{
|
|
@@ -1033,104 +1276,6 @@
|
|
|
1033
1276
|
"description": "时间选择器",
|
|
1034
1277
|
"category": "form-input-basic"
|
|
1035
1278
|
},
|
|
1036
|
-
{
|
|
1037
|
-
"name": "eo-textarea",
|
|
1038
|
-
"alias": [
|
|
1039
|
-
"form.general-textarea"
|
|
1040
|
-
],
|
|
1041
|
-
"properties": [
|
|
1042
|
-
{
|
|
1043
|
-
"name": "name",
|
|
1044
|
-
"description": "字段名称",
|
|
1045
|
-
"type": "string"
|
|
1046
|
-
},
|
|
1047
|
-
{
|
|
1048
|
-
"name": "label",
|
|
1049
|
-
"description": "标签文字",
|
|
1050
|
-
"type": "string"
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
"name": "value",
|
|
1054
|
-
"description": "值",
|
|
1055
|
-
"type": "string"
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
"name": "placeholder",
|
|
1059
|
-
"description": "占位说明",
|
|
1060
|
-
"type": "string"
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"name": "disabled",
|
|
1064
|
-
"description": "是否禁用",
|
|
1065
|
-
"type": "boolean"
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
"name": "minLength",
|
|
1069
|
-
"description": "最小长度",
|
|
1070
|
-
"type": "number"
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
"name": "maxLength",
|
|
1074
|
-
"description": "最大长度",
|
|
1075
|
-
"type": "number"
|
|
1076
|
-
},
|
|
1077
|
-
{
|
|
1078
|
-
"name": "autoSize",
|
|
1079
|
-
"description": "大小自适应",
|
|
1080
|
-
"attribute": false,
|
|
1081
|
-
"type": "AutoSize"
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
"name": "required",
|
|
1085
|
-
"description": "是否必填",
|
|
1086
|
-
"type": "boolean"
|
|
1087
|
-
},
|
|
1088
|
-
{
|
|
1089
|
-
"name": "max",
|
|
1090
|
-
"description": "表单校验最大长度",
|
|
1091
|
-
"type": "number"
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
"name": "min",
|
|
1095
|
-
"description": "表单校验最小长度",
|
|
1096
|
-
"type": "number"
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
"name": "message",
|
|
1100
|
-
"description": "校验信息",
|
|
1101
|
-
"attribute": false,
|
|
1102
|
-
"type": "Record<string, string>"
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
"name": "textareaStyle",
|
|
1106
|
-
"description": "自定义样式",
|
|
1107
|
-
"attribute": false,
|
|
1108
|
-
"type": "React.CSSProperties"
|
|
1109
|
-
}
|
|
1110
|
-
],
|
|
1111
|
-
"events": [
|
|
1112
|
-
{
|
|
1113
|
-
"name": "change",
|
|
1114
|
-
"description": "",
|
|
1115
|
-
"detail": {
|
|
1116
|
-
"description": null,
|
|
1117
|
-
"type": "string"
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
],
|
|
1121
|
-
"slots": [],
|
|
1122
|
-
"methods": [
|
|
1123
|
-
{
|
|
1124
|
-
"name": "focusTextarea",
|
|
1125
|
-
"params": [],
|
|
1126
|
-
"description": "focus",
|
|
1127
|
-
"returns": {}
|
|
1128
|
-
}
|
|
1129
|
-
],
|
|
1130
|
-
"parts": [],
|
|
1131
|
-
"description": "通用多行文本输入框构件",
|
|
1132
|
-
"category": "form-input-basic"
|
|
1133
|
-
},
|
|
1134
1279
|
{
|
|
1135
1280
|
"name": "eo-date-picker",
|
|
1136
1281
|
"properties": [
|
|
@@ -1231,151 +1376,6 @@
|
|
|
1231
1376
|
"description": "日期选择器",
|
|
1232
1377
|
"category": "form-input-basic"
|
|
1233
1378
|
},
|
|
1234
|
-
{
|
|
1235
|
-
"name": "eo-form",
|
|
1236
|
-
"alias": [
|
|
1237
|
-
"form.general-form"
|
|
1238
|
-
],
|
|
1239
|
-
"properties": [
|
|
1240
|
-
{
|
|
1241
|
-
"name": "staticValues",
|
|
1242
|
-
"attribute": false,
|
|
1243
|
-
"type": "Record<string, unknown>"
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
"name": "layout",
|
|
1247
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
1248
|
-
"default": "vertical",
|
|
1249
|
-
"type": "Layout"
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
"name": "size",
|
|
1253
|
-
"description": "表单组件尺寸",
|
|
1254
|
-
"type": "ComponentSize"
|
|
1255
|
-
},
|
|
1256
|
-
{
|
|
1257
|
-
"name": "labelCol",
|
|
1258
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1259
|
-
"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 }",
|
|
1260
|
-
"attribute": false,
|
|
1261
|
-
"type": "ColProps"
|
|
1262
|
-
},
|
|
1263
|
-
{
|
|
1264
|
-
"name": "wrapperCol",
|
|
1265
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1266
|
-
"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 }",
|
|
1267
|
-
"attribute": false,
|
|
1268
|
-
"type": "ColProps"
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
"name": "formStyle",
|
|
1272
|
-
"attribute": false,
|
|
1273
|
-
"type": "React.CSSProperties"
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
"name": "textContent",
|
|
1277
|
-
"type": "string",
|
|
1278
|
-
"description": "文本内容"
|
|
1279
|
-
}
|
|
1280
|
-
],
|
|
1281
|
-
"events": [
|
|
1282
|
-
{
|
|
1283
|
-
"name": "values.change",
|
|
1284
|
-
"description": "表单值变更事件",
|
|
1285
|
-
"detail": {
|
|
1286
|
-
"description": null,
|
|
1287
|
-
"type": "Record<string, unknown>"
|
|
1288
|
-
}
|
|
1289
|
-
},
|
|
1290
|
-
{
|
|
1291
|
-
"name": "validate.success",
|
|
1292
|
-
"description": "表单验证成功时触发事件",
|
|
1293
|
-
"detail": {
|
|
1294
|
-
"type": "Record<string, unknown>"
|
|
1295
|
-
}
|
|
1296
|
-
},
|
|
1297
|
-
{
|
|
1298
|
-
"name": "validate.error",
|
|
1299
|
-
"description": "表单验证报错时触发事件",
|
|
1300
|
-
"detail": {
|
|
1301
|
-
"type": "(MessageBody & { name: string })[]"
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
],
|
|
1305
|
-
"slots": [
|
|
1306
|
-
{
|
|
1307
|
-
"name": null,
|
|
1308
|
-
"description": "表单内容"
|
|
1309
|
-
}
|
|
1310
|
-
],
|
|
1311
|
-
"methods": [
|
|
1312
|
-
{
|
|
1313
|
-
"name": "validate",
|
|
1314
|
-
"params": [],
|
|
1315
|
-
"description": "表单校验方法",
|
|
1316
|
-
"returns": {
|
|
1317
|
-
"type": "boolean | Record<string, unknown>"
|
|
1318
|
-
}
|
|
1319
|
-
},
|
|
1320
|
-
{
|
|
1321
|
-
"name": "setInitValue",
|
|
1322
|
-
"params": [
|
|
1323
|
-
{
|
|
1324
|
-
"name": "values",
|
|
1325
|
-
"type": "Record<string, unknown>"
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
"name": "options",
|
|
1329
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
1330
|
-
}
|
|
1331
|
-
],
|
|
1332
|
-
"description": "表单设置值方法",
|
|
1333
|
-
"returns": {}
|
|
1334
|
-
},
|
|
1335
|
-
{
|
|
1336
|
-
"name": "resetFields",
|
|
1337
|
-
"params": [
|
|
1338
|
-
{
|
|
1339
|
-
"name": "name",
|
|
1340
|
-
"type": "string"
|
|
1341
|
-
}
|
|
1342
|
-
],
|
|
1343
|
-
"description": "表单重置值方法",
|
|
1344
|
-
"returns": {}
|
|
1345
|
-
},
|
|
1346
|
-
{
|
|
1347
|
-
"name": "getFieldsValue",
|
|
1348
|
-
"params": [
|
|
1349
|
-
{
|
|
1350
|
-
"name": "name",
|
|
1351
|
-
"type": "string"
|
|
1352
|
-
}
|
|
1353
|
-
],
|
|
1354
|
-
"description": "获取表单值方法",
|
|
1355
|
-
"returns": {}
|
|
1356
|
-
},
|
|
1357
|
-
{
|
|
1358
|
-
"name": "validateField",
|
|
1359
|
-
"params": [
|
|
1360
|
-
{
|
|
1361
|
-
"name": "name",
|
|
1362
|
-
"type": "string"
|
|
1363
|
-
}
|
|
1364
|
-
],
|
|
1365
|
-
"description": "校验表单字段方法",
|
|
1366
|
-
"returns": {}
|
|
1367
|
-
},
|
|
1368
|
-
{
|
|
1369
|
-
"name": "resetValidateState",
|
|
1370
|
-
"params": [],
|
|
1371
|
-
"description": "重置表单校验状态方法",
|
|
1372
|
-
"returns": {}
|
|
1373
|
-
}
|
|
1374
|
-
],
|
|
1375
|
-
"parts": [],
|
|
1376
|
-
"description": "表单构件",
|
|
1377
|
-
"category": "form-input-basic"
|
|
1378
|
-
},
|
|
1379
1379
|
{
|
|
1380
1380
|
"name": "eo-time-range-picker",
|
|
1381
1381
|
"properties": [
|