@next-bricks/form 1.15.0 → 1.15.2
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 +13 -13
- package/dist/chunks/{4837.ee78a559.js → 4837.99ba6b49.js} +2 -2
- package/dist/chunks/{4837.ee78a559.js.map → 4837.99ba6b49.js.map} +1 -1
- package/dist/chunks/5582.a2d37704.js +3 -0
- package/dist/chunks/5582.a2d37704.js.map +1 -0
- package/dist/chunks/{7218.8a34ac8c.js → 7218.abb44809.js} +2 -2
- package/dist/chunks/{7218.8a34ac8c.js.map → 7218.abb44809.js.map} +1 -1
- package/dist/chunks/7623.3cfd20ae.js +3 -0
- package/dist/chunks/7623.3cfd20ae.js.map +1 -0
- package/dist/chunks/{eo-color-picker.bf777bdd.js → eo-color-picker.894384c2.js} +2 -2
- package/dist/chunks/{eo-color-picker.bf777bdd.js.map → eo-color-picker.894384c2.js.map} +1 -1
- package/dist/chunks/{eo-date-picker.5fd6b30b.js → eo-date-picker.b0e2f71f.js} +2 -2
- package/dist/chunks/{eo-date-picker.5fd6b30b.js.map → eo-date-picker.b0e2f71f.js.map} +1 -1
- package/dist/chunks/{eo-dynamic-form-item.97ca5f2f.js → eo-dynamic-form-item.27eaab38.js} +3 -3
- package/dist/chunks/{eo-dynamic-form-item.97ca5f2f.js.map → eo-dynamic-form-item.27eaab38.js.map} +1 -1
- package/dist/chunks/{eo-form-item.786f3204.js → eo-form-item.e19d56f2.js} +3 -3
- package/dist/chunks/{eo-form-item.786f3204.js.map → eo-form-item.e19d56f2.js.map} +1 -1
- package/dist/chunks/{eo-radio.b560225d.js → eo-radio.df600962.js} +3 -3
- package/dist/chunks/{eo-radio.b560225d.js.map → eo-radio.df600962.js.map} +1 -1
- package/dist/chunks/eo-select.a77cd87a.js +3 -0
- package/dist/chunks/eo-select.a77cd87a.js.map +1 -0
- package/dist/chunks/{eo-time-picker.6972ed66.js → eo-time-picker.ca5206bb.js} +2 -2
- package/dist/chunks/{eo-time-picker.6972ed66.js.map → eo-time-picker.ca5206bb.js.map} +1 -1
- package/dist/chunks/{eo-time-range-picker.78522a35.js → eo-time-range-picker.cb070817.js} +2 -2
- package/dist/chunks/{eo-time-range-picker.78522a35.js.map → eo-time-range-picker.cb070817.js.map} +1 -1
- package/dist/chunks/{eo-upload-file.ffa88448.js → eo-upload-file.e1e302b9.js} +3 -3
- package/dist/chunks/{eo-upload-file.ffa88448.js.map → eo-upload-file.e1e302b9.js.map} +1 -1
- package/dist/chunks/{eo-upload-image.6c530fa8.js → eo-upload-image.dc763654.js} +3 -3
- package/dist/chunks/{eo-upload-image.6c530fa8.js.map → eo-upload-image.dc763654.js.map} +1 -1
- package/dist/chunks/{main.5b5ef9cf.js → main.aa417aca.js} +2 -2
- package/dist/chunks/{main.5b5ef9cf.js.map → main.aa417aca.js.map} +1 -1
- package/dist/examples.json +6 -6
- package/dist/{index.b28ead9a.js → index.507ab014.js} +2 -2
- package/dist/{index.b28ead9a.js.map → index.507ab014.js.map} +1 -1
- package/dist/manifest.json +336 -336
- package/dist/types.json +1305 -1305
- package/package.json +2 -2
- package/dist/chunks/4411.4c063ae9.js +0 -3
- package/dist/chunks/4411.4c063ae9.js.map +0 -1
- package/dist/chunks/7623.1f56399f.js +0 -3
- package/dist/chunks/7623.1f56399f.js.map +0 -1
- package/dist/chunks/eo-select.2b3fd2f2.js +0 -3
- package/dist/chunks/eo-select.2b3fd2f2.js.map +0 -1
- /package/dist/chunks/{4411.4c063ae9.js.LICENSE.txt → 5582.a2d37704.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7623.1f56399f.js.LICENSE.txt → 7623.3cfd20ae.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.97ca5f2f.js.LICENSE.txt → eo-dynamic-form-item.27eaab38.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.786f3204.js.LICENSE.txt → eo-form-item.e19d56f2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.b560225d.js.LICENSE.txt → eo-radio.df600962.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.2b3fd2f2.js.LICENSE.txt → eo-select.a77cd87a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.ffa88448.js.LICENSE.txt → eo-upload-file.e1e302b9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.6c530fa8.js.LICENSE.txt → eo-upload-image.dc763654.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -189,109 +189,264 @@
|
|
|
189
189
|
"category": "form-input-basic"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"name": "eo-
|
|
192
|
+
"name": "eo-textarea",
|
|
193
193
|
"alias": [
|
|
194
|
-
"form.general-
|
|
194
|
+
"form.general-textarea"
|
|
195
195
|
],
|
|
196
196
|
"properties": [
|
|
197
197
|
{
|
|
198
198
|
"name": "name",
|
|
199
|
-
"description": "
|
|
199
|
+
"description": "字段名称",
|
|
200
200
|
"type": "string"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "label",
|
|
204
|
-
"description": "
|
|
204
|
+
"description": "标签文字",
|
|
205
205
|
"type": "string"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"name": "
|
|
209
|
-
"description": "
|
|
210
|
-
"
|
|
211
|
-
"attribute": false,
|
|
212
|
-
"type": "GeneralOption[]"
|
|
208
|
+
"name": "value",
|
|
209
|
+
"description": "值",
|
|
210
|
+
"type": "string"
|
|
213
211
|
},
|
|
214
212
|
{
|
|
215
|
-
"name": "
|
|
216
|
-
"description": "
|
|
213
|
+
"name": "placeholder",
|
|
214
|
+
"description": "占位说明",
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "disabled",
|
|
219
|
+
"description": "是否禁用",
|
|
220
|
+
"type": "boolean"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "minLength",
|
|
224
|
+
"description": "最小长度",
|
|
225
|
+
"type": "number"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "maxLength",
|
|
229
|
+
"description": "最大长度",
|
|
230
|
+
"type": "number"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "autoSize",
|
|
234
|
+
"description": "大小自适应",
|
|
217
235
|
"attribute": false,
|
|
218
|
-
"type": "
|
|
236
|
+
"type": "AutoSize"
|
|
219
237
|
},
|
|
220
238
|
{
|
|
221
239
|
"name": "required",
|
|
222
240
|
"description": "是否必填",
|
|
223
241
|
"type": "boolean"
|
|
224
242
|
},
|
|
243
|
+
{
|
|
244
|
+
"name": "max",
|
|
245
|
+
"description": "表单校验最大长度",
|
|
246
|
+
"type": "number"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "min",
|
|
250
|
+
"description": "表单校验最小长度",
|
|
251
|
+
"type": "number"
|
|
252
|
+
},
|
|
225
253
|
{
|
|
226
254
|
"name": "message",
|
|
227
|
-
"description": "
|
|
255
|
+
"description": "校验信息",
|
|
228
256
|
"attribute": false,
|
|
229
257
|
"type": "Record<string, string>"
|
|
230
258
|
},
|
|
231
259
|
{
|
|
232
|
-
"name": "
|
|
233
|
-
"description": "
|
|
234
|
-
"
|
|
235
|
-
|
|
260
|
+
"name": "textareaStyle",
|
|
261
|
+
"description": "自定义样式",
|
|
262
|
+
"attribute": false,
|
|
263
|
+
"type": "React.CSSProperties"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"events": [
|
|
236
267
|
{
|
|
237
|
-
"name": "
|
|
238
|
-
"description": "
|
|
239
|
-
"
|
|
240
|
-
|
|
268
|
+
"name": "change",
|
|
269
|
+
"description": "",
|
|
270
|
+
"detail": {
|
|
271
|
+
"description": null,
|
|
272
|
+
"type": "string"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"slots": [],
|
|
277
|
+
"methods": [
|
|
278
|
+
{
|
|
279
|
+
"name": "focusTextarea",
|
|
280
|
+
"params": [],
|
|
281
|
+
"description": "focus",
|
|
282
|
+
"returns": {}
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"parts": [],
|
|
286
|
+
"description": "通用多行文本输入框构件",
|
|
287
|
+
"category": "form-input-basic"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "eo-form",
|
|
291
|
+
"alias": [
|
|
292
|
+
"form.general-form"
|
|
293
|
+
],
|
|
294
|
+
"properties": [
|
|
295
|
+
{
|
|
296
|
+
"name": "staticValues",
|
|
297
|
+
"attribute": false,
|
|
298
|
+
"type": "Record<string, unknown>"
|
|
241
299
|
},
|
|
242
300
|
{
|
|
243
|
-
"name": "
|
|
244
|
-
"description": "
|
|
245
|
-
"default": "
|
|
246
|
-
"type": "
|
|
301
|
+
"name": "layout",
|
|
302
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
303
|
+
"default": "vertical",
|
|
304
|
+
"type": "Layout"
|
|
247
305
|
},
|
|
248
306
|
{
|
|
249
307
|
"name": "size",
|
|
250
|
-
"description": "
|
|
251
|
-
"default": "\"medium\"",
|
|
308
|
+
"description": "表单组件尺寸",
|
|
252
309
|
"type": "ComponentSize"
|
|
253
310
|
},
|
|
254
311
|
{
|
|
255
|
-
"name": "
|
|
256
|
-
"description": "
|
|
312
|
+
"name": "labelCol",
|
|
313
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
314
|
+
"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 }",
|
|
257
315
|
"attribute": false,
|
|
258
|
-
"type": "
|
|
316
|
+
"type": "ColProps"
|
|
259
317
|
},
|
|
260
318
|
{
|
|
261
|
-
"name": "
|
|
262
|
-
"description": "
|
|
319
|
+
"name": "wrapperCol",
|
|
320
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
321
|
+
"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 }",
|
|
263
322
|
"attribute": false,
|
|
264
|
-
"type": "
|
|
323
|
+
"type": "ColProps"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "formStyle",
|
|
327
|
+
"attribute": false,
|
|
328
|
+
"type": "React.CSSProperties"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "textContent",
|
|
332
|
+
"type": "string",
|
|
333
|
+
"description": "文本内容"
|
|
265
334
|
}
|
|
266
335
|
],
|
|
267
336
|
"events": [
|
|
268
337
|
{
|
|
269
|
-
"name": "change",
|
|
270
|
-
"description": "
|
|
338
|
+
"name": "values.change",
|
|
339
|
+
"description": "表单值变更事件",
|
|
271
340
|
"detail": {
|
|
272
|
-
"
|
|
341
|
+
"description": null,
|
|
342
|
+
"type": "Record<string, unknown>"
|
|
273
343
|
}
|
|
274
344
|
},
|
|
275
345
|
{
|
|
276
|
-
"name": "
|
|
277
|
-
"description": "
|
|
346
|
+
"name": "validate.success",
|
|
347
|
+
"description": "表单验证成功时触发事件",
|
|
278
348
|
"detail": {
|
|
279
|
-
"type": "
|
|
349
|
+
"type": "Record<string, unknown>"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "validate.error",
|
|
354
|
+
"description": "表单验证报错时触发事件",
|
|
355
|
+
"detail": {
|
|
356
|
+
"type": "(MessageBody & { name: string })[]"
|
|
280
357
|
}
|
|
281
358
|
}
|
|
282
359
|
],
|
|
283
|
-
"slots": [
|
|
284
|
-
|
|
360
|
+
"slots": [
|
|
361
|
+
{
|
|
362
|
+
"name": null,
|
|
363
|
+
"description": "表单内容"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"methods": [
|
|
367
|
+
{
|
|
368
|
+
"name": "validate",
|
|
369
|
+
"params": [],
|
|
370
|
+
"description": "表单校验方法",
|
|
371
|
+
"returns": {
|
|
372
|
+
"type": "boolean | Record<string, unknown>"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "setInitValue",
|
|
377
|
+
"params": [
|
|
378
|
+
{
|
|
379
|
+
"name": "values",
|
|
380
|
+
"type": "Record<string, unknown>"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "options",
|
|
384
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"description": "表单设置值方法",
|
|
388
|
+
"returns": {}
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"name": "resetFields",
|
|
392
|
+
"params": [
|
|
393
|
+
{
|
|
394
|
+
"name": "name",
|
|
395
|
+
"type": "string"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"description": "表单重置值方法",
|
|
399
|
+
"returns": {}
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "getFieldsValue",
|
|
403
|
+
"params": [
|
|
404
|
+
{
|
|
405
|
+
"name": "name",
|
|
406
|
+
"type": "string"
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"description": "获取表单值方法",
|
|
410
|
+
"returns": {}
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "validateField",
|
|
414
|
+
"params": [
|
|
415
|
+
{
|
|
416
|
+
"name": "name",
|
|
417
|
+
"type": "string"
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
"description": "校验表单字段方法",
|
|
421
|
+
"returns": {}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "resetValidateState",
|
|
425
|
+
"params": [],
|
|
426
|
+
"description": "重置表单校验状态方法",
|
|
427
|
+
"returns": {}
|
|
428
|
+
}
|
|
429
|
+
],
|
|
285
430
|
"parts": [],
|
|
286
|
-
"description": "
|
|
431
|
+
"description": "表单构件",
|
|
287
432
|
"category": "form-input-basic"
|
|
288
433
|
},
|
|
289
434
|
{
|
|
290
|
-
"name": "eo-
|
|
435
|
+
"name": "eo-form-item",
|
|
291
436
|
"alias": [
|
|
292
|
-
"form.general-
|
|
437
|
+
"form.general-form-item"
|
|
293
438
|
],
|
|
294
439
|
"properties": [
|
|
440
|
+
{
|
|
441
|
+
"name": "formElement",
|
|
442
|
+
"attribute": false,
|
|
443
|
+
"type": "Form"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "curElement",
|
|
447
|
+
"attribute": false,
|
|
448
|
+
"type": "HTMLElement"
|
|
449
|
+
},
|
|
295
450
|
{
|
|
296
451
|
"name": "name",
|
|
297
452
|
"description": "字段名称",
|
|
@@ -299,89 +454,187 @@
|
|
|
299
454
|
},
|
|
300
455
|
{
|
|
301
456
|
"name": "label",
|
|
302
|
-
"description": "标签文字",
|
|
303
457
|
"type": "string"
|
|
304
458
|
},
|
|
305
459
|
{
|
|
306
|
-
"name": "
|
|
307
|
-
"description": "值",
|
|
460
|
+
"name": "pattern",
|
|
308
461
|
"type": "string"
|
|
309
462
|
},
|
|
310
463
|
{
|
|
311
|
-
"name": "
|
|
312
|
-
"
|
|
313
|
-
"type": "string"
|
|
464
|
+
"name": "message",
|
|
465
|
+
"attribute": false,
|
|
466
|
+
"type": "Record<string, string>"
|
|
314
467
|
},
|
|
315
468
|
{
|
|
316
|
-
"name": "
|
|
317
|
-
"
|
|
318
|
-
"type": "boolean"
|
|
469
|
+
"name": "type",
|
|
470
|
+
"type": "string"
|
|
319
471
|
},
|
|
320
472
|
{
|
|
321
|
-
"name": "
|
|
322
|
-
"description": "最小长度",
|
|
473
|
+
"name": "max",
|
|
323
474
|
"type": "number"
|
|
324
475
|
},
|
|
325
476
|
{
|
|
326
|
-
"name": "
|
|
327
|
-
"description": "最大长度",
|
|
477
|
+
"name": "min",
|
|
328
478
|
"type": "number"
|
|
329
479
|
},
|
|
330
480
|
{
|
|
331
|
-
"name": "
|
|
332
|
-
"description": "
|
|
481
|
+
"name": "required",
|
|
482
|
+
"description": "表单项是否为必填",
|
|
483
|
+
"type": "boolean"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "value",
|
|
487
|
+
"description": "初始值",
|
|
488
|
+
"type": "string"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "valuePropsName",
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "layout",
|
|
496
|
+
"type": "Layout"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"name": "size",
|
|
500
|
+
"type": "ComponentSize"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "trim",
|
|
504
|
+
"description": "是否自动去除前后的空白字符",
|
|
505
|
+
"default": "true"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "trigger",
|
|
509
|
+
"description": "事件触发方法名",
|
|
510
|
+
"type": "string"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "validator",
|
|
514
|
+
"description": "表单项校验方法",
|
|
333
515
|
"attribute": false,
|
|
334
|
-
"type": "
|
|
516
|
+
"type": "((value: any) => MessageBody)"
|
|
335
517
|
},
|
|
336
518
|
{
|
|
337
|
-
"name": "
|
|
338
|
-
"description": "
|
|
519
|
+
"name": "needValidate",
|
|
520
|
+
"description": "值变化时是否主动出发校验",
|
|
339
521
|
"type": "boolean"
|
|
340
522
|
},
|
|
341
523
|
{
|
|
342
|
-
"name": "
|
|
343
|
-
"
|
|
344
|
-
"
|
|
524
|
+
"name": "textContent",
|
|
525
|
+
"type": "string",
|
|
526
|
+
"description": "文本内容"
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
"events": [],
|
|
530
|
+
"slots": [
|
|
531
|
+
{
|
|
532
|
+
"name": null,
|
|
533
|
+
"description": "表单项内容"
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
"methods": [],
|
|
537
|
+
"parts": [],
|
|
538
|
+
"description": "通用输入框构件",
|
|
539
|
+
"category": "form-input-basic",
|
|
540
|
+
"insider": true
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"name": "eo-radio",
|
|
544
|
+
"alias": [
|
|
545
|
+
"form.general-radio"
|
|
546
|
+
],
|
|
547
|
+
"properties": [
|
|
548
|
+
{
|
|
549
|
+
"name": "name",
|
|
550
|
+
"description": "下拉框字段名",
|
|
551
|
+
"type": "string"
|
|
345
552
|
},
|
|
346
553
|
{
|
|
347
|
-
"name": "
|
|
348
|
-
"description": "
|
|
349
|
-
"type": "
|
|
554
|
+
"name": "label",
|
|
555
|
+
"description": "单选框字段说明",
|
|
556
|
+
"type": "string"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "options",
|
|
560
|
+
"description": "单选框选项表",
|
|
561
|
+
"required": true,
|
|
562
|
+
"attribute": false,
|
|
563
|
+
"type": "GeneralOption[]"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"name": "value",
|
|
567
|
+
"description": "单选框当前选中始值",
|
|
568
|
+
"attribute": false,
|
|
569
|
+
"type": "any"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "required",
|
|
573
|
+
"description": "是否必填",
|
|
574
|
+
"type": "boolean"
|
|
350
575
|
},
|
|
351
576
|
{
|
|
352
577
|
"name": "message",
|
|
353
|
-
"description": "
|
|
578
|
+
"description": "校验文本信息",
|
|
354
579
|
"attribute": false,
|
|
355
580
|
"type": "Record<string, string>"
|
|
356
581
|
},
|
|
357
582
|
{
|
|
358
|
-
"name": "
|
|
359
|
-
"description": "
|
|
583
|
+
"name": "disabled",
|
|
584
|
+
"description": "是否禁用",
|
|
585
|
+
"type": "boolean"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "type",
|
|
589
|
+
"description": "单选框样式类型",
|
|
590
|
+
"default": "\"default\"",
|
|
591
|
+
"type": "RadioType"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "ui",
|
|
595
|
+
"description": "UI样式",
|
|
596
|
+
"default": "\"default\"",
|
|
597
|
+
"type": "UIType"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "size",
|
|
601
|
+
"description": "大小,只对按钮样式生效",
|
|
602
|
+
"default": "\"medium\"",
|
|
603
|
+
"type": "ComponentSize"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "customStyle",
|
|
607
|
+
"description": "自定义radio的外层样式",
|
|
360
608
|
"attribute": false,
|
|
361
609
|
"type": "React.CSSProperties"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"name": "useBrick",
|
|
613
|
+
"description": "自定义radio的内容",
|
|
614
|
+
"attribute": false,
|
|
615
|
+
"type": "UseSingleBrickConf"
|
|
362
616
|
}
|
|
363
617
|
],
|
|
364
618
|
"events": [
|
|
365
619
|
{
|
|
366
620
|
"name": "change",
|
|
367
|
-
"description": "",
|
|
621
|
+
"description": "值变化事件",
|
|
368
622
|
"detail": {
|
|
369
|
-
"
|
|
370
|
-
"type": "string"
|
|
623
|
+
"type": "GeneralComplexOption | undefined"
|
|
371
624
|
}
|
|
372
|
-
}
|
|
373
|
-
],
|
|
374
|
-
"slots": [],
|
|
375
|
-
"methods": [
|
|
625
|
+
},
|
|
376
626
|
{
|
|
377
|
-
"name": "
|
|
378
|
-
"
|
|
379
|
-
"
|
|
380
|
-
|
|
627
|
+
"name": "options.change",
|
|
628
|
+
"description": "选项列表变化事件",
|
|
629
|
+
"detail": {
|
|
630
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
631
|
+
}
|
|
381
632
|
}
|
|
382
633
|
],
|
|
634
|
+
"slots": [],
|
|
635
|
+
"methods": [],
|
|
383
636
|
"parts": [],
|
|
384
|
-
"description": "
|
|
637
|
+
"description": "通用单选构件",
|
|
385
638
|
"category": "form-input-basic"
|
|
386
639
|
},
|
|
387
640
|
{
|
|
@@ -592,151 +845,6 @@
|
|
|
592
845
|
"description": "表单提交按钮",
|
|
593
846
|
"category": "form-input-basic"
|
|
594
847
|
},
|
|
595
|
-
{
|
|
596
|
-
"name": "eo-form",
|
|
597
|
-
"alias": [
|
|
598
|
-
"form.general-form"
|
|
599
|
-
],
|
|
600
|
-
"properties": [
|
|
601
|
-
{
|
|
602
|
-
"name": "staticValues",
|
|
603
|
-
"attribute": false,
|
|
604
|
-
"type": "Record<string, unknown>"
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
"name": "layout",
|
|
608
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
609
|
-
"default": "vertical",
|
|
610
|
-
"type": "Layout"
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
"name": "size",
|
|
614
|
-
"description": "表单组件尺寸",
|
|
615
|
-
"type": "ComponentSize"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"name": "labelCol",
|
|
619
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
620
|
-
"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 }",
|
|
621
|
-
"attribute": false,
|
|
622
|
-
"type": "ColProps"
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
"name": "wrapperCol",
|
|
626
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
627
|
-
"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 }",
|
|
628
|
-
"attribute": false,
|
|
629
|
-
"type": "ColProps"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
"name": "formStyle",
|
|
633
|
-
"attribute": false,
|
|
634
|
-
"type": "React.CSSProperties"
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
"name": "textContent",
|
|
638
|
-
"type": "string",
|
|
639
|
-
"description": "文本内容"
|
|
640
|
-
}
|
|
641
|
-
],
|
|
642
|
-
"events": [
|
|
643
|
-
{
|
|
644
|
-
"name": "values.change",
|
|
645
|
-
"description": "表单值变更事件",
|
|
646
|
-
"detail": {
|
|
647
|
-
"description": null,
|
|
648
|
-
"type": "Record<string, unknown>"
|
|
649
|
-
}
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
"name": "validate.success",
|
|
653
|
-
"description": "表单验证成功时触发事件",
|
|
654
|
-
"detail": {
|
|
655
|
-
"type": "Record<string, unknown>"
|
|
656
|
-
}
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
"name": "validate.error",
|
|
660
|
-
"description": "表单验证报错时触发事件",
|
|
661
|
-
"detail": {
|
|
662
|
-
"type": "(MessageBody & { name: string })[]"
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
],
|
|
666
|
-
"slots": [
|
|
667
|
-
{
|
|
668
|
-
"name": null,
|
|
669
|
-
"description": "表单内容"
|
|
670
|
-
}
|
|
671
|
-
],
|
|
672
|
-
"methods": [
|
|
673
|
-
{
|
|
674
|
-
"name": "validate",
|
|
675
|
-
"params": [],
|
|
676
|
-
"description": "表单校验方法",
|
|
677
|
-
"returns": {
|
|
678
|
-
"type": "boolean | Record<string, unknown>"
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"name": "setInitValue",
|
|
683
|
-
"params": [
|
|
684
|
-
{
|
|
685
|
-
"name": "values",
|
|
686
|
-
"type": "Record<string, unknown>"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
"name": "options",
|
|
690
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
691
|
-
}
|
|
692
|
-
],
|
|
693
|
-
"description": "表单设置值方法",
|
|
694
|
-
"returns": {}
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
"name": "resetFields",
|
|
698
|
-
"params": [
|
|
699
|
-
{
|
|
700
|
-
"name": "name",
|
|
701
|
-
"type": "string"
|
|
702
|
-
}
|
|
703
|
-
],
|
|
704
|
-
"description": "表单重置值方法",
|
|
705
|
-
"returns": {}
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
"name": "getFieldsValue",
|
|
709
|
-
"params": [
|
|
710
|
-
{
|
|
711
|
-
"name": "name",
|
|
712
|
-
"type": "string"
|
|
713
|
-
}
|
|
714
|
-
],
|
|
715
|
-
"description": "获取表单值方法",
|
|
716
|
-
"returns": {}
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
"name": "validateField",
|
|
720
|
-
"params": [
|
|
721
|
-
{
|
|
722
|
-
"name": "name",
|
|
723
|
-
"type": "string"
|
|
724
|
-
}
|
|
725
|
-
],
|
|
726
|
-
"description": "校验表单字段方法",
|
|
727
|
-
"returns": {}
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
"name": "resetValidateState",
|
|
731
|
-
"params": [],
|
|
732
|
-
"description": "重置表单校验状态方法",
|
|
733
|
-
"returns": {}
|
|
734
|
-
}
|
|
735
|
-
],
|
|
736
|
-
"parts": [],
|
|
737
|
-
"description": "表单构件",
|
|
738
|
-
"category": "form-input-basic"
|
|
739
|
-
},
|
|
740
848
|
{
|
|
741
849
|
"name": "eo-checkbox",
|
|
742
850
|
"alias": [
|
|
@@ -1042,114 +1150,6 @@
|
|
|
1042
1150
|
"description": "图标选择构件",
|
|
1043
1151
|
"category": "form-input-basic"
|
|
1044
1152
|
},
|
|
1045
|
-
{
|
|
1046
|
-
"name": "eo-form-item",
|
|
1047
|
-
"alias": [
|
|
1048
|
-
"form.general-form-item"
|
|
1049
|
-
],
|
|
1050
|
-
"properties": [
|
|
1051
|
-
{
|
|
1052
|
-
"name": "formElement",
|
|
1053
|
-
"attribute": false,
|
|
1054
|
-
"type": "Form"
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
"name": "curElement",
|
|
1058
|
-
"attribute": false,
|
|
1059
|
-
"type": "HTMLElement"
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
"name": "name",
|
|
1063
|
-
"description": "字段名称",
|
|
1064
|
-
"type": "string"
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
"name": "label",
|
|
1068
|
-
"type": "string"
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
"name": "pattern",
|
|
1072
|
-
"type": "string"
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
"name": "message",
|
|
1076
|
-
"attribute": false,
|
|
1077
|
-
"type": "Record<string, string>"
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
"name": "type",
|
|
1081
|
-
"type": "string"
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
"name": "max",
|
|
1085
|
-
"type": "number"
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
"name": "min",
|
|
1089
|
-
"type": "number"
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
"name": "required",
|
|
1093
|
-
"description": "表单项是否为必填",
|
|
1094
|
-
"type": "boolean"
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
"name": "value",
|
|
1098
|
-
"description": "初始值",
|
|
1099
|
-
"type": "string"
|
|
1100
|
-
},
|
|
1101
|
-
{
|
|
1102
|
-
"name": "valuePropsName",
|
|
1103
|
-
"type": "string"
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
"name": "layout",
|
|
1107
|
-
"type": "Layout"
|
|
1108
|
-
},
|
|
1109
|
-
{
|
|
1110
|
-
"name": "size",
|
|
1111
|
-
"type": "ComponentSize"
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
"name": "trim",
|
|
1115
|
-
"description": "是否自动去除前后的空白字符",
|
|
1116
|
-
"default": "true"
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
"name": "trigger",
|
|
1120
|
-
"description": "事件触发方法名",
|
|
1121
|
-
"type": "string"
|
|
1122
|
-
},
|
|
1123
|
-
{
|
|
1124
|
-
"name": "validator",
|
|
1125
|
-
"description": "表单项校验方法",
|
|
1126
|
-
"attribute": false,
|
|
1127
|
-
"type": "((value: any) => MessageBody)"
|
|
1128
|
-
},
|
|
1129
|
-
{
|
|
1130
|
-
"name": "needValidate",
|
|
1131
|
-
"description": "值变化时是否主动出发校验",
|
|
1132
|
-
"type": "boolean"
|
|
1133
|
-
},
|
|
1134
|
-
{
|
|
1135
|
-
"name": "textContent",
|
|
1136
|
-
"type": "string",
|
|
1137
|
-
"description": "文本内容"
|
|
1138
|
-
}
|
|
1139
|
-
],
|
|
1140
|
-
"events": [],
|
|
1141
|
-
"slots": [
|
|
1142
|
-
{
|
|
1143
|
-
"name": null,
|
|
1144
|
-
"description": "表单项内容"
|
|
1145
|
-
}
|
|
1146
|
-
],
|
|
1147
|
-
"methods": [],
|
|
1148
|
-
"parts": [],
|
|
1149
|
-
"description": "通用输入框构件",
|
|
1150
|
-
"category": "form-input-basic",
|
|
1151
|
-
"insider": true
|
|
1152
|
-
},
|
|
1153
1153
|
{
|
|
1154
1154
|
"name": "eo-upload-image",
|
|
1155
1155
|
"alias": [
|