@next-bricks/form 1.20.1 → 1.20.2

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 (123) hide show
  1. package/dist/bricks.json +29 -29
  2. package/dist/chunks/{1045.b5bcbf41.js → 1045.7ad43dc1.js} +2 -2
  3. package/dist/chunks/{1045.b5bcbf41.js.map → 1045.7ad43dc1.js.map} +1 -1
  4. package/dist/chunks/1225.6615e8d5.js +3 -0
  5. package/dist/chunks/1225.6615e8d5.js.map +1 -0
  6. package/dist/chunks/{1370.e600c28d.js → 1370.a56b4fa3.js} +2 -2
  7. package/dist/chunks/{1370.e600c28d.js.map → 1370.a56b4fa3.js.map} +1 -1
  8. package/dist/chunks/149.7d0de63b.js +2 -0
  9. package/dist/chunks/{149.3be7b324.js.map → 149.7d0de63b.js.map} +1 -1
  10. package/dist/chunks/{1889.d5b15f1a.js → 1889.96e6de82.js} +2 -2
  11. package/dist/chunks/1889.96e6de82.js.map +1 -0
  12. package/dist/chunks/{4056.55a599ef.js → 4056.aac4a786.js} +3 -3
  13. package/dist/chunks/4056.aac4a786.js.map +1 -0
  14. package/dist/chunks/4306.cbffd417.js +2 -0
  15. package/dist/chunks/4306.cbffd417.js.map +1 -0
  16. package/dist/chunks/{6167.5fa3a8a3.js → 6167.3c7a7196.js} +2 -2
  17. package/dist/chunks/6167.3c7a7196.js.map +1 -0
  18. package/dist/chunks/{8548.a7f77dd3.js → 8548.3d64fb28.js} +2 -2
  19. package/dist/chunks/8548.3d64fb28.js.map +1 -0
  20. package/dist/chunks/{8989.60961208.js → 8989.d6efe180.js} +2 -2
  21. package/dist/chunks/8989.d6efe180.js.map +1 -0
  22. package/dist/chunks/948.1b39e8b1.js +3 -0
  23. package/dist/chunks/948.1b39e8b1.js.map +1 -0
  24. package/dist/chunks/eo-auto-complete.63b557c8.js +3 -0
  25. package/dist/chunks/{eo-auto-complete.bfc18bf0.js.map → eo-auto-complete.63b557c8.js.map} +1 -1
  26. package/dist/chunks/eo-checkbox.c21461bd.js +2 -0
  27. package/dist/chunks/{eo-checkbox.dd3b8c61.js.map → eo-checkbox.c21461bd.js.map} +1 -1
  28. package/dist/chunks/eo-color-picker.bb717162.js +2 -0
  29. package/dist/chunks/{eo-color-picker.decaa2d0.js.map → eo-color-picker.bb717162.js.map} +1 -1
  30. package/dist/chunks/eo-date-picker.0cefd24a.js +2 -0
  31. package/dist/chunks/{eo-date-picker.ec20f387.js.map → eo-date-picker.0cefd24a.js.map} +1 -1
  32. package/dist/chunks/eo-dynamic-form-item.fc1af2ba.js +3 -0
  33. package/dist/chunks/eo-dynamic-form-item.fc1af2ba.js.map +1 -0
  34. package/dist/chunks/eo-form.57ac1c50.js +2 -0
  35. package/dist/chunks/eo-form.57ac1c50.js.map +1 -0
  36. package/dist/chunks/eo-icon-select.680597be.js +3 -0
  37. package/dist/chunks/eo-icon-select.680597be.js.map +1 -0
  38. package/dist/chunks/eo-radio.cf5e14e5.js +3 -0
  39. package/dist/chunks/eo-radio.cf5e14e5.js.map +1 -0
  40. package/dist/chunks/eo-search.4c216c94.js +2 -0
  41. package/dist/chunks/{eo-search.66add2ad.js.map → eo-search.4c216c94.js.map} +1 -1
  42. package/dist/chunks/eo-select.1b9a7fcc.js +3 -0
  43. package/dist/chunks/eo-select.1b9a7fcc.js.map +1 -0
  44. package/dist/chunks/eo-submit-buttons.bbb5621c.js +2 -0
  45. package/dist/chunks/eo-submit-buttons.bbb5621c.js.map +1 -0
  46. package/dist/chunks/eo-switch.7c4d7727.js +3 -0
  47. package/dist/chunks/{eo-switch.44271217.js.map → eo-switch.7c4d7727.js.map} +1 -1
  48. package/dist/chunks/eo-textarea.dcb4189e.js +3 -0
  49. package/dist/chunks/{eo-textarea.4650c5fa.js.map → eo-textarea.dcb4189e.js.map} +1 -1
  50. package/dist/chunks/eo-time-picker.c7274268.js +2 -0
  51. package/dist/chunks/{eo-time-picker.eecc50b9.js.map → eo-time-picker.c7274268.js.map} +1 -1
  52. package/dist/chunks/eo-time-range-picker.e2479d35.js +2 -0
  53. package/dist/chunks/{eo-time-range-picker.16b6307a.js.map → eo-time-range-picker.e2479d35.js.map} +1 -1
  54. package/dist/chunks/eo-upload-file.47d9280d.js +3 -0
  55. package/dist/chunks/{eo-upload-file.0c831ff6.js.map → eo-upload-file.47d9280d.js.map} +1 -1
  56. package/dist/chunks/eo-upload-image.acbec80a.js +3 -0
  57. package/dist/chunks/{eo-upload-image.863b4bb0.js.map → eo-upload-image.acbec80a.js.map} +1 -1
  58. package/dist/chunks/input.f9fa4d49.js +3 -0
  59. package/dist/chunks/input.f9fa4d49.js.map +1 -0
  60. package/dist/chunks/main.020ea762.js +2 -0
  61. package/dist/chunks/{main.a864cfbd.js.map → main.020ea762.js.map} +1 -1
  62. package/dist/chunks/react.a5891de7.js +2 -0
  63. package/dist/examples.json +11 -11
  64. package/dist/index.f0eea332.js +2 -0
  65. package/dist/index.f0eea332.js.map +1 -0
  66. package/dist/manifest.json +362 -362
  67. package/dist/types.json +1501 -1501
  68. package/package.json +3 -3
  69. package/dist/chunks/1225.9ddafbd7.js +0 -3
  70. package/dist/chunks/1225.9ddafbd7.js.map +0 -1
  71. package/dist/chunks/149.3be7b324.js +0 -2
  72. package/dist/chunks/1889.d5b15f1a.js.map +0 -1
  73. package/dist/chunks/4056.55a599ef.js.map +0 -1
  74. package/dist/chunks/4306.ae350749.js +0 -2
  75. package/dist/chunks/4306.ae350749.js.map +0 -1
  76. package/dist/chunks/6167.5fa3a8a3.js.map +0 -1
  77. package/dist/chunks/8548.a7f77dd3.js.map +0 -1
  78. package/dist/chunks/8989.60961208.js.map +0 -1
  79. package/dist/chunks/9140.e6b74fc4.js +0 -3
  80. package/dist/chunks/9140.e6b74fc4.js.map +0 -1
  81. package/dist/chunks/eo-auto-complete.bfc18bf0.js +0 -3
  82. package/dist/chunks/eo-checkbox.dd3b8c61.js +0 -2
  83. package/dist/chunks/eo-color-picker.decaa2d0.js +0 -2
  84. package/dist/chunks/eo-date-picker.ec20f387.js +0 -2
  85. package/dist/chunks/eo-dynamic-form-item.15348329.js +0 -3
  86. package/dist/chunks/eo-dynamic-form-item.15348329.js.map +0 -1
  87. package/dist/chunks/eo-form.7280c66a.js +0 -2
  88. package/dist/chunks/eo-form.7280c66a.js.map +0 -1
  89. package/dist/chunks/eo-icon-select.7e1b98a9.js +0 -3
  90. package/dist/chunks/eo-icon-select.7e1b98a9.js.map +0 -1
  91. package/dist/chunks/eo-radio.6105c838.js +0 -3
  92. package/dist/chunks/eo-radio.6105c838.js.map +0 -1
  93. package/dist/chunks/eo-search.66add2ad.js +0 -2
  94. package/dist/chunks/eo-select.95bacacf.js +0 -3
  95. package/dist/chunks/eo-select.95bacacf.js.map +0 -1
  96. package/dist/chunks/eo-submit-buttons.61e7e1c8.js +0 -2
  97. package/dist/chunks/eo-submit-buttons.61e7e1c8.js.map +0 -1
  98. package/dist/chunks/eo-switch.44271217.js +0 -3
  99. package/dist/chunks/eo-textarea.4650c5fa.js +0 -3
  100. package/dist/chunks/eo-time-picker.eecc50b9.js +0 -2
  101. package/dist/chunks/eo-time-range-picker.16b6307a.js +0 -2
  102. package/dist/chunks/eo-upload-file.0c831ff6.js +0 -3
  103. package/dist/chunks/eo-upload-image.863b4bb0.js +0 -3
  104. package/dist/chunks/input.4c89850a.js +0 -3
  105. package/dist/chunks/input.4c89850a.js.map +0 -1
  106. package/dist/chunks/main.a864cfbd.js +0 -2
  107. package/dist/chunks/react.15921842.js +0 -2
  108. package/dist/index.ee686eae.js +0 -2
  109. package/dist/index.ee686eae.js.map +0 -1
  110. /package/dist/chunks/{1225.9ddafbd7.js.LICENSE.txt → 1225.6615e8d5.js.LICENSE.txt} +0 -0
  111. /package/dist/chunks/{4056.55a599ef.js.LICENSE.txt → 4056.aac4a786.js.LICENSE.txt} +0 -0
  112. /package/dist/chunks/{9140.e6b74fc4.js.LICENSE.txt → 948.1b39e8b1.js.LICENSE.txt} +0 -0
  113. /package/dist/chunks/{eo-auto-complete.bfc18bf0.js.LICENSE.txt → eo-auto-complete.63b557c8.js.LICENSE.txt} +0 -0
  114. /package/dist/chunks/{eo-dynamic-form-item.15348329.js.LICENSE.txt → eo-dynamic-form-item.fc1af2ba.js.LICENSE.txt} +0 -0
  115. /package/dist/chunks/{eo-icon-select.7e1b98a9.js.LICENSE.txt → eo-icon-select.680597be.js.LICENSE.txt} +0 -0
  116. /package/dist/chunks/{eo-radio.6105c838.js.LICENSE.txt → eo-radio.cf5e14e5.js.LICENSE.txt} +0 -0
  117. /package/dist/chunks/{eo-select.95bacacf.js.LICENSE.txt → eo-select.1b9a7fcc.js.LICENSE.txt} +0 -0
  118. /package/dist/chunks/{eo-switch.44271217.js.LICENSE.txt → eo-switch.7c4d7727.js.LICENSE.txt} +0 -0
  119. /package/dist/chunks/{eo-textarea.4650c5fa.js.LICENSE.txt → eo-textarea.dcb4189e.js.LICENSE.txt} +0 -0
  120. /package/dist/chunks/{eo-upload-file.0c831ff6.js.LICENSE.txt → eo-upload-file.47d9280d.js.LICENSE.txt} +0 -0
  121. /package/dist/chunks/{eo-upload-image.863b4bb0.js.LICENSE.txt → eo-upload-image.acbec80a.js.LICENSE.txt} +0 -0
  122. /package/dist/chunks/{input.4c89850a.js.LICENSE.txt → input.f9fa4d49.js.LICENSE.txt} +0 -0
  123. /package/dist/chunks/{react.15921842.js.LICENSE.txt → react.a5891de7.js.LICENSE.txt} +0 -0
@@ -3,151 +3,6 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
- {
7
- "name": "eo-form",
8
- "alias": [
9
- "form.general-form"
10
- ],
11
- "properties": [
12
- {
13
- "name": "staticValues",
14
- "attribute": false,
15
- "type": "Record<string, unknown>"
16
- },
17
- {
18
- "name": "layout",
19
- "description": "布局方式(默认 vertical 布局)",
20
- "default": "vertical",
21
- "type": "Layout"
22
- },
23
- {
24
- "name": "size",
25
- "description": "表单组件尺寸",
26
- "type": "ComponentSize"
27
- },
28
- {
29
- "name": "labelCol",
30
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
31
- "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 }",
32
- "attribute": false,
33
- "type": "ColProps"
34
- },
35
- {
36
- "name": "wrapperCol",
37
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
38
- "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 }",
39
- "attribute": false,
40
- "type": "ColProps"
41
- },
42
- {
43
- "name": "formStyle",
44
- "attribute": false,
45
- "type": "React.CSSProperties"
46
- },
47
- {
48
- "name": "textContent",
49
- "type": "string",
50
- "description": "文本内容"
51
- }
52
- ],
53
- "events": [
54
- {
55
- "name": "values.change",
56
- "description": "表单值变更事件",
57
- "detail": {
58
- "description": null,
59
- "type": "Record<string, unknown>"
60
- }
61
- },
62
- {
63
- "name": "validate.success",
64
- "description": "表单验证成功时触发事件",
65
- "detail": {
66
- "type": "Record<string, unknown>"
67
- }
68
- },
69
- {
70
- "name": "validate.error",
71
- "description": "表单验证报错时触发事件",
72
- "detail": {
73
- "type": "(MessageBody & { name: string })[]"
74
- }
75
- }
76
- ],
77
- "slots": [
78
- {
79
- "name": null,
80
- "description": "表单内容"
81
- }
82
- ],
83
- "methods": [
84
- {
85
- "name": "validate",
86
- "params": [],
87
- "description": "表单校验方法",
88
- "returns": {
89
- "type": "boolean | Record<string, unknown>"
90
- }
91
- },
92
- {
93
- "name": "setInitValue",
94
- "params": [
95
- {
96
- "name": "values",
97
- "type": "Record<string, unknown>"
98
- },
99
- {
100
- "name": "options",
101
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
102
- }
103
- ],
104
- "description": "表单设置值方法",
105
- "returns": {}
106
- },
107
- {
108
- "name": "resetFields",
109
- "params": [
110
- {
111
- "name": "name",
112
- "type": "string"
113
- }
114
- ],
115
- "description": "表单重置值方法",
116
- "returns": {}
117
- },
118
- {
119
- "name": "getFieldsValue",
120
- "params": [
121
- {
122
- "name": "name",
123
- "type": "string"
124
- }
125
- ],
126
- "description": "获取表单值方法",
127
- "returns": {}
128
- },
129
- {
130
- "name": "validateField",
131
- "params": [
132
- {
133
- "name": "name",
134
- "type": "string"
135
- }
136
- ],
137
- "description": "校验表单字段方法",
138
- "returns": {}
139
- },
140
- {
141
- "name": "resetValidateState",
142
- "params": [],
143
- "description": "重置表单校验状态方法",
144
- "returns": {}
145
- }
146
- ],
147
- "parts": [],
148
- "description": "表单构件",
149
- "category": "form-input-basic"
150
- },
151
6
  {
152
7
  "name": "eo-textarea",
153
8
  "alias": [
@@ -256,6 +111,109 @@
256
111
  "description": "通用多行文本输入框构件",
257
112
  "category": "form-input-basic"
258
113
  },
114
+ {
115
+ "name": "eo-radio",
116
+ "alias": [
117
+ "form.general-radio"
118
+ ],
119
+ "properties": [
120
+ {
121
+ "name": "name",
122
+ "description": "下拉框字段名",
123
+ "type": "string"
124
+ },
125
+ {
126
+ "name": "label",
127
+ "description": "单选框字段说明",
128
+ "type": "string"
129
+ },
130
+ {
131
+ "name": "options",
132
+ "description": "单选框选项表",
133
+ "required": true,
134
+ "attribute": false,
135
+ "type": "GeneralOption[]"
136
+ },
137
+ {
138
+ "name": "value",
139
+ "description": "单选框当前选中始值",
140
+ "attribute": false,
141
+ "type": "any"
142
+ },
143
+ {
144
+ "name": "required",
145
+ "description": "是否必填",
146
+ "type": "boolean"
147
+ },
148
+ {
149
+ "name": "message",
150
+ "description": "校验文本信息",
151
+ "attribute": false,
152
+ "type": "Record<string, string>"
153
+ },
154
+ {
155
+ "name": "disabled",
156
+ "description": "是否禁用",
157
+ "type": "boolean"
158
+ },
159
+ {
160
+ "name": "type",
161
+ "description": "单选框样式类型",
162
+ "default": "\"default\"",
163
+ "type": "RadioType"
164
+ },
165
+ {
166
+ "name": "ui",
167
+ "description": "UI样式",
168
+ "default": "\"default\"",
169
+ "type": "UIType"
170
+ },
171
+ {
172
+ "name": "size",
173
+ "description": "大小,只对按钮样式生效",
174
+ "default": "\"medium\"",
175
+ "type": "ComponentSize"
176
+ },
177
+ {
178
+ "name": "customStyle",
179
+ "description": "自定义radio的外层样式",
180
+ "attribute": false,
181
+ "type": "React.CSSProperties"
182
+ },
183
+ {
184
+ "name": "useBrick",
185
+ "description": "自定义radio的内容",
186
+ "attribute": false,
187
+ "type": "UseSingleBrickConf"
188
+ },
189
+ {
190
+ "name": "themeVariant",
191
+ "description": "主题变体",
192
+ "type": "\"default\" | \"elevo\""
193
+ }
194
+ ],
195
+ "events": [
196
+ {
197
+ "name": "change",
198
+ "description": "值变化事件",
199
+ "detail": {
200
+ "type": "GeneralComplexOption | undefined"
201
+ }
202
+ },
203
+ {
204
+ "name": "options.change",
205
+ "description": "选项列表变化事件",
206
+ "detail": {
207
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
208
+ }
209
+ }
210
+ ],
211
+ "slots": [],
212
+ "methods": [],
213
+ "parts": [],
214
+ "description": "通用单选构件",
215
+ "category": "form-input-basic"
216
+ },
259
217
  {
260
218
  "name": "eo-select",
261
219
  "alias": [
@@ -424,79 +382,41 @@
424
382
  "category": "form-input-basic"
425
383
  },
426
384
  {
427
- "name": "eo-radio",
385
+ "name": "eo-submit-buttons",
428
386
  "alias": [
429
- "form.general-radio"
387
+ "form.submit-buttons"
430
388
  ],
431
389
  "properties": [
432
390
  {
433
- "name": "name",
434
- "description": "下拉框字段名",
391
+ "name": "submitText",
392
+ "description": "提交按钮的文字",
393
+ "default": "\"提交\"",
435
394
  "type": "string"
436
395
  },
437
396
  {
438
- "name": "label",
439
- "description": "单选框字段说明",
397
+ "name": "cancelText",
398
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
440
399
  "type": "string"
441
400
  },
442
401
  {
443
- "name": "options",
444
- "description": "单选框选项表",
445
- "required": true,
446
- "attribute": false,
447
- "type": "GeneralOption[]"
448
- },
449
- {
450
- "name": "value",
451
- "description": "单选框当前选中始值",
452
- "attribute": false,
453
- "type": "any"
454
- },
455
- {
456
- "name": "required",
457
- "description": "是否必填",
402
+ "name": "disableAfterClick",
403
+ "description": "点击确定按钮后自动禁用",
458
404
  "type": "boolean"
459
405
  },
460
406
  {
461
- "name": "message",
462
- "description": "校验文本信息",
463
- "attribute": false,
464
- "type": "Record<string, string>"
465
- },
466
- {
467
- "name": "disabled",
468
- "description": "是否禁用",
407
+ "name": "submitDisabled",
408
+ "description": "禁用提交按钮",
469
409
  "type": "boolean"
470
410
  },
471
411
  {
472
- "name": "type",
473
- "description": "单选框样式类型",
474
- "default": "\"default\"",
475
- "type": "RadioType"
476
- },
477
- {
478
- "name": "ui",
479
- "description": "UI样式",
480
- "default": "\"default\"",
481
- "type": "UIType"
482
- },
483
- {
484
- "name": "size",
485
- "description": "大小,只对按钮样式生效",
486
- "default": "\"medium\"",
487
- "type": "ComponentSize"
488
- },
489
- {
490
- "name": "customStyle",
491
- "description": "自定义radio的外层样式",
492
- "attribute": false,
493
- "type": "React.CSSProperties"
412
+ "name": "submitType",
413
+ "description": "提交按钮类型",
414
+ "type": "ButtonType"
494
415
  },
495
416
  {
496
- "name": "useBrick",
497
- "description": "自定义radio的内容",
498
- "attribute": false,
499
- "type": "UseSingleBrickConf"
417
+ "name": "cancelType",
418
+ "description": "取消按钮类型",
419
+ "type": "ButtonType"
500
420
  },
501
421
  {
502
422
  "name": "themeVariant",
@@ -506,24 +426,24 @@
506
426
  ],
507
427
  "events": [
508
428
  {
509
- "name": "change",
510
- "description": "值变化事件",
429
+ "name": "submit",
430
+ "description": "点击提交按钮触发的事件",
511
431
  "detail": {
512
- "type": "GeneralComplexOption | undefined"
432
+ "type": "void"
513
433
  }
514
434
  },
515
435
  {
516
- "name": "options.change",
517
- "description": "选项列表变化事件",
436
+ "name": "cancel",
437
+ "description": "点击取消按钮触发的事件",
518
438
  "detail": {
519
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
439
+ "type": "void"
520
440
  }
521
441
  }
522
442
  ],
523
443
  "slots": [],
524
444
  "methods": [],
525
445
  "parts": [],
526
- "description": "通用单选构件",
446
+ "description": "表单提交按钮",
527
447
  "category": "form-input-basic"
528
448
  },
529
449
  {
@@ -623,71 +543,6 @@
623
543
  "description": "表单复选框构件",
624
544
  "category": "form-input-basic"
625
545
  },
626
- {
627
- "name": "eo-submit-buttons",
628
- "alias": [
629
- "form.submit-buttons"
630
- ],
631
- "properties": [
632
- {
633
- "name": "submitText",
634
- "description": "提交按钮的文字",
635
- "default": "\"提交\"",
636
- "type": "string"
637
- },
638
- {
639
- "name": "cancelText",
640
- "description": "取消按钮的文字,不设置则不显示取消按钮",
641
- "type": "string"
642
- },
643
- {
644
- "name": "disableAfterClick",
645
- "description": "点击确定按钮后自动禁用",
646
- "type": "boolean"
647
- },
648
- {
649
- "name": "submitDisabled",
650
- "description": "禁用提交按钮",
651
- "type": "boolean"
652
- },
653
- {
654
- "name": "submitType",
655
- "description": "提交按钮类型",
656
- "type": "ButtonType"
657
- },
658
- {
659
- "name": "cancelType",
660
- "description": "取消按钮类型",
661
- "type": "ButtonType"
662
- },
663
- {
664
- "name": "themeVariant",
665
- "description": "主题变体",
666
- "type": "\"default\" | \"elevo\""
667
- }
668
- ],
669
- "events": [
670
- {
671
- "name": "submit",
672
- "description": "点击提交按钮触发的事件",
673
- "detail": {
674
- "type": "void"
675
- }
676
- },
677
- {
678
- "name": "cancel",
679
- "description": "点击取消按钮触发的事件",
680
- "detail": {
681
- "type": "void"
682
- }
683
- }
684
- ],
685
- "slots": [],
686
- "methods": [],
687
- "parts": [],
688
- "description": "表单提交按钮",
689
- "category": "form-input-basic"
690
- },
691
546
  {
692
547
  "name": "eo-dynamic-form-item",
693
548
  "alias": [
@@ -949,25 +804,99 @@
949
804
  "type": "boolean"
950
805
  },
951
806
  {
952
- "name": "limitSize",
953
- "description": "上传大小限制(单位为 MB)",
954
- "type": "number"
807
+ "name": "limitSize",
808
+ "description": "上传大小限制(单位为 MB)",
809
+ "type": "number"
810
+ },
811
+ {
812
+ "name": "required",
813
+ "description": "是否必填",
814
+ "type": "boolean"
815
+ },
816
+ {
817
+ "name": "message",
818
+ "description": "校验文本信息",
819
+ "attribute": false,
820
+ "type": "Record<string, string>"
821
+ },
822
+ {
823
+ "name": "variant",
824
+ "description": "变体",
825
+ "type": "\"default\" | \"avatar\""
826
+ },
827
+ {
828
+ "name": "themeVariant",
829
+ "description": "主题变体",
830
+ "type": "\"default\" | \"elevo\""
831
+ }
832
+ ],
833
+ "events": [
834
+ {
835
+ "name": "change",
836
+ "description": "值变化时触发",
837
+ "detail": {
838
+ "type": "ImageData[]"
839
+ }
840
+ }
841
+ ],
842
+ "slots": [],
843
+ "methods": [],
844
+ "parts": [],
845
+ "description": "上传图片构件",
846
+ "category": "form-input-basic"
847
+ },
848
+ {
849
+ "name": "eo-switch",
850
+ "alias": [
851
+ "form.general-switch"
852
+ ],
853
+ "properties": [
854
+ {
855
+ "name": "name",
856
+ "description": "字段名称",
857
+ "type": "string"
858
+ },
859
+ {
860
+ "name": "label",
861
+ "description": "字段文本",
862
+ "type": "string"
863
+ },
864
+ {
865
+ "name": "value",
866
+ "description": "初始值",
867
+ "type": "boolean"
868
+ },
869
+ {
870
+ "name": "disabled",
871
+ "description": "是否禁用",
872
+ "type": "boolean"
873
+ },
874
+ {
875
+ "name": "size",
876
+ "description": "按钮大小,目前只支持small和非small两种大小。",
877
+ "type": "ComponentSize"
878
+ },
879
+ {
880
+ "name": "checkedText",
881
+ "description": "选中时的文本",
882
+ "type": "string"
955
883
  },
956
884
  {
957
- "name": "required",
958
- "description": "是否必填",
959
- "type": "boolean"
885
+ "name": "unCheckedText",
886
+ "description": "非选中时的文本",
887
+ "type": "string"
960
888
  },
961
889
  {
962
- "name": "message",
963
- "description": "校验文本信息",
890
+ "name": "checkedIcon",
891
+ "description": "选中时的图标",
964
892
  "attribute": false,
965
- "type": "Record<string, string>"
893
+ "type": "GeneralIconProps"
966
894
  },
967
895
  {
968
- "name": "variant",
969
- "description": "变体",
970
- "type": "\"default\" | \"avatar\""
896
+ "name": "unCheckedIcon",
897
+ "description": "非选中时的文本",
898
+ "attribute": false,
899
+ "type": "GeneralIconProps"
971
900
  },
972
901
  {
973
902
  "name": "themeVariant",
@@ -977,17 +906,17 @@
977
906
  ],
978
907
  "events": [
979
908
  {
980
- "name": "change",
981
- "description": "值变化时触发",
909
+ "name": "switch",
910
+ "description": "开关改变时触发",
982
911
  "detail": {
983
- "type": "ImageData[]"
912
+ "type": "boolean"
984
913
  }
985
914
  }
986
915
  ],
987
916
  "slots": [],
988
917
  "methods": [],
989
918
  "parts": [],
990
- "description": "上传图片构件",
919
+ "description": "开关",
991
920
  "category": "form-input-basic"
992
921
  },
993
922
  {
@@ -1118,80 +1047,6 @@
1118
1047
  "description": "上传文件",
1119
1048
  "category": "form-input-basic"
1120
1049
  },
1121
- {
1122
- "name": "eo-switch",
1123
- "alias": [
1124
- "form.general-switch"
1125
- ],
1126
- "properties": [
1127
- {
1128
- "name": "name",
1129
- "description": "字段名称",
1130
- "type": "string"
1131
- },
1132
- {
1133
- "name": "label",
1134
- "description": "字段文本",
1135
- "type": "string"
1136
- },
1137
- {
1138
- "name": "value",
1139
- "description": "初始值",
1140
- "type": "boolean"
1141
- },
1142
- {
1143
- "name": "disabled",
1144
- "description": "是否禁用",
1145
- "type": "boolean"
1146
- },
1147
- {
1148
- "name": "size",
1149
- "description": "按钮大小,目前只支持small和非small两种大小。",
1150
- "type": "ComponentSize"
1151
- },
1152
- {
1153
- "name": "checkedText",
1154
- "description": "选中时的文本",
1155
- "type": "string"
1156
- },
1157
- {
1158
- "name": "unCheckedText",
1159
- "description": "非选中时的文本",
1160
- "type": "string"
1161
- },
1162
- {
1163
- "name": "checkedIcon",
1164
- "description": "选中时的图标",
1165
- "attribute": false,
1166
- "type": "GeneralIconProps"
1167
- },
1168
- {
1169
- "name": "unCheckedIcon",
1170
- "description": "非选中时的文本",
1171
- "attribute": false,
1172
- "type": "GeneralIconProps"
1173
- },
1174
- {
1175
- "name": "themeVariant",
1176
- "description": "主题变体",
1177
- "type": "\"default\" | \"elevo\""
1178
- }
1179
- ],
1180
- "events": [
1181
- {
1182
- "name": "switch",
1183
- "description": "开关改变时触发",
1184
- "detail": {
1185
- "type": "boolean"
1186
- }
1187
- }
1188
- ],
1189
- "slots": [],
1190
- "methods": [],
1191
- "parts": [],
1192
- "description": "开关",
1193
- "category": "form-input-basic"
1194
- },
1195
1050
  {
1196
1051
  "name": "eo-auto-complete",
1197
1052
  "properties": [
@@ -1450,6 +1305,151 @@
1450
1305
  "description": "日期选择器",
1451
1306
  "category": "form-input-basic"
1452
1307
  },
1308
+ {
1309
+ "name": "eo-form",
1310
+ "alias": [
1311
+ "form.general-form"
1312
+ ],
1313
+ "properties": [
1314
+ {
1315
+ "name": "staticValues",
1316
+ "attribute": false,
1317
+ "type": "Record<string, unknown>"
1318
+ },
1319
+ {
1320
+ "name": "layout",
1321
+ "description": "布局方式(默认 vertical 布局)",
1322
+ "default": "vertical",
1323
+ "type": "Layout"
1324
+ },
1325
+ {
1326
+ "name": "size",
1327
+ "description": "表单组件尺寸",
1328
+ "type": "ComponentSize"
1329
+ },
1330
+ {
1331
+ "name": "labelCol",
1332
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
1333
+ "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 }",
1334
+ "attribute": false,
1335
+ "type": "ColProps"
1336
+ },
1337
+ {
1338
+ "name": "wrapperCol",
1339
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
1340
+ "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 }",
1341
+ "attribute": false,
1342
+ "type": "ColProps"
1343
+ },
1344
+ {
1345
+ "name": "formStyle",
1346
+ "attribute": false,
1347
+ "type": "React.CSSProperties"
1348
+ },
1349
+ {
1350
+ "name": "textContent",
1351
+ "type": "string",
1352
+ "description": "文本内容"
1353
+ }
1354
+ ],
1355
+ "events": [
1356
+ {
1357
+ "name": "values.change",
1358
+ "description": "表单值变更事件",
1359
+ "detail": {
1360
+ "description": null,
1361
+ "type": "Record<string, unknown>"
1362
+ }
1363
+ },
1364
+ {
1365
+ "name": "validate.success",
1366
+ "description": "表单验证成功时触发事件",
1367
+ "detail": {
1368
+ "type": "Record<string, unknown>"
1369
+ }
1370
+ },
1371
+ {
1372
+ "name": "validate.error",
1373
+ "description": "表单验证报错时触发事件",
1374
+ "detail": {
1375
+ "type": "(MessageBody & { name: string })[]"
1376
+ }
1377
+ }
1378
+ ],
1379
+ "slots": [
1380
+ {
1381
+ "name": null,
1382
+ "description": "表单内容"
1383
+ }
1384
+ ],
1385
+ "methods": [
1386
+ {
1387
+ "name": "validate",
1388
+ "params": [],
1389
+ "description": "表单校验方法",
1390
+ "returns": {
1391
+ "type": "boolean | Record<string, unknown>"
1392
+ }
1393
+ },
1394
+ {
1395
+ "name": "setInitValue",
1396
+ "params": [
1397
+ {
1398
+ "name": "values",
1399
+ "type": "Record<string, unknown>"
1400
+ },
1401
+ {
1402
+ "name": "options",
1403
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
1404
+ }
1405
+ ],
1406
+ "description": "表单设置值方法",
1407
+ "returns": {}
1408
+ },
1409
+ {
1410
+ "name": "resetFields",
1411
+ "params": [
1412
+ {
1413
+ "name": "name",
1414
+ "type": "string"
1415
+ }
1416
+ ],
1417
+ "description": "表单重置值方法",
1418
+ "returns": {}
1419
+ },
1420
+ {
1421
+ "name": "getFieldsValue",
1422
+ "params": [
1423
+ {
1424
+ "name": "name",
1425
+ "type": "string"
1426
+ }
1427
+ ],
1428
+ "description": "获取表单值方法",
1429
+ "returns": {}
1430
+ },
1431
+ {
1432
+ "name": "validateField",
1433
+ "params": [
1434
+ {
1435
+ "name": "name",
1436
+ "type": "string"
1437
+ }
1438
+ ],
1439
+ "description": "校验表单字段方法",
1440
+ "returns": {}
1441
+ },
1442
+ {
1443
+ "name": "resetValidateState",
1444
+ "params": [],
1445
+ "description": "重置表单校验状态方法",
1446
+ "returns": {}
1447
+ }
1448
+ ],
1449
+ "parts": [],
1450
+ "description": "表单构件",
1451
+ "category": "form-input-basic"
1452
+ },
1453
1453
  {
1454
1454
  "name": "eo-time-range-picker",
1455
1455
  "properties": [