@next-bricks/form 1.15.10 → 1.15.12

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-radio",
8
251
  "alias": [
@@ -494,221 +737,63 @@
494
737
  "category": "form-input-basic"
495
738
  },
496
739
  {
497
- "name": "eo-form",
740
+ "name": "eo-icon-select",
498
741
  "alias": [
499
- "form.general-form"
742
+ "form.icon-select"
500
743
  ],
501
744
  "properties": [
502
745
  {
503
- "name": "staticValues",
504
- "attribute": false,
505
- "type": "Record<string, unknown>"
746
+ "name": "name",
747
+ "description": "字段名称",
748
+ "type": "string"
506
749
  },
507
750
  {
508
- "name": "layout",
509
- "description": "布局方式(默认 vertical 布局)",
510
- "default": "vertical",
511
- "type": "Layout"
512
- },
513
- {
514
- "name": "size",
515
- "description": "表单组件尺寸",
516
- "type": "ComponentSize"
517
- },
518
- {
519
- "name": "labelCol",
520
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
521
- "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 }",
522
- "attribute": false,
523
- "type": "ColProps"
524
- },
525
- {
526
- "name": "wrapperCol",
527
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
528
- "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 }",
529
- "attribute": false,
530
- "type": "ColProps"
531
- },
532
- {
533
- "name": "formStyle",
534
- "attribute": false,
535
- "type": "React.CSSProperties"
536
- },
537
- {
538
- "name": "textContent",
539
- "type": "string",
540
- "description": "文本内容"
541
- }
542
- ],
543
- "events": [
544
- {
545
- "name": "values.change",
546
- "description": "表单值变更事件",
547
- "detail": {
548
- "description": null,
549
- "type": "Record<string, unknown>"
550
- }
551
- },
552
- {
553
- "name": "validate.success",
554
- "description": "表单验证成功时触发事件",
555
- "detail": {
556
- "type": "Record<string, unknown>"
557
- }
558
- },
559
- {
560
- "name": "validate.error",
561
- "description": "表单验证报错时触发事件",
562
- "detail": {
563
- "type": "(MessageBody & { name: string })[]"
564
- }
565
- }
566
- ],
567
- "slots": [
568
- {
569
- "name": null,
570
- "description": "表单内容"
571
- }
572
- ],
573
- "methods": [
574
- {
575
- "name": "validate",
576
- "params": [],
577
- "description": "表单校验方法",
578
- "returns": {
579
- "type": "boolean | Record<string, unknown>"
580
- }
581
- },
582
- {
583
- "name": "setInitValue",
584
- "params": [
585
- {
586
- "name": "values",
587
- "type": "Record<string, unknown>"
588
- },
589
- {
590
- "name": "options",
591
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
592
- }
593
- ],
594
- "description": "表单设置值方法",
595
- "returns": {}
596
- },
597
- {
598
- "name": "resetFields",
599
- "params": [
600
- {
601
- "name": "name",
602
- "type": "string"
603
- }
604
- ],
605
- "description": "表单重置值方法",
606
- "returns": {}
607
- },
608
- {
609
- "name": "getFieldsValue",
610
- "params": [
611
- {
612
- "name": "name",
613
- "type": "string"
614
- }
615
- ],
616
- "description": "获取表单值方法",
617
- "returns": {}
618
- },
619
- {
620
- "name": "validateField",
621
- "params": [
622
- {
623
- "name": "name",
624
- "type": "string"
625
- }
626
- ],
627
- "description": "校验表单字段方法",
628
- "returns": {}
629
- },
630
- {
631
- "name": "resetValidateState",
632
- "params": [],
633
- "description": "重置表单校验状态方法",
634
- "returns": {}
635
- }
636
- ],
637
- "parts": [],
638
- "description": "表单构件",
639
- "category": "form-input-basic"
640
- },
641
- {
642
- "name": "eo-search",
643
- "alias": [
644
- "form.general-search"
645
- ],
646
- "properties": [
647
- {
648
- "name": "value",
649
- "description": "搜索框的值",
650
- "default": "\"\"",
651
- "type": "string"
652
- },
653
- {
654
- "name": "placeholder",
655
- "description": "提示语",
751
+ "name": "label",
752
+ "description": "字段说明",
656
753
  "type": "string"
657
754
  },
658
755
  {
659
- "name": "autoFocus",
660
- "description": "是否自动聚焦",
661
- "type": "boolean"
756
+ "name": "value",
757
+ "description": "",
758
+ "attribute": false,
759
+ "type": "Icon"
662
760
  },
663
761
  {
664
- "name": "clearable",
665
- "description": "可以点击清除图标删除内容",
762
+ "name": "disabled",
763
+ "description": "是否禁用",
666
764
  "type": "boolean"
667
765
  },
668
766
  {
669
- "name": "trim",
670
- "description": "是否剔除前后空格",
767
+ "name": "required",
768
+ "description": "是否必填",
671
769
  "type": "boolean"
672
770
  },
673
771
  {
674
- "name": "debounceTime",
675
- "description": "默认延迟时间",
676
- "default": "0",
677
- "type": "number"
678
- },
679
- {
680
- "name": "inputStyle",
681
- "description": "输入框样式",
772
+ "name": "message",
773
+ "description": "是否必填",
682
774
  "attribute": false,
683
- "type": "CSSProperties"
775
+ "type": "Record<string, string>"
684
776
  }
685
777
  ],
686
778
  "events": [
687
779
  {
688
780
  "name": "change",
689
- "description": "输入的搜索字符,输入变化时触发",
690
- "detail": {
691
- "type": "string"
692
- }
693
- },
694
- {
695
- "name": "search",
696
- "description": "搜索时触发",
781
+ "description": "值变化时触发",
697
782
  "detail": {
698
- "type": "string"
783
+ "type": "Icon | undefined"
699
784
  }
700
785
  }
701
786
  ],
702
787
  "slots": [],
703
788
  "methods": [],
704
789
  "parts": [],
705
- "description": "搜索框",
706
- "category": "interact-basic"
790
+ "description": "图标选择构件",
791
+ "category": "form-input-basic"
707
792
  },
708
793
  {
709
- "name": "eo-icon-select",
794
+ "name": "eo-upload-image",
710
795
  "alias": [
711
- "form.icon-select"
796
+ "form.upload-image"
712
797
  ],
713
798
  "properties": [
714
799
  {
@@ -725,13 +810,28 @@
725
810
  "name": "value",
726
811
  "description": "值",
727
812
  "attribute": false,
728
- "type": "Icon"
813
+ "type": "ImageData[]"
729
814
  },
730
815
  {
731
- "name": "disabled",
732
- "description": "是否禁用",
816
+ "name": "bucketName",
817
+ "description": "对象存储桶名字",
818
+ "type": "string"
819
+ },
820
+ {
821
+ "name": "maxCount",
822
+ "description": "最大上传数量",
823
+ "type": "number"
824
+ },
825
+ {
826
+ "name": "multiple",
827
+ "description": "是否支持选定的多张图片",
733
828
  "type": "boolean"
734
829
  },
830
+ {
831
+ "name": "limitSize",
832
+ "description": "上传大小限制(单位为 MB)",
833
+ "type": "number"
834
+ },
735
835
  {
736
836
  "name": "required",
737
837
  "description": "是否必填",
@@ -739,7 +839,7 @@
739
839
  },
740
840
  {
741
841
  "name": "message",
742
- "description": "是否必填",
842
+ "description": "校验文本信息",
743
843
  "attribute": false,
744
844
  "type": "Record<string, string>"
745
845
  }
@@ -749,14 +849,14 @@
749
849
  "name": "change",
750
850
  "description": "值变化时触发",
751
851
  "detail": {
752
- "type": "Icon | undefined"
852
+ "type": "ImageData[]"
753
853
  }
754
854
  }
755
855
  ],
756
856
  "slots": [],
757
857
  "methods": [],
758
858
  "parts": [],
759
- "description": "图标选择构件",
859
+ "description": "上传图片构件",
760
860
  "category": "form-input-basic"
761
861
  },
762
862
  {
@@ -828,75 +928,6 @@
828
928
  "description": "开关",
829
929
  "category": "form-input-basic"
830
930
  },
831
- {
832
- "name": "eo-upload-image",
833
- "alias": [
834
- "form.upload-image"
835
- ],
836
- "properties": [
837
- {
838
- "name": "name",
839
- "description": "字段名称",
840
- "type": "string"
841
- },
842
- {
843
- "name": "label",
844
- "description": "字段说明",
845
- "type": "string"
846
- },
847
- {
848
- "name": "value",
849
- "description": "值",
850
- "attribute": false,
851
- "type": "ImageData[]"
852
- },
853
- {
854
- "name": "bucketName",
855
- "description": "对象存储桶名字",
856
- "type": "string"
857
- },
858
- {
859
- "name": "maxCount",
860
- "description": "最大上传数量",
861
- "type": "number"
862
- },
863
- {
864
- "name": "multiple",
865
- "description": "是否支持选定的多张图片",
866
- "type": "boolean"
867
- },
868
- {
869
- "name": "limitSize",
870
- "description": "上传大小限制(单位为 MB)",
871
- "type": "number"
872
- },
873
- {
874
- "name": "required",
875
- "description": "是否必填",
876
- "type": "boolean"
877
- },
878
- {
879
- "name": "message",
880
- "description": "校验文本信息",
881
- "attribute": false,
882
- "type": "Record<string, string>"
883
- }
884
- ],
885
- "events": [
886
- {
887
- "name": "change",
888
- "description": "值变化时触发",
889
- "detail": {
890
- "type": "ImageData[]"
891
- }
892
- }
893
- ],
894
- "slots": [],
895
- "methods": [],
896
- "parts": [],
897
- "description": "上传图片构件",
898
- "category": "form-input-basic"
899
- },
900
931
  {
901
932
  "name": "eo-upload-file",
902
933
  "properties": [
@@ -1103,104 +1134,6 @@
1103
1134
  "description": "带候选项的输入框",
1104
1135
  "category": "form-input-basic"
1105
1136
  },
1106
- {
1107
- "name": "eo-textarea",
1108
- "alias": [
1109
- "form.general-textarea"
1110
- ],
1111
- "properties": [
1112
- {
1113
- "name": "name",
1114
- "description": "字段名称",
1115
- "type": "string"
1116
- },
1117
- {
1118
- "name": "label",
1119
- "description": "标签文字",
1120
- "type": "string"
1121
- },
1122
- {
1123
- "name": "value",
1124
- "description": "值",
1125
- "type": "string"
1126
- },
1127
- {
1128
- "name": "placeholder",
1129
- "description": "占位说明",
1130
- "type": "string"
1131
- },
1132
- {
1133
- "name": "disabled",
1134
- "description": "是否禁用",
1135
- "type": "boolean"
1136
- },
1137
- {
1138
- "name": "minLength",
1139
- "description": "最小长度",
1140
- "type": "number"
1141
- },
1142
- {
1143
- "name": "maxLength",
1144
- "description": "最大长度",
1145
- "type": "number"
1146
- },
1147
- {
1148
- "name": "autoSize",
1149
- "description": "大小自适应",
1150
- "attribute": false,
1151
- "type": "AutoSize"
1152
- },
1153
- {
1154
- "name": "required",
1155
- "description": "是否必填",
1156
- "type": "boolean"
1157
- },
1158
- {
1159
- "name": "max",
1160
- "description": "表单校验最大长度",
1161
- "type": "number"
1162
- },
1163
- {
1164
- "name": "min",
1165
- "description": "表单校验最小长度",
1166
- "type": "number"
1167
- },
1168
- {
1169
- "name": "message",
1170
- "description": "校验信息",
1171
- "attribute": false,
1172
- "type": "Record<string, string>"
1173
- },
1174
- {
1175
- "name": "textareaStyle",
1176
- "description": "自定义样式",
1177
- "attribute": false,
1178
- "type": "React.CSSProperties"
1179
- }
1180
- ],
1181
- "events": [
1182
- {
1183
- "name": "change",
1184
- "description": "",
1185
- "detail": {
1186
- "description": null,
1187
- "type": "string"
1188
- }
1189
- }
1190
- ],
1191
- "slots": [],
1192
- "methods": [
1193
- {
1194
- "name": "focusTextarea",
1195
- "params": [],
1196
- "description": "focus",
1197
- "returns": {}
1198
- }
1199
- ],
1200
- "parts": [],
1201
- "description": "通用多行文本输入框构件",
1202
- "category": "form-input-basic"
1203
- },
1204
1137
  {
1205
1138
  "name": "eo-time-picker",
1206
1139
  "properties": [
@@ -1376,6 +1309,73 @@
1376
1309
  "description": "日期选择器",
1377
1310
  "category": "form-input-basic"
1378
1311
  },
1312
+ {
1313
+ "name": "eo-search",
1314
+ "alias": [
1315
+ "form.general-search"
1316
+ ],
1317
+ "properties": [
1318
+ {
1319
+ "name": "value",
1320
+ "description": "搜索框的值",
1321
+ "default": "\"\"",
1322
+ "type": "string"
1323
+ },
1324
+ {
1325
+ "name": "placeholder",
1326
+ "description": "提示语",
1327
+ "type": "string"
1328
+ },
1329
+ {
1330
+ "name": "autoFocus",
1331
+ "description": "是否自动聚焦",
1332
+ "type": "boolean"
1333
+ },
1334
+ {
1335
+ "name": "clearable",
1336
+ "description": "可以点击清除图标删除内容",
1337
+ "type": "boolean"
1338
+ },
1339
+ {
1340
+ "name": "trim",
1341
+ "description": "是否剔除前后空格",
1342
+ "type": "boolean"
1343
+ },
1344
+ {
1345
+ "name": "debounceTime",
1346
+ "description": "默认延迟时间",
1347
+ "default": "0",
1348
+ "type": "number"
1349
+ },
1350
+ {
1351
+ "name": "inputStyle",
1352
+ "description": "输入框样式",
1353
+ "attribute": false,
1354
+ "type": "CSSProperties"
1355
+ }
1356
+ ],
1357
+ "events": [
1358
+ {
1359
+ "name": "change",
1360
+ "description": "输入的搜索字符,输入变化时触发",
1361
+ "detail": {
1362
+ "type": "string"
1363
+ }
1364
+ },
1365
+ {
1366
+ "name": "search",
1367
+ "description": "搜索时触发",
1368
+ "detail": {
1369
+ "type": "string"
1370
+ }
1371
+ }
1372
+ ],
1373
+ "slots": [],
1374
+ "methods": [],
1375
+ "parts": [],
1376
+ "description": "搜索框",
1377
+ "category": "interact-basic"
1378
+ },
1379
1379
  {
1380
1380
  "name": "eo-time-range-picker",
1381
1381
  "properties": [