@next-bricks/form 1.9.12 → 1.9.14
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 +29 -29
- package/dist/chunks/1045.246ae518.js +2 -0
- package/dist/chunks/1045.246ae518.js.map +1 -0
- package/dist/chunks/{114.8692fae2.js → 114.61ba5b50.js} +2 -2
- package/dist/chunks/{114.8692fae2.js.map → 114.61ba5b50.js.map} +1 -1
- package/dist/chunks/{1269.3eb7df89.js → 1269.07721a52.js} +2 -2
- package/dist/chunks/{1269.3eb7df89.js.map → 1269.07721a52.js.map} +1 -1
- package/dist/chunks/{1889.df57ce6f.js → 1889.004f20a1.js} +2 -2
- package/dist/chunks/{1889.df57ce6f.js.map → 1889.004f20a1.js.map} +1 -1
- package/dist/chunks/3426.9055d899.js +2 -0
- package/dist/chunks/3426.9055d899.js.map +1 -0
- package/dist/chunks/{7115.a437ff2a.js → 7115.dcf0df96.js} +2 -2
- package/dist/chunks/{7115.a437ff2a.js.map → 7115.dcf0df96.js.map} +1 -1
- package/dist/chunks/{7733.49b773d6.js → 7733.a022f226.js} +2 -2
- package/dist/chunks/{7733.49b773d6.js.map → 7733.a022f226.js.map} +1 -1
- package/dist/chunks/{818.44f4a1f8.js → 818.0e60c75d.js} +3 -3
- package/dist/chunks/{818.44f4a1f8.js.map → 818.0e60c75d.js.map} +1 -1
- package/dist/chunks/9259.4238757c.js +3 -0
- package/dist/chunks/{9259.f789387c.js.map → 9259.4238757c.js.map} +1 -1
- package/dist/chunks/{9496.02c228ff.js → 9496.d3408683.js} +2 -2
- package/dist/chunks/{9496.02c228ff.js.map → 9496.d3408683.js.map} +1 -1
- package/dist/chunks/eo-auto-complete.6db6aca5.js +3 -0
- package/dist/chunks/{eo-auto-complete.5e6c61c8.js.map → eo-auto-complete.6db6aca5.js.map} +1 -1
- package/dist/chunks/eo-checkbox.6e4de7f0.js +2 -0
- package/dist/chunks/{eo-checkbox.af58e804.js.map → eo-checkbox.6e4de7f0.js.map} +1 -1
- package/dist/chunks/eo-color-picker.cdb362a7.js +2 -0
- package/dist/chunks/{eo-color-picker.5c3dce6b.js.map → eo-color-picker.cdb362a7.js.map} +1 -1
- package/dist/chunks/eo-date-picker.9361e87a.js +2 -0
- package/dist/chunks/{eo-date-picker.5e68a357.js.map → eo-date-picker.9361e87a.js.map} +1 -1
- package/dist/chunks/eo-dynamic-form-item.c2783b20.js +3 -0
- package/dist/chunks/{eo-dynamic-form-item.8d3281ed.js.map → eo-dynamic-form-item.c2783b20.js.map} +1 -1
- package/dist/chunks/{eo-form-item.8f6b3ad7.js → eo-form-item.d1189f7c.js} +3 -3
- package/dist/chunks/{eo-form-item.8f6b3ad7.js.map → eo-form-item.d1189f7c.js.map} +1 -1
- package/dist/chunks/eo-form.f1683fe8.js +2 -0
- package/dist/chunks/{eo-form.4ff09a23.js.map → eo-form.f1683fe8.js.map} +1 -1
- package/dist/chunks/eo-icon-select.ce687969.js +3 -0
- package/dist/chunks/{eo-icon-select.4d714910.js.map → eo-icon-select.ce687969.js.map} +1 -1
- package/dist/chunks/eo-input.6fb8e34e.js +3 -0
- package/dist/chunks/{eo-input.7a21a8bf.js.map → eo-input.6fb8e34e.js.map} +1 -1
- package/dist/chunks/eo-radio.9a162d3d.js +3 -0
- package/dist/chunks/{eo-radio.8cb630e8.js.map → eo-radio.9a162d3d.js.map} +1 -1
- package/dist/chunks/eo-search.12bbc094.js +2 -0
- package/dist/chunks/{eo-search.40491e27.js.map → eo-search.12bbc094.js.map} +1 -1
- package/dist/chunks/eo-select.d92bfd8f.js +3 -0
- package/dist/chunks/{eo-select.e02eae32.js.map → eo-select.d92bfd8f.js.map} +1 -1
- package/dist/chunks/eo-submit-buttons.30eaa10f.js +2 -0
- package/dist/chunks/{eo-submit-buttons.a14f9dcb.js.map → eo-submit-buttons.30eaa10f.js.map} +1 -1
- package/dist/chunks/eo-switch.5326b853.js +3 -0
- package/dist/chunks/{eo-switch.8818d6ac.js.map → eo-switch.5326b853.js.map} +1 -1
- package/dist/chunks/eo-textarea.70f5d4cf.js +3 -0
- package/dist/chunks/{eo-textarea.06fe9731.js.map → eo-textarea.70f5d4cf.js.map} +1 -1
- package/dist/chunks/eo-time-picker.846a5acc.js +2 -0
- package/dist/chunks/{eo-time-picker.46eeff9d.js.map → eo-time-picker.846a5acc.js.map} +1 -1
- package/dist/chunks/eo-time-range-picker.9062f507.js +2 -0
- package/dist/chunks/{eo-time-range-picker.e00968c4.js.map → eo-time-range-picker.9062f507.js.map} +1 -1
- package/dist/chunks/eo-upload-file.065dde0e.js +3 -0
- package/dist/chunks/{eo-upload-file.340b9a4c.js.map → eo-upload-file.065dde0e.js.map} +1 -1
- package/dist/chunks/eo-upload-image.ec21b2fc.js +3 -0
- package/dist/chunks/{eo-upload-image.be6506c5.js.map → eo-upload-image.ec21b2fc.js.map} +1 -1
- package/dist/chunks/main.7551926f.js +2 -0
- package/dist/chunks/{main.4ad0fd74.js.map → main.7551926f.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/index.1f780ab7.js +2 -0
- package/dist/index.1f780ab7.js.map +1 -0
- package/dist/manifest.json +312 -312
- package/dist/types.json +847 -847
- package/package.json +2 -2
- package/dist/chunks/1045.b1bc5ba1.js +0 -2
- package/dist/chunks/1045.b1bc5ba1.js.map +0 -1
- package/dist/chunks/3426.cf27e18e.js +0 -2
- package/dist/chunks/3426.cf27e18e.js.map +0 -1
- package/dist/chunks/9259.f789387c.js +0 -3
- package/dist/chunks/eo-auto-complete.5e6c61c8.js +0 -3
- package/dist/chunks/eo-checkbox.af58e804.js +0 -2
- package/dist/chunks/eo-color-picker.5c3dce6b.js +0 -2
- package/dist/chunks/eo-date-picker.5e68a357.js +0 -2
- package/dist/chunks/eo-dynamic-form-item.8d3281ed.js +0 -3
- package/dist/chunks/eo-form.4ff09a23.js +0 -2
- package/dist/chunks/eo-icon-select.4d714910.js +0 -3
- package/dist/chunks/eo-input.7a21a8bf.js +0 -3
- package/dist/chunks/eo-radio.8cb630e8.js +0 -3
- package/dist/chunks/eo-search.40491e27.js +0 -2
- package/dist/chunks/eo-select.e02eae32.js +0 -3
- package/dist/chunks/eo-submit-buttons.a14f9dcb.js +0 -2
- package/dist/chunks/eo-switch.8818d6ac.js +0 -3
- package/dist/chunks/eo-textarea.06fe9731.js +0 -3
- package/dist/chunks/eo-time-picker.46eeff9d.js +0 -2
- package/dist/chunks/eo-time-range-picker.e00968c4.js +0 -2
- package/dist/chunks/eo-upload-file.340b9a4c.js +0 -3
- package/dist/chunks/eo-upload-image.be6506c5.js +0 -3
- package/dist/chunks/main.4ad0fd74.js +0 -2
- package/dist/index.ed713f1f.js +0 -2
- package/dist/index.ed713f1f.js.map +0 -1
- /package/dist/chunks/{818.44f4a1f8.js.LICENSE.txt → 818.0e60c75d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9259.f789387c.js.LICENSE.txt → 9259.4238757c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-auto-complete.5e6c61c8.js.LICENSE.txt → eo-auto-complete.6db6aca5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.8d3281ed.js.LICENSE.txt → eo-dynamic-form-item.c2783b20.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.8f6b3ad7.js.LICENSE.txt → eo-form-item.d1189f7c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-icon-select.4d714910.js.LICENSE.txt → eo-icon-select.ce687969.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-input.7a21a8bf.js.LICENSE.txt → eo-input.6fb8e34e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.8cb630e8.js.LICENSE.txt → eo-radio.9a162d3d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.e02eae32.js.LICENSE.txt → eo-select.d92bfd8f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-switch.8818d6ac.js.LICENSE.txt → eo-switch.5326b853.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.06fe9731.js.LICENSE.txt → eo-textarea.70f5d4cf.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.340b9a4c.js.LICENSE.txt → eo-upload-file.065dde0e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.be6506c5.js.LICENSE.txt → eo-upload-image.ec21b2fc.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -288,144 +288,107 @@
|
|
|
288
288
|
"insider": true
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
|
-
"name": "eo-
|
|
291
|
+
"name": "eo-radio",
|
|
292
292
|
"alias": [
|
|
293
|
-
"form.general-
|
|
293
|
+
"form.general-radio"
|
|
294
294
|
],
|
|
295
295
|
"properties": [
|
|
296
296
|
{
|
|
297
|
-
"name": "
|
|
298
|
-
"description": "
|
|
299
|
-
"
|
|
300
|
-
"type": "Layout"
|
|
297
|
+
"name": "name",
|
|
298
|
+
"description": "下拉框字段名",
|
|
299
|
+
"type": "string"
|
|
301
300
|
},
|
|
302
301
|
{
|
|
303
|
-
"name": "
|
|
304
|
-
"description": "
|
|
305
|
-
"type": "
|
|
302
|
+
"name": "label",
|
|
303
|
+
"description": "单选框字段说明",
|
|
304
|
+
"type": "string"
|
|
306
305
|
},
|
|
307
306
|
{
|
|
308
|
-
"name": "
|
|
309
|
-
"description": "
|
|
310
|
-
"
|
|
307
|
+
"name": "options",
|
|
308
|
+
"description": "单选框选项表",
|
|
309
|
+
"required": true,
|
|
311
310
|
"attribute": false,
|
|
312
|
-
"type": "
|
|
311
|
+
"type": "GeneralOption[]"
|
|
313
312
|
},
|
|
314
313
|
{
|
|
315
|
-
"name": "
|
|
316
|
-
"description": "
|
|
317
|
-
"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 }",
|
|
314
|
+
"name": "value",
|
|
315
|
+
"description": "单选框当前选中始值",
|
|
318
316
|
"attribute": false,
|
|
319
|
-
"type": "
|
|
317
|
+
"type": "any"
|
|
320
318
|
},
|
|
321
319
|
{
|
|
322
|
-
"name": "
|
|
323
|
-
"
|
|
324
|
-
"type": "
|
|
325
|
-
}
|
|
326
|
-
],
|
|
327
|
-
"events": [
|
|
328
|
-
{
|
|
329
|
-
"name": "values.change",
|
|
330
|
-
"description": "表单值变更事件",
|
|
331
|
-
"detail": {
|
|
332
|
-
"description": null,
|
|
333
|
-
"type": "Record<string, unknown>"
|
|
334
|
-
}
|
|
320
|
+
"name": "required",
|
|
321
|
+
"description": "是否必填",
|
|
322
|
+
"type": "boolean"
|
|
335
323
|
},
|
|
336
324
|
{
|
|
337
|
-
"name": "
|
|
338
|
-
"description": "
|
|
339
|
-
"
|
|
340
|
-
|
|
341
|
-
}
|
|
325
|
+
"name": "message",
|
|
326
|
+
"description": "校验文本信息",
|
|
327
|
+
"attribute": false,
|
|
328
|
+
"type": "Record<string, string>"
|
|
342
329
|
},
|
|
343
330
|
{
|
|
344
|
-
"name": "
|
|
345
|
-
"description": "
|
|
346
|
-
"
|
|
347
|
-
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
],
|
|
351
|
-
"slots": [
|
|
352
|
-
{
|
|
353
|
-
"name": null,
|
|
354
|
-
"description": "表单内容"
|
|
355
|
-
}
|
|
356
|
-
],
|
|
357
|
-
"methods": [
|
|
331
|
+
"name": "disabled",
|
|
332
|
+
"description": "是否禁用",
|
|
333
|
+
"type": "boolean"
|
|
334
|
+
},
|
|
358
335
|
{
|
|
359
|
-
"name": "
|
|
360
|
-
"
|
|
361
|
-
"
|
|
362
|
-
"
|
|
363
|
-
"type": "boolean | Record<string, unknown>"
|
|
364
|
-
}
|
|
336
|
+
"name": "type",
|
|
337
|
+
"description": "单选框样式类型",
|
|
338
|
+
"default": "\"default\"",
|
|
339
|
+
"type": "RadioType"
|
|
365
340
|
},
|
|
366
341
|
{
|
|
367
|
-
"name": "
|
|
368
|
-
"
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
"type": "Record<string, unknown>"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"name": "options",
|
|
375
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
376
|
-
}
|
|
377
|
-
],
|
|
378
|
-
"description": "表单设置值方法",
|
|
379
|
-
"returns": {}
|
|
342
|
+
"name": "ui",
|
|
343
|
+
"description": "UI样式",
|
|
344
|
+
"default": "\"default\"",
|
|
345
|
+
"type": "UIType"
|
|
380
346
|
},
|
|
381
347
|
{
|
|
382
|
-
"name": "
|
|
383
|
-
"
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
"type": "string"
|
|
387
|
-
}
|
|
388
|
-
],
|
|
389
|
-
"description": "表单重置值方法",
|
|
390
|
-
"returns": {}
|
|
348
|
+
"name": "size",
|
|
349
|
+
"description": "大小,只对按钮样式生效",
|
|
350
|
+
"default": "\"medium\"",
|
|
351
|
+
"type": "ComponentSize"
|
|
391
352
|
},
|
|
392
353
|
{
|
|
393
|
-
"name": "
|
|
394
|
-
"
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
"type": "string"
|
|
398
|
-
}
|
|
399
|
-
],
|
|
400
|
-
"description": "获取表单值方法",
|
|
401
|
-
"returns": {}
|
|
354
|
+
"name": "customStyle",
|
|
355
|
+
"description": "自定义radio的外层样式",
|
|
356
|
+
"attribute": false,
|
|
357
|
+
"type": "React.CSSProperties"
|
|
402
358
|
},
|
|
403
359
|
{
|
|
404
|
-
"name": "
|
|
405
|
-
"
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
"
|
|
360
|
+
"name": "useBrick",
|
|
361
|
+
"description": "自定义radio的内容",
|
|
362
|
+
"attribute": false,
|
|
363
|
+
"type": "UseSingleBrickConf"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"events": [
|
|
367
|
+
{
|
|
368
|
+
"name": "change",
|
|
369
|
+
"description": "值变化事件",
|
|
370
|
+
"detail": {
|
|
371
|
+
"type": "GeneralComplexOption | undefined"
|
|
372
|
+
}
|
|
413
373
|
},
|
|
414
374
|
{
|
|
415
|
-
"name": "
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
|
|
375
|
+
"name": "options.change",
|
|
376
|
+
"description": "选项列表变化事件",
|
|
377
|
+
"detail": {
|
|
378
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
379
|
+
}
|
|
419
380
|
}
|
|
420
381
|
],
|
|
382
|
+
"slots": [],
|
|
383
|
+
"methods": [],
|
|
421
384
|
"parts": [],
|
|
422
|
-
"description": "
|
|
385
|
+
"description": "通用单选构件",
|
|
423
386
|
"category": "form-input-basic"
|
|
424
387
|
},
|
|
425
388
|
{
|
|
426
|
-
"name": "eo-
|
|
389
|
+
"name": "eo-textarea",
|
|
427
390
|
"alias": [
|
|
428
|
-
"form.general-
|
|
391
|
+
"form.general-textarea"
|
|
429
392
|
],
|
|
430
393
|
"properties": [
|
|
431
394
|
{
|
|
@@ -433,39 +396,20 @@
|
|
|
433
396
|
"description": "字段名称",
|
|
434
397
|
"type": "string"
|
|
435
398
|
},
|
|
436
|
-
{
|
|
437
|
-
"name": "placeholder",
|
|
438
|
-
"description": "占位说明",
|
|
439
|
-
"type": "string"
|
|
440
|
-
},
|
|
441
399
|
{
|
|
442
400
|
"name": "label",
|
|
443
|
-
"description": "
|
|
401
|
+
"description": "标签文字",
|
|
444
402
|
"type": "string"
|
|
445
403
|
},
|
|
446
|
-
{
|
|
447
|
-
"name": "options",
|
|
448
|
-
"description": "选项列表",
|
|
449
|
-
"required": true,
|
|
450
|
-
"attribute": false,
|
|
451
|
-
"type": "GeneralComplexOption[]"
|
|
452
|
-
},
|
|
453
404
|
{
|
|
454
405
|
"name": "value",
|
|
455
406
|
"description": "值",
|
|
456
|
-
"
|
|
457
|
-
"type": "any"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"name": "required",
|
|
461
|
-
"description": "是否必填",
|
|
462
|
-
"type": "boolean"
|
|
407
|
+
"type": "string"
|
|
463
408
|
},
|
|
464
409
|
{
|
|
465
|
-
"name": "
|
|
466
|
-
"description": "
|
|
467
|
-
"
|
|
468
|
-
"type": "Record<string, string>"
|
|
410
|
+
"name": "placeholder",
|
|
411
|
+
"description": "占位说明",
|
|
412
|
+
"type": "string"
|
|
469
413
|
},
|
|
470
414
|
{
|
|
471
415
|
"name": "disabled",
|
|
@@ -473,57 +417,45 @@
|
|
|
473
417
|
"type": "boolean"
|
|
474
418
|
},
|
|
475
419
|
{
|
|
476
|
-
"name": "
|
|
477
|
-
"description": "
|
|
478
|
-
"type": "\"tags\" | \"multiple\""
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"name": "tokenSeparators",
|
|
482
|
-
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
483
|
-
"attribute": false,
|
|
484
|
-
"type": "string[]"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
"name": "maxTagCount",
|
|
488
|
-
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
420
|
+
"name": "minLength",
|
|
421
|
+
"description": "最小长度",
|
|
489
422
|
"type": "number"
|
|
490
423
|
},
|
|
491
424
|
{
|
|
492
|
-
"name": "
|
|
493
|
-
"description": "
|
|
494
|
-
"type": "
|
|
425
|
+
"name": "maxLength",
|
|
426
|
+
"description": "最大长度",
|
|
427
|
+
"type": "number"
|
|
495
428
|
},
|
|
496
429
|
{
|
|
497
|
-
"name": "
|
|
498
|
-
"description": "",
|
|
430
|
+
"name": "autoSize",
|
|
431
|
+
"description": "大小自适应",
|
|
499
432
|
"attribute": false,
|
|
500
|
-
"type": "
|
|
433
|
+
"type": "AutoSize"
|
|
501
434
|
},
|
|
502
435
|
{
|
|
503
|
-
"name": "
|
|
504
|
-
"description": "
|
|
505
|
-
"default": "true",
|
|
436
|
+
"name": "required",
|
|
437
|
+
"description": "是否必填",
|
|
506
438
|
"type": "boolean"
|
|
507
439
|
},
|
|
508
440
|
{
|
|
509
|
-
"name": "
|
|
510
|
-
"description": "
|
|
511
|
-
"
|
|
512
|
-
"type": "{ label?: string; value?: string }"
|
|
441
|
+
"name": "max",
|
|
442
|
+
"description": "表单校验最大长度",
|
|
443
|
+
"type": "number"
|
|
513
444
|
},
|
|
514
445
|
{
|
|
515
|
-
"name": "
|
|
516
|
-
"description": "
|
|
517
|
-
"
|
|
518
|
-
"type": "UseBackendConf"
|
|
446
|
+
"name": "min",
|
|
447
|
+
"description": "表单校验最小长度",
|
|
448
|
+
"type": "number"
|
|
519
449
|
},
|
|
520
450
|
{
|
|
521
|
-
"name": "
|
|
522
|
-
"
|
|
451
|
+
"name": "message",
|
|
452
|
+
"description": "校验信息",
|
|
453
|
+
"attribute": false,
|
|
454
|
+
"type": "Record<string, string>"
|
|
523
455
|
},
|
|
524
456
|
{
|
|
525
|
-
"name": "
|
|
526
|
-
"description": "
|
|
457
|
+
"name": "textareaStyle",
|
|
458
|
+
"description": "自定义样式",
|
|
527
459
|
"attribute": false,
|
|
528
460
|
"type": "React.CSSProperties"
|
|
529
461
|
}
|
|
@@ -531,37 +463,17 @@
|
|
|
531
463
|
"events": [
|
|
532
464
|
{
|
|
533
465
|
"name": "change",
|
|
534
|
-
"description": "
|
|
535
|
-
"detail": {
|
|
536
|
-
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
537
|
-
}
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"name": "search",
|
|
541
|
-
"description": "下拉框search事件",
|
|
542
|
-
"detail": {
|
|
543
|
-
"type": "{\n value: string;\n }"
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"name": "focus",
|
|
548
|
-
"description": "下拉框focus事件",
|
|
549
|
-
"detail": {
|
|
550
|
-
"type": "void"
|
|
551
|
-
}
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
"name": "options.change",
|
|
555
|
-
"description": "选项列表变化事件",
|
|
466
|
+
"description": "",
|
|
556
467
|
"detail": {
|
|
557
|
-
"
|
|
468
|
+
"description": null,
|
|
469
|
+
"type": "string"
|
|
558
470
|
}
|
|
559
471
|
}
|
|
560
472
|
],
|
|
561
473
|
"slots": [],
|
|
562
474
|
"methods": [],
|
|
563
475
|
"parts": [],
|
|
564
|
-
"description": "
|
|
476
|
+
"description": "通用多行文本输入框构件",
|
|
565
477
|
"category": "form-input-basic"
|
|
566
478
|
},
|
|
567
479
|
{
|
|
@@ -625,9 +537,9 @@
|
|
|
625
537
|
"category": "form-input-basic"
|
|
626
538
|
},
|
|
627
539
|
{
|
|
628
|
-
"name": "eo-
|
|
540
|
+
"name": "eo-select",
|
|
629
541
|
"alias": [
|
|
630
|
-
"form.general-
|
|
542
|
+
"form.general-select"
|
|
631
543
|
],
|
|
632
544
|
"properties": [
|
|
633
545
|
{
|
|
@@ -635,20 +547,39 @@
|
|
|
635
547
|
"description": "字段名称",
|
|
636
548
|
"type": "string"
|
|
637
549
|
},
|
|
550
|
+
{
|
|
551
|
+
"name": "placeholder",
|
|
552
|
+
"description": "占位说明",
|
|
553
|
+
"type": "string"
|
|
554
|
+
},
|
|
638
555
|
{
|
|
639
556
|
"name": "label",
|
|
640
|
-
"description": "
|
|
557
|
+
"description": "字段文本",
|
|
641
558
|
"type": "string"
|
|
642
559
|
},
|
|
560
|
+
{
|
|
561
|
+
"name": "options",
|
|
562
|
+
"description": "选项列表",
|
|
563
|
+
"required": true,
|
|
564
|
+
"attribute": false,
|
|
565
|
+
"type": "GeneralComplexOption[]"
|
|
566
|
+
},
|
|
643
567
|
{
|
|
644
568
|
"name": "value",
|
|
645
569
|
"description": "值",
|
|
646
|
-
"
|
|
570
|
+
"attribute": false,
|
|
571
|
+
"type": "any"
|
|
647
572
|
},
|
|
648
573
|
{
|
|
649
|
-
"name": "
|
|
650
|
-
"description": "
|
|
651
|
-
"type": "
|
|
574
|
+
"name": "required",
|
|
575
|
+
"description": "是否必填",
|
|
576
|
+
"type": "boolean"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "message",
|
|
580
|
+
"description": "校验文本信息",
|
|
581
|
+
"attribute": false,
|
|
582
|
+
"type": "Record<string, string>"
|
|
652
583
|
},
|
|
653
584
|
{
|
|
654
585
|
"name": "disabled",
|
|
@@ -656,45 +587,57 @@
|
|
|
656
587
|
"type": "boolean"
|
|
657
588
|
},
|
|
658
589
|
{
|
|
659
|
-
"name": "
|
|
660
|
-
"description": "
|
|
661
|
-
"type": "
|
|
590
|
+
"name": "mode",
|
|
591
|
+
"description": "类型",
|
|
592
|
+
"type": "\"tags\" | \"multiple\""
|
|
662
593
|
},
|
|
663
594
|
{
|
|
664
|
-
"name": "
|
|
665
|
-
"description": "
|
|
595
|
+
"name": "tokenSeparators",
|
|
596
|
+
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
597
|
+
"attribute": false,
|
|
598
|
+
"type": "string[]"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"name": "maxTagCount",
|
|
602
|
+
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
666
603
|
"type": "number"
|
|
667
604
|
},
|
|
668
605
|
{
|
|
669
|
-
"name": "
|
|
670
|
-
"description": "
|
|
671
|
-
"
|
|
672
|
-
"type": "AutoSize"
|
|
606
|
+
"name": "groupBy",
|
|
607
|
+
"description": "分组字段",
|
|
608
|
+
"type": "string"
|
|
673
609
|
},
|
|
674
610
|
{
|
|
675
|
-
"name": "
|
|
676
|
-
"description": "
|
|
677
|
-
"
|
|
611
|
+
"name": "suffix",
|
|
612
|
+
"description": "",
|
|
613
|
+
"attribute": false,
|
|
614
|
+
"type": "{ useBrick: UseSingleBrickConf }"
|
|
678
615
|
},
|
|
679
616
|
{
|
|
680
|
-
"name": "
|
|
681
|
-
"description": "
|
|
682
|
-
"
|
|
617
|
+
"name": "clearable",
|
|
618
|
+
"description": "是否支持清除",
|
|
619
|
+
"default": "true",
|
|
620
|
+
"type": "boolean"
|
|
683
621
|
},
|
|
684
622
|
{
|
|
685
|
-
"name": "
|
|
686
|
-
"description": "
|
|
687
|
-
"
|
|
623
|
+
"name": "fields",
|
|
624
|
+
"description": "列表指定字段作为 label 和 value",
|
|
625
|
+
"attribute": false,
|
|
626
|
+
"type": "{ label?: string; value?: string }"
|
|
688
627
|
},
|
|
689
628
|
{
|
|
690
|
-
"name": "
|
|
691
|
-
"description": "
|
|
629
|
+
"name": "useBackend",
|
|
630
|
+
"description": "后端搜索",
|
|
692
631
|
"attribute": false,
|
|
693
|
-
"type": "
|
|
632
|
+
"type": "UseBackendConf"
|
|
694
633
|
},
|
|
695
634
|
{
|
|
696
|
-
"name": "
|
|
697
|
-
"
|
|
635
|
+
"name": "debounceSearchDelay",
|
|
636
|
+
"type": "number"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"name": "inputStyle",
|
|
640
|
+
"description": "输入框样式",
|
|
698
641
|
"attribute": false,
|
|
699
642
|
"type": "React.CSSProperties"
|
|
700
643
|
}
|
|
@@ -702,17 +645,37 @@
|
|
|
702
645
|
"events": [
|
|
703
646
|
{
|
|
704
647
|
"name": "change",
|
|
705
|
-
"description": "",
|
|
648
|
+
"description": "下拉选择事件",
|
|
706
649
|
"detail": {
|
|
707
|
-
"
|
|
708
|
-
|
|
650
|
+
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "search",
|
|
655
|
+
"description": "下拉框search事件",
|
|
656
|
+
"detail": {
|
|
657
|
+
"type": "{\n value: string;\n }"
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"name": "focus",
|
|
662
|
+
"description": "下拉框focus事件",
|
|
663
|
+
"detail": {
|
|
664
|
+
"type": "void"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "options.change",
|
|
669
|
+
"description": "选项列表变化事件",
|
|
670
|
+
"detail": {
|
|
671
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
709
672
|
}
|
|
710
673
|
}
|
|
711
674
|
],
|
|
712
675
|
"slots": [],
|
|
713
676
|
"methods": [],
|
|
714
677
|
"parts": [],
|
|
715
|
-
"description": "
|
|
678
|
+
"description": "通用下拉选择构件",
|
|
716
679
|
"category": "form-input-basic"
|
|
717
680
|
},
|
|
718
681
|
{
|
|
@@ -900,162 +863,199 @@
|
|
|
900
863
|
"category": "form-input-basic"
|
|
901
864
|
},
|
|
902
865
|
{
|
|
903
|
-
"name": "eo-
|
|
866
|
+
"name": "eo-search",
|
|
904
867
|
"alias": [
|
|
905
|
-
"form.general-
|
|
868
|
+
"form.general-search"
|
|
906
869
|
],
|
|
907
870
|
"properties": [
|
|
908
871
|
{
|
|
909
|
-
"name": "
|
|
910
|
-
"description": "
|
|
872
|
+
"name": "value",
|
|
873
|
+
"description": "搜索框的值",
|
|
874
|
+
"default": "\"\"",
|
|
911
875
|
"type": "string"
|
|
912
876
|
},
|
|
913
877
|
{
|
|
914
|
-
"name": "
|
|
915
|
-
"description": "
|
|
878
|
+
"name": "placeholder",
|
|
879
|
+
"description": "提示语",
|
|
916
880
|
"type": "string"
|
|
917
881
|
},
|
|
918
882
|
{
|
|
919
|
-
"name": "
|
|
920
|
-
"description": "
|
|
921
|
-
"required": true,
|
|
922
|
-
"attribute": false,
|
|
923
|
-
"type": "GeneralOption[]"
|
|
924
|
-
},
|
|
925
|
-
{
|
|
926
|
-
"name": "value",
|
|
927
|
-
"description": "单选框当前选中始值",
|
|
928
|
-
"attribute": false,
|
|
929
|
-
"type": "any"
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
"name": "required",
|
|
933
|
-
"description": "是否必填",
|
|
883
|
+
"name": "autoFocus",
|
|
884
|
+
"description": "是否自动聚焦",
|
|
934
885
|
"type": "boolean"
|
|
935
886
|
},
|
|
936
887
|
{
|
|
937
|
-
"name": "
|
|
938
|
-
"description": "
|
|
939
|
-
"attribute": false,
|
|
940
|
-
"type": "Record<string, string>"
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
"name": "disabled",
|
|
944
|
-
"description": "是否禁用",
|
|
888
|
+
"name": "clearable",
|
|
889
|
+
"description": "可以点击清除图标删除内容",
|
|
945
890
|
"type": "boolean"
|
|
946
891
|
},
|
|
947
892
|
{
|
|
948
|
-
"name": "
|
|
949
|
-
"description": "
|
|
950
|
-
"
|
|
951
|
-
"type": "RadioType"
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"name": "ui",
|
|
955
|
-
"description": "UI样式",
|
|
956
|
-
"default": "\"default\"",
|
|
957
|
-
"type": "UIType"
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"name": "size",
|
|
961
|
-
"description": "大小,只对按钮样式生效",
|
|
962
|
-
"default": "\"medium\"",
|
|
963
|
-
"type": "ComponentSize"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"name": "customStyle",
|
|
967
|
-
"description": "自定义radio的外层样式",
|
|
968
|
-
"attribute": false,
|
|
969
|
-
"type": "React.CSSProperties"
|
|
893
|
+
"name": "trim",
|
|
894
|
+
"description": "是否剔除前后空格",
|
|
895
|
+
"type": "boolean"
|
|
970
896
|
},
|
|
971
897
|
{
|
|
972
|
-
"name": "
|
|
973
|
-
"description": "
|
|
974
|
-
"
|
|
975
|
-
"type": "
|
|
898
|
+
"name": "debounceTime",
|
|
899
|
+
"description": "默认延迟时间",
|
|
900
|
+
"default": "0",
|
|
901
|
+
"type": "number"
|
|
976
902
|
}
|
|
977
903
|
],
|
|
978
904
|
"events": [
|
|
979
905
|
{
|
|
980
906
|
"name": "change",
|
|
981
|
-
"description": "
|
|
907
|
+
"description": "输入的搜索字符,输入变化时触发",
|
|
982
908
|
"detail": {
|
|
983
|
-
"type": "
|
|
909
|
+
"type": "string"
|
|
984
910
|
}
|
|
985
911
|
},
|
|
986
912
|
{
|
|
987
|
-
"name": "
|
|
988
|
-
"description": "
|
|
913
|
+
"name": "search",
|
|
914
|
+
"description": "搜索时触发",
|
|
989
915
|
"detail": {
|
|
990
|
-
"type": "
|
|
916
|
+
"type": "string"
|
|
991
917
|
}
|
|
992
918
|
}
|
|
993
919
|
],
|
|
994
920
|
"slots": [],
|
|
995
921
|
"methods": [],
|
|
996
922
|
"parts": [],
|
|
997
|
-
"description": "
|
|
923
|
+
"description": "搜索框",
|
|
998
924
|
"category": "form-input-basic"
|
|
999
925
|
},
|
|
1000
926
|
{
|
|
1001
|
-
"name": "eo-
|
|
927
|
+
"name": "eo-form",
|
|
1002
928
|
"alias": [
|
|
1003
|
-
"form.general-
|
|
929
|
+
"form.general-form"
|
|
1004
930
|
],
|
|
1005
931
|
"properties": [
|
|
1006
932
|
{
|
|
1007
|
-
"name": "
|
|
1008
|
-
"description": "
|
|
1009
|
-
"default": "
|
|
1010
|
-
"type": "
|
|
1011
|
-
},
|
|
1012
|
-
{
|
|
1013
|
-
"name": "placeholder",
|
|
1014
|
-
"description": "提示语",
|
|
1015
|
-
"type": "string"
|
|
933
|
+
"name": "layout",
|
|
934
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
935
|
+
"default": "vertical",
|
|
936
|
+
"type": "Layout"
|
|
1016
937
|
},
|
|
1017
938
|
{
|
|
1018
|
-
"name": "
|
|
1019
|
-
"description": "
|
|
1020
|
-
"type": "
|
|
939
|
+
"name": "size",
|
|
940
|
+
"description": "表单组件尺寸",
|
|
941
|
+
"type": "ComponentSize"
|
|
1021
942
|
},
|
|
1022
943
|
{
|
|
1023
|
-
"name": "
|
|
1024
|
-
"description": "
|
|
1025
|
-
"
|
|
944
|
+
"name": "labelCol",
|
|
945
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
946
|
+
"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 }",
|
|
947
|
+
"attribute": false,
|
|
948
|
+
"type": "ColProps"
|
|
1026
949
|
},
|
|
1027
950
|
{
|
|
1028
|
-
"name": "
|
|
1029
|
-
"description": "
|
|
1030
|
-
"
|
|
951
|
+
"name": "wrapperCol",
|
|
952
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
953
|
+
"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 }",
|
|
954
|
+
"attribute": false,
|
|
955
|
+
"type": "ColProps"
|
|
1031
956
|
},
|
|
1032
957
|
{
|
|
1033
|
-
"name": "
|
|
1034
|
-
"
|
|
1035
|
-
"
|
|
1036
|
-
"type": "number"
|
|
958
|
+
"name": "formStyle",
|
|
959
|
+
"attribute": false,
|
|
960
|
+
"type": "React.CSSProperties"
|
|
1037
961
|
}
|
|
1038
962
|
],
|
|
1039
963
|
"events": [
|
|
1040
964
|
{
|
|
1041
|
-
"name": "change",
|
|
1042
|
-
"description": "
|
|
965
|
+
"name": "values.change",
|
|
966
|
+
"description": "表单值变更事件",
|
|
1043
967
|
"detail": {
|
|
1044
|
-
"
|
|
968
|
+
"description": null,
|
|
969
|
+
"type": "Record<string, unknown>"
|
|
1045
970
|
}
|
|
1046
971
|
},
|
|
1047
972
|
{
|
|
1048
|
-
"name": "
|
|
1049
|
-
"description": "
|
|
973
|
+
"name": "validate.success",
|
|
974
|
+
"description": "表单验证成功时触发事件",
|
|
1050
975
|
"detail": {
|
|
1051
|
-
"type": "string"
|
|
976
|
+
"type": "Record<string, unknown>"
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"name": "validate.error",
|
|
981
|
+
"description": "表单验证报错时触发事件",
|
|
982
|
+
"detail": {
|
|
983
|
+
"type": "MessageBody[]"
|
|
1052
984
|
}
|
|
1053
985
|
}
|
|
1054
986
|
],
|
|
1055
|
-
"slots": [
|
|
1056
|
-
|
|
987
|
+
"slots": [
|
|
988
|
+
{
|
|
989
|
+
"name": null,
|
|
990
|
+
"description": "表单内容"
|
|
991
|
+
}
|
|
992
|
+
],
|
|
993
|
+
"methods": [
|
|
994
|
+
{
|
|
995
|
+
"name": "validate",
|
|
996
|
+
"params": [],
|
|
997
|
+
"description": "表单校验方法",
|
|
998
|
+
"returns": {
|
|
999
|
+
"type": "boolean | Record<string, unknown>"
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"name": "setInitValue",
|
|
1004
|
+
"params": [
|
|
1005
|
+
{
|
|
1006
|
+
"name": "values",
|
|
1007
|
+
"type": "Record<string, unknown>"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"name": "options",
|
|
1011
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
1012
|
+
}
|
|
1013
|
+
],
|
|
1014
|
+
"description": "表单设置值方法",
|
|
1015
|
+
"returns": {}
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"name": "resetFields",
|
|
1019
|
+
"params": [
|
|
1020
|
+
{
|
|
1021
|
+
"name": "name",
|
|
1022
|
+
"type": "string"
|
|
1023
|
+
}
|
|
1024
|
+
],
|
|
1025
|
+
"description": "表单重置值方法",
|
|
1026
|
+
"returns": {}
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"name": "getFieldsValue",
|
|
1030
|
+
"params": [
|
|
1031
|
+
{
|
|
1032
|
+
"name": "name",
|
|
1033
|
+
"type": "string"
|
|
1034
|
+
}
|
|
1035
|
+
],
|
|
1036
|
+
"description": "获取表单值方法",
|
|
1037
|
+
"returns": {}
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"name": "validateField",
|
|
1041
|
+
"params": [
|
|
1042
|
+
{
|
|
1043
|
+
"name": "name",
|
|
1044
|
+
"type": "string"
|
|
1045
|
+
}
|
|
1046
|
+
],
|
|
1047
|
+
"description": "校验表单字段方法",
|
|
1048
|
+
"returns": {}
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "resetValidateState",
|
|
1052
|
+
"params": [],
|
|
1053
|
+
"description": "重置表单校验状态方法",
|
|
1054
|
+
"returns": {}
|
|
1055
|
+
}
|
|
1056
|
+
],
|
|
1057
1057
|
"parts": [],
|
|
1058
|
-
"description": "
|
|
1058
|
+
"description": "表单构件",
|
|
1059
1059
|
"category": "form-input-basic"
|
|
1060
1060
|
},
|
|
1061
1061
|
{
|