@next-bricks/form 1.13.2 → 1.13.3

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,146 +188,6 @@
188
188
  "description": "通用输入框构件",
189
189
  "category": "form-input-basic"
190
190
  },
191
- {
192
- "name": "eo-form",
193
- "alias": [
194
- "form.general-form"
195
- ],
196
- "properties": [
197
- {
198
- "name": "staticValues",
199
- "attribute": false,
200
- "type": "Record<string, unknown>"
201
- },
202
- {
203
- "name": "layout",
204
- "description": "布局方式(默认 vertical 布局)",
205
- "default": "vertical",
206
- "type": "Layout"
207
- },
208
- {
209
- "name": "size",
210
- "description": "表单组件尺寸",
211
- "type": "ComponentSize"
212
- },
213
- {
214
- "name": "labelCol",
215
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
216
- "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 }",
217
- "attribute": false,
218
- "type": "ColProps"
219
- },
220
- {
221
- "name": "wrapperCol",
222
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
223
- "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 }",
224
- "attribute": false,
225
- "type": "ColProps"
226
- },
227
- {
228
- "name": "formStyle",
229
- "attribute": false,
230
- "type": "React.CSSProperties"
231
- }
232
- ],
233
- "events": [
234
- {
235
- "name": "values.change",
236
- "description": "表单值变更事件",
237
- "detail": {
238
- "description": null,
239
- "type": "Record<string, unknown>"
240
- }
241
- },
242
- {
243
- "name": "validate.success",
244
- "description": "表单验证成功时触发事件",
245
- "detail": {
246
- "type": "Record<string, unknown>"
247
- }
248
- },
249
- {
250
- "name": "validate.error",
251
- "description": "表单验证报错时触发事件",
252
- "detail": {
253
- "type": "(MessageBody & { name: string })[]"
254
- }
255
- }
256
- ],
257
- "slots": [
258
- {
259
- "name": null,
260
- "description": "表单内容"
261
- }
262
- ],
263
- "methods": [
264
- {
265
- "name": "validate",
266
- "params": [],
267
- "description": "表单校验方法",
268
- "returns": {
269
- "type": "boolean | Record<string, unknown>"
270
- }
271
- },
272
- {
273
- "name": "setInitValue",
274
- "params": [
275
- {
276
- "name": "values",
277
- "type": "Record<string, unknown>"
278
- },
279
- {
280
- "name": "options",
281
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
282
- }
283
- ],
284
- "description": "表单设置值方法",
285
- "returns": {}
286
- },
287
- {
288
- "name": "resetFields",
289
- "params": [
290
- {
291
- "name": "name",
292
- "type": "string"
293
- }
294
- ],
295
- "description": "表单重置值方法",
296
- "returns": {}
297
- },
298
- {
299
- "name": "getFieldsValue",
300
- "params": [
301
- {
302
- "name": "name",
303
- "type": "string"
304
- }
305
- ],
306
- "description": "获取表单值方法",
307
- "returns": {}
308
- },
309
- {
310
- "name": "validateField",
311
- "params": [
312
- {
313
- "name": "name",
314
- "type": "string"
315
- }
316
- ],
317
- "description": "校验表单字段方法",
318
- "returns": {}
319
- },
320
- {
321
- "name": "resetValidateState",
322
- "params": [],
323
- "description": "重置表单校验状态方法",
324
- "returns": {}
325
- }
326
- ],
327
- "parts": [],
328
- "description": "表单构件",
329
- "category": "form-input-basic"
330
- },
331
191
  {
332
192
  "name": "eo-form-item",
333
193
  "alias": [
@@ -427,104 +287,6 @@
427
287
  "category": "form-input-basic",
428
288
  "insider": true
429
289
  },
430
- {
431
- "name": "eo-textarea",
432
- "alias": [
433
- "form.general-textarea"
434
- ],
435
- "properties": [
436
- {
437
- "name": "name",
438
- "description": "字段名称",
439
- "type": "string"
440
- },
441
- {
442
- "name": "label",
443
- "description": "标签文字",
444
- "type": "string"
445
- },
446
- {
447
- "name": "value",
448
- "description": "值",
449
- "type": "string"
450
- },
451
- {
452
- "name": "placeholder",
453
- "description": "占位说明",
454
- "type": "string"
455
- },
456
- {
457
- "name": "disabled",
458
- "description": "是否禁用",
459
- "type": "boolean"
460
- },
461
- {
462
- "name": "minLength",
463
- "description": "最小长度",
464
- "type": "number"
465
- },
466
- {
467
- "name": "maxLength",
468
- "description": "最大长度",
469
- "type": "number"
470
- },
471
- {
472
- "name": "autoSize",
473
- "description": "大小自适应",
474
- "attribute": false,
475
- "type": "AutoSize"
476
- },
477
- {
478
- "name": "required",
479
- "description": "是否必填",
480
- "type": "boolean"
481
- },
482
- {
483
- "name": "max",
484
- "description": "表单校验最大长度",
485
- "type": "number"
486
- },
487
- {
488
- "name": "min",
489
- "description": "表单校验最小长度",
490
- "type": "number"
491
- },
492
- {
493
- "name": "message",
494
- "description": "校验信息",
495
- "attribute": false,
496
- "type": "Record<string, string>"
497
- },
498
- {
499
- "name": "textareaStyle",
500
- "description": "自定义样式",
501
- "attribute": false,
502
- "type": "React.CSSProperties"
503
- }
504
- ],
505
- "events": [
506
- {
507
- "name": "change",
508
- "description": "",
509
- "detail": {
510
- "description": null,
511
- "type": "string"
512
- }
513
- }
514
- ],
515
- "slots": [],
516
- "methods": [
517
- {
518
- "name": "focusTextarea",
519
- "params": [],
520
- "description": "focus",
521
- "returns": {}
522
- }
523
- ],
524
- "parts": [],
525
- "description": "通用多行文本输入框构件",
526
- "category": "form-input-basic"
527
- },
528
290
  {
529
291
  "name": "eo-radio",
530
292
  "alias": [
@@ -723,8 +485,259 @@
723
485
  "type": "number"
724
486
  },
725
487
  {
726
- "name": "inputStyle",
727
- "description": "输入框样式",
488
+ "name": "inputStyle",
489
+ "description": "输入框样式",
490
+ "attribute": false,
491
+ "type": "React.CSSProperties"
492
+ }
493
+ ],
494
+ "events": [
495
+ {
496
+ "name": "change",
497
+ "description": "下拉选择事件",
498
+ "detail": {
499
+ "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
500
+ }
501
+ },
502
+ {
503
+ "name": "search",
504
+ "description": "下拉框search事件",
505
+ "detail": {
506
+ "type": "{\n value: string;\n }"
507
+ }
508
+ },
509
+ {
510
+ "name": "focus",
511
+ "description": "下拉框focus事件",
512
+ "detail": {
513
+ "type": "void"
514
+ }
515
+ },
516
+ {
517
+ "name": "options.change",
518
+ "description": "选项列表变化事件",
519
+ "detail": {
520
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
521
+ }
522
+ }
523
+ ],
524
+ "slots": [],
525
+ "methods": [],
526
+ "parts": [],
527
+ "description": "通用下拉选择构件",
528
+ "category": "form-input-basic"
529
+ },
530
+ {
531
+ "name": "eo-form",
532
+ "alias": [
533
+ "form.general-form"
534
+ ],
535
+ "properties": [
536
+ {
537
+ "name": "staticValues",
538
+ "attribute": false,
539
+ "type": "Record<string, unknown>"
540
+ },
541
+ {
542
+ "name": "layout",
543
+ "description": "布局方式(默认 vertical 布局)",
544
+ "default": "vertical",
545
+ "type": "Layout"
546
+ },
547
+ {
548
+ "name": "size",
549
+ "description": "表单组件尺寸",
550
+ "type": "ComponentSize"
551
+ },
552
+ {
553
+ "name": "labelCol",
554
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
555
+ "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 }",
556
+ "attribute": false,
557
+ "type": "ColProps"
558
+ },
559
+ {
560
+ "name": "wrapperCol",
561
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
562
+ "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 }",
563
+ "attribute": false,
564
+ "type": "ColProps"
565
+ },
566
+ {
567
+ "name": "formStyle",
568
+ "attribute": false,
569
+ "type": "React.CSSProperties"
570
+ }
571
+ ],
572
+ "events": [
573
+ {
574
+ "name": "values.change",
575
+ "description": "表单值变更事件",
576
+ "detail": {
577
+ "description": null,
578
+ "type": "Record<string, unknown>"
579
+ }
580
+ },
581
+ {
582
+ "name": "validate.success",
583
+ "description": "表单验证成功时触发事件",
584
+ "detail": {
585
+ "type": "Record<string, unknown>"
586
+ }
587
+ },
588
+ {
589
+ "name": "validate.error",
590
+ "description": "表单验证报错时触发事件",
591
+ "detail": {
592
+ "type": "(MessageBody & { name: string })[]"
593
+ }
594
+ }
595
+ ],
596
+ "slots": [
597
+ {
598
+ "name": null,
599
+ "description": "表单内容"
600
+ }
601
+ ],
602
+ "methods": [
603
+ {
604
+ "name": "validate",
605
+ "params": [],
606
+ "description": "表单校验方法",
607
+ "returns": {
608
+ "type": "boolean | Record<string, unknown>"
609
+ }
610
+ },
611
+ {
612
+ "name": "setInitValue",
613
+ "params": [
614
+ {
615
+ "name": "values",
616
+ "type": "Record<string, unknown>"
617
+ },
618
+ {
619
+ "name": "options",
620
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
621
+ }
622
+ ],
623
+ "description": "表单设置值方法",
624
+ "returns": {}
625
+ },
626
+ {
627
+ "name": "resetFields",
628
+ "params": [
629
+ {
630
+ "name": "name",
631
+ "type": "string"
632
+ }
633
+ ],
634
+ "description": "表单重置值方法",
635
+ "returns": {}
636
+ },
637
+ {
638
+ "name": "getFieldsValue",
639
+ "params": [
640
+ {
641
+ "name": "name",
642
+ "type": "string"
643
+ }
644
+ ],
645
+ "description": "获取表单值方法",
646
+ "returns": {}
647
+ },
648
+ {
649
+ "name": "validateField",
650
+ "params": [
651
+ {
652
+ "name": "name",
653
+ "type": "string"
654
+ }
655
+ ],
656
+ "description": "校验表单字段方法",
657
+ "returns": {}
658
+ },
659
+ {
660
+ "name": "resetValidateState",
661
+ "params": [],
662
+ "description": "重置表单校验状态方法",
663
+ "returns": {}
664
+ }
665
+ ],
666
+ "parts": [],
667
+ "description": "表单构件",
668
+ "category": "form-input-basic"
669
+ },
670
+ {
671
+ "name": "eo-textarea",
672
+ "alias": [
673
+ "form.general-textarea"
674
+ ],
675
+ "properties": [
676
+ {
677
+ "name": "name",
678
+ "description": "字段名称",
679
+ "type": "string"
680
+ },
681
+ {
682
+ "name": "label",
683
+ "description": "标签文字",
684
+ "type": "string"
685
+ },
686
+ {
687
+ "name": "value",
688
+ "description": "值",
689
+ "type": "string"
690
+ },
691
+ {
692
+ "name": "placeholder",
693
+ "description": "占位说明",
694
+ "type": "string"
695
+ },
696
+ {
697
+ "name": "disabled",
698
+ "description": "是否禁用",
699
+ "type": "boolean"
700
+ },
701
+ {
702
+ "name": "minLength",
703
+ "description": "最小长度",
704
+ "type": "number"
705
+ },
706
+ {
707
+ "name": "maxLength",
708
+ "description": "最大长度",
709
+ "type": "number"
710
+ },
711
+ {
712
+ "name": "autoSize",
713
+ "description": "大小自适应",
714
+ "attribute": false,
715
+ "type": "AutoSize"
716
+ },
717
+ {
718
+ "name": "required",
719
+ "description": "是否必填",
720
+ "type": "boolean"
721
+ },
722
+ {
723
+ "name": "max",
724
+ "description": "表单校验最大长度",
725
+ "type": "number"
726
+ },
727
+ {
728
+ "name": "min",
729
+ "description": "表单校验最小长度",
730
+ "type": "number"
731
+ },
732
+ {
733
+ "name": "message",
734
+ "description": "校验信息",
735
+ "attribute": false,
736
+ "type": "Record<string, string>"
737
+ },
738
+ {
739
+ "name": "textareaStyle",
740
+ "description": "自定义样式",
728
741
  "attribute": false,
729
742
  "type": "React.CSSProperties"
730
743
  }
@@ -732,37 +745,24 @@
732
745
  "events": [
733
746
  {
734
747
  "name": "change",
735
- "description": "下拉选择事件",
736
- "detail": {
737
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
738
- }
739
- },
740
- {
741
- "name": "search",
742
- "description": "下拉框search事件",
743
- "detail": {
744
- "type": "{\n value: string;\n }"
745
- }
746
- },
747
- {
748
- "name": "focus",
749
- "description": "下拉框focus事件",
750
- "detail": {
751
- "type": "void"
752
- }
753
- },
754
- {
755
- "name": "options.change",
756
- "description": "选项列表变化事件",
748
+ "description": "",
757
749
  "detail": {
758
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
750
+ "description": null,
751
+ "type": "string"
759
752
  }
760
753
  }
761
754
  ],
762
755
  "slots": [],
763
- "methods": [],
756
+ "methods": [
757
+ {
758
+ "name": "focusTextarea",
759
+ "params": [],
760
+ "description": "focus",
761
+ "returns": {}
762
+ }
763
+ ],
764
764
  "parts": [],
765
- "description": "通用下拉选择构件",
765
+ "description": "通用多行文本输入框构件",
766
766
  "category": "form-input-basic"
767
767
  },
768
768
  {
@@ -1010,70 +1010,9 @@
1010
1010
  "category": "form-input-basic"
1011
1011
  },
1012
1012
  {
1013
- "name": "eo-search",
1014
- "alias": [
1015
- "form.general-search"
1016
- ],
1017
- "properties": [
1018
- {
1019
- "name": "value",
1020
- "description": "搜索框的值",
1021
- "default": "\"\"",
1022
- "type": "string"
1023
- },
1024
- {
1025
- "name": "placeholder",
1026
- "description": "提示语",
1027
- "type": "string"
1028
- },
1029
- {
1030
- "name": "autoFocus",
1031
- "description": "是否自动聚焦",
1032
- "type": "boolean"
1033
- },
1034
- {
1035
- "name": "clearable",
1036
- "description": "可以点击清除图标删除内容",
1037
- "type": "boolean"
1038
- },
1039
- {
1040
- "name": "trim",
1041
- "description": "是否剔除前后空格",
1042
- "type": "boolean"
1043
- },
1044
- {
1045
- "name": "debounceTime",
1046
- "description": "默认延迟时间",
1047
- "default": "0",
1048
- "type": "number"
1049
- }
1050
- ],
1051
- "events": [
1052
- {
1053
- "name": "change",
1054
- "description": "输入的搜索字符,输入变化时触发",
1055
- "detail": {
1056
- "type": "string"
1057
- }
1058
- },
1059
- {
1060
- "name": "search",
1061
- "description": "搜索时触发",
1062
- "detail": {
1063
- "type": "string"
1064
- }
1065
- }
1066
- ],
1067
- "slots": [],
1068
- "methods": [],
1069
- "parts": [],
1070
- "description": "搜索框",
1071
- "category": "interact-basic"
1072
- },
1073
- {
1074
- "name": "eo-icon-select",
1013
+ "name": "eo-upload-image",
1075
1014
  "alias": [
1076
- "form.icon-select"
1015
+ "form.upload-image"
1077
1016
  ],
1078
1017
  "properties": [
1079
1018
  {
@@ -1090,13 +1029,28 @@
1090
1029
  "name": "value",
1091
1030
  "description": "值",
1092
1031
  "attribute": false,
1093
- "type": "Icon"
1032
+ "type": "ImageData[]"
1094
1033
  },
1095
1034
  {
1096
- "name": "disabled",
1097
- "description": "是否禁用",
1035
+ "name": "bucketName",
1036
+ "description": "对象存储桶名字",
1037
+ "type": "string"
1038
+ },
1039
+ {
1040
+ "name": "maxCount",
1041
+ "description": "最大上传数量",
1042
+ "type": "number"
1043
+ },
1044
+ {
1045
+ "name": "multiple",
1046
+ "description": "是否支持选定的多张图片",
1098
1047
  "type": "boolean"
1099
1048
  },
1049
+ {
1050
+ "name": "limitSize",
1051
+ "description": "上传大小限制(单位为 MB)",
1052
+ "type": "number"
1053
+ },
1100
1054
  {
1101
1055
  "name": "required",
1102
1056
  "description": "是否必填",
@@ -1104,7 +1058,7 @@
1104
1058
  },
1105
1059
  {
1106
1060
  "name": "message",
1107
- "description": "是否必填",
1061
+ "description": "校验文本信息",
1108
1062
  "attribute": false,
1109
1063
  "type": "Record<string, string>"
1110
1064
  }
@@ -1114,84 +1068,76 @@
1114
1068
  "name": "change",
1115
1069
  "description": "值变化时触发",
1116
1070
  "detail": {
1117
- "type": "Icon | undefined"
1071
+ "type": "ImageData[]"
1118
1072
  }
1119
1073
  }
1120
1074
  ],
1121
1075
  "slots": [],
1122
1076
  "methods": [],
1123
1077
  "parts": [],
1124
- "description": "图标选择构件",
1078
+ "description": "上传图片构件",
1125
1079
  "category": "form-input-basic"
1126
1080
  },
1127
1081
  {
1128
- "name": "eo-upload-image",
1082
+ "name": "eo-search",
1129
1083
  "alias": [
1130
- "form.upload-image"
1084
+ "form.general-search"
1131
1085
  ],
1132
1086
  "properties": [
1133
- {
1134
- "name": "name",
1135
- "description": "字段名称",
1136
- "type": "string"
1137
- },
1138
- {
1139
- "name": "label",
1140
- "description": "字段说明",
1141
- "type": "string"
1142
- },
1143
1087
  {
1144
1088
  "name": "value",
1145
- "description": "",
1146
- "attribute": false,
1147
- "type": "ImageData[]"
1148
- },
1149
- {
1150
- "name": "bucketName",
1151
- "description": "对象存储桶名字",
1089
+ "description": "搜索框的值",
1090
+ "default": "\"\"",
1152
1091
  "type": "string"
1153
1092
  },
1154
1093
  {
1155
- "name": "maxCount",
1156
- "description": "最大上传数量",
1157
- "type": "number"
1094
+ "name": "placeholder",
1095
+ "description": "提示语",
1096
+ "type": "string"
1158
1097
  },
1159
1098
  {
1160
- "name": "multiple",
1161
- "description": "是否支持选定的多张图片",
1099
+ "name": "autoFocus",
1100
+ "description": "是否自动聚焦",
1162
1101
  "type": "boolean"
1163
1102
  },
1164
1103
  {
1165
- "name": "limitSize",
1166
- "description": "上传大小限制(单位为 MB)",
1167
- "type": "number"
1104
+ "name": "clearable",
1105
+ "description": "可以点击清除图标删除内容",
1106
+ "type": "boolean"
1168
1107
  },
1169
1108
  {
1170
- "name": "required",
1171
- "description": "是否必填",
1109
+ "name": "trim",
1110
+ "description": "是否剔除前后空格",
1172
1111
  "type": "boolean"
1173
1112
  },
1174
1113
  {
1175
- "name": "message",
1176
- "description": "校验文本信息",
1177
- "attribute": false,
1178
- "type": "Record<string, string>"
1114
+ "name": "debounceTime",
1115
+ "description": "默认延迟时间",
1116
+ "default": "0",
1117
+ "type": "number"
1179
1118
  }
1180
1119
  ],
1181
1120
  "events": [
1182
1121
  {
1183
1122
  "name": "change",
1184
- "description": "值变化时触发",
1123
+ "description": "输入的搜索字符,输入变化时触发",
1185
1124
  "detail": {
1186
- "type": "ImageData[]"
1125
+ "type": "string"
1126
+ }
1127
+ },
1128
+ {
1129
+ "name": "search",
1130
+ "description": "搜索时触发",
1131
+ "detail": {
1132
+ "type": "string"
1187
1133
  }
1188
1134
  }
1189
1135
  ],
1190
1136
  "slots": [],
1191
1137
  "methods": [],
1192
1138
  "parts": [],
1193
- "description": "上传图片构件",
1194
- "category": "form-input-basic"
1139
+ "description": "搜索框",
1140
+ "category": "interact-basic"
1195
1141
  },
1196
1142
  {
1197
1143
  "name": "eo-switch",
@@ -1262,6 +1208,60 @@
1262
1208
  "description": "开关",
1263
1209
  "category": "form-input-basic"
1264
1210
  },
1211
+ {
1212
+ "name": "eo-icon-select",
1213
+ "alias": [
1214
+ "form.icon-select"
1215
+ ],
1216
+ "properties": [
1217
+ {
1218
+ "name": "name",
1219
+ "description": "字段名称",
1220
+ "type": "string"
1221
+ },
1222
+ {
1223
+ "name": "label",
1224
+ "description": "字段说明",
1225
+ "type": "string"
1226
+ },
1227
+ {
1228
+ "name": "value",
1229
+ "description": "值",
1230
+ "attribute": false,
1231
+ "type": "Icon"
1232
+ },
1233
+ {
1234
+ "name": "disabled",
1235
+ "description": "是否禁用",
1236
+ "type": "boolean"
1237
+ },
1238
+ {
1239
+ "name": "required",
1240
+ "description": "是否必填",
1241
+ "type": "boolean"
1242
+ },
1243
+ {
1244
+ "name": "message",
1245
+ "description": "是否必填",
1246
+ "attribute": false,
1247
+ "type": "Record<string, string>"
1248
+ }
1249
+ ],
1250
+ "events": [
1251
+ {
1252
+ "name": "change",
1253
+ "description": "值变化时触发",
1254
+ "detail": {
1255
+ "type": "Icon | undefined"
1256
+ }
1257
+ }
1258
+ ],
1259
+ "slots": [],
1260
+ "methods": [],
1261
+ "parts": [],
1262
+ "description": "图标选择构件",
1263
+ "category": "form-input-basic"
1264
+ },
1265
1265
  {
1266
1266
  "name": "eo-upload-file",
1267
1267
  "properties": [