@next-bricks/form 1.9.14 → 1.9.16

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 (133) hide show
  1. package/dist/bricks.json +21 -21
  2. package/dist/chunks/{1122.6128277d.js → 1122.760e39bf.js} +2 -2
  3. package/dist/chunks/{1122.6128277d.js.map → 1122.760e39bf.js.map} +1 -1
  4. package/dist/chunks/{114.61ba5b50.js → 114.1cda5bc2.js} +2 -2
  5. package/dist/chunks/{114.61ba5b50.js.map → 114.1cda5bc2.js.map} +1 -1
  6. package/dist/chunks/{1269.07721a52.js → 1269.df851610.js} +2 -2
  7. package/dist/chunks/{1269.07721a52.js.map → 1269.df851610.js.map} +1 -1
  8. package/dist/chunks/{1889.004f20a1.js → 1889.8542166a.js} +2 -2
  9. package/dist/chunks/{1889.004f20a1.js.map → 1889.8542166a.js.map} +1 -1
  10. package/dist/chunks/{1940.0f78f985.js → 1940.fe00f23f.js} +2 -2
  11. package/dist/chunks/{1940.0f78f985.js.map → 1940.fe00f23f.js.map} +1 -1
  12. package/dist/chunks/{2277.483bec61.js → 2277.b982f0ba.js} +2 -2
  13. package/dist/chunks/{4658.aa675c0b.js.map → 2277.b982f0ba.js.map} +1 -1
  14. package/dist/chunks/3067.e7857b6f.js +3 -0
  15. package/dist/chunks/3067.e7857b6f.js.map +1 -0
  16. package/dist/chunks/{3171.1ecb4921.js → 3171.995e4c39.js} +2 -2
  17. package/dist/chunks/{3171.1ecb4921.js.map → 3171.995e4c39.js.map} +1 -1
  18. package/dist/chunks/{3933.7a45287d.js → 3933.1b01da95.js} +2 -2
  19. package/dist/chunks/{3933.7a45287d.js.map → 3933.1b01da95.js.map} +1 -1
  20. package/dist/chunks/{4658.aa675c0b.js → 4658.c9e8c145.js} +2 -2
  21. package/dist/chunks/{2277.483bec61.js.map → 4658.c9e8c145.js.map} +1 -1
  22. package/dist/chunks/{5552.625e5a95.js → 5552.d35187e2.js} +2 -2
  23. package/dist/chunks/{5552.625e5a95.js.map → 5552.d35187e2.js.map} +1 -1
  24. package/dist/chunks/{6314.7428b72b.js → 6314.125d31fd.js} +2 -2
  25. package/dist/chunks/{6314.7428b72b.js.map → 6314.125d31fd.js.map} +1 -1
  26. package/dist/chunks/{7115.dcf0df96.js → 7115.7485cc92.js} +2 -2
  27. package/dist/chunks/{7115.dcf0df96.js.map → 7115.7485cc92.js.map} +1 -1
  28. package/dist/chunks/7304.2781a21c.js +2 -0
  29. package/dist/chunks/7304.2781a21c.js.map +1 -0
  30. package/dist/chunks/{7733.a022f226.js → 7733.1e448413.js} +2 -2
  31. package/dist/chunks/{7733.a022f226.js.map → 7733.1e448413.js.map} +1 -1
  32. package/dist/chunks/{790.950b08a8.js → 790.013d980d.js} +2 -2
  33. package/dist/chunks/{790.950b08a8.js.map → 790.013d980d.js.map} +1 -1
  34. package/dist/chunks/818.a930db24.js +3 -0
  35. package/dist/chunks/818.a930db24.js.map +1 -0
  36. package/dist/chunks/825.3aec9f13.js +3 -0
  37. package/dist/chunks/825.3aec9f13.js.map +1 -0
  38. package/dist/chunks/852.7094d5e6.js +3 -0
  39. package/dist/chunks/852.7094d5e6.js.map +1 -0
  40. package/dist/chunks/9248.9445e898.js +2 -0
  41. package/dist/chunks/9248.9445e898.js.map +1 -0
  42. package/dist/chunks/9259.6adad811.js +3 -0
  43. package/dist/chunks/9259.6adad811.js.map +1 -0
  44. package/dist/chunks/{9496.d3408683.js → 9496.4db82bb4.js} +2 -2
  45. package/dist/chunks/{9496.d3408683.js.map → 9496.4db82bb4.js.map} +1 -1
  46. package/dist/chunks/{9559.07f9e152.js → 9559.8b30d9d3.js} +2 -2
  47. package/dist/chunks/{9559.07f9e152.js.map → 9559.8b30d9d3.js.map} +1 -1
  48. package/dist/chunks/{eo-auto-complete.6db6aca5.js → eo-auto-complete.99ab8d1f.js} +3 -3
  49. package/dist/chunks/{eo-auto-complete.6db6aca5.js.map → eo-auto-complete.99ab8d1f.js.map} +1 -1
  50. package/dist/chunks/{eo-checkbox.6e4de7f0.js → eo-checkbox.722e5d0a.js} +2 -2
  51. package/dist/chunks/{eo-checkbox.6e4de7f0.js.map → eo-checkbox.722e5d0a.js.map} +1 -1
  52. package/dist/chunks/eo-color-picker.8f4f0401.js +2 -0
  53. package/dist/chunks/{eo-color-picker.cdb362a7.js.map → eo-color-picker.8f4f0401.js.map} +1 -1
  54. package/dist/chunks/{eo-date-picker.9361e87a.js → eo-date-picker.60cc0fdd.js} +2 -2
  55. package/dist/chunks/{eo-date-picker.9361e87a.js.map → eo-date-picker.60cc0fdd.js.map} +1 -1
  56. package/dist/chunks/eo-dynamic-form-item.95545919.js +3 -0
  57. package/dist/chunks/eo-dynamic-form-item.95545919.js.map +1 -0
  58. package/dist/chunks/{eo-form-item.d1189f7c.js → eo-form-item.d49089da.js} +3 -3
  59. package/dist/chunks/{eo-form-item.d1189f7c.js.map → eo-form-item.d49089da.js.map} +1 -1
  60. package/dist/chunks/{eo-form.f1683fe8.js → eo-form.91fe39eb.js} +2 -2
  61. package/dist/chunks/eo-form.91fe39eb.js.map +1 -0
  62. package/dist/chunks/{eo-icon-select.ce687969.js → eo-icon-select.5cc56361.js} +3 -3
  63. package/dist/chunks/{eo-icon-select.ce687969.js.map → eo-icon-select.5cc56361.js.map} +1 -1
  64. package/dist/chunks/{eo-input.6fb8e34e.js → eo-input.8e2c54c5.js} +3 -3
  65. package/dist/chunks/{eo-input.6fb8e34e.js.map → eo-input.8e2c54c5.js.map} +1 -1
  66. package/dist/chunks/{eo-radio.9a162d3d.js → eo-radio.9f8757f1.js} +3 -3
  67. package/dist/chunks/{eo-radio.9a162d3d.js.map → eo-radio.9f8757f1.js.map} +1 -1
  68. package/dist/chunks/{eo-search.12bbc094.js → eo-search.a4788513.js} +2 -2
  69. package/dist/chunks/{eo-search.12bbc094.js.map → eo-search.a4788513.js.map} +1 -1
  70. package/dist/chunks/{eo-select.d92bfd8f.js → eo-select.7494a96c.js} +3 -3
  71. package/dist/chunks/{eo-select.d92bfd8f.js.map → eo-select.7494a96c.js.map} +1 -1
  72. package/dist/chunks/{eo-submit-buttons.30eaa10f.js → eo-submit-buttons.930edce3.js} +2 -2
  73. package/dist/chunks/{eo-submit-buttons.30eaa10f.js.map → eo-submit-buttons.930edce3.js.map} +1 -1
  74. package/dist/chunks/{eo-switch.5326b853.js → eo-switch.f34c71c5.js} +3 -3
  75. package/dist/chunks/{eo-switch.5326b853.js.map → eo-switch.f34c71c5.js.map} +1 -1
  76. package/dist/chunks/{eo-textarea.70f5d4cf.js → eo-textarea.63e2fd55.js} +3 -3
  77. package/dist/chunks/{eo-textarea.70f5d4cf.js.map → eo-textarea.63e2fd55.js.map} +1 -1
  78. package/dist/chunks/{eo-time-picker.846a5acc.js → eo-time-picker.46cb48ad.js} +2 -2
  79. package/dist/chunks/{eo-time-picker.846a5acc.js.map → eo-time-picker.46cb48ad.js.map} +1 -1
  80. package/dist/chunks/eo-time-range-picker.b2ca48cf.js +2 -0
  81. package/dist/chunks/eo-time-range-picker.b2ca48cf.js.map +1 -0
  82. package/dist/chunks/{eo-upload-file.065dde0e.js → eo-upload-file.c35c956c.js} +3 -3
  83. package/dist/chunks/{eo-upload-file.065dde0e.js.map → eo-upload-file.c35c956c.js.map} +1 -1
  84. package/dist/chunks/{eo-upload-image.ec21b2fc.js → eo-upload-image.5cb74072.js} +3 -3
  85. package/dist/chunks/{eo-upload-image.ec21b2fc.js.map → eo-upload-image.5cb74072.js.map} +1 -1
  86. package/dist/chunks/main.0dfcce1d.js +2 -0
  87. package/dist/chunks/main.0dfcce1d.js.map +1 -0
  88. package/dist/examples.json +8 -8
  89. package/dist/index.012d3809.js +2 -0
  90. package/dist/index.012d3809.js.map +1 -0
  91. package/dist/manifest.json +324 -324
  92. package/dist/types.json +1083 -1083
  93. package/package.json +4 -4
  94. package/dist/chunks/3067.052f8655.js +0 -3
  95. package/dist/chunks/3067.052f8655.js.map +0 -1
  96. package/dist/chunks/7304.fb3a17e4.js +0 -2
  97. package/dist/chunks/7304.fb3a17e4.js.map +0 -1
  98. package/dist/chunks/818.0e60c75d.js +0 -3
  99. package/dist/chunks/818.0e60c75d.js.map +0 -1
  100. package/dist/chunks/825.6af9664c.js +0 -3
  101. package/dist/chunks/825.6af9664c.js.map +0 -1
  102. package/dist/chunks/9248.43b18785.js +0 -2
  103. package/dist/chunks/9248.43b18785.js.map +0 -1
  104. package/dist/chunks/9259.4238757c.js +0 -3
  105. package/dist/chunks/9259.4238757c.js.map +0 -1
  106. package/dist/chunks/9850.833b8b86.js +0 -3
  107. package/dist/chunks/9850.833b8b86.js.map +0 -1
  108. package/dist/chunks/eo-color-picker.cdb362a7.js +0 -2
  109. package/dist/chunks/eo-dynamic-form-item.c2783b20.js +0 -3
  110. package/dist/chunks/eo-dynamic-form-item.c2783b20.js.map +0 -1
  111. package/dist/chunks/eo-form.f1683fe8.js.map +0 -1
  112. package/dist/chunks/eo-time-range-picker.9062f507.js +0 -2
  113. package/dist/chunks/eo-time-range-picker.9062f507.js.map +0 -1
  114. package/dist/chunks/main.7551926f.js +0 -2
  115. package/dist/chunks/main.7551926f.js.map +0 -1
  116. package/dist/index.1f780ab7.js +0 -2
  117. package/dist/index.1f780ab7.js.map +0 -1
  118. /package/dist/chunks/{3067.052f8655.js.LICENSE.txt → 3067.e7857b6f.js.LICENSE.txt} +0 -0
  119. /package/dist/chunks/{818.0e60c75d.js.LICENSE.txt → 818.a930db24.js.LICENSE.txt} +0 -0
  120. /package/dist/chunks/{825.6af9664c.js.LICENSE.txt → 825.3aec9f13.js.LICENSE.txt} +0 -0
  121. /package/dist/chunks/{9850.833b8b86.js.LICENSE.txt → 852.7094d5e6.js.LICENSE.txt} +0 -0
  122. /package/dist/chunks/{9259.4238757c.js.LICENSE.txt → 9259.6adad811.js.LICENSE.txt} +0 -0
  123. /package/dist/chunks/{eo-auto-complete.6db6aca5.js.LICENSE.txt → eo-auto-complete.99ab8d1f.js.LICENSE.txt} +0 -0
  124. /package/dist/chunks/{eo-dynamic-form-item.c2783b20.js.LICENSE.txt → eo-dynamic-form-item.95545919.js.LICENSE.txt} +0 -0
  125. /package/dist/chunks/{eo-form-item.d1189f7c.js.LICENSE.txt → eo-form-item.d49089da.js.LICENSE.txt} +0 -0
  126. /package/dist/chunks/{eo-icon-select.ce687969.js.LICENSE.txt → eo-icon-select.5cc56361.js.LICENSE.txt} +0 -0
  127. /package/dist/chunks/{eo-input.6fb8e34e.js.LICENSE.txt → eo-input.8e2c54c5.js.LICENSE.txt} +0 -0
  128. /package/dist/chunks/{eo-radio.9a162d3d.js.LICENSE.txt → eo-radio.9f8757f1.js.LICENSE.txt} +0 -0
  129. /package/dist/chunks/{eo-select.d92bfd8f.js.LICENSE.txt → eo-select.7494a96c.js.LICENSE.txt} +0 -0
  130. /package/dist/chunks/{eo-switch.5326b853.js.LICENSE.txt → eo-switch.f34c71c5.js.LICENSE.txt} +0 -0
  131. /package/dist/chunks/{eo-textarea.70f5d4cf.js.LICENSE.txt → eo-textarea.63e2fd55.js.LICENSE.txt} +0 -0
  132. /package/dist/chunks/{eo-upload-file.065dde0e.js.LICENSE.txt → eo-upload-file.c35c956c.js.LICENSE.txt} +0 -0
  133. /package/dist/chunks/{eo-upload-image.ec21b2fc.js.LICENSE.txt → eo-upload-image.5cb74072.js.LICENSE.txt} +0 -0
@@ -189,21 +189,11 @@
189
189
  "category": "form-input-basic"
190
190
  },
191
191
  {
192
- "name": "eo-form-item",
192
+ "name": "eo-textarea",
193
193
  "alias": [
194
- "form.general-form-item"
194
+ "form.general-textarea"
195
195
  ],
196
196
  "properties": [
197
- {
198
- "name": "formElement",
199
- "attribute": false,
200
- "type": "Form"
201
- },
202
- {
203
- "name": "curElement",
204
- "attribute": false,
205
- "type": "HTMLElement"
206
- },
207
197
  {
208
198
  "name": "name",
209
199
  "description": "字段名称",
@@ -211,186 +201,235 @@
211
201
  },
212
202
  {
213
203
  "name": "label",
204
+ "description": "标签文字",
214
205
  "type": "string"
215
206
  },
216
207
  {
217
- "name": "pattern",
208
+ "name": "value",
209
+ "description": "值",
218
210
  "type": "string"
219
211
  },
220
212
  {
221
- "name": "message",
222
- "attribute": false,
223
- "type": "Record<string, string>"
224
- },
225
- {
226
- "name": "max",
227
- "type": "number"
228
- },
229
- {
230
- "name": "min",
231
- "type": "number"
213
+ "name": "placeholder",
214
+ "description": "占位说明",
215
+ "type": "string"
232
216
  },
233
217
  {
234
- "name": "required",
235
- "description": "表单项是否必填",
218
+ "name": "disabled",
219
+ "description": "是否禁用",
236
220
  "type": "boolean"
237
221
  },
238
222
  {
239
- "name": "value",
240
- "description": "初始值",
241
- "type": "string"
223
+ "name": "minLength",
224
+ "description": "最小长度",
225
+ "type": "number"
242
226
  },
243
227
  {
244
- "name": "valuePropsName",
245
- "type": "string"
228
+ "name": "maxLength",
229
+ "description": "最大长度",
230
+ "type": "number"
246
231
  },
247
232
  {
248
- "name": "layout",
249
- "type": "Layout"
233
+ "name": "autoSize",
234
+ "description": "大小自适应",
235
+ "attribute": false,
236
+ "type": "AutoSize"
250
237
  },
251
238
  {
252
- "name": "size",
253
- "type": "ComponentSize"
239
+ "name": "required",
240
+ "description": "是否必填",
241
+ "type": "boolean"
254
242
  },
255
243
  {
256
- "name": "trim",
257
- "description": "是否自动去除前后的空白字符",
258
- "default": "true"
244
+ "name": "max",
245
+ "description": "表单校验最大长度",
246
+ "type": "number"
259
247
  },
260
248
  {
261
- "name": "trigger",
262
- "description": "事件触发方法名",
263
- "type": "string"
249
+ "name": "min",
250
+ "description": "表单校验最小长度",
251
+ "type": "number"
264
252
  },
265
253
  {
266
- "name": "validator",
267
- "description": "表单项校验方法",
254
+ "name": "message",
255
+ "description": "校验信息",
268
256
  "attribute": false,
269
- "type": "((value: any) => MessageBody)"
257
+ "type": "Record<string, string>"
270
258
  },
271
259
  {
272
- "name": "needValidate",
273
- "description": "值变化时是否主动出发校验",
274
- "type": "boolean"
260
+ "name": "textareaStyle",
261
+ "description": "自定义样式",
262
+ "attribute": false,
263
+ "type": "React.CSSProperties"
275
264
  }
276
265
  ],
277
- "events": [],
278
- "slots": [
266
+ "events": [
279
267
  {
280
- "name": null,
281
- "description": "表单项内容"
268
+ "name": "change",
269
+ "description": "",
270
+ "detail": {
271
+ "description": null,
272
+ "type": "string"
273
+ }
282
274
  }
283
275
  ],
276
+ "slots": [],
284
277
  "methods": [],
285
278
  "parts": [],
286
- "description": "通用输入框构件",
287
- "category": "form-input-basic",
288
- "insider": true
279
+ "description": "通用多行文本输入框构件",
280
+ "category": "form-input-basic"
289
281
  },
290
282
  {
291
- "name": "eo-radio",
283
+ "name": "eo-form",
292
284
  "alias": [
293
- "form.general-radio"
285
+ "form.general-form"
294
286
  ],
295
287
  "properties": [
296
288
  {
297
- "name": "name",
298
- "description": "下拉框字段名",
299
- "type": "string"
289
+ "name": "layout",
290
+ "description": "布局方式(默认 vertical 布局)",
291
+ "default": "vertical",
292
+ "type": "Layout"
300
293
  },
301
294
  {
302
- "name": "label",
303
- "description": "单选框字段说明",
304
- "type": "string"
295
+ "name": "size",
296
+ "description": "表单组件尺寸",
297
+ "type": "ComponentSize"
305
298
  },
306
299
  {
307
- "name": "options",
308
- "description": "单选框选项表",
309
- "required": true,
300
+ "name": "labelCol",
301
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
302
+ "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 }",
310
303
  "attribute": false,
311
- "type": "GeneralOption[]"
304
+ "type": "ColProps"
312
305
  },
313
306
  {
314
- "name": "value",
315
- "description": "单选框当前选中始值",
307
+ "name": "wrapperCol",
308
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
309
+ "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 }",
316
310
  "attribute": false,
317
- "type": "any"
318
- },
319
- {
320
- "name": "required",
321
- "description": "是否必填",
322
- "type": "boolean"
311
+ "type": "ColProps"
323
312
  },
324
313
  {
325
- "name": "message",
326
- "description": "校验文本信息",
314
+ "name": "formStyle",
327
315
  "attribute": false,
328
- "type": "Record<string, string>"
329
- },
316
+ "type": "React.CSSProperties"
317
+ }
318
+ ],
319
+ "events": [
330
320
  {
331
- "name": "disabled",
332
- "description": "是否禁用",
333
- "type": "boolean"
321
+ "name": "values.change",
322
+ "description": "表单值变更事件",
323
+ "detail": {
324
+ "description": null,
325
+ "type": "Record<string, unknown>"
326
+ }
334
327
  },
335
328
  {
336
- "name": "type",
337
- "description": "单选框样式类型",
338
- "default": "\"default\"",
339
- "type": "RadioType"
329
+ "name": "validate.success",
330
+ "description": "表单验证成功时触发事件",
331
+ "detail": {
332
+ "type": "Record<string, unknown>"
333
+ }
340
334
  },
341
335
  {
342
- "name": "ui",
343
- "description": "UI样式",
344
- "default": "\"default\"",
345
- "type": "UIType"
336
+ "name": "validate.error",
337
+ "description": "表单验证报错时触发事件",
338
+ "detail": {
339
+ "type": "MessageBody[]"
340
+ }
341
+ }
342
+ ],
343
+ "slots": [
344
+ {
345
+ "name": null,
346
+ "description": "表单内容"
347
+ }
348
+ ],
349
+ "methods": [
350
+ {
351
+ "name": "validate",
352
+ "params": [],
353
+ "description": "表单校验方法",
354
+ "returns": {
355
+ "type": "boolean | Record<string, unknown>"
356
+ }
346
357
  },
347
358
  {
348
- "name": "size",
349
- "description": "大小,只对按钮样式生效",
350
- "default": "\"medium\"",
351
- "type": "ComponentSize"
359
+ "name": "setInitValue",
360
+ "params": [
361
+ {
362
+ "name": "values",
363
+ "type": "Record<string, unknown>"
364
+ },
365
+ {
366
+ "name": "options",
367
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
368
+ }
369
+ ],
370
+ "description": "表单设置值方法",
371
+ "returns": {}
352
372
  },
353
373
  {
354
- "name": "customStyle",
355
- "description": "自定义radio的外层样式",
356
- "attribute": false,
357
- "type": "React.CSSProperties"
374
+ "name": "resetFields",
375
+ "params": [
376
+ {
377
+ "name": "name",
378
+ "type": "string"
379
+ }
380
+ ],
381
+ "description": "表单重置值方法",
382
+ "returns": {}
358
383
  },
359
384
  {
360
- "name": "useBrick",
361
- "description": "自定义radio的内容",
362
- "attribute": false,
363
- "type": "UseSingleBrickConf"
364
- }
365
- ],
366
- "events": [
385
+ "name": "getFieldsValue",
386
+ "params": [
387
+ {
388
+ "name": "name",
389
+ "type": "string"
390
+ }
391
+ ],
392
+ "description": "获取表单值方法",
393
+ "returns": {}
394
+ },
367
395
  {
368
- "name": "change",
369
- "description": "值变化事件",
370
- "detail": {
371
- "type": "GeneralComplexOption | undefined"
372
- }
396
+ "name": "validateField",
397
+ "params": [
398
+ {
399
+ "name": "name",
400
+ "type": "string"
401
+ }
402
+ ],
403
+ "description": "校验表单字段方法",
404
+ "returns": {}
373
405
  },
374
406
  {
375
- "name": "options.change",
376
- "description": "选项列表变化事件",
377
- "detail": {
378
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
379
- }
407
+ "name": "resetValidateState",
408
+ "params": [],
409
+ "description": "重置表单校验状态方法",
410
+ "returns": {}
380
411
  }
381
412
  ],
382
- "slots": [],
383
- "methods": [],
384
413
  "parts": [],
385
- "description": "通用单选构件",
414
+ "description": "表单构件",
386
415
  "category": "form-input-basic"
387
416
  },
388
417
  {
389
- "name": "eo-textarea",
418
+ "name": "eo-form-item",
390
419
  "alias": [
391
- "form.general-textarea"
420
+ "form.general-form-item"
392
421
  ],
393
422
  "properties": [
423
+ {
424
+ "name": "formElement",
425
+ "attribute": false,
426
+ "type": "Form"
427
+ },
428
+ {
429
+ "name": "curElement",
430
+ "attribute": false,
431
+ "type": "HTMLElement"
432
+ },
394
433
  {
395
434
  "name": "name",
396
435
  "description": "字段名称",
@@ -398,142 +437,178 @@
398
437
  },
399
438
  {
400
439
  "name": "label",
401
- "description": "标签文字",
402
440
  "type": "string"
403
441
  },
404
442
  {
405
- "name": "value",
406
- "description": "值",
443
+ "name": "pattern",
407
444
  "type": "string"
408
445
  },
409
446
  {
410
- "name": "placeholder",
411
- "description": "占位说明",
412
- "type": "string"
447
+ "name": "message",
448
+ "attribute": false,
449
+ "type": "Record<string, string>"
413
450
  },
414
451
  {
415
- "name": "disabled",
416
- "description": "是否禁用",
417
- "type": "boolean"
452
+ "name": "max",
453
+ "type": "number"
418
454
  },
419
455
  {
420
- "name": "minLength",
421
- "description": "最小长度",
456
+ "name": "min",
422
457
  "type": "number"
423
458
  },
424
459
  {
425
- "name": "maxLength",
426
- "description": "最大长度",
427
- "type": "number"
460
+ "name": "required",
461
+ "description": "表单项是否必填",
462
+ "type": "boolean"
428
463
  },
429
464
  {
430
- "name": "autoSize",
431
- "description": "大小自适应",
432
- "attribute": false,
433
- "type": "AutoSize"
465
+ "name": "value",
466
+ "description": "初始值",
467
+ "type": "string"
434
468
  },
435
469
  {
436
- "name": "required",
437
- "description": "是否必填",
438
- "type": "boolean"
470
+ "name": "valuePropsName",
471
+ "type": "string"
439
472
  },
440
473
  {
441
- "name": "max",
442
- "description": "表单校验最大长度",
443
- "type": "number"
474
+ "name": "layout",
475
+ "type": "Layout"
444
476
  },
445
477
  {
446
- "name": "min",
447
- "description": "表单校验最小长度",
448
- "type": "number"
478
+ "name": "size",
479
+ "type": "ComponentSize"
449
480
  },
450
481
  {
451
- "name": "message",
452
- "description": "校验信息",
453
- "attribute": false,
454
- "type": "Record<string, string>"
482
+ "name": "trim",
483
+ "description": "是否自动去除前后的空白字符",
484
+ "default": "true"
455
485
  },
456
486
  {
457
- "name": "textareaStyle",
458
- "description": "自定义样式",
487
+ "name": "trigger",
488
+ "description": "事件触发方法名",
489
+ "type": "string"
490
+ },
491
+ {
492
+ "name": "validator",
493
+ "description": "表单项校验方法",
459
494
  "attribute": false,
460
- "type": "React.CSSProperties"
495
+ "type": "((value: any) => MessageBody)"
496
+ },
497
+ {
498
+ "name": "needValidate",
499
+ "description": "值变化时是否主动出发校验",
500
+ "type": "boolean"
461
501
  }
462
502
  ],
463
- "events": [
503
+ "events": [],
504
+ "slots": [
464
505
  {
465
- "name": "change",
466
- "description": "",
467
- "detail": {
468
- "description": null,
469
- "type": "string"
470
- }
506
+ "name": null,
507
+ "description": "表单项内容"
471
508
  }
472
509
  ],
473
- "slots": [],
474
510
  "methods": [],
475
511
  "parts": [],
476
- "description": "通用多行文本输入框构件",
477
- "category": "form-input-basic"
512
+ "description": "通用输入框构件",
513
+ "category": "form-input-basic",
514
+ "insider": true
478
515
  },
479
516
  {
480
- "name": "eo-submit-buttons",
517
+ "name": "eo-radio",
481
518
  "alias": [
482
- "form.submit-buttons"
519
+ "form.general-radio"
483
520
  ],
484
521
  "properties": [
485
522
  {
486
- "name": "submitText",
487
- "description": "提交按钮的文字",
488
- "default": "\"提交\"",
523
+ "name": "name",
524
+ "description": "下拉框字段名",
525
+ "type": "string"
526
+ },
527
+ {
528
+ "name": "label",
529
+ "description": "单选框字段说明",
489
530
  "type": "string"
490
531
  },
491
532
  {
492
- "name": "cancelText",
493
- "description": "取消按钮的文字,不设置则不显示取消按钮",
494
- "type": "string"
533
+ "name": "options",
534
+ "description": "单选框选项表",
535
+ "required": true,
536
+ "attribute": false,
537
+ "type": "GeneralOption[]"
538
+ },
539
+ {
540
+ "name": "value",
541
+ "description": "单选框当前选中始值",
542
+ "attribute": false,
543
+ "type": "any"
544
+ },
545
+ {
546
+ "name": "required",
547
+ "description": "是否必填",
548
+ "type": "boolean"
549
+ },
550
+ {
551
+ "name": "message",
552
+ "description": "校验文本信息",
553
+ "attribute": false,
554
+ "type": "Record<string, string>"
495
555
  },
496
556
  {
497
- "name": "disableAfterClick",
498
- "description": "点击确定按钮后自动禁用",
557
+ "name": "disabled",
558
+ "description": "是否禁用",
499
559
  "type": "boolean"
500
560
  },
501
561
  {
502
- "name": "submitDisabled",
503
- "description": "禁用提交按钮",
504
- "type": "boolean"
562
+ "name": "type",
563
+ "description": "单选框样式类型",
564
+ "default": "\"default\"",
565
+ "type": "RadioType"
505
566
  },
506
567
  {
507
- "name": "submitType",
508
- "description": "提交按钮类型",
509
- "type": "ButtonType"
568
+ "name": "ui",
569
+ "description": "UI样式",
570
+ "default": "\"default\"",
571
+ "type": "UIType"
510
572
  },
511
573
  {
512
- "name": "cancelType",
513
- "description": "取消按钮类型",
514
- "type": "ButtonType"
574
+ "name": "size",
575
+ "description": "大小,只对按钮样式生效",
576
+ "default": "\"medium\"",
577
+ "type": "ComponentSize"
578
+ },
579
+ {
580
+ "name": "customStyle",
581
+ "description": "自定义radio的外层样式",
582
+ "attribute": false,
583
+ "type": "React.CSSProperties"
584
+ },
585
+ {
586
+ "name": "useBrick",
587
+ "description": "自定义radio的内容",
588
+ "attribute": false,
589
+ "type": "UseSingleBrickConf"
515
590
  }
516
591
  ],
517
592
  "events": [
518
593
  {
519
- "name": "submit",
520
- "description": "点击提交按钮触发的事件",
594
+ "name": "change",
595
+ "description": "值变化事件",
521
596
  "detail": {
522
- "type": "void"
597
+ "type": "GeneralComplexOption | undefined"
523
598
  }
524
599
  },
525
600
  {
526
- "name": "cancel",
527
- "description": "点击取消按钮触发的事件",
601
+ "name": "options.change",
602
+ "description": "选项列表变化事件",
528
603
  "detail": {
529
- "type": "void"
604
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
530
605
  }
531
606
  }
532
607
  ],
533
608
  "slots": [],
534
609
  "methods": [],
535
610
  "parts": [],
536
- "description": "表单提交按钮",
611
+ "description": "通用单选构件",
537
612
  "category": "form-input-basic"
538
613
  },
539
614
  {
@@ -678,6 +753,66 @@
678
753
  "description": "通用下拉选择构件",
679
754
  "category": "form-input-basic"
680
755
  },
756
+ {
757
+ "name": "eo-submit-buttons",
758
+ "alias": [
759
+ "form.submit-buttons"
760
+ ],
761
+ "properties": [
762
+ {
763
+ "name": "submitText",
764
+ "description": "提交按钮的文字",
765
+ "default": "\"提交\"",
766
+ "type": "string"
767
+ },
768
+ {
769
+ "name": "cancelText",
770
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
771
+ "type": "string"
772
+ },
773
+ {
774
+ "name": "disableAfterClick",
775
+ "description": "点击确定按钮后自动禁用",
776
+ "type": "boolean"
777
+ },
778
+ {
779
+ "name": "submitDisabled",
780
+ "description": "禁用提交按钮",
781
+ "type": "boolean"
782
+ },
783
+ {
784
+ "name": "submitType",
785
+ "description": "提交按钮类型",
786
+ "type": "ButtonType"
787
+ },
788
+ {
789
+ "name": "cancelType",
790
+ "description": "取消按钮类型",
791
+ "type": "ButtonType"
792
+ }
793
+ ],
794
+ "events": [
795
+ {
796
+ "name": "submit",
797
+ "description": "点击提交按钮触发的事件",
798
+ "detail": {
799
+ "type": "void"
800
+ }
801
+ },
802
+ {
803
+ "name": "cancel",
804
+ "description": "点击取消按钮触发的事件",
805
+ "detail": {
806
+ "type": "void"
807
+ }
808
+ }
809
+ ],
810
+ "slots": [],
811
+ "methods": [],
812
+ "parts": [],
813
+ "description": "表单提交按钮",
814
+ "category": "form-input-basic"
815
+ },
681
816
  {
682
817
  "name": "eo-checkbox",
683
818
  "alias": [
@@ -923,141 +1058,6 @@
923
1058
  "description": "搜索框",
924
1059
  "category": "form-input-basic"
925
1060
  },
926
- {
927
- "name": "eo-form",
928
- "alias": [
929
- "form.general-form"
930
- ],
931
- "properties": [
932
- {
933
- "name": "layout",
934
- "description": "布局方式(默认 vertical 布局)",
935
- "default": "vertical",
936
- "type": "Layout"
937
- },
938
- {
939
- "name": "size",
940
- "description": "表单组件尺寸",
941
- "type": "ComponentSize"
942
- },
943
- {
944
- "name": "labelCol",
945
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
946
- "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 }",
947
- "attribute": false,
948
- "type": "ColProps"
949
- },
950
- {
951
- "name": "wrapperCol",
952
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
953
- "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 }",
954
- "attribute": false,
955
- "type": "ColProps"
956
- },
957
- {
958
- "name": "formStyle",
959
- "attribute": false,
960
- "type": "React.CSSProperties"
961
- }
962
- ],
963
- "events": [
964
- {
965
- "name": "values.change",
966
- "description": "表单值变更事件",
967
- "detail": {
968
- "description": null,
969
- "type": "Record<string, unknown>"
970
- }
971
- },
972
- {
973
- "name": "validate.success",
974
- "description": "表单验证成功时触发事件",
975
- "detail": {
976
- "type": "Record<string, unknown>"
977
- }
978
- },
979
- {
980
- "name": "validate.error",
981
- "description": "表单验证报错时触发事件",
982
- "detail": {
983
- "type": "MessageBody[]"
984
- }
985
- }
986
- ],
987
- "slots": [
988
- {
989
- "name": null,
990
- "description": "表单内容"
991
- }
992
- ],
993
- "methods": [
994
- {
995
- "name": "validate",
996
- "params": [],
997
- "description": "表单校验方法",
998
- "returns": {
999
- "type": "boolean | Record<string, unknown>"
1000
- }
1001
- },
1002
- {
1003
- "name": "setInitValue",
1004
- "params": [
1005
- {
1006
- "name": "values",
1007
- "type": "Record<string, unknown>"
1008
- },
1009
- {
1010
- "name": "options",
1011
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
1012
- }
1013
- ],
1014
- "description": "表单设置值方法",
1015
- "returns": {}
1016
- },
1017
- {
1018
- "name": "resetFields",
1019
- "params": [
1020
- {
1021
- "name": "name",
1022
- "type": "string"
1023
- }
1024
- ],
1025
- "description": "表单重置值方法",
1026
- "returns": {}
1027
- },
1028
- {
1029
- "name": "getFieldsValue",
1030
- "params": [
1031
- {
1032
- "name": "name",
1033
- "type": "string"
1034
- }
1035
- ],
1036
- "description": "获取表单值方法",
1037
- "returns": {}
1038
- },
1039
- {
1040
- "name": "validateField",
1041
- "params": [
1042
- {
1043
- "name": "name",
1044
- "type": "string"
1045
- }
1046
- ],
1047
- "description": "校验表单字段方法",
1048
- "returns": {}
1049
- },
1050
- {
1051
- "name": "resetValidateState",
1052
- "params": [],
1053
- "description": "重置表单校验状态方法",
1054
- "returns": {}
1055
- }
1056
- ],
1057
- "parts": [],
1058
- "description": "表单构件",
1059
- "category": "form-input-basic"
1060
- },
1061
1061
  {
1062
1062
  "name": "eo-icon-select",
1063
1063
  "alias": [