@next-bricks/form 1.9.3 → 1.9.5

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.
Files changed (41) hide show
  1. package/dist/bricks.json +30 -30
  2. package/dist/chunks/1337.7e5a7581.js +2 -0
  3. package/dist/chunks/1337.7e5a7581.js.map +1 -0
  4. package/dist/chunks/7721.09baecc4.js +3 -0
  5. package/dist/chunks/7721.09baecc4.js.map +1 -0
  6. package/dist/chunks/{9515.43552523.js → 9515.e0e282f4.js} +2 -2
  7. package/dist/chunks/{9515.43552523.js.map → 9515.e0e282f4.js.map} +1 -1
  8. package/dist/chunks/eo-auto-complete.02f91029.js +3 -0
  9. package/dist/chunks/eo-auto-complete.02f91029.js.map +1 -0
  10. package/dist/chunks/{eo-checkbox.b4956dea.js → eo-checkbox.d15b0afb.js} +2 -2
  11. package/dist/chunks/eo-checkbox.d15b0afb.js.map +1 -0
  12. package/dist/chunks/{eo-form.950a4fa5.js → eo-form.19913e06.js} +2 -2
  13. package/dist/chunks/eo-form.19913e06.js.map +1 -0
  14. package/dist/chunks/eo-radio.53354dcb.js +3 -0
  15. package/dist/chunks/eo-radio.53354dcb.js.map +1 -0
  16. package/dist/chunks/eo-select.5d07e8c1.js +3 -0
  17. package/dist/chunks/eo-select.5d07e8c1.js.map +1 -0
  18. package/dist/chunks/{main.de47e189.js → main.9465fd29.js} +2 -2
  19. package/dist/chunks/{main.de47e189.js.map → main.9465fd29.js.map} +1 -1
  20. package/dist/examples.json +11 -11
  21. package/dist/{index.27987d36.js → index.7f6674a6.js} +2 -2
  22. package/dist/{index.27987d36.js.map → index.7f6674a6.js.map} +1 -1
  23. package/dist/manifest.json +412 -412
  24. package/dist/types.json +1387 -1387
  25. package/package.json +2 -2
  26. package/dist/chunks/1337.8d586b6b.js +0 -2
  27. package/dist/chunks/1337.8d586b6b.js.map +0 -1
  28. package/dist/chunks/7721.d538ed46.js +0 -3
  29. package/dist/chunks/7721.d538ed46.js.map +0 -1
  30. package/dist/chunks/eo-auto-complete.bf5ea5a8.js +0 -3
  31. package/dist/chunks/eo-auto-complete.bf5ea5a8.js.map +0 -1
  32. package/dist/chunks/eo-checkbox.b4956dea.js.map +0 -1
  33. package/dist/chunks/eo-form.950a4fa5.js.map +0 -1
  34. package/dist/chunks/eo-radio.bde94bc4.js +0 -3
  35. package/dist/chunks/eo-radio.bde94bc4.js.map +0 -1
  36. package/dist/chunks/eo-select.6485c749.js +0 -3
  37. package/dist/chunks/eo-select.6485c749.js.map +0 -1
  38. /package/dist/chunks/{7721.d538ed46.js.LICENSE.txt → 7721.09baecc4.js.LICENSE.txt} +0 -0
  39. /package/dist/chunks/{eo-auto-complete.bf5ea5a8.js.LICENSE.txt → eo-auto-complete.02f91029.js.LICENSE.txt} +0 -0
  40. /package/dist/chunks/{eo-radio.bde94bc4.js.LICENSE.txt → eo-radio.53354dcb.js.LICENSE.txt} +0 -0
  41. /package/dist/chunks/{eo-select.6485c749.js.LICENSE.txt → eo-select.5d07e8c1.js.LICENSE.txt} +0 -0
@@ -188,104 +188,6 @@
188
188
  "description": "通用输入框构件",
189
189
  "category": "form-input-basic"
190
190
  },
191
- {
192
- "name": "eo-radio",
193
- "alias": [
194
- "form.general-radio"
195
- ],
196
- "properties": [
197
- {
198
- "name": "name",
199
- "description": "下拉框字段名",
200
- "type": "string"
201
- },
202
- {
203
- "name": "label",
204
- "description": "单选框字段说明",
205
- "type": "string"
206
- },
207
- {
208
- "name": "options",
209
- "description": "单选框选项表",
210
- "required": true,
211
- "attribute": false,
212
- "type": "GeneralOption[]"
213
- },
214
- {
215
- "name": "value",
216
- "description": "单选框当前选中始值",
217
- "attribute": false,
218
- "type": "any"
219
- },
220
- {
221
- "name": "required",
222
- "description": "是否必填",
223
- "type": "boolean"
224
- },
225
- {
226
- "name": "message",
227
- "description": "校验文本信息",
228
- "attribute": false,
229
- "type": "Record<string, string>"
230
- },
231
- {
232
- "name": "disabled",
233
- "description": "是否禁用",
234
- "type": "boolean"
235
- },
236
- {
237
- "name": "type",
238
- "description": "单选框样式类型",
239
- "default": "\"default\"",
240
- "type": "RadioType"
241
- },
242
- {
243
- "name": "ui",
244
- "description": "UI样式",
245
- "default": "\"default\"",
246
- "type": "UIType"
247
- },
248
- {
249
- "name": "size",
250
- "description": "大小,只对按钮样式生效",
251
- "default": "\"medium\"",
252
- "type": "ComponentSize"
253
- },
254
- {
255
- "name": "customStyle",
256
- "description": "自定义radio的外层样式",
257
- "attribute": false,
258
- "type": "React.CSSProperties"
259
- },
260
- {
261
- "name": "useBrick",
262
- "description": "自定义radio的内容",
263
- "attribute": false,
264
- "type": "UseSingleBrickConf"
265
- }
266
- ],
267
- "events": [
268
- {
269
- "name": "change",
270
- "description": "值变化事件",
271
- "detail": {
272
- "type": "GeneralComplexOption | undefined"
273
- }
274
- },
275
- {
276
- "name": "options.change",
277
- "description": "选项列表变化事件",
278
- "detail": {
279
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
280
- }
281
- }
282
- ],
283
- "slots": [],
284
- "methods": [],
285
- "parts": [],
286
- "description": "通用单选构件",
287
- "category": "form-input-basic"
288
- },
289
191
  {
290
192
  "name": "eo-form-item",
291
193
  "alias": [
@@ -528,9 +430,9 @@
528
430
  "category": "form-input-basic"
529
431
  },
530
432
  {
531
- "name": "eo-checkbox",
433
+ "name": "eo-textarea",
532
434
  "alias": [
533
- "form.general-checkbox"
435
+ "form.general-textarea"
534
436
  ],
535
437
  "properties": [
536
438
  {
@@ -540,28 +442,18 @@
540
442
  },
541
443
  {
542
444
  "name": "label",
543
- "description": "字段说明",
445
+ "description": "标签文字",
544
446
  "type": "string"
545
447
  },
546
448
  {
547
449
  "name": "value",
548
450
  "description": "值",
549
- "attribute": false,
550
- "type": "CheckboxValueType[]"
551
- },
552
- {
553
- "name": "options",
554
- "description": "多选框选项表",
555
- "required": true,
556
- "default": "[]",
557
- "attribute": false,
558
- "type": "CheckboxOptionType[]"
451
+ "type": "string"
559
452
  },
560
453
  {
561
- "name": "type",
562
- "description": "类型",
563
- "default": "\"default\"",
564
- "type": "CheckboxType"
454
+ "name": "placeholder",
455
+ "description": "占位说明",
456
+ "type": "string"
565
457
  },
566
458
  {
567
459
  "name": "disabled",
@@ -569,54 +461,63 @@
569
461
  "type": "boolean"
570
462
  },
571
463
  {
572
- "name": "isCustom",
573
- "description": "是否为自定义",
574
- "default": "false",
575
- "type": "boolean"
464
+ "name": "minLength",
465
+ "description": "最小长度",
466
+ "type": "number"
467
+ },
468
+ {
469
+ "name": "maxLength",
470
+ "description": "最大长度",
471
+ "type": "number"
472
+ },
473
+ {
474
+ "name": "autoSize",
475
+ "description": "大小自适应",
476
+ "attribute": false,
477
+ "type": "AutoSize"
576
478
  },
577
479
  {
578
480
  "name": "required",
579
481
  "description": "是否必填",
580
482
  "type": "boolean"
581
483
  },
484
+ {
485
+ "name": "max",
486
+ "description": "表单校验最大长度",
487
+ "type": "number"
488
+ },
489
+ {
490
+ "name": "min",
491
+ "description": "表单校验最小长度",
492
+ "type": "number"
493
+ },
582
494
  {
583
495
  "name": "message",
584
- "description": "校验文本",
496
+ "description": "校验信息",
585
497
  "attribute": false,
586
498
  "type": "Record<string, string>"
587
499
  },
588
500
  {
589
- "name": "isGroup",
590
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
591
- "type": "boolean"
592
- },
593
- {
594
- "name": "optionGroups",
595
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
501
+ "name": "textareaStyle",
502
+ "description": "自定义样式",
596
503
  "attribute": false,
597
- "type": "OptionGroup[]"
504
+ "type": "React.CSSProperties"
598
505
  }
599
506
  ],
600
507
  "events": [
601
508
  {
602
509
  "name": "change",
603
- "description": "复选框变化事件",
604
- "detail": {
605
- "type": "CheckboxOptionType[]"
606
- }
607
- },
608
- {
609
- "name": "options.change",
610
- "description": "复选框变化事件",
510
+ "description": "",
611
511
  "detail": {
612
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
512
+ "description": null,
513
+ "type": "string"
613
514
  }
614
515
  }
615
516
  ],
616
517
  "slots": [],
617
518
  "methods": [],
618
519
  "parts": [],
619
- "description": "表单复选框构件",
520
+ "description": "通用多行文本输入框构件",
620
521
  "category": "form-input-basic"
621
522
  },
622
523
  {
@@ -680,9 +581,9 @@
680
581
  "category": "form-input-basic"
681
582
  },
682
583
  {
683
- "name": "eo-dynamic-form-item",
584
+ "name": "eo-checkbox",
684
585
  "alias": [
685
- "form.dynamic-form-item"
586
+ "form.general-checkbox"
686
587
  ],
687
588
  "properties": [
688
589
  {
@@ -695,73 +596,300 @@
695
596
  "description": "字段说明",
696
597
  "type": "string"
697
598
  },
698
- {
699
- "name": "required",
700
- "description": "是否必填",
701
- "type": "boolean"
702
- },
703
599
  {
704
600
  "name": "value",
705
601
  "description": "值",
706
602
  "attribute": false,
707
- "type": "DynamicFormValuesItem[]"
603
+ "type": "CheckboxValueType[]"
708
604
  },
709
605
  {
710
- "name": "message",
711
- "description": "校验文本",
606
+ "name": "options",
607
+ "description": "多选框选项表",
608
+ "required": true,
609
+ "default": "[]",
712
610
  "attribute": false,
713
- "type": "Record<string, string>"
611
+ "type": "CheckboxOptionType[]"
714
612
  },
715
613
  {
716
- "name": "hideRemoveButton",
717
- "description": "是否隐藏每一行删除的按钮",
718
- "attribute": false,
719
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
614
+ "name": "type",
615
+ "description": "类型",
616
+ "default": "\"default\"",
617
+ "type": "CheckboxType"
720
618
  },
721
619
  {
722
- "name": "disabledRemoveButton",
723
- "description": "是否禁止每一行删除的按钮",
724
- "attribute": false,
725
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
620
+ "name": "disabled",
621
+ "description": "是否禁用",
622
+ "type": "boolean"
726
623
  },
727
624
  {
728
- "name": "hideAddButton",
729
- "description": "是否隐藏添加的按钮",
730
- "attribute": false,
731
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
625
+ "name": "isCustom",
626
+ "description": "是否为自定义",
627
+ "default": "false",
628
+ "type": "boolean"
732
629
  },
733
630
  {
734
- "name": "disabledAddButton",
735
- "description": "是否禁止添加的按钮",
631
+ "name": "required",
632
+ "description": "是否必填",
633
+ "type": "boolean"
634
+ },
635
+ {
636
+ "name": "message",
637
+ "description": "校验文本",
736
638
  "attribute": false,
737
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
639
+ "type": "Record<string, string>"
738
640
  },
739
641
  {
740
- "name": "useBrick",
741
- "description": "动态表单子项构件列表",
642
+ "name": "isGroup",
643
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
644
+ "type": "boolean"
645
+ },
646
+ {
647
+ "name": "optionGroups",
648
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
742
649
  "attribute": false,
743
- "type": "UseBrickConf"
650
+ "type": "OptionGroup[]"
744
651
  }
745
652
  ],
746
653
  "events": [
747
654
  {
748
655
  "name": "change",
656
+ "description": "复选框变化事件",
749
657
  "detail": {
750
- "type": "DynamicFormValuesItem[]"
658
+ "type": "CheckboxOptionType[]"
751
659
  }
752
660
  },
753
661
  {
754
- "name": "row.add",
755
- "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
662
+ "name": "options.change",
663
+ "description": "复选框变化事件",
756
664
  "detail": {
757
- "type": "rowDataType"
665
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
758
666
  }
759
- },
760
- {
761
- "name": "row.remove",
762
- "description": "移除一行时触发,detail为该行的值,index为该行的位置",
763
- "detail": {
764
- "type": "rowDataType"
667
+ }
668
+ ],
669
+ "slots": [],
670
+ "methods": [],
671
+ "parts": [],
672
+ "description": "表单复选框构件",
673
+ "category": "form-input-basic"
674
+ },
675
+ {
676
+ "name": "eo-form",
677
+ "alias": [
678
+ "form.general-form"
679
+ ],
680
+ "properties": [
681
+ {
682
+ "name": "layout",
683
+ "description": "布局方式(默认 vertical 布局)",
684
+ "default": "vertical",
685
+ "type": "Layout"
686
+ },
687
+ {
688
+ "name": "size",
689
+ "description": "表单组件尺寸",
690
+ "type": "ComponentSize"
691
+ },
692
+ {
693
+ "name": "labelCol",
694
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
695
+ "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 }",
696
+ "attribute": false,
697
+ "type": "ColProps"
698
+ },
699
+ {
700
+ "name": "wrapperCol",
701
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
702
+ "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 }",
703
+ "attribute": false,
704
+ "type": "ColProps"
705
+ },
706
+ {
707
+ "name": "formStyle",
708
+ "attribute": false,
709
+ "type": "React.CSSProperties"
710
+ }
711
+ ],
712
+ "events": [
713
+ {
714
+ "name": "values.change",
715
+ "description": "表单值变更事件",
716
+ "detail": {
717
+ "description": null,
718
+ "type": "Record<string, unknown>"
719
+ }
720
+ },
721
+ {
722
+ "name": "validate.success",
723
+ "description": "表单验证成功时触发事件",
724
+ "detail": {
725
+ "type": "Record<string, unknown>"
726
+ }
727
+ },
728
+ {
729
+ "name": "validate.error",
730
+ "description": "表单验证报错时触发事件",
731
+ "detail": {
732
+ "type": "MessageBody[]"
733
+ }
734
+ }
735
+ ],
736
+ "slots": [
737
+ {
738
+ "name": null,
739
+ "description": "表单内容"
740
+ }
741
+ ],
742
+ "methods": [
743
+ {
744
+ "name": "validate",
745
+ "params": [],
746
+ "description": "表单校验方法",
747
+ "returns": {
748
+ "type": "boolean | Record<string, unknown>"
749
+ }
750
+ },
751
+ {
752
+ "name": "setInitValue",
753
+ "params": [
754
+ {
755
+ "name": "values",
756
+ "type": "Record<string, unknown>"
757
+ },
758
+ {
759
+ "name": "options",
760
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
761
+ }
762
+ ],
763
+ "description": "表单设置值方法",
764
+ "returns": {}
765
+ },
766
+ {
767
+ "name": "resetFields",
768
+ "params": [
769
+ {
770
+ "name": "name",
771
+ "type": "string"
772
+ }
773
+ ],
774
+ "description": "表单重置值方法",
775
+ "returns": {}
776
+ },
777
+ {
778
+ "name": "getFieldsValue",
779
+ "params": [
780
+ {
781
+ "name": "name",
782
+ "type": "string"
783
+ }
784
+ ],
785
+ "description": "获取表单值方法",
786
+ "returns": {}
787
+ },
788
+ {
789
+ "name": "validateField",
790
+ "params": [
791
+ {
792
+ "name": "name",
793
+ "type": "string"
794
+ }
795
+ ],
796
+ "description": "校验表单字段方法",
797
+ "returns": {}
798
+ },
799
+ {
800
+ "name": "resetValidateState",
801
+ "params": [],
802
+ "description": "重置表单校验状态方法",
803
+ "returns": {}
804
+ }
805
+ ],
806
+ "parts": [],
807
+ "description": "表单构件",
808
+ "category": "form-input-basic"
809
+ },
810
+ {
811
+ "name": "eo-dynamic-form-item",
812
+ "alias": [
813
+ "form.dynamic-form-item"
814
+ ],
815
+ "properties": [
816
+ {
817
+ "name": "name",
818
+ "description": "字段名称",
819
+ "type": "string"
820
+ },
821
+ {
822
+ "name": "label",
823
+ "description": "字段说明",
824
+ "type": "string"
825
+ },
826
+ {
827
+ "name": "required",
828
+ "description": "是否必填",
829
+ "type": "boolean"
830
+ },
831
+ {
832
+ "name": "value",
833
+ "description": "值",
834
+ "attribute": false,
835
+ "type": "DynamicFormValuesItem[]"
836
+ },
837
+ {
838
+ "name": "message",
839
+ "description": "校验文本",
840
+ "attribute": false,
841
+ "type": "Record<string, string>"
842
+ },
843
+ {
844
+ "name": "hideRemoveButton",
845
+ "description": "是否隐藏每一行删除的按钮",
846
+ "attribute": false,
847
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
848
+ },
849
+ {
850
+ "name": "disabledRemoveButton",
851
+ "description": "是否禁止每一行删除的按钮",
852
+ "attribute": false,
853
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
854
+ },
855
+ {
856
+ "name": "hideAddButton",
857
+ "description": "是否隐藏添加的按钮",
858
+ "attribute": false,
859
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
860
+ },
861
+ {
862
+ "name": "disabledAddButton",
863
+ "description": "是否禁止添加的按钮",
864
+ "attribute": false,
865
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
866
+ },
867
+ {
868
+ "name": "useBrick",
869
+ "description": "动态表单子项构件列表",
870
+ "attribute": false,
871
+ "type": "UseBrickConf"
872
+ }
873
+ ],
874
+ "events": [
875
+ {
876
+ "name": "change",
877
+ "detail": {
878
+ "type": "DynamicFormValuesItem[]"
879
+ }
880
+ },
881
+ {
882
+ "name": "row.add",
883
+ "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
884
+ "detail": {
885
+ "type": "rowDataType"
886
+ }
887
+ },
888
+ {
889
+ "name": "row.remove",
890
+ "description": "移除一行时触发,detail为该行的值,index为该行的位置",
891
+ "detail": {
892
+ "type": "rowDataType"
765
893
  }
766
894
  }
767
895
  ],
@@ -860,30 +988,128 @@
860
988
  "type": "boolean"
861
989
  },
862
990
  {
863
- "name": "required",
864
- "description": "是否必填",
865
- "type": "boolean"
991
+ "name": "required",
992
+ "description": "是否必填",
993
+ "type": "boolean"
994
+ },
995
+ {
996
+ "name": "message",
997
+ "description": "是否必填",
998
+ "attribute": false,
999
+ "type": "Record<string, string>"
1000
+ }
1001
+ ],
1002
+ "events": [
1003
+ {
1004
+ "name": "change",
1005
+ "description": "值变化时触发",
1006
+ "detail": {
1007
+ "type": "Icon | undefined"
1008
+ }
1009
+ }
1010
+ ],
1011
+ "slots": [],
1012
+ "methods": [],
1013
+ "parts": [],
1014
+ "description": "图标选择构件",
1015
+ "category": "form-input-basic"
1016
+ },
1017
+ {
1018
+ "name": "eo-radio",
1019
+ "alias": [
1020
+ "form.general-radio"
1021
+ ],
1022
+ "properties": [
1023
+ {
1024
+ "name": "name",
1025
+ "description": "下拉框字段名",
1026
+ "type": "string"
1027
+ },
1028
+ {
1029
+ "name": "label",
1030
+ "description": "单选框字段说明",
1031
+ "type": "string"
1032
+ },
1033
+ {
1034
+ "name": "options",
1035
+ "description": "单选框选项表",
1036
+ "required": true,
1037
+ "attribute": false,
1038
+ "type": "GeneralOption[]"
1039
+ },
1040
+ {
1041
+ "name": "value",
1042
+ "description": "单选框当前选中始值",
1043
+ "attribute": false,
1044
+ "type": "any"
1045
+ },
1046
+ {
1047
+ "name": "required",
1048
+ "description": "是否必填",
1049
+ "type": "boolean"
1050
+ },
1051
+ {
1052
+ "name": "message",
1053
+ "description": "校验文本信息",
1054
+ "attribute": false,
1055
+ "type": "Record<string, string>"
1056
+ },
1057
+ {
1058
+ "name": "disabled",
1059
+ "description": "是否禁用",
1060
+ "type": "boolean"
1061
+ },
1062
+ {
1063
+ "name": "type",
1064
+ "description": "单选框样式类型",
1065
+ "default": "\"default\"",
1066
+ "type": "RadioType"
1067
+ },
1068
+ {
1069
+ "name": "ui",
1070
+ "description": "UI样式",
1071
+ "default": "\"default\"",
1072
+ "type": "UIType"
1073
+ },
1074
+ {
1075
+ "name": "size",
1076
+ "description": "大小,只对按钮样式生效",
1077
+ "default": "\"medium\"",
1078
+ "type": "ComponentSize"
1079
+ },
1080
+ {
1081
+ "name": "customStyle",
1082
+ "description": "自定义radio的外层样式",
1083
+ "attribute": false,
1084
+ "type": "React.CSSProperties"
866
1085
  },
867
1086
  {
868
- "name": "message",
869
- "description": "是否必填",
1087
+ "name": "useBrick",
1088
+ "description": "自定义radio的内容",
870
1089
  "attribute": false,
871
- "type": "Record<string, string>"
1090
+ "type": "UseSingleBrickConf"
872
1091
  }
873
1092
  ],
874
1093
  "events": [
875
1094
  {
876
1095
  "name": "change",
877
- "description": "值变化时触发",
1096
+ "description": "值变化事件",
878
1097
  "detail": {
879
- "type": "Icon | undefined"
1098
+ "type": "GeneralComplexOption | undefined"
1099
+ }
1100
+ },
1101
+ {
1102
+ "name": "options.change",
1103
+ "description": "选项列表变化事件",
1104
+ "detail": {
1105
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
880
1106
  }
881
1107
  }
882
1108
  ],
883
1109
  "slots": [],
884
1110
  "methods": [],
885
1111
  "parts": [],
886
- "description": "图标选择构件",
1112
+ "description": "通用单选构件",
887
1113
  "category": "form-input-basic"
888
1114
  },
889
1115
  {
@@ -1024,97 +1250,6 @@
1024
1250
  "description": "开关",
1025
1251
  "category": "form-input-basic"
1026
1252
  },
1027
- {
1028
- "name": "eo-textarea",
1029
- "alias": [
1030
- "form.general-textarea"
1031
- ],
1032
- "properties": [
1033
- {
1034
- "name": "name",
1035
- "description": "字段名称",
1036
- "type": "string"
1037
- },
1038
- {
1039
- "name": "label",
1040
- "description": "标签文字",
1041
- "type": "string"
1042
- },
1043
- {
1044
- "name": "value",
1045
- "description": "值",
1046
- "type": "string"
1047
- },
1048
- {
1049
- "name": "placeholder",
1050
- "description": "占位说明",
1051
- "type": "string"
1052
- },
1053
- {
1054
- "name": "disabled",
1055
- "description": "是否禁用",
1056
- "type": "boolean"
1057
- },
1058
- {
1059
- "name": "minLength",
1060
- "description": "最小长度",
1061
- "type": "number"
1062
- },
1063
- {
1064
- "name": "maxLength",
1065
- "description": "最大长度",
1066
- "type": "number"
1067
- },
1068
- {
1069
- "name": "autoSize",
1070
- "description": "大小自适应",
1071
- "attribute": false,
1072
- "type": "AutoSize"
1073
- },
1074
- {
1075
- "name": "required",
1076
- "description": "是否必填",
1077
- "type": "boolean"
1078
- },
1079
- {
1080
- "name": "max",
1081
- "description": "表单校验最大长度",
1082
- "type": "number"
1083
- },
1084
- {
1085
- "name": "min",
1086
- "description": "表单校验最小长度",
1087
- "type": "number"
1088
- },
1089
- {
1090
- "name": "message",
1091
- "description": "校验信息",
1092
- "attribute": false,
1093
- "type": "Record<string, string>"
1094
- },
1095
- {
1096
- "name": "textareaStyle",
1097
- "description": "自定义样式",
1098
- "attribute": false,
1099
- "type": "React.CSSProperties"
1100
- }
1101
- ],
1102
- "events": [
1103
- {
1104
- "name": "change",
1105
- "description": "",
1106
- "detail": {
1107
- "description": null,
1108
- "type": "string"
1109
- }
1110
- }
1111
- ],
1112
- "slots": [],
1113
- "methods": [],
1114
- "parts": [],
1115
- "description": "通用多行文本输入框构件",
1116
- "category": "form-input-basic"
1117
- },
1118
1253
  {
1119
1254
  "name": "eo-upload-file",
1120
1255
  "properties": [
@@ -1321,141 +1456,6 @@
1321
1456
  "description": "带候选项的输入框",
1322
1457
  "category": "form-input-basic"
1323
1458
  },
1324
- {
1325
- "name": "eo-form",
1326
- "alias": [
1327
- "form.general-form"
1328
- ],
1329
- "properties": [
1330
- {
1331
- "name": "layout",
1332
- "description": "布局方式(默认 vertical 布局)",
1333
- "default": "vertical",
1334
- "type": "Layout"
1335
- },
1336
- {
1337
- "name": "size",
1338
- "description": "表单组件尺寸",
1339
- "type": "ComponentSize"
1340
- },
1341
- {
1342
- "name": "labelCol",
1343
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
1344
- "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 }",
1345
- "attribute": false,
1346
- "type": "ColProps"
1347
- },
1348
- {
1349
- "name": "wrapperCol",
1350
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
1351
- "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 }",
1352
- "attribute": false,
1353
- "type": "ColProps"
1354
- },
1355
- {
1356
- "name": "formStyle",
1357
- "attribute": false,
1358
- "type": "React.CSSProperties"
1359
- }
1360
- ],
1361
- "events": [
1362
- {
1363
- "name": "values.change",
1364
- "description": "表单值变更事件",
1365
- "detail": {
1366
- "description": null,
1367
- "type": "Record<string, unknown>"
1368
- }
1369
- },
1370
- {
1371
- "name": "validate.success",
1372
- "description": "表单验证成功时触发事件",
1373
- "detail": {
1374
- "type": "Record<string, unknown>"
1375
- }
1376
- },
1377
- {
1378
- "name": "validate.error",
1379
- "description": "表单验证报错时触发事件",
1380
- "detail": {
1381
- "type": "MessageBody[]"
1382
- }
1383
- }
1384
- ],
1385
- "slots": [
1386
- {
1387
- "name": null,
1388
- "description": "表单内容"
1389
- }
1390
- ],
1391
- "methods": [
1392
- {
1393
- "name": "validate",
1394
- "params": [],
1395
- "description": "表单校验方法",
1396
- "returns": {
1397
- "type": "boolean | Record<string, unknown>"
1398
- }
1399
- },
1400
- {
1401
- "name": "setInitValue",
1402
- "params": [
1403
- {
1404
- "name": "values",
1405
- "type": "Record<string, unknown>"
1406
- },
1407
- {
1408
- "name": "options",
1409
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
1410
- }
1411
- ],
1412
- "description": "表单设置值方法",
1413
- "returns": {}
1414
- },
1415
- {
1416
- "name": "resetFields",
1417
- "params": [
1418
- {
1419
- "name": "name",
1420
- "type": "string"
1421
- }
1422
- ],
1423
- "description": "表单重置值方法",
1424
- "returns": {}
1425
- },
1426
- {
1427
- "name": "getFieldsValue",
1428
- "params": [
1429
- {
1430
- "name": "name",
1431
- "type": "string"
1432
- }
1433
- ],
1434
- "description": "获取表单值方法",
1435
- "returns": {}
1436
- },
1437
- {
1438
- "name": "validateField",
1439
- "params": [
1440
- {
1441
- "name": "name",
1442
- "type": "string"
1443
- }
1444
- ],
1445
- "description": "校验表单字段方法",
1446
- "returns": {}
1447
- },
1448
- {
1449
- "name": "resetValidateState",
1450
- "params": [],
1451
- "description": "重置表单校验状态方法",
1452
- "returns": {}
1453
- }
1454
- ],
1455
- "parts": [],
1456
- "description": "表单构件",
1457
- "category": "form-input-basic"
1458
- },
1459
1459
  {
1460
1460
  "name": "eo-time-picker",
1461
1461
  "properties": [