@next-bricks/form 1.11.2 → 1.11.4

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,232 +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": "layout",
199
- "description": "布局方式(默认 vertical 布局)",
200
- "default": "vertical",
201
- "type": "Layout"
202
- },
203
- {
204
- "name": "size",
205
- "description": "表单组件尺寸",
206
- "type": "ComponentSize"
207
- },
208
- {
209
- "name": "labelCol",
210
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
211
- "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 }",
212
- "attribute": false,
213
- "type": "ColProps"
214
- },
215
- {
216
- "name": "wrapperCol",
217
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
218
- "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 }",
219
- "attribute": false,
220
- "type": "ColProps"
221
- },
222
- {
223
- "name": "formStyle",
224
- "attribute": false,
225
- "type": "React.CSSProperties"
226
- }
227
- ],
228
- "events": [
229
- {
230
- "name": "values.change",
231
- "description": "表单值变更事件",
232
- "detail": {
233
- "description": null,
234
- "type": "Record<string, unknown>"
235
- }
236
- },
237
- {
238
- "name": "validate.success",
239
- "description": "表单验证成功时触发事件",
240
- "detail": {
241
- "type": "Record<string, unknown>"
242
- }
243
- },
244
- {
245
- "name": "validate.error",
246
- "description": "表单验证报错时触发事件",
247
- "detail": {
248
- "type": "(MessageBody & { name: string })[]"
249
- }
250
- }
251
- ],
252
- "slots": [
253
- {
254
- "name": null,
255
- "description": "表单内容"
256
- }
257
- ],
258
- "methods": [
259
- {
260
- "name": "validate",
261
- "params": [],
262
- "description": "表单校验方法",
263
- "returns": {
264
- "type": "boolean | Record<string, unknown>"
265
- }
266
- },
267
- {
268
- "name": "setInitValue",
269
- "params": [
270
- {
271
- "name": "values",
272
- "type": "Record<string, unknown>"
273
- },
274
- {
275
- "name": "options",
276
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
277
- }
278
- ],
279
- "description": "表单设置值方法",
280
- "returns": {}
281
- },
282
- {
283
- "name": "resetFields",
284
- "params": [
285
- {
286
- "name": "name",
287
- "type": "string"
288
- }
289
- ],
290
- "description": "表单重置值方法",
291
- "returns": {}
292
- },
293
- {
294
- "name": "getFieldsValue",
295
- "params": [
296
- {
297
- "name": "name",
298
- "type": "string"
299
- }
300
- ],
301
- "description": "获取表单值方法",
302
- "returns": {}
303
- },
304
- {
305
- "name": "validateField",
306
- "params": [
307
- {
308
- "name": "name",
309
- "type": "string"
310
- }
311
- ],
312
- "description": "校验表单字段方法",
313
- "returns": {}
314
- },
315
- {
316
- "name": "resetValidateState",
317
- "params": [],
318
- "description": "重置表单校验状态方法",
319
- "returns": {}
320
- }
321
- ],
322
- "parts": [],
323
- "description": "表单构件",
324
- "category": "form-input-basic"
325
- },
326
- {
327
- "name": "eo-textarea",
328
- "alias": [
329
- "form.general-textarea"
330
- ],
331
- "properties": [
332
- {
333
- "name": "name",
334
- "description": "字段名称",
335
- "type": "string"
336
- },
337
- {
338
- "name": "label",
339
- "description": "标签文字",
340
- "type": "string"
341
- },
342
- {
343
- "name": "value",
344
- "description": "值",
345
- "type": "string"
346
- },
347
- {
348
- "name": "placeholder",
349
- "description": "占位说明",
350
- "type": "string"
351
- },
352
- {
353
- "name": "disabled",
354
- "description": "是否禁用",
355
- "type": "boolean"
356
- },
357
- {
358
- "name": "minLength",
359
- "description": "最小长度",
360
- "type": "number"
361
- },
362
- {
363
- "name": "maxLength",
364
- "description": "最大长度",
365
- "type": "number"
366
- },
367
- {
368
- "name": "autoSize",
369
- "description": "大小自适应",
370
- "attribute": false,
371
- "type": "AutoSize"
372
- },
373
- {
374
- "name": "required",
375
- "description": "是否必填",
376
- "type": "boolean"
377
- },
378
- {
379
- "name": "max",
380
- "description": "表单校验最大长度",
381
- "type": "number"
382
- },
383
- {
384
- "name": "min",
385
- "description": "表单校验最小长度",
386
- "type": "number"
387
- },
388
- {
389
- "name": "message",
390
- "description": "校验信息",
391
- "attribute": false,
392
- "type": "Record<string, string>"
393
- },
394
- {
395
- "name": "textareaStyle",
396
- "description": "自定义样式",
397
- "attribute": false,
398
- "type": "React.CSSProperties"
399
- }
400
- ],
401
- "events": [
402
- {
403
- "name": "change",
404
- "description": "",
405
- "detail": {
406
- "description": null,
407
- "type": "string"
408
- }
409
- }
410
- ],
411
- "slots": [],
412
- "methods": [],
413
- "parts": [],
414
- "description": "通用多行文本输入框构件",
415
- "category": "form-input-basic"
416
- },
417
191
  {
418
192
  "name": "eo-form-item",
419
193
  "alias": [
@@ -611,6 +385,97 @@
611
385
  "description": "通用单选构件",
612
386
  "category": "form-input-basic"
613
387
  },
388
+ {
389
+ "name": "eo-textarea",
390
+ "alias": [
391
+ "form.general-textarea"
392
+ ],
393
+ "properties": [
394
+ {
395
+ "name": "name",
396
+ "description": "字段名称",
397
+ "type": "string"
398
+ },
399
+ {
400
+ "name": "label",
401
+ "description": "标签文字",
402
+ "type": "string"
403
+ },
404
+ {
405
+ "name": "value",
406
+ "description": "值",
407
+ "type": "string"
408
+ },
409
+ {
410
+ "name": "placeholder",
411
+ "description": "占位说明",
412
+ "type": "string"
413
+ },
414
+ {
415
+ "name": "disabled",
416
+ "description": "是否禁用",
417
+ "type": "boolean"
418
+ },
419
+ {
420
+ "name": "minLength",
421
+ "description": "最小长度",
422
+ "type": "number"
423
+ },
424
+ {
425
+ "name": "maxLength",
426
+ "description": "最大长度",
427
+ "type": "number"
428
+ },
429
+ {
430
+ "name": "autoSize",
431
+ "description": "大小自适应",
432
+ "attribute": false,
433
+ "type": "AutoSize"
434
+ },
435
+ {
436
+ "name": "required",
437
+ "description": "是否必填",
438
+ "type": "boolean"
439
+ },
440
+ {
441
+ "name": "max",
442
+ "description": "表单校验最大长度",
443
+ "type": "number"
444
+ },
445
+ {
446
+ "name": "min",
447
+ "description": "表单校验最小长度",
448
+ "type": "number"
449
+ },
450
+ {
451
+ "name": "message",
452
+ "description": "校验信息",
453
+ "attribute": false,
454
+ "type": "Record<string, string>"
455
+ },
456
+ {
457
+ "name": "textareaStyle",
458
+ "description": "自定义样式",
459
+ "attribute": false,
460
+ "type": "React.CSSProperties"
461
+ }
462
+ ],
463
+ "events": [
464
+ {
465
+ "name": "change",
466
+ "description": "",
467
+ "detail": {
468
+ "description": null,
469
+ "type": "string"
470
+ }
471
+ }
472
+ ],
473
+ "slots": [],
474
+ "methods": [],
475
+ "parts": [],
476
+ "description": "通用多行文本输入框构件",
477
+ "category": "form-input-basic"
478
+ },
614
479
  {
615
480
  "name": "eo-select",
616
481
  "alias": [
@@ -711,46 +576,181 @@
711
576
  "type": "number"
712
577
  },
713
578
  {
714
- "name": "inputStyle",
715
- "description": "输入框样式",
716
- "attribute": false,
717
- "type": "React.CSSProperties"
718
- }
719
- ],
720
- "events": [
721
- {
722
- "name": "change",
723
- "description": "下拉选择事件",
724
- "detail": {
725
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
726
- }
579
+ "name": "inputStyle",
580
+ "description": "输入框样式",
581
+ "attribute": false,
582
+ "type": "React.CSSProperties"
583
+ }
584
+ ],
585
+ "events": [
586
+ {
587
+ "name": "change",
588
+ "description": "下拉选择事件",
589
+ "detail": {
590
+ "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
591
+ }
592
+ },
593
+ {
594
+ "name": "search",
595
+ "description": "下拉框search事件",
596
+ "detail": {
597
+ "type": "{\n value: string;\n }"
598
+ }
599
+ },
600
+ {
601
+ "name": "focus",
602
+ "description": "下拉框focus事件",
603
+ "detail": {
604
+ "type": "void"
605
+ }
606
+ },
607
+ {
608
+ "name": "options.change",
609
+ "description": "选项列表变化事件",
610
+ "detail": {
611
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
612
+ }
613
+ }
614
+ ],
615
+ "slots": [],
616
+ "methods": [],
617
+ "parts": [],
618
+ "description": "通用下拉选择构件",
619
+ "category": "form-input-basic"
620
+ },
621
+ {
622
+ "name": "eo-form",
623
+ "alias": [
624
+ "form.general-form"
625
+ ],
626
+ "properties": [
627
+ {
628
+ "name": "layout",
629
+ "description": "布局方式(默认 vertical 布局)",
630
+ "default": "vertical",
631
+ "type": "Layout"
632
+ },
633
+ {
634
+ "name": "size",
635
+ "description": "表单组件尺寸",
636
+ "type": "ComponentSize"
637
+ },
638
+ {
639
+ "name": "labelCol",
640
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
641
+ "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 }",
642
+ "attribute": false,
643
+ "type": "ColProps"
644
+ },
645
+ {
646
+ "name": "wrapperCol",
647
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
648
+ "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 }",
649
+ "attribute": false,
650
+ "type": "ColProps"
651
+ },
652
+ {
653
+ "name": "formStyle",
654
+ "attribute": false,
655
+ "type": "React.CSSProperties"
656
+ }
657
+ ],
658
+ "events": [
659
+ {
660
+ "name": "values.change",
661
+ "description": "表单值变更事件",
662
+ "detail": {
663
+ "description": null,
664
+ "type": "Record<string, unknown>"
665
+ }
666
+ },
667
+ {
668
+ "name": "validate.success",
669
+ "description": "表单验证成功时触发事件",
670
+ "detail": {
671
+ "type": "Record<string, unknown>"
672
+ }
673
+ },
674
+ {
675
+ "name": "validate.error",
676
+ "description": "表单验证报错时触发事件",
677
+ "detail": {
678
+ "type": "(MessageBody & { name: string })[]"
679
+ }
680
+ }
681
+ ],
682
+ "slots": [
683
+ {
684
+ "name": null,
685
+ "description": "表单内容"
686
+ }
687
+ ],
688
+ "methods": [
689
+ {
690
+ "name": "validate",
691
+ "params": [],
692
+ "description": "表单校验方法",
693
+ "returns": {
694
+ "type": "boolean | Record<string, unknown>"
695
+ }
696
+ },
697
+ {
698
+ "name": "setInitValue",
699
+ "params": [
700
+ {
701
+ "name": "values",
702
+ "type": "Record<string, unknown>"
703
+ },
704
+ {
705
+ "name": "options",
706
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
707
+ }
708
+ ],
709
+ "description": "表单设置值方法",
710
+ "returns": {}
711
+ },
712
+ {
713
+ "name": "resetFields",
714
+ "params": [
715
+ {
716
+ "name": "name",
717
+ "type": "string"
718
+ }
719
+ ],
720
+ "description": "表单重置值方法",
721
+ "returns": {}
727
722
  },
728
723
  {
729
- "name": "search",
730
- "description": "下拉框search事件",
731
- "detail": {
732
- "type": "{\n value: string;\n }"
733
- }
724
+ "name": "getFieldsValue",
725
+ "params": [
726
+ {
727
+ "name": "name",
728
+ "type": "string"
729
+ }
730
+ ],
731
+ "description": "获取表单值方法",
732
+ "returns": {}
734
733
  },
735
734
  {
736
- "name": "focus",
737
- "description": "下拉框focus事件",
738
- "detail": {
739
- "type": "void"
740
- }
735
+ "name": "validateField",
736
+ "params": [
737
+ {
738
+ "name": "name",
739
+ "type": "string"
740
+ }
741
+ ],
742
+ "description": "校验表单字段方法",
743
+ "returns": {}
741
744
  },
742
745
  {
743
- "name": "options.change",
744
- "description": "选项列表变化事件",
745
- "detail": {
746
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
747
- }
746
+ "name": "resetValidateState",
747
+ "params": [],
748
+ "description": "重置表单校验状态方法",
749
+ "returns": {}
748
750
  }
749
751
  ],
750
- "slots": [],
751
- "methods": [],
752
752
  "parts": [],
753
- "description": "通用下拉选择构件",
753
+ "description": "表单构件",
754
754
  "category": "form-input-basic"
755
755
  },
756
756
  {
@@ -905,98 +905,6 @@
905
905
  "description": "表单复选框构件",
906
906
  "category": "form-input-basic"
907
907
  },
908
- {
909
- "name": "eo-dynamic-form-item",
910
- "alias": [
911
- "form.dynamic-form-item"
912
- ],
913
- "properties": [
914
- {
915
- "name": "name",
916
- "description": "字段名称",
917
- "type": "string"
918
- },
919
- {
920
- "name": "label",
921
- "description": "字段说明",
922
- "type": "string"
923
- },
924
- {
925
- "name": "required",
926
- "description": "是否必填",
927
- "type": "boolean"
928
- },
929
- {
930
- "name": "value",
931
- "description": "值",
932
- "attribute": false,
933
- "type": "DynamicFormValuesItem[]"
934
- },
935
- {
936
- "name": "message",
937
- "description": "校验文本",
938
- "attribute": false,
939
- "type": "Record<string, string>"
940
- },
941
- {
942
- "name": "hideRemoveButton",
943
- "description": "是否隐藏每一行删除的按钮",
944
- "attribute": false,
945
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
946
- },
947
- {
948
- "name": "disabledRemoveButton",
949
- "description": "是否禁止每一行删除的按钮",
950
- "attribute": false,
951
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
952
- },
953
- {
954
- "name": "hideAddButton",
955
- "description": "是否隐藏添加的按钮",
956
- "attribute": false,
957
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
958
- },
959
- {
960
- "name": "disabledAddButton",
961
- "description": "是否禁止添加的按钮",
962
- "attribute": false,
963
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
964
- },
965
- {
966
- "name": "useBrick",
967
- "description": "动态表单子项构件列表",
968
- "attribute": false,
969
- "type": "UseBrickConf"
970
- }
971
- ],
972
- "events": [
973
- {
974
- "name": "change",
975
- "detail": {
976
- "type": "DynamicFormValuesItem[]"
977
- }
978
- },
979
- {
980
- "name": "row.add",
981
- "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
982
- "detail": {
983
- "type": "rowDataType"
984
- }
985
- },
986
- {
987
- "name": "row.remove",
988
- "description": "移除一行时触发,detail为该行的值,index为该行的位置",
989
- "detail": {
990
- "type": "rowDataType"
991
- }
992
- }
993
- ],
994
- "slots": [],
995
- "methods": [],
996
- "parts": [],
997
- "description": "动态表单",
998
- "category": "form-input-basic"
999
- },
1000
908
  {
1001
909
  "name": "eo-search",
1002
910
  "alias": [
@@ -1112,6 +1020,98 @@
1112
1020
  "description": "图标选择构件",
1113
1021
  "category": "form-input-basic"
1114
1022
  },
1023
+ {
1024
+ "name": "eo-dynamic-form-item",
1025
+ "alias": [
1026
+ "form.dynamic-form-item"
1027
+ ],
1028
+ "properties": [
1029
+ {
1030
+ "name": "name",
1031
+ "description": "字段名称",
1032
+ "type": "string"
1033
+ },
1034
+ {
1035
+ "name": "label",
1036
+ "description": "字段说明",
1037
+ "type": "string"
1038
+ },
1039
+ {
1040
+ "name": "required",
1041
+ "description": "是否必填",
1042
+ "type": "boolean"
1043
+ },
1044
+ {
1045
+ "name": "value",
1046
+ "description": "值",
1047
+ "attribute": false,
1048
+ "type": "DynamicFormValuesItem[]"
1049
+ },
1050
+ {
1051
+ "name": "message",
1052
+ "description": "校验文本",
1053
+ "attribute": false,
1054
+ "type": "Record<string, string>"
1055
+ },
1056
+ {
1057
+ "name": "hideRemoveButton",
1058
+ "description": "是否隐藏每一行删除的按钮",
1059
+ "attribute": false,
1060
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
1061
+ },
1062
+ {
1063
+ "name": "disabledRemoveButton",
1064
+ "description": "是否禁止每一行删除的按钮",
1065
+ "attribute": false,
1066
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
1067
+ },
1068
+ {
1069
+ "name": "hideAddButton",
1070
+ "description": "是否隐藏添加的按钮",
1071
+ "attribute": false,
1072
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
1073
+ },
1074
+ {
1075
+ "name": "disabledAddButton",
1076
+ "description": "是否禁止添加的按钮",
1077
+ "attribute": false,
1078
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
1079
+ },
1080
+ {
1081
+ "name": "useBrick",
1082
+ "description": "动态表单子项构件列表",
1083
+ "attribute": false,
1084
+ "type": "UseBrickConf"
1085
+ }
1086
+ ],
1087
+ "events": [
1088
+ {
1089
+ "name": "change",
1090
+ "detail": {
1091
+ "type": "DynamicFormValuesItem[]"
1092
+ }
1093
+ },
1094
+ {
1095
+ "name": "row.add",
1096
+ "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
1097
+ "detail": {
1098
+ "type": "rowDataType"
1099
+ }
1100
+ },
1101
+ {
1102
+ "name": "row.remove",
1103
+ "description": "移除一行时触发,detail为该行的值,index为该行的位置",
1104
+ "detail": {
1105
+ "type": "rowDataType"
1106
+ }
1107
+ }
1108
+ ],
1109
+ "slots": [],
1110
+ "methods": [],
1111
+ "parts": [],
1112
+ "description": "动态表单",
1113
+ "category": "form-input-basic"
1114
+ },
1115
1115
  {
1116
1116
  "name": "eo-upload-image",
1117
1117
  "alias": [