@next-bricks/form 1.15.20 → 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.00500d5b.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.2ca173ad.js.map → eo-color-picker.5f9d5ae6.js.map} +1 -1
- package/dist/chunks/eo-date-picker.e89ab216.js +2 -0
- package/dist/chunks/{eo-date-picker.69734d54.js.map → eo-date-picker.e89ab216.js.map} +1 -1
- package/dist/chunks/eo-dynamic-form-item.4e8ac208.js +3 -0
- package/dist/chunks/{eo-dynamic-form-item.023553e6.js.map → eo-dynamic-form-item.4e8ac208.js.map} +1 -1
- package/dist/chunks/eo-radio.73b27079.js +3 -0
- package/dist/chunks/{eo-radio.d7d5c5cc.js.map → eo-radio.73b27079.js.map} +1 -1
- package/dist/chunks/eo-select.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.7b4f5b14.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.78c877f2.js.map → index.2ae50082.js.map} +1 -1
- package/dist/manifest.json +323 -323
- package/dist/types.json +433 -433
- package/package.json +2 -2
- package/dist/chunks/1889.efd28cdd.js.map +0 -1
- package/dist/chunks/4185.228cd688.js +0 -3
- package/dist/chunks/4185.228cd688.js.map +0 -1
- package/dist/chunks/4306.5ca13833.js +0 -2
- package/dist/chunks/4306.5ca13833.js.map +0 -1
- package/dist/chunks/5026.cbd59622.js.map +0 -1
- package/dist/chunks/5347.00500d5b.js +0 -3
- package/dist/chunks/7721.d5cfcbb7.js.map +0 -1
- package/dist/chunks/9515.ffbcdd4f.js +0 -2
- package/dist/chunks/9515.ffbcdd4f.js.map +0 -1
- package/dist/chunks/eo-color-picker.2ca173ad.js +0 -2
- package/dist/chunks/eo-date-picker.69734d54.js +0 -2
- package/dist/chunks/eo-dynamic-form-item.023553e6.js +0 -3
- package/dist/chunks/eo-radio.d7d5c5cc.js +0 -3
- package/dist/chunks/eo-select.a3b01a0e.js +0 -3
- package/dist/chunks/eo-time-picker.af83e9e7.js +0 -2
- package/dist/chunks/eo-time-range-picker.faa63b15.js +0 -2
- package/dist/chunks/eo-upload-file.81312b34.js +0 -3
- package/dist/chunks/main.7b4f5b14.js +0 -2
- package/dist/index.78c877f2.js +0 -2
- /package/dist/chunks/{5026.cbd59622.js.LICENSE.txt → 5026.0c71a0de.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5347.00500d5b.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
|
@@ -102,148 +102,101 @@
|
|
|
102
102
|
"category": "form-input-basic"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
|
-
"name": "eo-
|
|
105
|
+
"name": "eo-radio",
|
|
106
106
|
"alias": [
|
|
107
|
-
"form.general-
|
|
107
|
+
"form.general-radio"
|
|
108
108
|
],
|
|
109
109
|
"properties": [
|
|
110
110
|
{
|
|
111
|
-
"name": "
|
|
112
|
-
"
|
|
113
|
-
"type": "
|
|
111
|
+
"name": "name",
|
|
112
|
+
"description": "下拉框字段名",
|
|
113
|
+
"type": "string"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
|
-
"name": "
|
|
117
|
-
"description": "
|
|
118
|
-
"
|
|
119
|
-
"type": "Layout"
|
|
116
|
+
"name": "label",
|
|
117
|
+
"description": "单选框字段说明",
|
|
118
|
+
"type": "string"
|
|
120
119
|
},
|
|
121
120
|
{
|
|
122
|
-
"name": "
|
|
123
|
-
"description": "
|
|
124
|
-
"
|
|
121
|
+
"name": "options",
|
|
122
|
+
"description": "单选框选项表",
|
|
123
|
+
"required": true,
|
|
124
|
+
"attribute": false,
|
|
125
|
+
"type": "GeneralOption[]"
|
|
125
126
|
},
|
|
126
127
|
{
|
|
127
|
-
"name": "
|
|
128
|
-
"description": "
|
|
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 }",
|
|
128
|
+
"name": "value",
|
|
129
|
+
"description": "单选框当前选中始值",
|
|
130
130
|
"attribute": false,
|
|
131
|
-
"type": "
|
|
131
|
+
"type": "any"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
"name": "
|
|
135
|
-
"description": "
|
|
136
|
-
"
|
|
137
|
-
"attribute": false,
|
|
138
|
-
"type": "ColProps"
|
|
134
|
+
"name": "required",
|
|
135
|
+
"description": "是否必填",
|
|
136
|
+
"type": "boolean"
|
|
139
137
|
},
|
|
140
138
|
{
|
|
141
|
-
"name": "
|
|
139
|
+
"name": "message",
|
|
140
|
+
"description": "校验文本信息",
|
|
142
141
|
"attribute": false,
|
|
143
|
-
"type": "
|
|
142
|
+
"type": "Record<string, string>"
|
|
144
143
|
},
|
|
145
144
|
{
|
|
146
|
-
"name": "
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"events": [
|
|
152
|
-
{
|
|
153
|
-
"name": "values.change",
|
|
154
|
-
"description": "表单值变更事件",
|
|
155
|
-
"detail": {
|
|
156
|
-
"description": null,
|
|
157
|
-
"type": "Record<string, unknown>"
|
|
158
|
-
}
|
|
145
|
+
"name": "disabled",
|
|
146
|
+
"description": "是否禁用",
|
|
147
|
+
"type": "boolean"
|
|
159
148
|
},
|
|
160
149
|
{
|
|
161
|
-
"name": "
|
|
162
|
-
"description": "
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
}
|
|
150
|
+
"name": "type",
|
|
151
|
+
"description": "单选框样式类型",
|
|
152
|
+
"default": "\"default\"",
|
|
153
|
+
"type": "RadioType"
|
|
166
154
|
},
|
|
167
155
|
{
|
|
168
|
-
"name": "
|
|
169
|
-
"description": "
|
|
170
|
-
"
|
|
171
|
-
|
|
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
|
-
}
|
|
156
|
+
"name": "ui",
|
|
157
|
+
"description": "UI样式",
|
|
158
|
+
"default": "\"default\"",
|
|
159
|
+
"type": "UIType"
|
|
189
160
|
},
|
|
190
161
|
{
|
|
191
|
-
"name": "
|
|
192
|
-
"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
"type": "Record<string, unknown>"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"name": "options",
|
|
199
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"description": "表单设置值方法",
|
|
203
|
-
"returns": {}
|
|
162
|
+
"name": "size",
|
|
163
|
+
"description": "大小,只对按钮样式生效",
|
|
164
|
+
"default": "\"medium\"",
|
|
165
|
+
"type": "ComponentSize"
|
|
204
166
|
},
|
|
205
167
|
{
|
|
206
|
-
"name": "
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
"type": "string"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"description": "表单重置值方法",
|
|
214
|
-
"returns": {}
|
|
168
|
+
"name": "customStyle",
|
|
169
|
+
"description": "自定义radio的外层样式",
|
|
170
|
+
"attribute": false,
|
|
171
|
+
"type": "React.CSSProperties"
|
|
215
172
|
},
|
|
216
173
|
{
|
|
217
|
-
"name": "
|
|
218
|
-
"
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"description": "获取表单值方法",
|
|
225
|
-
"returns": {}
|
|
226
|
-
},
|
|
174
|
+
"name": "useBrick",
|
|
175
|
+
"description": "自定义radio的内容",
|
|
176
|
+
"attribute": false,
|
|
177
|
+
"type": "UseSingleBrickConf"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"events": [
|
|
227
181
|
{
|
|
228
|
-
"name": "
|
|
229
|
-
"
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"description": "校验表单字段方法",
|
|
236
|
-
"returns": {}
|
|
182
|
+
"name": "change",
|
|
183
|
+
"description": "值变化事件",
|
|
184
|
+
"detail": {
|
|
185
|
+
"type": "GeneralComplexOption | undefined"
|
|
186
|
+
}
|
|
237
187
|
},
|
|
238
188
|
{
|
|
239
|
-
"name": "
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
|
|
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
|
+
}
|
|
243
194
|
}
|
|
244
195
|
],
|
|
196
|
+
"slots": [],
|
|
197
|
+
"methods": [],
|
|
245
198
|
"parts": [],
|
|
246
|
-
"description": "
|
|
199
|
+
"description": "通用单选构件",
|
|
247
200
|
"category": "form-input-basic"
|
|
248
201
|
},
|
|
249
202
|
{
|
|
@@ -395,161 +348,208 @@
|
|
|
395
348
|
"category": "form-input-basic"
|
|
396
349
|
},
|
|
397
350
|
{
|
|
398
|
-
"name": "eo-
|
|
351
|
+
"name": "eo-submit-buttons",
|
|
399
352
|
"alias": [
|
|
400
|
-
"form.
|
|
353
|
+
"form.submit-buttons"
|
|
401
354
|
],
|
|
402
355
|
"properties": [
|
|
403
356
|
{
|
|
404
|
-
"name": "
|
|
405
|
-
"description": "
|
|
357
|
+
"name": "submitText",
|
|
358
|
+
"description": "提交按钮的文字",
|
|
359
|
+
"default": "\"提交\"",
|
|
406
360
|
"type": "string"
|
|
407
361
|
},
|
|
408
362
|
{
|
|
409
|
-
"name": "
|
|
410
|
-
"description": "
|
|
363
|
+
"name": "cancelText",
|
|
364
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
411
365
|
"type": "string"
|
|
412
366
|
},
|
|
413
367
|
{
|
|
414
|
-
"name": "
|
|
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": "是否必填",
|
|
368
|
+
"name": "disableAfterClick",
|
|
369
|
+
"description": "点击确定按钮后自动禁用",
|
|
429
370
|
"type": "boolean"
|
|
430
371
|
},
|
|
431
372
|
{
|
|
432
|
-
"name": "
|
|
433
|
-
"description": "
|
|
434
|
-
"attribute": false,
|
|
435
|
-
"type": "Record<string, string>"
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
"name": "disabled",
|
|
439
|
-
"description": "是否禁用",
|
|
373
|
+
"name": "submitDisabled",
|
|
374
|
+
"description": "禁用提交按钮",
|
|
440
375
|
"type": "boolean"
|
|
441
376
|
},
|
|
442
377
|
{
|
|
443
|
-
"name": "
|
|
444
|
-
"description": "
|
|
445
|
-
"
|
|
446
|
-
"type": "RadioType"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"name": "ui",
|
|
450
|
-
"description": "UI样式",
|
|
451
|
-
"default": "\"default\"",
|
|
452
|
-
"type": "UIType"
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"name": "size",
|
|
456
|
-
"description": "大小,只对按钮样式生效",
|
|
457
|
-
"default": "\"medium\"",
|
|
458
|
-
"type": "ComponentSize"
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"name": "customStyle",
|
|
462
|
-
"description": "自定义radio的外层样式",
|
|
463
|
-
"attribute": false,
|
|
464
|
-
"type": "React.CSSProperties"
|
|
378
|
+
"name": "submitType",
|
|
379
|
+
"description": "提交按钮类型",
|
|
380
|
+
"type": "ButtonType"
|
|
465
381
|
},
|
|
466
382
|
{
|
|
467
|
-
"name": "
|
|
468
|
-
"description": "
|
|
469
|
-
"
|
|
470
|
-
"type": "UseSingleBrickConf"
|
|
383
|
+
"name": "cancelType",
|
|
384
|
+
"description": "取消按钮类型",
|
|
385
|
+
"type": "ButtonType"
|
|
471
386
|
}
|
|
472
387
|
],
|
|
473
388
|
"events": [
|
|
474
389
|
{
|
|
475
|
-
"name": "
|
|
476
|
-
"description": "
|
|
390
|
+
"name": "submit",
|
|
391
|
+
"description": "点击提交按钮触发的事件",
|
|
477
392
|
"detail": {
|
|
478
|
-
"type": "
|
|
393
|
+
"type": "void"
|
|
479
394
|
}
|
|
480
395
|
},
|
|
481
396
|
{
|
|
482
|
-
"name": "
|
|
483
|
-
"description": "
|
|
397
|
+
"name": "cancel",
|
|
398
|
+
"description": "点击取消按钮触发的事件",
|
|
484
399
|
"detail": {
|
|
485
|
-
"type": "
|
|
400
|
+
"type": "void"
|
|
486
401
|
}
|
|
487
402
|
}
|
|
488
403
|
],
|
|
489
404
|
"slots": [],
|
|
490
405
|
"methods": [],
|
|
491
406
|
"parts": [],
|
|
492
|
-
"description": "
|
|
407
|
+
"description": "表单提交按钮",
|
|
493
408
|
"category": "form-input-basic"
|
|
494
409
|
},
|
|
495
410
|
{
|
|
496
|
-
"name": "eo-
|
|
411
|
+
"name": "eo-form",
|
|
497
412
|
"alias": [
|
|
498
|
-
"form.
|
|
413
|
+
"form.general-form"
|
|
499
414
|
],
|
|
500
415
|
"properties": [
|
|
501
416
|
{
|
|
502
|
-
"name": "
|
|
503
|
-
"
|
|
504
|
-
"
|
|
505
|
-
"type": "string"
|
|
417
|
+
"name": "staticValues",
|
|
418
|
+
"attribute": false,
|
|
419
|
+
"type": "Record<string, unknown>"
|
|
506
420
|
},
|
|
507
421
|
{
|
|
508
|
-
"name": "
|
|
509
|
-
"description": "
|
|
510
|
-
"
|
|
422
|
+
"name": "layout",
|
|
423
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
424
|
+
"default": "vertical",
|
|
425
|
+
"type": "Layout"
|
|
511
426
|
},
|
|
512
427
|
{
|
|
513
|
-
"name": "
|
|
514
|
-
"description": "
|
|
515
|
-
"type": "
|
|
428
|
+
"name": "size",
|
|
429
|
+
"description": "表单组件尺寸",
|
|
430
|
+
"type": "ComponentSize"
|
|
516
431
|
},
|
|
517
432
|
{
|
|
518
|
-
"name": "
|
|
519
|
-
"description": "
|
|
520
|
-
"
|
|
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 }",
|
|
436
|
+
"attribute": false,
|
|
437
|
+
"type": "ColProps"
|
|
521
438
|
},
|
|
522
439
|
{
|
|
523
|
-
"name": "
|
|
524
|
-
"description": "
|
|
525
|
-
"
|
|
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"
|
|
526
445
|
},
|
|
527
446
|
{
|
|
528
|
-
"name": "
|
|
529
|
-
"
|
|
530
|
-
"type": "
|
|
447
|
+
"name": "formStyle",
|
|
448
|
+
"attribute": false,
|
|
449
|
+
"type": "React.CSSProperties"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "textContent",
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "文本内容"
|
|
531
455
|
}
|
|
532
456
|
],
|
|
533
457
|
"events": [
|
|
534
458
|
{
|
|
535
|
-
"name": "
|
|
536
|
-
"description": "
|
|
459
|
+
"name": "values.change",
|
|
460
|
+
"description": "表单值变更事件",
|
|
537
461
|
"detail": {
|
|
538
|
-
"
|
|
462
|
+
"description": null,
|
|
463
|
+
"type": "Record<string, unknown>"
|
|
539
464
|
}
|
|
540
465
|
},
|
|
541
466
|
{
|
|
542
|
-
"name": "
|
|
543
|
-
"description": "
|
|
467
|
+
"name": "validate.success",
|
|
468
|
+
"description": "表单验证成功时触发事件",
|
|
544
469
|
"detail": {
|
|
545
|
-
"type": "
|
|
470
|
+
"type": "Record<string, unknown>"
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
{
|
|
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>"
|
|
546
494
|
}
|
|
495
|
+
},
|
|
496
|
+
{
|
|
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": {}
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "resetFields",
|
|
513
|
+
"params": [
|
|
514
|
+
{
|
|
515
|
+
"name": "name",
|
|
516
|
+
"type": "string"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"description": "表单重置值方法",
|
|
520
|
+
"returns": {}
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "getFieldsValue",
|
|
524
|
+
"params": [
|
|
525
|
+
{
|
|
526
|
+
"name": "name",
|
|
527
|
+
"type": "string"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"description": "获取表单值方法",
|
|
531
|
+
"returns": {}
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "validateField",
|
|
535
|
+
"params": [
|
|
536
|
+
{
|
|
537
|
+
"name": "name",
|
|
538
|
+
"type": "string"
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"description": "校验表单字段方法",
|
|
542
|
+
"returns": {}
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "resetValidateState",
|
|
546
|
+
"params": [],
|
|
547
|
+
"description": "重置表单校验状态方法",
|
|
548
|
+
"returns": {}
|
|
547
549
|
}
|
|
548
550
|
],
|
|
549
|
-
"slots": [],
|
|
550
|
-
"methods": [],
|
|
551
551
|
"parts": [],
|
|
552
|
-
"description": "
|
|
552
|
+
"description": "表单构件",
|
|
553
553
|
"category": "form-input-basic"
|
|
554
554
|
},
|
|
555
555
|
{
|
|
@@ -995,6 +995,129 @@
|
|
|
995
995
|
"description": "开关",
|
|
996
996
|
"category": "form-input-basic"
|
|
997
997
|
},
|
|
998
|
+
{
|
|
999
|
+
"name": "eo-upload-file",
|
|
1000
|
+
"properties": [
|
|
1001
|
+
{
|
|
1002
|
+
"name": "label",
|
|
1003
|
+
"description": "字段说明",
|
|
1004
|
+
"type": "string"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "name",
|
|
1008
|
+
"description": "字段名称",
|
|
1009
|
+
"type": "string"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "required",
|
|
1013
|
+
"description": "是否必填",
|
|
1014
|
+
"type": "boolean"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"name": "message",
|
|
1018
|
+
"description": "校验文本信息",
|
|
1019
|
+
"attribute": false,
|
|
1020
|
+
"type": "Record<string, string>"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"name": "value",
|
|
1024
|
+
"description": "值",
|
|
1025
|
+
"attribute": false,
|
|
1026
|
+
"type": "FileData[]"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"name": "multiple",
|
|
1030
|
+
"description": "是否支持多选",
|
|
1031
|
+
"type": "boolean"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"name": "accept",
|
|
1035
|
+
"description": "接受上传的文件类型,多个之间用 `,` 连接",
|
|
1036
|
+
"type": "string"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"name": "maxCount",
|
|
1040
|
+
"description": "最大上传数量",
|
|
1041
|
+
"type": "number"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "limitSize",
|
|
1045
|
+
"description": "上传大小限制(单位为 MB)",
|
|
1046
|
+
"type": "number"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"name": "buttonText",
|
|
1050
|
+
"description": "上传按钮文本",
|
|
1051
|
+
"default": "上传",
|
|
1052
|
+
"type": "string"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "buttonType",
|
|
1056
|
+
"description": "上传按钮类型",
|
|
1057
|
+
"type": "ButtonProps[\"type\"]"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"name": "buttonIcon",
|
|
1061
|
+
"description": "上传按钮类型",
|
|
1062
|
+
"default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
|
|
1063
|
+
"attribute": false,
|
|
1064
|
+
"type": "GeneralIconProps"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "overMaxCountMode",
|
|
1068
|
+
"description": "超出最大上传数量时文件的保留方式",
|
|
1069
|
+
"default": "\"replace\"",
|
|
1070
|
+
"type": "\"ignore\" | \"replace\""
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "uploadDraggable",
|
|
1074
|
+
"description": "是否可以拖拽上传",
|
|
1075
|
+
"type": "boolean"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "draggableUploadTip",
|
|
1079
|
+
"description": "拖拽上传的提示信息",
|
|
1080
|
+
"type": "string"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "autoUpload",
|
|
1084
|
+
"description": "是否自动上传",
|
|
1085
|
+
"default": "false",
|
|
1086
|
+
"type": "boolean"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"name": "url",
|
|
1090
|
+
"description": "自动上传的地址",
|
|
1091
|
+
"type": "string"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"name": "method",
|
|
1095
|
+
"description": "自动上传的方法",
|
|
1096
|
+
"default": "\"POST\"",
|
|
1097
|
+
"type": "string"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"name": "uploadName",
|
|
1101
|
+
"description": "自动上传的文件参数名",
|
|
1102
|
+
"default": "\"file\"",
|
|
1103
|
+
"type": "string"
|
|
1104
|
+
}
|
|
1105
|
+
],
|
|
1106
|
+
"events": [
|
|
1107
|
+
{
|
|
1108
|
+
"name": "change",
|
|
1109
|
+
"description": "值变化时触发",
|
|
1110
|
+
"detail": {
|
|
1111
|
+
"type": "FileData[]"
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
"slots": [],
|
|
1116
|
+
"methods": [],
|
|
1117
|
+
"parts": [],
|
|
1118
|
+
"description": "上传文件",
|
|
1119
|
+
"category": "form-input-basic"
|
|
1120
|
+
},
|
|
998
1121
|
{
|
|
999
1122
|
"name": "eo-auto-complete",
|
|
1000
1123
|
"properties": [
|
|
@@ -1153,129 +1276,6 @@
|
|
|
1153
1276
|
"description": "时间选择器",
|
|
1154
1277
|
"category": "form-input-basic"
|
|
1155
1278
|
},
|
|
1156
|
-
{
|
|
1157
|
-
"name": "eo-upload-file",
|
|
1158
|
-
"properties": [
|
|
1159
|
-
{
|
|
1160
|
-
"name": "label",
|
|
1161
|
-
"description": "字段说明",
|
|
1162
|
-
"type": "string"
|
|
1163
|
-
},
|
|
1164
|
-
{
|
|
1165
|
-
"name": "name",
|
|
1166
|
-
"description": "字段名称",
|
|
1167
|
-
"type": "string"
|
|
1168
|
-
},
|
|
1169
|
-
{
|
|
1170
|
-
"name": "required",
|
|
1171
|
-
"description": "是否必填",
|
|
1172
|
-
"type": "boolean"
|
|
1173
|
-
},
|
|
1174
|
-
{
|
|
1175
|
-
"name": "message",
|
|
1176
|
-
"description": "校验文本信息",
|
|
1177
|
-
"attribute": false,
|
|
1178
|
-
"type": "Record<string, string>"
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
"name": "value",
|
|
1182
|
-
"description": "值",
|
|
1183
|
-
"attribute": false,
|
|
1184
|
-
"type": "FileData[]"
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
"name": "multiple",
|
|
1188
|
-
"description": "是否支持多选",
|
|
1189
|
-
"type": "boolean"
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
"name": "accept",
|
|
1193
|
-
"description": "接受上传的文件类型,多个之间用 `,` 连接",
|
|
1194
|
-
"type": "string"
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
"name": "maxCount",
|
|
1198
|
-
"description": "最大上传数量",
|
|
1199
|
-
"type": "number"
|
|
1200
|
-
},
|
|
1201
|
-
{
|
|
1202
|
-
"name": "limitSize",
|
|
1203
|
-
"description": "上传大小限制(单位为 MB)",
|
|
1204
|
-
"type": "number"
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
"name": "buttonText",
|
|
1208
|
-
"description": "上传按钮文本",
|
|
1209
|
-
"default": "上传",
|
|
1210
|
-
"type": "string"
|
|
1211
|
-
},
|
|
1212
|
-
{
|
|
1213
|
-
"name": "buttonType",
|
|
1214
|
-
"description": "上传按钮类型",
|
|
1215
|
-
"type": "ButtonProps[\"type\"]"
|
|
1216
|
-
},
|
|
1217
|
-
{
|
|
1218
|
-
"name": "buttonIcon",
|
|
1219
|
-
"description": "上传按钮类型",
|
|
1220
|
-
"default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
|
|
1221
|
-
"attribute": false,
|
|
1222
|
-
"type": "GeneralIconProps"
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
"name": "overMaxCountMode",
|
|
1226
|
-
"description": "超出最大上传数量时文件的保留方式",
|
|
1227
|
-
"default": "\"replace\"",
|
|
1228
|
-
"type": "\"ignore\" | \"replace\""
|
|
1229
|
-
},
|
|
1230
|
-
{
|
|
1231
|
-
"name": "uploadDraggable",
|
|
1232
|
-
"description": "是否可以拖拽上传",
|
|
1233
|
-
"type": "boolean"
|
|
1234
|
-
},
|
|
1235
|
-
{
|
|
1236
|
-
"name": "draggableUploadTip",
|
|
1237
|
-
"description": "拖拽上传的提示信息",
|
|
1238
|
-
"type": "string"
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
"name": "autoUpload",
|
|
1242
|
-
"description": "是否自动上传",
|
|
1243
|
-
"default": "false",
|
|
1244
|
-
"type": "boolean"
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
"name": "url",
|
|
1248
|
-
"description": "自动上传的地址",
|
|
1249
|
-
"type": "string"
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
"name": "method",
|
|
1253
|
-
"description": "自动上传的方法",
|
|
1254
|
-
"default": "\"POST\"",
|
|
1255
|
-
"type": "string"
|
|
1256
|
-
},
|
|
1257
|
-
{
|
|
1258
|
-
"name": "uploadName",
|
|
1259
|
-
"description": "自动上传的文件参数名",
|
|
1260
|
-
"default": "\"file\"",
|
|
1261
|
-
"type": "string"
|
|
1262
|
-
}
|
|
1263
|
-
],
|
|
1264
|
-
"events": [
|
|
1265
|
-
{
|
|
1266
|
-
"name": "change",
|
|
1267
|
-
"description": "值变化时触发",
|
|
1268
|
-
"detail": {
|
|
1269
|
-
"type": "FileData[]"
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
],
|
|
1273
|
-
"slots": [],
|
|
1274
|
-
"methods": [],
|
|
1275
|
-
"parts": [],
|
|
1276
|
-
"description": "上传文件",
|
|
1277
|
-
"category": "form-input-basic"
|
|
1278
|
-
},
|
|
1279
1279
|
{
|
|
1280
1280
|
"name": "eo-date-picker",
|
|
1281
1281
|
"properties": [
|