@next-bricks/form 1.21.8 → 1.21.10

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,114 @@
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
+ "name": "variant",
82
+ "description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
83
+ "type": "\"default\" | \"muted\""
84
+ },
85
+ {
86
+ "name": "themeVariant",
87
+ "description": "主题变体",
88
+ "type": "\"default\" | \"elevo\""
89
+ }
90
+ ],
91
+ "events": [
92
+ {
93
+ "name": "change",
94
+ "description": "",
95
+ "detail": {
96
+ "description": null,
97
+ "type": "string"
98
+ }
99
+ }
100
+ ],
101
+ "slots": [],
102
+ "methods": [
103
+ {
104
+ "name": "focusTextarea",
105
+ "params": [],
106
+ "description": "focus",
107
+ "returns": {}
108
+ }
109
+ ],
110
+ "parts": [],
111
+ "description": "通用多行文本输入框构件",
112
+ "category": "form-input-basic"
113
+ },
6
114
  {
7
115
  "name": "eo-form",
8
116
  "alias": [
@@ -152,114 +260,6 @@
152
260
  "description": "表单构件",
153
261
  "category": "form-input-basic"
154
262
  },
155
- {
156
- "name": "eo-textarea",
157
- "alias": [
158
- "form.general-textarea"
159
- ],
160
- "properties": [
161
- {
162
- "name": "name",
163
- "description": "字段名称",
164
- "type": "string"
165
- },
166
- {
167
- "name": "label",
168
- "description": "标签文字",
169
- "type": "string"
170
- },
171
- {
172
- "name": "value",
173
- "description": "值",
174
- "type": "string"
175
- },
176
- {
177
- "name": "placeholder",
178
- "description": "占位说明",
179
- "type": "string"
180
- },
181
- {
182
- "name": "disabled",
183
- "description": "是否禁用",
184
- "type": "boolean"
185
- },
186
- {
187
- "name": "minLength",
188
- "description": "最小长度",
189
- "type": "number"
190
- },
191
- {
192
- "name": "maxLength",
193
- "description": "最大长度",
194
- "type": "number"
195
- },
196
- {
197
- "name": "autoSize",
198
- "description": "大小自适应",
199
- "attribute": false,
200
- "type": "AutoSize"
201
- },
202
- {
203
- "name": "required",
204
- "description": "是否必填",
205
- "type": "boolean"
206
- },
207
- {
208
- "name": "max",
209
- "description": "表单校验最大长度",
210
- "type": "number"
211
- },
212
- {
213
- "name": "min",
214
- "description": "表单校验最小长度",
215
- "type": "number"
216
- },
217
- {
218
- "name": "message",
219
- "description": "校验信息",
220
- "attribute": false,
221
- "type": "Record<string, string>"
222
- },
223
- {
224
- "name": "textareaStyle",
225
- "description": "自定义样式",
226
- "attribute": false,
227
- "type": "React.CSSProperties"
228
- },
229
- {
230
- "name": "variant",
231
- "description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
232
- "type": "\"default\" | \"muted\""
233
- },
234
- {
235
- "name": "themeVariant",
236
- "description": "主题变体",
237
- "type": "\"default\" | \"elevo\""
238
- }
239
- ],
240
- "events": [
241
- {
242
- "name": "change",
243
- "description": "",
244
- "detail": {
245
- "description": null,
246
- "type": "string"
247
- }
248
- }
249
- ],
250
- "slots": [],
251
- "methods": [
252
- {
253
- "name": "focusTextarea",
254
- "params": [],
255
- "description": "focus",
256
- "returns": {}
257
- }
258
- ],
259
- "parts": [],
260
- "description": "通用多行文本输入框构件",
261
- "category": "form-input-basic"
262
- },
263
263
  {
264
264
  "name": "eo-radio",
265
265
  "alias": [
@@ -491,7 +491,7 @@
491
491
  "name": "change",
492
492
  "description": "下拉选择事件",
493
493
  "detail": {
494
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
494
+ "type": "ChangeEventDetail"
495
495
  }
496
496
  },
497
497
  {
@@ -506,7 +506,7 @@
506
506
  "name": "search",
507
507
  "description": "下拉框search事件",
508
508
  "detail": {
509
- "type": "{\n value: string;\n }"
509
+ "type": "SearchEventDetail"
510
510
  }
511
511
  },
512
512
  {
@@ -520,7 +520,7 @@
520
520
  "name": "options.change",
521
521
  "description": "选项列表变化事件",
522
522
  "detail": {
523
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
523
+ "type": "OptionsChangeEventDetail"
524
524
  }
525
525
  }
526
526
  ],
@@ -530,6 +530,71 @@
530
530
  "description": "通用下拉选择构件",
531
531
  "category": "form-input-basic"
532
532
  },
533
+ {
534
+ "name": "eo-submit-buttons",
535
+ "alias": [
536
+ "form.submit-buttons"
537
+ ],
538
+ "properties": [
539
+ {
540
+ "name": "submitText",
541
+ "description": "提交按钮的文字",
542
+ "default": "\"提交\"",
543
+ "type": "string"
544
+ },
545
+ {
546
+ "name": "cancelText",
547
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
548
+ "type": "string"
549
+ },
550
+ {
551
+ "name": "disableAfterClick",
552
+ "description": "点击确定按钮后自动禁用",
553
+ "type": "boolean"
554
+ },
555
+ {
556
+ "name": "submitDisabled",
557
+ "description": "禁用提交按钮",
558
+ "type": "boolean"
559
+ },
560
+ {
561
+ "name": "submitType",
562
+ "description": "提交按钮类型",
563
+ "type": "ButtonType"
564
+ },
565
+ {
566
+ "name": "cancelType",
567
+ "description": "取消按钮类型",
568
+ "type": "ButtonType"
569
+ },
570
+ {
571
+ "name": "themeVariant",
572
+ "description": "主题变体",
573
+ "type": "\"default\" | \"elevo\""
574
+ }
575
+ ],
576
+ "events": [
577
+ {
578
+ "name": "submit",
579
+ "description": "点击提交按钮触发的事件",
580
+ "detail": {
581
+ "type": "void"
582
+ }
583
+ },
584
+ {
585
+ "name": "cancel",
586
+ "description": "点击取消按钮触发的事件",
587
+ "detail": {
588
+ "type": "void"
589
+ }
590
+ }
591
+ ],
592
+ "slots": [],
593
+ "methods": [],
594
+ "parts": [],
595
+ "description": "表单提交按钮",
596
+ "category": "form-input-basic"
597
+ },
533
598
  {
534
599
  "name": "eo-checkbox",
535
600
  "alias": [
@@ -617,7 +682,7 @@
617
682
  "name": "options.change",
618
683
  "description": "复选框变化事件",
619
684
  "detail": {
620
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
685
+ "type": "OptionsChangeEventDetail"
621
686
  }
622
687
  }
623
688
  ],
@@ -627,71 +692,6 @@
627
692
  "description": "表单复选框构件",
628
693
  "category": "form-input-basic"
629
694
  },
630
- {
631
- "name": "eo-submit-buttons",
632
- "alias": [
633
- "form.submit-buttons"
634
- ],
635
- "properties": [
636
- {
637
- "name": "submitText",
638
- "description": "提交按钮的文字",
639
- "default": "\"提交\"",
640
- "type": "string"
641
- },
642
- {
643
- "name": "cancelText",
644
- "description": "取消按钮的文字,不设置则不显示取消按钮",
645
- "type": "string"
646
- },
647
- {
648
- "name": "disableAfterClick",
649
- "description": "点击确定按钮后自动禁用",
650
- "type": "boolean"
651
- },
652
- {
653
- "name": "submitDisabled",
654
- "description": "禁用提交按钮",
655
- "type": "boolean"
656
- },
657
- {
658
- "name": "submitType",
659
- "description": "提交按钮类型",
660
- "type": "ButtonType"
661
- },
662
- {
663
- "name": "cancelType",
664
- "description": "取消按钮类型",
665
- "type": "ButtonType"
666
- },
667
- {
668
- "name": "themeVariant",
669
- "description": "主题变体",
670
- "type": "\"default\" | \"elevo\""
671
- }
672
- ],
673
- "events": [
674
- {
675
- "name": "submit",
676
- "description": "点击提交按钮触发的事件",
677
- "detail": {
678
- "type": "void"
679
- }
680
- },
681
- {
682
- "name": "cancel",
683
- "description": "点击取消按钮触发的事件",
684
- "detail": {
685
- "type": "void"
686
- }
687
- }
688
- ],
689
- "slots": [],
690
- "methods": [],
691
- "parts": [],
692
- "description": "表单提交按钮",
693
- "category": "form-input-basic"
694
- },
695
695
  {
696
696
  "name": "eo-dynamic-form-item",
697
697
  "alias": [
@@ -916,9 +916,9 @@
916
916
  "category": "form-input-basic"
917
917
  },
918
918
  {
919
- "name": "eo-switch",
919
+ "name": "eo-upload-image",
920
920
  "alias": [
921
- "form.general-switch"
921
+ "form.upload-image"
922
922
  ],
923
923
  "properties": [
924
924
  {
@@ -928,45 +928,50 @@
928
928
  },
929
929
  {
930
930
  "name": "label",
931
- "description": "字段文本",
931
+ "description": "字段说明",
932
932
  "type": "string"
933
933
  },
934
934
  {
935
935
  "name": "value",
936
- "description": "初始值",
937
- "type": "boolean"
936
+ "description": "",
937
+ "attribute": false,
938
+ "type": "ImageData[]"
938
939
  },
939
940
  {
940
- "name": "disabled",
941
- "description": "是否禁用",
942
- "type": "boolean"
941
+ "name": "bucketName",
942
+ "description": "对象存储桶名字",
943
+ "type": "string"
943
944
  },
944
945
  {
945
- "name": "size",
946
- "description": "按钮大小,目前只支持small和非small两种大小。",
947
- "type": "ComponentSize"
946
+ "name": "maxCount",
947
+ "description": "最大上传数量",
948
+ "type": "number"
948
949
  },
949
950
  {
950
- "name": "checkedText",
951
- "description": "选中时的文本",
952
- "type": "string"
951
+ "name": "multiple",
952
+ "description": "是否支持选定的多张图片",
953
+ "type": "boolean"
953
954
  },
954
955
  {
955
- "name": "unCheckedText",
956
- "description": "非选中时的文本",
957
- "type": "string"
956
+ "name": "limitSize",
957
+ "description": "上传大小限制(单位为 MB)",
958
+ "type": "number"
958
959
  },
959
960
  {
960
- "name": "checkedIcon",
961
- "description": "选中时的图标",
962
- "attribute": false,
963
- "type": "GeneralIconProps"
961
+ "name": "required",
962
+ "description": "是否必填",
963
+ "type": "boolean"
964
964
  },
965
965
  {
966
- "name": "unCheckedIcon",
967
- "description": "非选中时的文本",
966
+ "name": "message",
967
+ "description": "校验文本信息",
968
968
  "attribute": false,
969
- "type": "GeneralIconProps"
969
+ "type": "Record<string, string>"
970
+ },
971
+ {
972
+ "name": "variant",
973
+ "description": "变体",
974
+ "type": "\"default\" | \"avatar\""
970
975
  },
971
976
  {
972
977
  "name": "themeVariant",
@@ -976,23 +981,23 @@
976
981
  ],
977
982
  "events": [
978
983
  {
979
- "name": "switch",
980
- "description": "开关改变时触发",
984
+ "name": "change",
985
+ "description": "值变化时触发",
981
986
  "detail": {
982
- "type": "boolean"
987
+ "type": "ImageData[]"
983
988
  }
984
989
  }
985
990
  ],
986
991
  "slots": [],
987
992
  "methods": [],
988
993
  "parts": [],
989
- "description": "开关",
994
+ "description": "上传图片构件",
990
995
  "category": "form-input-basic"
991
996
  },
992
997
  {
993
- "name": "eo-upload-image",
998
+ "name": "eo-switch",
994
999
  "alias": [
995
- "form.upload-image"
1000
+ "form.general-switch"
996
1001
  ],
997
1002
  "properties": [
998
1003
  {
@@ -1002,50 +1007,45 @@
1002
1007
  },
1003
1008
  {
1004
1009
  "name": "label",
1005
- "description": "字段说明",
1010
+ "description": "字段文本",
1006
1011
  "type": "string"
1007
1012
  },
1008
1013
  {
1009
1014
  "name": "value",
1010
- "description": "",
1011
- "attribute": false,
1012
- "type": "ImageData[]"
1013
- },
1014
- {
1015
- "name": "bucketName",
1016
- "description": "对象存储桶名字",
1017
- "type": "string"
1015
+ "description": "初始值",
1016
+ "type": "boolean"
1018
1017
  },
1019
1018
  {
1020
- "name": "maxCount",
1021
- "description": "最大上传数量",
1022
- "type": "number"
1019
+ "name": "disabled",
1020
+ "description": "是否禁用",
1021
+ "type": "boolean"
1023
1022
  },
1024
1023
  {
1025
- "name": "multiple",
1026
- "description": "是否支持选定的多张图片",
1027
- "type": "boolean"
1024
+ "name": "size",
1025
+ "description": "按钮大小,目前只支持small和非small两种大小。",
1026
+ "type": "ComponentSize"
1028
1027
  },
1029
1028
  {
1030
- "name": "limitSize",
1031
- "description": "上传大小限制(单位为 MB)",
1032
- "type": "number"
1029
+ "name": "checkedText",
1030
+ "description": "选中时的文本",
1031
+ "type": "string"
1033
1032
  },
1034
1033
  {
1035
- "name": "required",
1036
- "description": "是否必填",
1037
- "type": "boolean"
1034
+ "name": "unCheckedText",
1035
+ "description": "非选中时的文本",
1036
+ "type": "string"
1038
1037
  },
1039
1038
  {
1040
- "name": "message",
1041
- "description": "校验文本信息",
1039
+ "name": "checkedIcon",
1040
+ "description": "选中时的图标",
1042
1041
  "attribute": false,
1043
- "type": "Record<string, string>"
1042
+ "type": "GeneralIconProps"
1044
1043
  },
1045
1044
  {
1046
- "name": "variant",
1047
- "description": "变体",
1048
- "type": "\"default\" | \"avatar\""
1045
+ "name": "unCheckedIcon",
1046
+ "description": "非选中时的文本",
1047
+ "attribute": false,
1048
+ "type": "GeneralIconProps"
1049
1049
  },
1050
1050
  {
1051
1051
  "name": "themeVariant",
@@ -1055,17 +1055,17 @@
1055
1055
  ],
1056
1056
  "events": [
1057
1057
  {
1058
- "name": "change",
1059
- "description": "值变化时触发",
1058
+ "name": "switch",
1059
+ "description": "开关改变时触发",
1060
1060
  "detail": {
1061
- "type": "ImageData[]"
1061
+ "type": "boolean"
1062
1062
  }
1063
1063
  }
1064
1064
  ],
1065
1065
  "slots": [],
1066
1066
  "methods": [],
1067
1067
  "parts": [],
1068
- "description": "上传图片构件",
1068
+ "description": "开关",
1069
1069
  "category": "form-input-basic"
1070
1070
  },
1071
1071
  {