@next-bricks/form 1.13.11 → 1.13.13

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.
@@ -188,104 +188,6 @@
188
188
  "description": "通用输入框构件",
189
189
  "category": "form-input-basic"
190
190
  },
191
- {
192
- "name": "eo-textarea",
193
- "alias": [
194
- "form.general-textarea"
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": "value",
209
- "description": "值",
210
- "type": "string"
211
- },
212
- {
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": "大小自适应",
235
- "attribute": false,
236
- "type": "AutoSize"
237
- },
238
- {
239
- "name": "required",
240
- "description": "是否必填",
241
- "type": "boolean"
242
- },
243
- {
244
- "name": "max",
245
- "description": "表单校验最大长度",
246
- "type": "number"
247
- },
248
- {
249
- "name": "min",
250
- "description": "表单校验最小长度",
251
- "type": "number"
252
- },
253
- {
254
- "name": "message",
255
- "description": "校验信息",
256
- "attribute": false,
257
- "type": "Record<string, string>"
258
- },
259
- {
260
- "name": "textareaStyle",
261
- "description": "自定义样式",
262
- "attribute": false,
263
- "type": "React.CSSProperties"
264
- }
265
- ],
266
- "events": [
267
- {
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
191
  {
290
192
  "name": "eo-form-item",
291
193
  "alias": [
@@ -487,146 +389,6 @@
487
389
  "description": "通用单选构件",
488
390
  "category": "form-input-basic"
489
391
  },
490
- {
491
- "name": "eo-form",
492
- "alias": [
493
- "form.general-form"
494
- ],
495
- "properties": [
496
- {
497
- "name": "staticValues",
498
- "attribute": false,
499
- "type": "Record<string, unknown>"
500
- },
501
- {
502
- "name": "layout",
503
- "description": "布局方式(默认 vertical 布局)",
504
- "default": "vertical",
505
- "type": "Layout"
506
- },
507
- {
508
- "name": "size",
509
- "description": "表单组件尺寸",
510
- "type": "ComponentSize"
511
- },
512
- {
513
- "name": "labelCol",
514
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
515
- "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 }",
516
- "attribute": false,
517
- "type": "ColProps"
518
- },
519
- {
520
- "name": "wrapperCol",
521
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
522
- "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 }",
523
- "attribute": false,
524
- "type": "ColProps"
525
- },
526
- {
527
- "name": "formStyle",
528
- "attribute": false,
529
- "type": "React.CSSProperties"
530
- }
531
- ],
532
- "events": [
533
- {
534
- "name": "values.change",
535
- "description": "表单值变更事件",
536
- "detail": {
537
- "description": null,
538
- "type": "Record<string, unknown>"
539
- }
540
- },
541
- {
542
- "name": "validate.success",
543
- "description": "表单验证成功时触发事件",
544
- "detail": {
545
- "type": "Record<string, unknown>"
546
- }
547
- },
548
- {
549
- "name": "validate.error",
550
- "description": "表单验证报错时触发事件",
551
- "detail": {
552
- "type": "(MessageBody & { name: string })[]"
553
- }
554
- }
555
- ],
556
- "slots": [
557
- {
558
- "name": null,
559
- "description": "表单内容"
560
- }
561
- ],
562
- "methods": [
563
- {
564
- "name": "validate",
565
- "params": [],
566
- "description": "表单校验方法",
567
- "returns": {
568
- "type": "boolean | Record<string, unknown>"
569
- }
570
- },
571
- {
572
- "name": "setInitValue",
573
- "params": [
574
- {
575
- "name": "values",
576
- "type": "Record<string, unknown>"
577
- },
578
- {
579
- "name": "options",
580
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
581
- }
582
- ],
583
- "description": "表单设置值方法",
584
- "returns": {}
585
- },
586
- {
587
- "name": "resetFields",
588
- "params": [
589
- {
590
- "name": "name",
591
- "type": "string"
592
- }
593
- ],
594
- "description": "表单重置值方法",
595
- "returns": {}
596
- },
597
- {
598
- "name": "getFieldsValue",
599
- "params": [
600
- {
601
- "name": "name",
602
- "type": "string"
603
- }
604
- ],
605
- "description": "获取表单值方法",
606
- "returns": {}
607
- },
608
- {
609
- "name": "validateField",
610
- "params": [
611
- {
612
- "name": "name",
613
- "type": "string"
614
- }
615
- ],
616
- "description": "校验表单字段方法",
617
- "returns": {}
618
- },
619
- {
620
- "name": "resetValidateState",
621
- "params": [],
622
- "description": "重置表单校验状态方法",
623
- "returns": {}
624
- }
625
- ],
626
- "parts": [],
627
- "description": "表单构件",
628
- "category": "form-input-basic"
629
- },
630
392
  {
631
393
  "name": "eo-select",
632
394
  "alias": [
@@ -831,9 +593,9 @@
831
593
  "category": "form-input-basic"
832
594
  },
833
595
  {
834
- "name": "eo-dynamic-form-item",
596
+ "name": "eo-textarea",
835
597
  "alias": [
836
- "form.dynamic-form-item"
598
+ "form.general-textarea"
837
599
  ],
838
600
  "properties": [
839
601
  {
@@ -843,145 +605,90 @@
843
605
  },
844
606
  {
845
607
  "name": "label",
846
- "description": "字段说明",
608
+ "description": "标签文字",
847
609
  "type": "string"
848
610
  },
849
- {
850
- "name": "required",
851
- "description": "是否必填",
852
- "type": "boolean"
853
- },
854
611
  {
855
612
  "name": "value",
856
613
  "description": "值",
857
- "attribute": false,
858
- "type": "DynamicFormValuesItem[]"
614
+ "type": "string"
859
615
  },
860
616
  {
861
- "name": "message",
862
- "description": "校验文本",
863
- "attribute": false,
864
- "type": "Record<string, string>"
865
- },
866
- {
867
- "name": "hideRemoveButton",
868
- "description": "是否隐藏每一行删除的按钮",
869
- "attribute": false,
870
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
617
+ "name": "placeholder",
618
+ "description": "占位说明",
619
+ "type": "string"
871
620
  },
872
621
  {
873
- "name": "disabledRemoveButton",
874
- "description": "是否禁止每一行删除的按钮",
875
- "attribute": false,
876
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
622
+ "name": "disabled",
623
+ "description": "是否禁用",
624
+ "type": "boolean"
877
625
  },
878
626
  {
879
- "name": "hideAddButton",
880
- "description": "是否隐藏添加的按钮",
881
- "attribute": false,
882
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
627
+ "name": "minLength",
628
+ "description": "最小长度",
629
+ "type": "number"
883
630
  },
884
631
  {
885
- "name": "disabledAddButton",
886
- "description": "是否禁止添加的按钮",
887
- "attribute": false,
888
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
632
+ "name": "maxLength",
633
+ "description": "最大长度",
634
+ "type": "number"
889
635
  },
890
636
  {
891
- "name": "useBrick",
892
- "description": "动态表单子项构件列表",
637
+ "name": "autoSize",
638
+ "description": "大小自适应",
893
639
  "attribute": false,
894
- "type": "UseBrickConf"
895
- }
896
- ],
897
- "events": [
898
- {
899
- "name": "change",
900
- "detail": {
901
- "type": "DynamicFormValuesItem[]"
902
- }
903
- },
904
- {
905
- "name": "row.add",
906
- "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
907
- "detail": {
908
- "type": "rowDataType"
909
- }
910
- },
911
- {
912
- "name": "row.remove",
913
- "description": "移除一行时触发,detail为该行的值,index为该行的位置",
914
- "detail": {
915
- "type": "rowDataType"
916
- }
917
- }
918
- ],
919
- "slots": [],
920
- "methods": [],
921
- "parts": [],
922
- "description": "动态表单",
923
- "category": "form-input-basic"
924
- },
925
- {
926
- "name": "eo-search",
927
- "alias": [
928
- "form.general-search"
929
- ],
930
- "properties": [
931
- {
932
- "name": "value",
933
- "description": "搜索框的值",
934
- "default": "\"\"",
935
- "type": "string"
640
+ "type": "AutoSize"
936
641
  },
937
642
  {
938
- "name": "placeholder",
939
- "description": "提示语",
940
- "type": "string"
643
+ "name": "required",
644
+ "description": "是否必填",
645
+ "type": "boolean"
941
646
  },
942
647
  {
943
- "name": "autoFocus",
944
- "description": "是否自动聚焦",
945
- "type": "boolean"
648
+ "name": "max",
649
+ "description": "表单校验最大长度",
650
+ "type": "number"
946
651
  },
947
652
  {
948
- "name": "clearable",
949
- "description": "可以点击清除图标删除内容",
950
- "type": "boolean"
653
+ "name": "min",
654
+ "description": "表单校验最小长度",
655
+ "type": "number"
951
656
  },
952
657
  {
953
- "name": "trim",
954
- "description": "是否剔除前后空格",
955
- "type": "boolean"
658
+ "name": "message",
659
+ "description": "校验信息",
660
+ "attribute": false,
661
+ "type": "Record<string, string>"
956
662
  },
957
663
  {
958
- "name": "debounceTime",
959
- "description": "默认延迟时间",
960
- "default": "0",
961
- "type": "number"
664
+ "name": "textareaStyle",
665
+ "description": "自定义样式",
666
+ "attribute": false,
667
+ "type": "React.CSSProperties"
962
668
  }
963
669
  ],
964
670
  "events": [
965
671
  {
966
672
  "name": "change",
967
- "description": "输入的搜索字符,输入变化时触发",
968
- "detail": {
969
- "type": "string"
970
- }
971
- },
972
- {
973
- "name": "search",
974
- "description": "搜索时触发",
673
+ "description": "",
975
674
  "detail": {
675
+ "description": null,
976
676
  "type": "string"
977
677
  }
978
678
  }
979
679
  ],
980
680
  "slots": [],
981
- "methods": [],
681
+ "methods": [
682
+ {
683
+ "name": "focusTextarea",
684
+ "params": [],
685
+ "description": "focus",
686
+ "returns": {}
687
+ }
688
+ ],
982
689
  "parts": [],
983
- "description": "搜索框",
984
- "category": "interact-basic"
690
+ "description": "通用多行文本输入框构件",
691
+ "category": "form-input-basic"
985
692
  },
986
693
  {
987
694
  "name": "eo-checkbox",
@@ -1075,6 +782,305 @@
1075
782
  "description": "表单复选框构件",
1076
783
  "category": "form-input-basic"
1077
784
  },
785
+ {
786
+ "name": "eo-form",
787
+ "alias": [
788
+ "form.general-form"
789
+ ],
790
+ "properties": [
791
+ {
792
+ "name": "staticValues",
793
+ "attribute": false,
794
+ "type": "Record<string, unknown>"
795
+ },
796
+ {
797
+ "name": "layout",
798
+ "description": "布局方式(默认 vertical 布局)",
799
+ "default": "vertical",
800
+ "type": "Layout"
801
+ },
802
+ {
803
+ "name": "size",
804
+ "description": "表单组件尺寸",
805
+ "type": "ComponentSize"
806
+ },
807
+ {
808
+ "name": "labelCol",
809
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
810
+ "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 }",
811
+ "attribute": false,
812
+ "type": "ColProps"
813
+ },
814
+ {
815
+ "name": "wrapperCol",
816
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
817
+ "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 }",
818
+ "attribute": false,
819
+ "type": "ColProps"
820
+ },
821
+ {
822
+ "name": "formStyle",
823
+ "attribute": false,
824
+ "type": "React.CSSProperties"
825
+ }
826
+ ],
827
+ "events": [
828
+ {
829
+ "name": "values.change",
830
+ "description": "表单值变更事件",
831
+ "detail": {
832
+ "description": null,
833
+ "type": "Record<string, unknown>"
834
+ }
835
+ },
836
+ {
837
+ "name": "validate.success",
838
+ "description": "表单验证成功时触发事件",
839
+ "detail": {
840
+ "type": "Record<string, unknown>"
841
+ }
842
+ },
843
+ {
844
+ "name": "validate.error",
845
+ "description": "表单验证报错时触发事件",
846
+ "detail": {
847
+ "type": "(MessageBody & { name: string })[]"
848
+ }
849
+ }
850
+ ],
851
+ "slots": [
852
+ {
853
+ "name": null,
854
+ "description": "表单内容"
855
+ }
856
+ ],
857
+ "methods": [
858
+ {
859
+ "name": "validate",
860
+ "params": [],
861
+ "description": "表单校验方法",
862
+ "returns": {
863
+ "type": "boolean | Record<string, unknown>"
864
+ }
865
+ },
866
+ {
867
+ "name": "setInitValue",
868
+ "params": [
869
+ {
870
+ "name": "values",
871
+ "type": "Record<string, unknown>"
872
+ },
873
+ {
874
+ "name": "options",
875
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
876
+ }
877
+ ],
878
+ "description": "表单设置值方法",
879
+ "returns": {}
880
+ },
881
+ {
882
+ "name": "resetFields",
883
+ "params": [
884
+ {
885
+ "name": "name",
886
+ "type": "string"
887
+ }
888
+ ],
889
+ "description": "表单重置值方法",
890
+ "returns": {}
891
+ },
892
+ {
893
+ "name": "getFieldsValue",
894
+ "params": [
895
+ {
896
+ "name": "name",
897
+ "type": "string"
898
+ }
899
+ ],
900
+ "description": "获取表单值方法",
901
+ "returns": {}
902
+ },
903
+ {
904
+ "name": "validateField",
905
+ "params": [
906
+ {
907
+ "name": "name",
908
+ "type": "string"
909
+ }
910
+ ],
911
+ "description": "校验表单字段方法",
912
+ "returns": {}
913
+ },
914
+ {
915
+ "name": "resetValidateState",
916
+ "params": [],
917
+ "description": "重置表单校验状态方法",
918
+ "returns": {}
919
+ }
920
+ ],
921
+ "parts": [],
922
+ "description": "表单构件",
923
+ "category": "form-input-basic"
924
+ },
925
+ {
926
+ "name": "eo-dynamic-form-item",
927
+ "alias": [
928
+ "form.dynamic-form-item"
929
+ ],
930
+ "properties": [
931
+ {
932
+ "name": "name",
933
+ "description": "字段名称",
934
+ "type": "string"
935
+ },
936
+ {
937
+ "name": "label",
938
+ "description": "字段说明",
939
+ "type": "string"
940
+ },
941
+ {
942
+ "name": "required",
943
+ "description": "是否必填",
944
+ "type": "boolean"
945
+ },
946
+ {
947
+ "name": "value",
948
+ "description": "值",
949
+ "attribute": false,
950
+ "type": "DynamicFormValuesItem[]"
951
+ },
952
+ {
953
+ "name": "message",
954
+ "description": "校验文本",
955
+ "attribute": false,
956
+ "type": "Record<string, string>"
957
+ },
958
+ {
959
+ "name": "hideRemoveButton",
960
+ "description": "是否隐藏每一行删除的按钮",
961
+ "attribute": false,
962
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
963
+ },
964
+ {
965
+ "name": "disabledRemoveButton",
966
+ "description": "是否禁止每一行删除的按钮",
967
+ "attribute": false,
968
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
969
+ },
970
+ {
971
+ "name": "hideAddButton",
972
+ "description": "是否隐藏添加的按钮",
973
+ "attribute": false,
974
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
975
+ },
976
+ {
977
+ "name": "disabledAddButton",
978
+ "description": "是否禁止添加的按钮",
979
+ "attribute": false,
980
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
981
+ },
982
+ {
983
+ "name": "useBrick",
984
+ "description": "动态表单子项构件列表",
985
+ "attribute": false,
986
+ "type": "UseBrickConf"
987
+ }
988
+ ],
989
+ "events": [
990
+ {
991
+ "name": "change",
992
+ "detail": {
993
+ "type": "DynamicFormValuesItem[]"
994
+ }
995
+ },
996
+ {
997
+ "name": "row.add",
998
+ "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
999
+ "detail": {
1000
+ "type": "rowDataType"
1001
+ }
1002
+ },
1003
+ {
1004
+ "name": "row.remove",
1005
+ "description": "移除一行时触发,detail为该行的值,index为该行的位置",
1006
+ "detail": {
1007
+ "type": "rowDataType"
1008
+ }
1009
+ }
1010
+ ],
1011
+ "slots": [],
1012
+ "methods": [],
1013
+ "parts": [],
1014
+ "description": "动态表单",
1015
+ "category": "form-input-basic"
1016
+ },
1017
+ {
1018
+ "name": "eo-search",
1019
+ "alias": [
1020
+ "form.general-search"
1021
+ ],
1022
+ "properties": [
1023
+ {
1024
+ "name": "value",
1025
+ "description": "搜索框的值",
1026
+ "default": "\"\"",
1027
+ "type": "string"
1028
+ },
1029
+ {
1030
+ "name": "placeholder",
1031
+ "description": "提示语",
1032
+ "type": "string"
1033
+ },
1034
+ {
1035
+ "name": "autoFocus",
1036
+ "description": "是否自动聚焦",
1037
+ "type": "boolean"
1038
+ },
1039
+ {
1040
+ "name": "clearable",
1041
+ "description": "可以点击清除图标删除内容",
1042
+ "type": "boolean"
1043
+ },
1044
+ {
1045
+ "name": "trim",
1046
+ "description": "是否剔除前后空格",
1047
+ "type": "boolean"
1048
+ },
1049
+ {
1050
+ "name": "debounceTime",
1051
+ "description": "默认延迟时间",
1052
+ "default": "0",
1053
+ "type": "number"
1054
+ },
1055
+ {
1056
+ "name": "inputStyle",
1057
+ "description": "输入框样式",
1058
+ "attribute": false,
1059
+ "type": "CSSProperties"
1060
+ }
1061
+ ],
1062
+ "events": [
1063
+ {
1064
+ "name": "change",
1065
+ "description": "输入的搜索字符,输入变化时触发",
1066
+ "detail": {
1067
+ "type": "string"
1068
+ }
1069
+ },
1070
+ {
1071
+ "name": "search",
1072
+ "description": "搜索时触发",
1073
+ "detail": {
1074
+ "type": "string"
1075
+ }
1076
+ }
1077
+ ],
1078
+ "slots": [],
1079
+ "methods": [],
1080
+ "parts": [],
1081
+ "description": "搜索框",
1082
+ "category": "interact-basic"
1083
+ },
1078
1084
  {
1079
1085
  "name": "eo-icon-select",
1080
1086
  "alias": [