@next-bricks/form 1.16.0 → 1.16.1

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.
@@ -207,6 +207,12 @@
207
207
  "attribute": false,
208
208
  "type": "React.CSSProperties"
209
209
  },
210
+ {
211
+ "name": "dropdownStyle",
212
+ "description": "下拉框样式",
213
+ "attribute": false,
214
+ "type": "React.CSSProperties"
215
+ },
210
216
  {
211
217
  "name": "dropdownHoist",
212
218
  "description": "下拉框是否使用固定定位防止内容被裁切",
@@ -249,151 +255,6 @@
249
255
  "description": "通用下拉选择构件",
250
256
  "category": "form-input-basic"
251
257
  },
252
- {
253
- "name": "eo-form",
254
- "alias": [
255
- "form.general-form"
256
- ],
257
- "properties": [
258
- {
259
- "name": "staticValues",
260
- "attribute": false,
261
- "type": "Record<string, unknown>"
262
- },
263
- {
264
- "name": "layout",
265
- "description": "布局方式(默认 vertical 布局)",
266
- "default": "vertical",
267
- "type": "Layout"
268
- },
269
- {
270
- "name": "size",
271
- "description": "表单组件尺寸",
272
- "type": "ComponentSize"
273
- },
274
- {
275
- "name": "labelCol",
276
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
277
- "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 }",
278
- "attribute": false,
279
- "type": "ColProps"
280
- },
281
- {
282
- "name": "wrapperCol",
283
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
284
- "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 }",
285
- "attribute": false,
286
- "type": "ColProps"
287
- },
288
- {
289
- "name": "formStyle",
290
- "attribute": false,
291
- "type": "React.CSSProperties"
292
- },
293
- {
294
- "name": "textContent",
295
- "type": "string",
296
- "description": "文本内容"
297
- }
298
- ],
299
- "events": [
300
- {
301
- "name": "values.change",
302
- "description": "表单值变更事件",
303
- "detail": {
304
- "description": null,
305
- "type": "Record<string, unknown>"
306
- }
307
- },
308
- {
309
- "name": "validate.success",
310
- "description": "表单验证成功时触发事件",
311
- "detail": {
312
- "type": "Record<string, unknown>"
313
- }
314
- },
315
- {
316
- "name": "validate.error",
317
- "description": "表单验证报错时触发事件",
318
- "detail": {
319
- "type": "(MessageBody & { name: string })[]"
320
- }
321
- }
322
- ],
323
- "slots": [
324
- {
325
- "name": null,
326
- "description": "表单内容"
327
- }
328
- ],
329
- "methods": [
330
- {
331
- "name": "validate",
332
- "params": [],
333
- "description": "表单校验方法",
334
- "returns": {
335
- "type": "boolean | Record<string, unknown>"
336
- }
337
- },
338
- {
339
- "name": "setInitValue",
340
- "params": [
341
- {
342
- "name": "values",
343
- "type": "Record<string, unknown>"
344
- },
345
- {
346
- "name": "options",
347
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
348
- }
349
- ],
350
- "description": "表单设置值方法",
351
- "returns": {}
352
- },
353
- {
354
- "name": "resetFields",
355
- "params": [
356
- {
357
- "name": "name",
358
- "type": "string"
359
- }
360
- ],
361
- "description": "表单重置值方法",
362
- "returns": {}
363
- },
364
- {
365
- "name": "getFieldsValue",
366
- "params": [
367
- {
368
- "name": "name",
369
- "type": "string"
370
- }
371
- ],
372
- "description": "获取表单值方法",
373
- "returns": {}
374
- },
375
- {
376
- "name": "validateField",
377
- "params": [
378
- {
379
- "name": "name",
380
- "type": "string"
381
- }
382
- ],
383
- "description": "校验表单字段方法",
384
- "returns": {}
385
- },
386
- {
387
- "name": "resetValidateState",
388
- "params": [],
389
- "description": "重置表单校验状态方法",
390
- "returns": {}
391
- }
392
- ],
393
- "parts": [],
394
- "description": "表单构件",
395
- "category": "form-input-basic"
396
- },
397
258
  {
398
259
  "name": "eo-submit-buttons",
399
260
  "alias": [
@@ -553,95 +414,148 @@
553
414
  "category": "form-input-basic"
554
415
  },
555
416
  {
556
- "name": "eo-checkbox",
417
+ "name": "eo-form",
557
418
  "alias": [
558
- "form.general-checkbox"
419
+ "form.general-form"
559
420
  ],
560
421
  "properties": [
561
422
  {
562
- "name": "name",
563
- "description": "字段名称",
564
- "type": "string"
423
+ "name": "staticValues",
424
+ "attribute": false,
425
+ "type": "Record<string, unknown>"
565
426
  },
566
427
  {
567
- "name": "label",
568
- "description": "字段说明",
569
- "type": "string"
428
+ "name": "layout",
429
+ "description": "布局方式(默认 vertical 布局)",
430
+ "default": "vertical",
431
+ "type": "Layout"
570
432
  },
571
433
  {
572
- "name": "value",
573
- "description": "",
574
- "attribute": false,
575
- "type": "CheckboxValueType[]"
434
+ "name": "size",
435
+ "description": "表单组件尺寸",
436
+ "type": "ComponentSize"
576
437
  },
577
438
  {
578
- "name": "options",
579
- "description": "多选框选项表",
580
- "required": true,
581
- "default": "[]",
439
+ "name": "labelCol",
440
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
441
+ "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 }",
582
442
  "attribute": false,
583
- "type": "CheckboxOptionType[]"
443
+ "type": "ColProps"
584
444
  },
585
445
  {
586
- "name": "type",
587
- "description": "类型",
588
- "default": "\"default\"",
589
- "type": "CheckboxType"
446
+ "name": "wrapperCol",
447
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
448
+ "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 }",
449
+ "attribute": false,
450
+ "type": "ColProps"
590
451
  },
591
452
  {
592
- "name": "disabled",
593
- "description": "是否禁用",
594
- "type": "boolean"
453
+ "name": "formStyle",
454
+ "attribute": false,
455
+ "type": "React.CSSProperties"
595
456
  },
596
457
  {
597
- "name": "isCustom",
598
- "description": "是否为自定义",
599
- "default": "false",
600
- "type": "boolean"
601
- },
458
+ "name": "textContent",
459
+ "type": "string",
460
+ "description": "文本内容"
461
+ }
462
+ ],
463
+ "events": [
602
464
  {
603
- "name": "required",
604
- "description": "是否必填",
605
- "type": "boolean"
465
+ "name": "values.change",
466
+ "description": "表单值变更事件",
467
+ "detail": {
468
+ "description": null,
469
+ "type": "Record<string, unknown>"
470
+ }
606
471
  },
607
472
  {
608
- "name": "message",
609
- "description": "校验文本",
610
- "attribute": false,
611
- "type": "Record<string, string>"
473
+ "name": "validate.success",
474
+ "description": "表单验证成功时触发事件",
475
+ "detail": {
476
+ "type": "Record<string, unknown>"
477
+ }
612
478
  },
613
479
  {
614
- "name": "isGroup",
615
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
616
- "type": "boolean"
617
- },
480
+ "name": "validate.error",
481
+ "description": "表单验证报错时触发事件",
482
+ "detail": {
483
+ "type": "(MessageBody & { name: string })[]"
484
+ }
485
+ }
486
+ ],
487
+ "slots": [
618
488
  {
619
- "name": "optionGroups",
620
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
621
- "attribute": false,
622
- "type": "OptionGroup[]"
489
+ "name": null,
490
+ "description": "表单内容"
623
491
  }
624
492
  ],
625
- "events": [
493
+ "methods": [
626
494
  {
627
- "name": "change",
628
- "description": "复选框变化事件",
629
- "detail": {
630
- "type": "CheckboxOptionType[]"
495
+ "name": "validate",
496
+ "params": [],
497
+ "description": "表单校验方法",
498
+ "returns": {
499
+ "type": "boolean | Record<string, unknown>"
631
500
  }
632
501
  },
633
502
  {
634
- "name": "options.change",
635
- "description": "复选框变化事件",
636
- "detail": {
637
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
638
- }
503
+ "name": "setInitValue",
504
+ "params": [
505
+ {
506
+ "name": "values",
507
+ "type": "Record<string, unknown>"
508
+ },
509
+ {
510
+ "name": "options",
511
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
512
+ }
513
+ ],
514
+ "description": "表单设置值方法",
515
+ "returns": {}
516
+ },
517
+ {
518
+ "name": "resetFields",
519
+ "params": [
520
+ {
521
+ "name": "name",
522
+ "type": "string"
523
+ }
524
+ ],
525
+ "description": "表单重置值方法",
526
+ "returns": {}
527
+ },
528
+ {
529
+ "name": "getFieldsValue",
530
+ "params": [
531
+ {
532
+ "name": "name",
533
+ "type": "string"
534
+ }
535
+ ],
536
+ "description": "获取表单值方法",
537
+ "returns": {}
538
+ },
539
+ {
540
+ "name": "validateField",
541
+ "params": [
542
+ {
543
+ "name": "name",
544
+ "type": "string"
545
+ }
546
+ ],
547
+ "description": "校验表单字段方法",
548
+ "returns": {}
549
+ },
550
+ {
551
+ "name": "resetValidateState",
552
+ "params": [],
553
+ "description": "重置表单校验状态方法",
554
+ "returns": {}
639
555
  }
640
556
  ],
641
- "slots": [],
642
- "methods": [],
643
557
  "parts": [],
644
- "description": "表单复选框构件",
558
+ "description": "表单构件",
645
559
  "category": "form-input-basic"
646
560
  },
647
561
  {
@@ -804,9 +718,9 @@
804
718
  "category": "interact-basic"
805
719
  },
806
720
  {
807
- "name": "eo-upload-image",
721
+ "name": "eo-checkbox",
808
722
  "alias": [
809
- "form.upload-image"
723
+ "form.general-checkbox"
810
724
  ],
811
725
  "properties": [
812
726
  {
@@ -823,27 +737,104 @@
823
737
  "name": "value",
824
738
  "description": "值",
825
739
  "attribute": false,
826
- "type": "ImageData[]"
740
+ "type": "CheckboxValueType[]"
827
741
  },
828
742
  {
829
- "name": "bucketName",
830
- "description": "对象存储桶名字",
831
- "type": "string"
743
+ "name": "options",
744
+ "description": "多选框选项表",
745
+ "required": true,
746
+ "default": "[]",
747
+ "attribute": false,
748
+ "type": "CheckboxOptionType[]"
832
749
  },
833
750
  {
834
- "name": "maxCount",
835
- "description": "最大上传数量",
836
- "type": "number"
751
+ "name": "type",
752
+ "description": "类型",
753
+ "default": "\"default\"",
754
+ "type": "CheckboxType"
837
755
  },
838
756
  {
839
- "name": "multiple",
840
- "description": "是否支持选定的多张图片",
757
+ "name": "disabled",
758
+ "description": "是否禁用",
841
759
  "type": "boolean"
842
760
  },
843
761
  {
844
- "name": "limitSize",
845
- "description": "上传大小限制(单位为 MB)",
846
- "type": "number"
762
+ "name": "isCustom",
763
+ "description": "是否为自定义",
764
+ "default": "false",
765
+ "type": "boolean"
766
+ },
767
+ {
768
+ "name": "required",
769
+ "description": "是否必填",
770
+ "type": "boolean"
771
+ },
772
+ {
773
+ "name": "message",
774
+ "description": "校验文本",
775
+ "attribute": false,
776
+ "type": "Record<string, string>"
777
+ },
778
+ {
779
+ "name": "isGroup",
780
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
781
+ "type": "boolean"
782
+ },
783
+ {
784
+ "name": "optionGroups",
785
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
786
+ "attribute": false,
787
+ "type": "OptionGroup[]"
788
+ }
789
+ ],
790
+ "events": [
791
+ {
792
+ "name": "change",
793
+ "description": "复选框变化事件",
794
+ "detail": {
795
+ "type": "CheckboxOptionType[]"
796
+ }
797
+ },
798
+ {
799
+ "name": "options.change",
800
+ "description": "复选框变化事件",
801
+ "detail": {
802
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
803
+ }
804
+ }
805
+ ],
806
+ "slots": [],
807
+ "methods": [],
808
+ "parts": [],
809
+ "description": "表单复选框构件",
810
+ "category": "form-input-basic"
811
+ },
812
+ {
813
+ "name": "eo-icon-select",
814
+ "alias": [
815
+ "form.icon-select"
816
+ ],
817
+ "properties": [
818
+ {
819
+ "name": "name",
820
+ "description": "字段名称",
821
+ "type": "string"
822
+ },
823
+ {
824
+ "name": "label",
825
+ "description": "字段说明",
826
+ "type": "string"
827
+ },
828
+ {
829
+ "name": "value",
830
+ "description": "值",
831
+ "attribute": false,
832
+ "type": "Icon"
833
+ },
834
+ {
835
+ "name": "disabled",
836
+ "description": "是否禁用",
837
+ "type": "boolean"
847
838
  },
848
839
  {
849
840
  "name": "required",
@@ -852,7 +843,7 @@
852
843
  },
853
844
  {
854
845
  "name": "message",
855
- "description": "校验文本信息",
846
+ "description": "是否必填",
856
847
  "attribute": false,
857
848
  "type": "Record<string, string>"
858
849
  }
@@ -862,20 +853,20 @@
862
853
  "name": "change",
863
854
  "description": "值变化时触发",
864
855
  "detail": {
865
- "type": "ImageData[]"
856
+ "type": "Icon | undefined"
866
857
  }
867
858
  }
868
859
  ],
869
860
  "slots": [],
870
861
  "methods": [],
871
862
  "parts": [],
872
- "description": "上传图片构件",
863
+ "description": "图标选择构件",
873
864
  "category": "form-input-basic"
874
865
  },
875
866
  {
876
- "name": "eo-icon-select",
867
+ "name": "eo-upload-image",
877
868
  "alias": [
878
- "form.icon-select"
869
+ "form.upload-image"
879
870
  ],
880
871
  "properties": [
881
872
  {
@@ -892,13 +883,28 @@
892
883
  "name": "value",
893
884
  "description": "值",
894
885
  "attribute": false,
895
- "type": "Icon"
886
+ "type": "ImageData[]"
896
887
  },
897
888
  {
898
- "name": "disabled",
899
- "description": "是否禁用",
889
+ "name": "bucketName",
890
+ "description": "对象存储桶名字",
891
+ "type": "string"
892
+ },
893
+ {
894
+ "name": "maxCount",
895
+ "description": "最大上传数量",
896
+ "type": "number"
897
+ },
898
+ {
899
+ "name": "multiple",
900
+ "description": "是否支持选定的多张图片",
900
901
  "type": "boolean"
901
902
  },
903
+ {
904
+ "name": "limitSize",
905
+ "description": "上传大小限制(单位为 MB)",
906
+ "type": "number"
907
+ },
902
908
  {
903
909
  "name": "required",
904
910
  "description": "是否必填",
@@ -906,7 +912,7 @@
906
912
  },
907
913
  {
908
914
  "name": "message",
909
- "description": "是否必填",
915
+ "description": "校验文本信息",
910
916
  "attribute": false,
911
917
  "type": "Record<string, string>"
912
918
  }
@@ -916,14 +922,14 @@
916
922
  "name": "change",
917
923
  "description": "值变化时触发",
918
924
  "detail": {
919
- "type": "Icon | undefined"
925
+ "type": "ImageData[]"
920
926
  }
921
927
  }
922
928
  ],
923
929
  "slots": [],
924
930
  "methods": [],
925
931
  "parts": [],
926
- "description": "图标选择构件",
932
+ "description": "上传图片构件",
927
933
  "category": "form-input-basic"
928
934
  },
929
935
  {
@@ -1536,6 +1542,114 @@
1536
1542
  "parts": [],
1537
1543
  "description": "构件 `eo-color-picker`"
1538
1544
  },
1545
+ {
1546
+ "name": "eo-form-item",
1547
+ "alias": [
1548
+ "form.general-form-item"
1549
+ ],
1550
+ "properties": [
1551
+ {
1552
+ "name": "formElement",
1553
+ "attribute": false,
1554
+ "type": "Form"
1555
+ },
1556
+ {
1557
+ "name": "curElement",
1558
+ "attribute": false,
1559
+ "type": "HTMLElement"
1560
+ },
1561
+ {
1562
+ "name": "name",
1563
+ "description": "字段名称",
1564
+ "type": "string"
1565
+ },
1566
+ {
1567
+ "name": "label",
1568
+ "type": "string"
1569
+ },
1570
+ {
1571
+ "name": "pattern",
1572
+ "type": "string"
1573
+ },
1574
+ {
1575
+ "name": "message",
1576
+ "attribute": false,
1577
+ "type": "Record<string, string>"
1578
+ },
1579
+ {
1580
+ "name": "type",
1581
+ "type": "string"
1582
+ },
1583
+ {
1584
+ "name": "max",
1585
+ "type": "number"
1586
+ },
1587
+ {
1588
+ "name": "min",
1589
+ "type": "number"
1590
+ },
1591
+ {
1592
+ "name": "required",
1593
+ "description": "表单项是否为必填",
1594
+ "type": "boolean"
1595
+ },
1596
+ {
1597
+ "name": "value",
1598
+ "description": "初始值",
1599
+ "type": "string"
1600
+ },
1601
+ {
1602
+ "name": "valuePropsName",
1603
+ "type": "string"
1604
+ },
1605
+ {
1606
+ "name": "layout",
1607
+ "type": "Layout"
1608
+ },
1609
+ {
1610
+ "name": "size",
1611
+ "type": "ComponentSize"
1612
+ },
1613
+ {
1614
+ "name": "trim",
1615
+ "description": "是否自动去除前后的空白字符",
1616
+ "default": "true"
1617
+ },
1618
+ {
1619
+ "name": "trigger",
1620
+ "description": "事件触发方法名",
1621
+ "type": "string"
1622
+ },
1623
+ {
1624
+ "name": "validator",
1625
+ "description": "表单项校验方法",
1626
+ "attribute": false,
1627
+ "type": "((value: any) => MessageBody)"
1628
+ },
1629
+ {
1630
+ "name": "needValidate",
1631
+ "description": "值变化时是否主动出发校验",
1632
+ "type": "boolean"
1633
+ },
1634
+ {
1635
+ "name": "textContent",
1636
+ "type": "string",
1637
+ "description": "文本内容"
1638
+ }
1639
+ ],
1640
+ "events": [],
1641
+ "slots": [
1642
+ {
1643
+ "name": null,
1644
+ "description": "表单项内容"
1645
+ }
1646
+ ],
1647
+ "methods": [],
1648
+ "parts": [],
1649
+ "description": "通用输入框构件",
1650
+ "category": "form-input-basic",
1651
+ "insider": true
1652
+ },
1539
1653
  {
1540
1654
  "name": "eo-input",
1541
1655
  "alias": [
@@ -1720,114 +1834,6 @@
1720
1834
  ],
1721
1835
  "description": "通用输入框构件",
1722
1836
  "category": "form-input-basic"
1723
- },
1724
- {
1725
- "name": "eo-form-item",
1726
- "alias": [
1727
- "form.general-form-item"
1728
- ],
1729
- "properties": [
1730
- {
1731
- "name": "formElement",
1732
- "attribute": false,
1733
- "type": "Form"
1734
- },
1735
- {
1736
- "name": "curElement",
1737
- "attribute": false,
1738
- "type": "HTMLElement"
1739
- },
1740
- {
1741
- "name": "name",
1742
- "description": "字段名称",
1743
- "type": "string"
1744
- },
1745
- {
1746
- "name": "label",
1747
- "type": "string"
1748
- },
1749
- {
1750
- "name": "pattern",
1751
- "type": "string"
1752
- },
1753
- {
1754
- "name": "message",
1755
- "attribute": false,
1756
- "type": "Record<string, string>"
1757
- },
1758
- {
1759
- "name": "type",
1760
- "type": "string"
1761
- },
1762
- {
1763
- "name": "max",
1764
- "type": "number"
1765
- },
1766
- {
1767
- "name": "min",
1768
- "type": "number"
1769
- },
1770
- {
1771
- "name": "required",
1772
- "description": "表单项是否为必填",
1773
- "type": "boolean"
1774
- },
1775
- {
1776
- "name": "value",
1777
- "description": "初始值",
1778
- "type": "string"
1779
- },
1780
- {
1781
- "name": "valuePropsName",
1782
- "type": "string"
1783
- },
1784
- {
1785
- "name": "layout",
1786
- "type": "Layout"
1787
- },
1788
- {
1789
- "name": "size",
1790
- "type": "ComponentSize"
1791
- },
1792
- {
1793
- "name": "trim",
1794
- "description": "是否自动去除前后的空白字符",
1795
- "default": "true"
1796
- },
1797
- {
1798
- "name": "trigger",
1799
- "description": "事件触发方法名",
1800
- "type": "string"
1801
- },
1802
- {
1803
- "name": "validator",
1804
- "description": "表单项校验方法",
1805
- "attribute": false,
1806
- "type": "((value: any) => MessageBody)"
1807
- },
1808
- {
1809
- "name": "needValidate",
1810
- "description": "值变化时是否主动出发校验",
1811
- "type": "boolean"
1812
- },
1813
- {
1814
- "name": "textContent",
1815
- "type": "string",
1816
- "description": "文本内容"
1817
- }
1818
- ],
1819
- "events": [],
1820
- "slots": [
1821
- {
1822
- "name": null,
1823
- "description": "表单项内容"
1824
- }
1825
- ],
1826
- "methods": [],
1827
- "parts": [],
1828
- "description": "通用输入框构件",
1829
- "category": "form-input-basic",
1830
- "insider": true
1831
1837
  }
1832
1838
  ],
1833
1839
  "providers": []