@next-bricks/form 1.15.19 → 1.15.20

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.
@@ -3,6 +3,249 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
+ {
7
+ "name": "eo-textarea",
8
+ "alias": [
9
+ "form.general-textarea"
10
+ ],
11
+ "properties": [
12
+ {
13
+ "name": "name",
14
+ "description": "字段名称",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "label",
19
+ "description": "标签文字",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "value",
24
+ "description": "值",
25
+ "type": "string"
26
+ },
27
+ {
28
+ "name": "placeholder",
29
+ "description": "占位说明",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "disabled",
34
+ "description": "是否禁用",
35
+ "type": "boolean"
36
+ },
37
+ {
38
+ "name": "minLength",
39
+ "description": "最小长度",
40
+ "type": "number"
41
+ },
42
+ {
43
+ "name": "maxLength",
44
+ "description": "最大长度",
45
+ "type": "number"
46
+ },
47
+ {
48
+ "name": "autoSize",
49
+ "description": "大小自适应",
50
+ "attribute": false,
51
+ "type": "AutoSize"
52
+ },
53
+ {
54
+ "name": "required",
55
+ "description": "是否必填",
56
+ "type": "boolean"
57
+ },
58
+ {
59
+ "name": "max",
60
+ "description": "表单校验最大长度",
61
+ "type": "number"
62
+ },
63
+ {
64
+ "name": "min",
65
+ "description": "表单校验最小长度",
66
+ "type": "number"
67
+ },
68
+ {
69
+ "name": "message",
70
+ "description": "校验信息",
71
+ "attribute": false,
72
+ "type": "Record<string, string>"
73
+ },
74
+ {
75
+ "name": "textareaStyle",
76
+ "description": "自定义样式",
77
+ "attribute": false,
78
+ "type": "React.CSSProperties"
79
+ }
80
+ ],
81
+ "events": [
82
+ {
83
+ "name": "change",
84
+ "description": "",
85
+ "detail": {
86
+ "description": null,
87
+ "type": "string"
88
+ }
89
+ }
90
+ ],
91
+ "slots": [],
92
+ "methods": [
93
+ {
94
+ "name": "focusTextarea",
95
+ "params": [],
96
+ "description": "focus",
97
+ "returns": {}
98
+ }
99
+ ],
100
+ "parts": [],
101
+ "description": "通用多行文本输入框构件",
102
+ "category": "form-input-basic"
103
+ },
104
+ {
105
+ "name": "eo-form",
106
+ "alias": [
107
+ "form.general-form"
108
+ ],
109
+ "properties": [
110
+ {
111
+ "name": "staticValues",
112
+ "attribute": false,
113
+ "type": "Record<string, unknown>"
114
+ },
115
+ {
116
+ "name": "layout",
117
+ "description": "布局方式(默认 vertical 布局)",
118
+ "default": "vertical",
119
+ "type": "Layout"
120
+ },
121
+ {
122
+ "name": "size",
123
+ "description": "表单组件尺寸",
124
+ "type": "ComponentSize"
125
+ },
126
+ {
127
+ "name": "labelCol",
128
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
129
+ "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 }",
130
+ "attribute": false,
131
+ "type": "ColProps"
132
+ },
133
+ {
134
+ "name": "wrapperCol",
135
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
136
+ "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 }",
137
+ "attribute": false,
138
+ "type": "ColProps"
139
+ },
140
+ {
141
+ "name": "formStyle",
142
+ "attribute": false,
143
+ "type": "React.CSSProperties"
144
+ },
145
+ {
146
+ "name": "textContent",
147
+ "type": "string",
148
+ "description": "文本内容"
149
+ }
150
+ ],
151
+ "events": [
152
+ {
153
+ "name": "values.change",
154
+ "description": "表单值变更事件",
155
+ "detail": {
156
+ "description": null,
157
+ "type": "Record<string, unknown>"
158
+ }
159
+ },
160
+ {
161
+ "name": "validate.success",
162
+ "description": "表单验证成功时触发事件",
163
+ "detail": {
164
+ "type": "Record<string, unknown>"
165
+ }
166
+ },
167
+ {
168
+ "name": "validate.error",
169
+ "description": "表单验证报错时触发事件",
170
+ "detail": {
171
+ "type": "(MessageBody & { name: string })[]"
172
+ }
173
+ }
174
+ ],
175
+ "slots": [
176
+ {
177
+ "name": null,
178
+ "description": "表单内容"
179
+ }
180
+ ],
181
+ "methods": [
182
+ {
183
+ "name": "validate",
184
+ "params": [],
185
+ "description": "表单校验方法",
186
+ "returns": {
187
+ "type": "boolean | Record<string, unknown>"
188
+ }
189
+ },
190
+ {
191
+ "name": "setInitValue",
192
+ "params": [
193
+ {
194
+ "name": "values",
195
+ "type": "Record<string, unknown>"
196
+ },
197
+ {
198
+ "name": "options",
199
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
200
+ }
201
+ ],
202
+ "description": "表单设置值方法",
203
+ "returns": {}
204
+ },
205
+ {
206
+ "name": "resetFields",
207
+ "params": [
208
+ {
209
+ "name": "name",
210
+ "type": "string"
211
+ }
212
+ ],
213
+ "description": "表单重置值方法",
214
+ "returns": {}
215
+ },
216
+ {
217
+ "name": "getFieldsValue",
218
+ "params": [
219
+ {
220
+ "name": "name",
221
+ "type": "string"
222
+ }
223
+ ],
224
+ "description": "获取表单值方法",
225
+ "returns": {}
226
+ },
227
+ {
228
+ "name": "validateField",
229
+ "params": [
230
+ {
231
+ "name": "name",
232
+ "type": "string"
233
+ }
234
+ ],
235
+ "description": "校验表单字段方法",
236
+ "returns": {}
237
+ },
238
+ {
239
+ "name": "resetValidateState",
240
+ "params": [],
241
+ "description": "重置表单校验状态方法",
242
+ "returns": {}
243
+ }
244
+ ],
245
+ "parts": [],
246
+ "description": "表单构件",
247
+ "category": "form-input-basic"
248
+ },
6
249
  {
7
250
  "name": "eo-select",
8
251
  "alias": [
@@ -152,79 +395,19 @@
152
395
  "category": "form-input-basic"
153
396
  },
154
397
  {
155
- "name": "eo-submit-buttons",
398
+ "name": "eo-radio",
156
399
  "alias": [
157
- "form.submit-buttons"
400
+ "form.general-radio"
158
401
  ],
159
402
  "properties": [
160
403
  {
161
- "name": "submitText",
162
- "description": "提交按钮的文字",
163
- "default": "\"提交\"",
404
+ "name": "name",
405
+ "description": "下拉框字段名",
164
406
  "type": "string"
165
407
  },
166
408
  {
167
- "name": "cancelText",
168
- "description": "取消按钮的文字,不设置则不显示取消按钮",
169
- "type": "string"
170
- },
171
- {
172
- "name": "disableAfterClick",
173
- "description": "点击确定按钮后自动禁用",
174
- "type": "boolean"
175
- },
176
- {
177
- "name": "submitDisabled",
178
- "description": "禁用提交按钮",
179
- "type": "boolean"
180
- },
181
- {
182
- "name": "submitType",
183
- "description": "提交按钮类型",
184
- "type": "ButtonType"
185
- },
186
- {
187
- "name": "cancelType",
188
- "description": "取消按钮类型",
189
- "type": "ButtonType"
190
- }
191
- ],
192
- "events": [
193
- {
194
- "name": "submit",
195
- "description": "点击提交按钮触发的事件",
196
- "detail": {
197
- "type": "void"
198
- }
199
- },
200
- {
201
- "name": "cancel",
202
- "description": "点击取消按钮触发的事件",
203
- "detail": {
204
- "type": "void"
205
- }
206
- }
207
- ],
208
- "slots": [],
209
- "methods": [],
210
- "parts": [],
211
- "description": "表单提交按钮",
212
- "category": "form-input-basic"
213
- },
214
- {
215
- "name": "eo-radio",
216
- "alias": [
217
- "form.general-radio"
218
- ],
219
- "properties": [
220
- {
221
- "name": "name",
222
- "description": "下拉框字段名",
223
- "type": "string"
224
- },
225
- {
226
- "name": "label",
227
- "description": "单选框字段说明",
409
+ "name": "label",
410
+ "description": "单选框字段说明",
228
411
  "type": "string"
229
412
  },
230
413
  {
@@ -309,6 +492,66 @@
309
492
  "description": "通用单选构件",
310
493
  "category": "form-input-basic"
311
494
  },
495
+ {
496
+ "name": "eo-submit-buttons",
497
+ "alias": [
498
+ "form.submit-buttons"
499
+ ],
500
+ "properties": [
501
+ {
502
+ "name": "submitText",
503
+ "description": "提交按钮的文字",
504
+ "default": "\"提交\"",
505
+ "type": "string"
506
+ },
507
+ {
508
+ "name": "cancelText",
509
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
510
+ "type": "string"
511
+ },
512
+ {
513
+ "name": "disableAfterClick",
514
+ "description": "点击确定按钮后自动禁用",
515
+ "type": "boolean"
516
+ },
517
+ {
518
+ "name": "submitDisabled",
519
+ "description": "禁用提交按钮",
520
+ "type": "boolean"
521
+ },
522
+ {
523
+ "name": "submitType",
524
+ "description": "提交按钮类型",
525
+ "type": "ButtonType"
526
+ },
527
+ {
528
+ "name": "cancelType",
529
+ "description": "取消按钮类型",
530
+ "type": "ButtonType"
531
+ }
532
+ ],
533
+ "events": [
534
+ {
535
+ "name": "submit",
536
+ "description": "点击提交按钮触发的事件",
537
+ "detail": {
538
+ "type": "void"
539
+ }
540
+ },
541
+ {
542
+ "name": "cancel",
543
+ "description": "点击取消按钮触发的事件",
544
+ "detail": {
545
+ "type": "void"
546
+ }
547
+ }
548
+ ],
549
+ "slots": [],
550
+ "methods": [],
551
+ "parts": [],
552
+ "description": "表单提交按钮",
553
+ "category": "form-input-basic"
554
+ },
312
555
  {
313
556
  "name": "eo-checkbox",
314
557
  "alias": [
@@ -401,104 +644,6 @@
401
644
  "description": "表单复选框构件",
402
645
  "category": "form-input-basic"
403
646
  },
404
- {
405
- "name": "eo-textarea",
406
- "alias": [
407
- "form.general-textarea"
408
- ],
409
- "properties": [
410
- {
411
- "name": "name",
412
- "description": "字段名称",
413
- "type": "string"
414
- },
415
- {
416
- "name": "label",
417
- "description": "标签文字",
418
- "type": "string"
419
- },
420
- {
421
- "name": "value",
422
- "description": "值",
423
- "type": "string"
424
- },
425
- {
426
- "name": "placeholder",
427
- "description": "占位说明",
428
- "type": "string"
429
- },
430
- {
431
- "name": "disabled",
432
- "description": "是否禁用",
433
- "type": "boolean"
434
- },
435
- {
436
- "name": "minLength",
437
- "description": "最小长度",
438
- "type": "number"
439
- },
440
- {
441
- "name": "maxLength",
442
- "description": "最大长度",
443
- "type": "number"
444
- },
445
- {
446
- "name": "autoSize",
447
- "description": "大小自适应",
448
- "attribute": false,
449
- "type": "AutoSize"
450
- },
451
- {
452
- "name": "required",
453
- "description": "是否必填",
454
- "type": "boolean"
455
- },
456
- {
457
- "name": "max",
458
- "description": "表单校验最大长度",
459
- "type": "number"
460
- },
461
- {
462
- "name": "min",
463
- "description": "表单校验最小长度",
464
- "type": "number"
465
- },
466
- {
467
- "name": "message",
468
- "description": "校验信息",
469
- "attribute": false,
470
- "type": "Record<string, string>"
471
- },
472
- {
473
- "name": "textareaStyle",
474
- "description": "自定义样式",
475
- "attribute": false,
476
- "type": "React.CSSProperties"
477
- }
478
- ],
479
- "events": [
480
- {
481
- "name": "change",
482
- "description": "",
483
- "detail": {
484
- "description": null,
485
- "type": "string"
486
- }
487
- }
488
- ],
489
- "slots": [],
490
- "methods": [
491
- {
492
- "name": "focusTextarea",
493
- "params": [],
494
- "description": "focus",
495
- "returns": {}
496
- }
497
- ],
498
- "parts": [],
499
- "description": "通用多行文本输入框构件",
500
- "category": "form-input-basic"
501
- },
502
647
  {
503
648
  "name": "eo-dynamic-form-item",
504
649
  "alias": [
@@ -714,325 +859,29 @@
714
859
  },
715
860
  {
716
861
  "name": "eo-upload-image",
717
- "alias": [
718
- "form.upload-image"
719
- ],
720
- "properties": [
721
- {
722
- "name": "name",
723
- "description": "字段名称",
724
- "type": "string"
725
- },
726
- {
727
- "name": "label",
728
- "description": "字段说明",
729
- "type": "string"
730
- },
731
- {
732
- "name": "value",
733
- "description": "值",
734
- "attribute": false,
735
- "type": "ImageData[]"
736
- },
737
- {
738
- "name": "bucketName",
739
- "description": "对象存储桶名字",
740
- "type": "string"
741
- },
742
- {
743
- "name": "maxCount",
744
- "description": "最大上传数量",
745
- "type": "number"
746
- },
747
- {
748
- "name": "multiple",
749
- "description": "是否支持选定的多张图片",
750
- "type": "boolean"
751
- },
752
- {
753
- "name": "limitSize",
754
- "description": "上传大小限制(单位为 MB)",
755
- "type": "number"
756
- },
757
- {
758
- "name": "required",
759
- "description": "是否必填",
760
- "type": "boolean"
761
- },
762
- {
763
- "name": "message",
764
- "description": "校验文本信息",
765
- "attribute": false,
766
- "type": "Record<string, string>"
767
- }
768
- ],
769
- "events": [
770
- {
771
- "name": "change",
772
- "description": "值变化时触发",
773
- "detail": {
774
- "type": "ImageData[]"
775
- }
776
- }
777
- ],
778
- "slots": [],
779
- "methods": [],
780
- "parts": [],
781
- "description": "上传图片构件",
782
- "category": "form-input-basic"
783
- },
784
- {
785
- "name": "eo-switch",
786
- "alias": [
787
- "form.general-switch"
788
- ],
789
- "properties": [
790
- {
791
- "name": "name",
792
- "description": "字段名称",
793
- "type": "string"
794
- },
795
- {
796
- "name": "label",
797
- "description": "字段文本",
798
- "type": "string"
799
- },
800
- {
801
- "name": "value",
802
- "description": "初始值",
803
- "type": "boolean"
804
- },
805
- {
806
- "name": "disabled",
807
- "description": "是否禁用",
808
- "type": "boolean"
809
- },
810
- {
811
- "name": "size",
812
- "description": "按钮大小,目前只支持small和非small两种大小。",
813
- "type": "ComponentSize"
814
- },
815
- {
816
- "name": "checkedText",
817
- "description": "选中时的文本",
818
- "type": "string"
819
- },
820
- {
821
- "name": "unCheckedText",
822
- "description": "非选中时的文本",
823
- "type": "string"
824
- },
825
- {
826
- "name": "checkedIcon",
827
- "description": "选中时的图标",
828
- "attribute": false,
829
- "type": "GeneralIconProps"
830
- },
831
- {
832
- "name": "unCheckedIcon",
833
- "description": "非选中时的文本",
834
- "attribute": false,
835
- "type": "GeneralIconProps"
836
- }
837
- ],
838
- "events": [
839
- {
840
- "name": "switch",
841
- "description": "开关改变时触发",
842
- "detail": {
843
- "type": "boolean"
844
- }
845
- }
846
- ],
847
- "slots": [],
848
- "methods": [],
849
- "parts": [],
850
- "description": "开关",
851
- "category": "form-input-basic"
852
- },
853
- {
854
- "name": "eo-form",
855
- "alias": [
856
- "form.general-form"
857
- ],
858
- "properties": [
859
- {
860
- "name": "staticValues",
861
- "attribute": false,
862
- "type": "Record<string, unknown>"
863
- },
864
- {
865
- "name": "layout",
866
- "description": "布局方式(默认 vertical 布局)",
867
- "default": "vertical",
868
- "type": "Layout"
869
- },
870
- {
871
- "name": "size",
872
- "description": "表单组件尺寸",
873
- "type": "ComponentSize"
874
- },
875
- {
876
- "name": "labelCol",
877
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
878
- "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 }",
879
- "attribute": false,
880
- "type": "ColProps"
881
- },
882
- {
883
- "name": "wrapperCol",
884
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
885
- "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 }",
886
- "attribute": false,
887
- "type": "ColProps"
888
- },
889
- {
890
- "name": "formStyle",
891
- "attribute": false,
892
- "type": "React.CSSProperties"
893
- },
894
- {
895
- "name": "textContent",
896
- "type": "string",
897
- "description": "文本内容"
898
- }
899
- ],
900
- "events": [
901
- {
902
- "name": "values.change",
903
- "description": "表单值变更事件",
904
- "detail": {
905
- "description": null,
906
- "type": "Record<string, unknown>"
907
- }
908
- },
909
- {
910
- "name": "validate.success",
911
- "description": "表单验证成功时触发事件",
912
- "detail": {
913
- "type": "Record<string, unknown>"
914
- }
915
- },
916
- {
917
- "name": "validate.error",
918
- "description": "表单验证报错时触发事件",
919
- "detail": {
920
- "type": "(MessageBody & { name: string })[]"
921
- }
922
- }
923
- ],
924
- "slots": [
925
- {
926
- "name": null,
927
- "description": "表单内容"
928
- }
929
- ],
930
- "methods": [
931
- {
932
- "name": "validate",
933
- "params": [],
934
- "description": "表单校验方法",
935
- "returns": {
936
- "type": "boolean | Record<string, unknown>"
937
- }
938
- },
939
- {
940
- "name": "setInitValue",
941
- "params": [
942
- {
943
- "name": "values",
944
- "type": "Record<string, unknown>"
945
- },
946
- {
947
- "name": "options",
948
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
949
- }
950
- ],
951
- "description": "表单设置值方法",
952
- "returns": {}
953
- },
954
- {
955
- "name": "resetFields",
956
- "params": [
957
- {
958
- "name": "name",
959
- "type": "string"
960
- }
961
- ],
962
- "description": "表单重置值方法",
963
- "returns": {}
964
- },
965
- {
966
- "name": "getFieldsValue",
967
- "params": [
968
- {
969
- "name": "name",
970
- "type": "string"
971
- }
972
- ],
973
- "description": "获取表单值方法",
974
- "returns": {}
975
- },
976
- {
977
- "name": "validateField",
978
- "params": [
979
- {
980
- "name": "name",
981
- "type": "string"
982
- }
983
- ],
984
- "description": "校验表单字段方法",
985
- "returns": {}
986
- },
987
- {
988
- "name": "resetValidateState",
989
- "params": [],
990
- "description": "重置表单校验状态方法",
991
- "returns": {}
992
- }
993
- ],
994
- "parts": [],
995
- "description": "表单构件",
996
- "category": "form-input-basic"
997
- },
998
- {
999
- "name": "eo-upload-file",
1000
- "properties": [
1001
- {
1002
- "name": "label",
1003
- "description": "字段说明",
1004
- "type": "string"
1005
- },
862
+ "alias": [
863
+ "form.upload-image"
864
+ ],
865
+ "properties": [
1006
866
  {
1007
867
  "name": "name",
1008
868
  "description": "字段名称",
1009
869
  "type": "string"
1010
870
  },
1011
871
  {
1012
- "name": "required",
1013
- "description": "是否必填",
1014
- "type": "boolean"
1015
- },
1016
- {
1017
- "name": "message",
1018
- "description": "校验文本信息",
1019
- "attribute": false,
1020
- "type": "Record<string, string>"
872
+ "name": "label",
873
+ "description": "字段说明",
874
+ "type": "string"
1021
875
  },
1022
876
  {
1023
877
  "name": "value",
1024
878
  "description": "值",
1025
879
  "attribute": false,
1026
- "type": "FileData[]"
1027
- },
1028
- {
1029
- "name": "multiple",
1030
- "description": "是否支持多选",
1031
- "type": "boolean"
880
+ "type": "ImageData[]"
1032
881
  },
1033
882
  {
1034
- "name": "accept",
1035
- "description": "接受上传的文件类型,多个之间用 `,` 连接",
883
+ "name": "bucketName",
884
+ "description": "对象存储桶名字",
1036
885
  "type": "string"
1037
886
  },
1038
887
  {
@@ -1040,82 +889,110 @@
1040
889
  "description": "最大上传数量",
1041
890
  "type": "number"
1042
891
  },
892
+ {
893
+ "name": "multiple",
894
+ "description": "是否支持选定的多张图片",
895
+ "type": "boolean"
896
+ },
1043
897
  {
1044
898
  "name": "limitSize",
1045
899
  "description": "上传大小限制(单位为 MB)",
1046
900
  "type": "number"
1047
901
  },
1048
902
  {
1049
- "name": "buttonText",
1050
- "description": "上传按钮文本",
1051
- "default": "上传",
1052
- "type": "string"
1053
- },
1054
- {
1055
- "name": "buttonType",
1056
- "description": "上传按钮类型",
1057
- "type": "ButtonProps[\"type\"]"
903
+ "name": "required",
904
+ "description": "是否必填",
905
+ "type": "boolean"
1058
906
  },
1059
907
  {
1060
- "name": "buttonIcon",
1061
- "description": "上传按钮类型",
1062
- "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
908
+ "name": "message",
909
+ "description": "校验文本信息",
1063
910
  "attribute": false,
1064
- "type": "GeneralIconProps"
911
+ "type": "Record<string, string>"
912
+ }
913
+ ],
914
+ "events": [
915
+ {
916
+ "name": "change",
917
+ "description": "值变化时触发",
918
+ "detail": {
919
+ "type": "ImageData[]"
920
+ }
921
+ }
922
+ ],
923
+ "slots": [],
924
+ "methods": [],
925
+ "parts": [],
926
+ "description": "上传图片构件",
927
+ "category": "form-input-basic"
928
+ },
929
+ {
930
+ "name": "eo-switch",
931
+ "alias": [
932
+ "form.general-switch"
933
+ ],
934
+ "properties": [
935
+ {
936
+ "name": "name",
937
+ "description": "字段名称",
938
+ "type": "string"
1065
939
  },
1066
940
  {
1067
- "name": "overMaxCountMode",
1068
- "description": "超出最大上传数量时文件的保留方式",
1069
- "default": "\"replace\"",
1070
- "type": "\"ignore\" | \"replace\""
941
+ "name": "label",
942
+ "description": "字段文本",
943
+ "type": "string"
1071
944
  },
1072
945
  {
1073
- "name": "uploadDraggable",
1074
- "description": "是否可以拖拽上传",
946
+ "name": "value",
947
+ "description": "初始值",
1075
948
  "type": "boolean"
1076
949
  },
1077
950
  {
1078
- "name": "draggableUploadTip",
1079
- "description": "拖拽上传的提示信息",
1080
- "type": "string"
951
+ "name": "disabled",
952
+ "description": "是否禁用",
953
+ "type": "boolean"
1081
954
  },
1082
955
  {
1083
- "name": "autoUpload",
1084
- "description": "是否自动上传",
1085
- "default": "false",
1086
- "type": "boolean"
956
+ "name": "size",
957
+ "description": "按钮大小,目前只支持small和非small两种大小。",
958
+ "type": "ComponentSize"
1087
959
  },
1088
960
  {
1089
- "name": "url",
1090
- "description": "自动上传的地址",
961
+ "name": "checkedText",
962
+ "description": "选中时的文本",
1091
963
  "type": "string"
1092
964
  },
1093
965
  {
1094
- "name": "method",
1095
- "description": "自动上传的方法",
1096
- "default": "\"POST\"",
966
+ "name": "unCheckedText",
967
+ "description": "非选中时的文本",
1097
968
  "type": "string"
1098
969
  },
1099
970
  {
1100
- "name": "uploadName",
1101
- "description": "自动上传的文件参数名",
1102
- "default": "\"file\"",
1103
- "type": "string"
971
+ "name": "checkedIcon",
972
+ "description": "选中时的图标",
973
+ "attribute": false,
974
+ "type": "GeneralIconProps"
975
+ },
976
+ {
977
+ "name": "unCheckedIcon",
978
+ "description": "非选中时的文本",
979
+ "attribute": false,
980
+ "type": "GeneralIconProps"
1104
981
  }
1105
982
  ],
1106
983
  "events": [
1107
984
  {
1108
- "name": "change",
1109
- "description": "值变化时触发",
985
+ "name": "switch",
986
+ "description": "开关改变时触发",
1110
987
  "detail": {
1111
- "type": "FileData[]"
988
+ "type": "boolean"
1112
989
  }
1113
990
  }
1114
991
  ],
1115
992
  "slots": [],
1116
993
  "methods": [],
1117
994
  "parts": [],
1118
- "description": "上传文件",
995
+ "description": "开关",
1119
996
  "category": "form-input-basic"
1120
997
  },
1121
998
  {
@@ -1276,6 +1153,129 @@
1276
1153
  "description": "时间选择器",
1277
1154
  "category": "form-input-basic"
1278
1155
  },
1156
+ {
1157
+ "name": "eo-upload-file",
1158
+ "properties": [
1159
+ {
1160
+ "name": "label",
1161
+ "description": "字段说明",
1162
+ "type": "string"
1163
+ },
1164
+ {
1165
+ "name": "name",
1166
+ "description": "字段名称",
1167
+ "type": "string"
1168
+ },
1169
+ {
1170
+ "name": "required",
1171
+ "description": "是否必填",
1172
+ "type": "boolean"
1173
+ },
1174
+ {
1175
+ "name": "message",
1176
+ "description": "校验文本信息",
1177
+ "attribute": false,
1178
+ "type": "Record<string, string>"
1179
+ },
1180
+ {
1181
+ "name": "value",
1182
+ "description": "值",
1183
+ "attribute": false,
1184
+ "type": "FileData[]"
1185
+ },
1186
+ {
1187
+ "name": "multiple",
1188
+ "description": "是否支持多选",
1189
+ "type": "boolean"
1190
+ },
1191
+ {
1192
+ "name": "accept",
1193
+ "description": "接受上传的文件类型,多个之间用 `,` 连接",
1194
+ "type": "string"
1195
+ },
1196
+ {
1197
+ "name": "maxCount",
1198
+ "description": "最大上传数量",
1199
+ "type": "number"
1200
+ },
1201
+ {
1202
+ "name": "limitSize",
1203
+ "description": "上传大小限制(单位为 MB)",
1204
+ "type": "number"
1205
+ },
1206
+ {
1207
+ "name": "buttonText",
1208
+ "description": "上传按钮文本",
1209
+ "default": "上传",
1210
+ "type": "string"
1211
+ },
1212
+ {
1213
+ "name": "buttonType",
1214
+ "description": "上传按钮类型",
1215
+ "type": "ButtonProps[\"type\"]"
1216
+ },
1217
+ {
1218
+ "name": "buttonIcon",
1219
+ "description": "上传按钮类型",
1220
+ "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
1221
+ "attribute": false,
1222
+ "type": "GeneralIconProps"
1223
+ },
1224
+ {
1225
+ "name": "overMaxCountMode",
1226
+ "description": "超出最大上传数量时文件的保留方式",
1227
+ "default": "\"replace\"",
1228
+ "type": "\"ignore\" | \"replace\""
1229
+ },
1230
+ {
1231
+ "name": "uploadDraggable",
1232
+ "description": "是否可以拖拽上传",
1233
+ "type": "boolean"
1234
+ },
1235
+ {
1236
+ "name": "draggableUploadTip",
1237
+ "description": "拖拽上传的提示信息",
1238
+ "type": "string"
1239
+ },
1240
+ {
1241
+ "name": "autoUpload",
1242
+ "description": "是否自动上传",
1243
+ "default": "false",
1244
+ "type": "boolean"
1245
+ },
1246
+ {
1247
+ "name": "url",
1248
+ "description": "自动上传的地址",
1249
+ "type": "string"
1250
+ },
1251
+ {
1252
+ "name": "method",
1253
+ "description": "自动上传的方法",
1254
+ "default": "\"POST\"",
1255
+ "type": "string"
1256
+ },
1257
+ {
1258
+ "name": "uploadName",
1259
+ "description": "自动上传的文件参数名",
1260
+ "default": "\"file\"",
1261
+ "type": "string"
1262
+ }
1263
+ ],
1264
+ "events": [
1265
+ {
1266
+ "name": "change",
1267
+ "description": "值变化时触发",
1268
+ "detail": {
1269
+ "type": "FileData[]"
1270
+ }
1271
+ }
1272
+ ],
1273
+ "slots": [],
1274
+ "methods": [],
1275
+ "parts": [],
1276
+ "description": "上传文件",
1277
+ "category": "form-input-basic"
1278
+ },
1279
1279
  {
1280
1280
  "name": "eo-date-picker",
1281
1281
  "properties": [