@next-bricks/form 1.15.15 → 1.15.17

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.
Files changed (55) hide show
  1. package/dist/bricks.json +29 -29
  2. package/dist/chunks/{149.3c454551.js → 149.0d96a17f.js} +2 -2
  3. package/dist/chunks/{149.3c454551.js.map → 149.0d96a17f.js.map} +1 -1
  4. package/dist/chunks/{4185.c4525861.js → 4185.228cd688.js} +3 -3
  5. package/dist/chunks/4185.228cd688.js.map +1 -0
  6. package/dist/chunks/5347.e2aed5bb.js +3 -0
  7. package/dist/chunks/{5347.88980d83.js.map → 5347.e2aed5bb.js.map} +1 -1
  8. package/dist/chunks/eo-color-picker.5d90dd14.js +2 -0
  9. package/dist/chunks/{eo-color-picker.26cc5ea4.js.map → eo-color-picker.5d90dd14.js.map} +1 -1
  10. package/dist/chunks/eo-date-picker.69734d54.js +2 -0
  11. package/dist/chunks/{eo-date-picker.9349f52d.js.map → eo-date-picker.69734d54.js.map} +1 -1
  12. package/dist/chunks/eo-dynamic-form-item.023553e6.js +3 -0
  13. package/dist/chunks/{eo-dynamic-form-item.2fc6c469.js.map → eo-dynamic-form-item.023553e6.js.map} +1 -1
  14. package/dist/chunks/eo-radio.d7d5c5cc.js +3 -0
  15. package/dist/chunks/{eo-radio.7733eba5.js.map → eo-radio.d7d5c5cc.js.map} +1 -1
  16. package/dist/chunks/eo-select.a3b01a0e.js +3 -0
  17. package/dist/chunks/{eo-select.007e32cf.js.map → eo-select.a3b01a0e.js.map} +1 -1
  18. package/dist/chunks/eo-time-picker.af83e9e7.js +2 -0
  19. package/dist/chunks/{eo-time-picker.a1616caa.js.map → eo-time-picker.af83e9e7.js.map} +1 -1
  20. package/dist/chunks/eo-time-range-picker.faa63b15.js +2 -0
  21. package/dist/chunks/{eo-time-range-picker.7f0e155a.js.map → eo-time-range-picker.faa63b15.js.map} +1 -1
  22. package/dist/chunks/eo-upload-file.81312b34.js +3 -0
  23. package/dist/chunks/{eo-upload-file.4f90038d.js.map → eo-upload-file.81312b34.js.map} +1 -1
  24. package/dist/chunks/{eo-upload-image.528e6cba.js → eo-upload-image.cc41de20.js} +3 -3
  25. package/dist/chunks/{eo-upload-image.528e6cba.js.map → eo-upload-image.cc41de20.js.map} +1 -1
  26. package/dist/chunks/main.025109f3.js +2 -0
  27. package/dist/chunks/{main.962fdfff.js.map → main.025109f3.js.map} +1 -1
  28. package/dist/chunks/{react.711f0c64.js → react.4372d06b.js} +2 -2
  29. package/dist/examples.json +11 -11
  30. package/dist/index.0709d264.js +2 -0
  31. package/dist/index.0709d264.js.map +1 -0
  32. package/dist/manifest.json +348 -348
  33. package/dist/types.json +188 -188
  34. package/package.json +3 -3
  35. package/dist/chunks/4185.c4525861.js.map +0 -1
  36. package/dist/chunks/5347.88980d83.js +0 -3
  37. package/dist/chunks/eo-color-picker.26cc5ea4.js +0 -2
  38. package/dist/chunks/eo-date-picker.9349f52d.js +0 -2
  39. package/dist/chunks/eo-dynamic-form-item.2fc6c469.js +0 -3
  40. package/dist/chunks/eo-radio.7733eba5.js +0 -3
  41. package/dist/chunks/eo-select.007e32cf.js +0 -3
  42. package/dist/chunks/eo-time-picker.a1616caa.js +0 -2
  43. package/dist/chunks/eo-time-range-picker.7f0e155a.js +0 -2
  44. package/dist/chunks/eo-upload-file.4f90038d.js +0 -3
  45. package/dist/chunks/main.962fdfff.js +0 -2
  46. package/dist/index.227a37c9.js +0 -2
  47. package/dist/index.227a37c9.js.map +0 -1
  48. /package/dist/chunks/{4185.c4525861.js.LICENSE.txt → 4185.228cd688.js.LICENSE.txt} +0 -0
  49. /package/dist/chunks/{5347.88980d83.js.LICENSE.txt → 5347.e2aed5bb.js.LICENSE.txt} +0 -0
  50. /package/dist/chunks/{eo-dynamic-form-item.2fc6c469.js.LICENSE.txt → eo-dynamic-form-item.023553e6.js.LICENSE.txt} +0 -0
  51. /package/dist/chunks/{eo-radio.7733eba5.js.LICENSE.txt → eo-radio.d7d5c5cc.js.LICENSE.txt} +0 -0
  52. /package/dist/chunks/{eo-select.007e32cf.js.LICENSE.txt → eo-select.a3b01a0e.js.LICENSE.txt} +0 -0
  53. /package/dist/chunks/{eo-upload-file.4f90038d.js.LICENSE.txt → eo-upload-file.81312b34.js.LICENSE.txt} +0 -0
  54. /package/dist/chunks/{eo-upload-image.528e6cba.js.LICENSE.txt → eo-upload-image.cc41de20.js.LICENSE.txt} +0 -0
  55. /package/dist/chunks/{react.711f0c64.js.LICENSE.txt → react.4372d06b.js.LICENSE.txt} +0 -0
@@ -3,6 +3,104 @@
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
+ },
6
104
  {
7
105
  "name": "eo-radio",
8
106
  "alias": [
@@ -250,63 +348,148 @@
250
348
  "category": "form-input-basic"
251
349
  },
252
350
  {
253
- "name": "eo-submit-buttons",
351
+ "name": "eo-form",
254
352
  "alias": [
255
- "form.submit-buttons"
353
+ "form.general-form"
256
354
  ],
257
355
  "properties": [
258
356
  {
259
- "name": "submitText",
260
- "description": "提交按钮的文字",
261
- "default": "\"提交\"",
262
- "type": "string"
357
+ "name": "staticValues",
358
+ "attribute": false,
359
+ "type": "Record<string, unknown>"
263
360
  },
264
361
  {
265
- "name": "cancelText",
266
- "description": "取消按钮的文字,不设置则不显示取消按钮",
267
- "type": "string"
362
+ "name": "layout",
363
+ "description": "布局方式(默认 vertical 布局)",
364
+ "default": "vertical",
365
+ "type": "Layout"
268
366
  },
269
367
  {
270
- "name": "disableAfterClick",
271
- "description": "点击确定按钮后自动禁用",
272
- "type": "boolean"
368
+ "name": "size",
369
+ "description": "表单组件尺寸",
370
+ "type": "ComponentSize"
273
371
  },
274
372
  {
275
- "name": "submitDisabled",
276
- "description": "禁用提交按钮",
277
- "type": "boolean"
373
+ "name": "labelCol",
374
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
375
+ "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 }",
376
+ "attribute": false,
377
+ "type": "ColProps"
278
378
  },
279
379
  {
280
- "name": "submitType",
281
- "description": "提交按钮类型",
282
- "type": "ButtonType"
380
+ "name": "wrapperCol",
381
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
382
+ "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 }",
383
+ "attribute": false,
384
+ "type": "ColProps"
283
385
  },
284
386
  {
285
- "name": "cancelType",
286
- "description": "取消按钮类型",
287
- "type": "ButtonType"
387
+ "name": "formStyle",
388
+ "attribute": false,
389
+ "type": "React.CSSProperties"
390
+ },
391
+ {
392
+ "name": "textContent",
393
+ "type": "string",
394
+ "description": "文本内容"
288
395
  }
289
396
  ],
290
397
  "events": [
291
398
  {
292
- "name": "submit",
293
- "description": "点击提交按钮触发的事件",
399
+ "name": "values.change",
400
+ "description": "表单值变更事件",
294
401
  "detail": {
295
- "type": "void"
402
+ "description": null,
403
+ "type": "Record<string, unknown>"
296
404
  }
297
405
  },
298
406
  {
299
- "name": "cancel",
300
- "description": "点击取消按钮触发的事件",
407
+ "name": "validate.success",
408
+ "description": "表单验证成功时触发事件",
301
409
  "detail": {
302
- "type": "void"
410
+ "type": "Record<string, unknown>"
411
+ }
412
+ },
413
+ {
414
+ "name": "validate.error",
415
+ "description": "表单验证报错时触发事件",
416
+ "detail": {
417
+ "type": "(MessageBody & { name: string })[]"
303
418
  }
304
419
  }
305
420
  ],
306
- "slots": [],
307
- "methods": [],
421
+ "slots": [
422
+ {
423
+ "name": null,
424
+ "description": "表单内容"
425
+ }
426
+ ],
427
+ "methods": [
428
+ {
429
+ "name": "validate",
430
+ "params": [],
431
+ "description": "表单校验方法",
432
+ "returns": {
433
+ "type": "boolean | Record<string, unknown>"
434
+ }
435
+ },
436
+ {
437
+ "name": "setInitValue",
438
+ "params": [
439
+ {
440
+ "name": "values",
441
+ "type": "Record<string, unknown>"
442
+ },
443
+ {
444
+ "name": "options",
445
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
446
+ }
447
+ ],
448
+ "description": "表单设置值方法",
449
+ "returns": {}
450
+ },
451
+ {
452
+ "name": "resetFields",
453
+ "params": [
454
+ {
455
+ "name": "name",
456
+ "type": "string"
457
+ }
458
+ ],
459
+ "description": "表单重置值方法",
460
+ "returns": {}
461
+ },
462
+ {
463
+ "name": "getFieldsValue",
464
+ "params": [
465
+ {
466
+ "name": "name",
467
+ "type": "string"
468
+ }
469
+ ],
470
+ "description": "获取表单值方法",
471
+ "returns": {}
472
+ },
473
+ {
474
+ "name": "validateField",
475
+ "params": [
476
+ {
477
+ "name": "name",
478
+ "type": "string"
479
+ }
480
+ ],
481
+ "description": "校验表单字段方法",
482
+ "returns": {}
483
+ },
484
+ {
485
+ "name": "resetValidateState",
486
+ "params": [],
487
+ "description": "重置表单校验状态方法",
488
+ "returns": {}
489
+ }
490
+ ],
308
491
  "parts": [],
309
- "description": "表单提交按钮",
492
+ "description": "表单构件",
310
493
  "category": "form-input-basic"
311
494
  },
312
495
  {
@@ -402,19 +585,79 @@
402
585
  "category": "form-input-basic"
403
586
  },
404
587
  {
405
- "name": "eo-dynamic-form-item",
588
+ "name": "eo-submit-buttons",
406
589
  "alias": [
407
- "form.dynamic-form-item"
590
+ "form.submit-buttons"
408
591
  ],
409
592
  "properties": [
410
593
  {
411
- "name": "name",
412
- "description": "字段名称",
594
+ "name": "submitText",
595
+ "description": "提交按钮的文字",
596
+ "default": "\"提交\"",
413
597
  "type": "string"
414
598
  },
415
599
  {
416
- "name": "label",
417
- "description": "字段说明",
600
+ "name": "cancelText",
601
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
602
+ "type": "string"
603
+ },
604
+ {
605
+ "name": "disableAfterClick",
606
+ "description": "点击确定按钮后自动禁用",
607
+ "type": "boolean"
608
+ },
609
+ {
610
+ "name": "submitDisabled",
611
+ "description": "禁用提交按钮",
612
+ "type": "boolean"
613
+ },
614
+ {
615
+ "name": "submitType",
616
+ "description": "提交按钮类型",
617
+ "type": "ButtonType"
618
+ },
619
+ {
620
+ "name": "cancelType",
621
+ "description": "取消按钮类型",
622
+ "type": "ButtonType"
623
+ }
624
+ ],
625
+ "events": [
626
+ {
627
+ "name": "submit",
628
+ "description": "点击提交按钮触发的事件",
629
+ "detail": {
630
+ "type": "void"
631
+ }
632
+ },
633
+ {
634
+ "name": "cancel",
635
+ "description": "点击取消按钮触发的事件",
636
+ "detail": {
637
+ "type": "void"
638
+ }
639
+ }
640
+ ],
641
+ "slots": [],
642
+ "methods": [],
643
+ "parts": [],
644
+ "description": "表单提交按钮",
645
+ "category": "form-input-basic"
646
+ },
647
+ {
648
+ "name": "eo-dynamic-form-item",
649
+ "alias": [
650
+ "form.dynamic-form-item"
651
+ ],
652
+ "properties": [
653
+ {
654
+ "name": "name",
655
+ "description": "字段名称",
656
+ "type": "string"
657
+ },
658
+ {
659
+ "name": "label",
660
+ "description": "字段说明",
418
661
  "type": "string"
419
662
  },
420
663
  {
@@ -683,6 +926,75 @@
683
926
  "description": "上传图片构件",
684
927
  "category": "form-input-basic"
685
928
  },
929
+ {
930
+ "name": "eo-switch",
931
+ "alias": [
932
+ "form.general-switch"
933
+ ],
934
+ "properties": [
935
+ {
936
+ "name": "name",
937
+ "description": "字段名称",
938
+ "type": "string"
939
+ },
940
+ {
941
+ "name": "label",
942
+ "description": "字段文本",
943
+ "type": "string"
944
+ },
945
+ {
946
+ "name": "value",
947
+ "description": "初始值",
948
+ "type": "boolean"
949
+ },
950
+ {
951
+ "name": "disabled",
952
+ "description": "是否禁用",
953
+ "type": "boolean"
954
+ },
955
+ {
956
+ "name": "size",
957
+ "description": "按钮大小,目前只支持small和非small两种大小。",
958
+ "type": "ComponentSize"
959
+ },
960
+ {
961
+ "name": "checkedText",
962
+ "description": "选中时的文本",
963
+ "type": "string"
964
+ },
965
+ {
966
+ "name": "unCheckedText",
967
+ "description": "非选中时的文本",
968
+ "type": "string"
969
+ },
970
+ {
971
+ "name": "checkedIcon",
972
+ "description": "选中时的图标",
973
+ "attribute": false,
974
+ "type": "GeneralIconProps"
975
+ },
976
+ {
977
+ "name": "unCheckedIcon",
978
+ "description": "非选中时的文本",
979
+ "attribute": false,
980
+ "type": "GeneralIconProps"
981
+ }
982
+ ],
983
+ "events": [
984
+ {
985
+ "name": "switch",
986
+ "description": "开关改变时触发",
987
+ "detail": {
988
+ "type": "boolean"
989
+ }
990
+ }
991
+ ],
992
+ "slots": [],
993
+ "methods": [],
994
+ "parts": [],
995
+ "description": "开关",
996
+ "category": "form-input-basic"
997
+ },
686
998
  {
687
999
  "name": "eo-upload-file",
688
1000
  "properties": [
@@ -806,75 +1118,6 @@
806
1118
  "description": "上传文件",
807
1119
  "category": "form-input-basic"
808
1120
  },
809
- {
810
- "name": "eo-switch",
811
- "alias": [
812
- "form.general-switch"
813
- ],
814
- "properties": [
815
- {
816
- "name": "name",
817
- "description": "字段名称",
818
- "type": "string"
819
- },
820
- {
821
- "name": "label",
822
- "description": "字段文本",
823
- "type": "string"
824
- },
825
- {
826
- "name": "value",
827
- "description": "初始值",
828
- "type": "boolean"
829
- },
830
- {
831
- "name": "disabled",
832
- "description": "是否禁用",
833
- "type": "boolean"
834
- },
835
- {
836
- "name": "size",
837
- "description": "按钮大小,目前只支持small和非small两种大小。",
838
- "type": "ComponentSize"
839
- },
840
- {
841
- "name": "checkedText",
842
- "description": "选中时的文本",
843
- "type": "string"
844
- },
845
- {
846
- "name": "unCheckedText",
847
- "description": "非选中时的文本",
848
- "type": "string"
849
- },
850
- {
851
- "name": "checkedIcon",
852
- "description": "选中时的图标",
853
- "attribute": false,
854
- "type": "GeneralIconProps"
855
- },
856
- {
857
- "name": "unCheckedIcon",
858
- "description": "非选中时的文本",
859
- "attribute": false,
860
- "type": "GeneralIconProps"
861
- }
862
- ],
863
- "events": [
864
- {
865
- "name": "switch",
866
- "description": "开关改变时触发",
867
- "detail": {
868
- "type": "boolean"
869
- }
870
- }
871
- ],
872
- "slots": [],
873
- "methods": [],
874
- "parts": [],
875
- "description": "开关",
876
- "category": "form-input-basic"
877
- },
878
1121
  {
879
1122
  "name": "eo-auto-complete",
880
1123
  "properties": [
@@ -1033,104 +1276,6 @@
1033
1276
  "description": "时间选择器",
1034
1277
  "category": "form-input-basic"
1035
1278
  },
1036
- {
1037
- "name": "eo-textarea",
1038
- "alias": [
1039
- "form.general-textarea"
1040
- ],
1041
- "properties": [
1042
- {
1043
- "name": "name",
1044
- "description": "字段名称",
1045
- "type": "string"
1046
- },
1047
- {
1048
- "name": "label",
1049
- "description": "标签文字",
1050
- "type": "string"
1051
- },
1052
- {
1053
- "name": "value",
1054
- "description": "值",
1055
- "type": "string"
1056
- },
1057
- {
1058
- "name": "placeholder",
1059
- "description": "占位说明",
1060
- "type": "string"
1061
- },
1062
- {
1063
- "name": "disabled",
1064
- "description": "是否禁用",
1065
- "type": "boolean"
1066
- },
1067
- {
1068
- "name": "minLength",
1069
- "description": "最小长度",
1070
- "type": "number"
1071
- },
1072
- {
1073
- "name": "maxLength",
1074
- "description": "最大长度",
1075
- "type": "number"
1076
- },
1077
- {
1078
- "name": "autoSize",
1079
- "description": "大小自适应",
1080
- "attribute": false,
1081
- "type": "AutoSize"
1082
- },
1083
- {
1084
- "name": "required",
1085
- "description": "是否必填",
1086
- "type": "boolean"
1087
- },
1088
- {
1089
- "name": "max",
1090
- "description": "表单校验最大长度",
1091
- "type": "number"
1092
- },
1093
- {
1094
- "name": "min",
1095
- "description": "表单校验最小长度",
1096
- "type": "number"
1097
- },
1098
- {
1099
- "name": "message",
1100
- "description": "校验信息",
1101
- "attribute": false,
1102
- "type": "Record<string, string>"
1103
- },
1104
- {
1105
- "name": "textareaStyle",
1106
- "description": "自定义样式",
1107
- "attribute": false,
1108
- "type": "React.CSSProperties"
1109
- }
1110
- ],
1111
- "events": [
1112
- {
1113
- "name": "change",
1114
- "description": "",
1115
- "detail": {
1116
- "description": null,
1117
- "type": "string"
1118
- }
1119
- }
1120
- ],
1121
- "slots": [],
1122
- "methods": [
1123
- {
1124
- "name": "focusTextarea",
1125
- "params": [],
1126
- "description": "focus",
1127
- "returns": {}
1128
- }
1129
- ],
1130
- "parts": [],
1131
- "description": "通用多行文本输入框构件",
1132
- "category": "form-input-basic"
1133
- },
1134
1279
  {
1135
1280
  "name": "eo-date-picker",
1136
1281
  "properties": [
@@ -1231,151 +1376,6 @@
1231
1376
  "description": "日期选择器",
1232
1377
  "category": "form-input-basic"
1233
1378
  },
1234
- {
1235
- "name": "eo-form",
1236
- "alias": [
1237
- "form.general-form"
1238
- ],
1239
- "properties": [
1240
- {
1241
- "name": "staticValues",
1242
- "attribute": false,
1243
- "type": "Record<string, unknown>"
1244
- },
1245
- {
1246
- "name": "layout",
1247
- "description": "布局方式(默认 vertical 布局)",
1248
- "default": "vertical",
1249
- "type": "Layout"
1250
- },
1251
- {
1252
- "name": "size",
1253
- "description": "表单组件尺寸",
1254
- "type": "ComponentSize"
1255
- },
1256
- {
1257
- "name": "labelCol",
1258
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
1259
- "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 }",
1260
- "attribute": false,
1261
- "type": "ColProps"
1262
- },
1263
- {
1264
- "name": "wrapperCol",
1265
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
1266
- "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 }",
1267
- "attribute": false,
1268
- "type": "ColProps"
1269
- },
1270
- {
1271
- "name": "formStyle",
1272
- "attribute": false,
1273
- "type": "React.CSSProperties"
1274
- },
1275
- {
1276
- "name": "textContent",
1277
- "type": "string",
1278
- "description": "文本内容"
1279
- }
1280
- ],
1281
- "events": [
1282
- {
1283
- "name": "values.change",
1284
- "description": "表单值变更事件",
1285
- "detail": {
1286
- "description": null,
1287
- "type": "Record<string, unknown>"
1288
- }
1289
- },
1290
- {
1291
- "name": "validate.success",
1292
- "description": "表单验证成功时触发事件",
1293
- "detail": {
1294
- "type": "Record<string, unknown>"
1295
- }
1296
- },
1297
- {
1298
- "name": "validate.error",
1299
- "description": "表单验证报错时触发事件",
1300
- "detail": {
1301
- "type": "(MessageBody & { name: string })[]"
1302
- }
1303
- }
1304
- ],
1305
- "slots": [
1306
- {
1307
- "name": null,
1308
- "description": "表单内容"
1309
- }
1310
- ],
1311
- "methods": [
1312
- {
1313
- "name": "validate",
1314
- "params": [],
1315
- "description": "表单校验方法",
1316
- "returns": {
1317
- "type": "boolean | Record<string, unknown>"
1318
- }
1319
- },
1320
- {
1321
- "name": "setInitValue",
1322
- "params": [
1323
- {
1324
- "name": "values",
1325
- "type": "Record<string, unknown>"
1326
- },
1327
- {
1328
- "name": "options",
1329
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
1330
- }
1331
- ],
1332
- "description": "表单设置值方法",
1333
- "returns": {}
1334
- },
1335
- {
1336
- "name": "resetFields",
1337
- "params": [
1338
- {
1339
- "name": "name",
1340
- "type": "string"
1341
- }
1342
- ],
1343
- "description": "表单重置值方法",
1344
- "returns": {}
1345
- },
1346
- {
1347
- "name": "getFieldsValue",
1348
- "params": [
1349
- {
1350
- "name": "name",
1351
- "type": "string"
1352
- }
1353
- ],
1354
- "description": "获取表单值方法",
1355
- "returns": {}
1356
- },
1357
- {
1358
- "name": "validateField",
1359
- "params": [
1360
- {
1361
- "name": "name",
1362
- "type": "string"
1363
- }
1364
- ],
1365
- "description": "校验表单字段方法",
1366
- "returns": {}
1367
- },
1368
- {
1369
- "name": "resetValidateState",
1370
- "params": [],
1371
- "description": "重置表单校验状态方法",
1372
- "returns": {}
1373
- }
1374
- ],
1375
- "parts": [],
1376
- "description": "表单构件",
1377
- "category": "form-input-basic"
1378
- },
1379
1379
  {
1380
1380
  "name": "eo-time-range-picker",
1381
1381
  "properties": [