@next-bricks/form 1.12.2 → 1.13.1

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 (103) hide show
  1. package/dist/bricks.json +23 -23
  2. package/dist/chunks/{1269.1a046297.js → 1269.ed712797.js} +2 -2
  3. package/dist/chunks/{1269.1a046297.js.map → 1269.ed712797.js.map} +1 -1
  4. package/dist/chunks/4021.954d25ce.js +2 -0
  5. package/dist/chunks/4021.954d25ce.js.map +1 -0
  6. package/dist/chunks/4114.511ea433.js +3 -0
  7. package/dist/chunks/4114.511ea433.js.map +1 -0
  8. package/dist/chunks/4837.f5538448.js +2 -0
  9. package/dist/chunks/{7218.764309e9.js.map → 4837.f5538448.js.map} +1 -1
  10. package/dist/chunks/5026.1ef46032.js +3 -0
  11. package/dist/chunks/5026.1ef46032.js.map +1 -0
  12. package/dist/chunks/6537.1fc354f4.js +3 -0
  13. package/dist/chunks/6537.1fc354f4.js.map +1 -0
  14. package/dist/chunks/6586.7c0a8144.js +3 -0
  15. package/dist/chunks/{6586.fdcac52b.js.map → 6586.7c0a8144.js.map} +1 -1
  16. package/dist/chunks/7218.22824b22.js +2 -0
  17. package/dist/chunks/{4837.efb19b28.js.map → 7218.22824b22.js.map} +1 -1
  18. package/dist/chunks/{799.63685513.js → 799.0d02d664.js} +3 -3
  19. package/dist/chunks/799.0d02d664.js.map +1 -0
  20. package/dist/chunks/9259.49033ecf.js +3 -0
  21. package/dist/chunks/9259.49033ecf.js.map +1 -0
  22. package/dist/chunks/eo-checkbox.53e20010.js +3 -0
  23. package/dist/chunks/eo-checkbox.53e20010.js.map +1 -0
  24. package/dist/chunks/eo-color-picker.aec3b352.js +2 -0
  25. package/dist/chunks/{eo-color-picker.b7380f86.js.map → eo-color-picker.aec3b352.js.map} +1 -1
  26. package/dist/chunks/eo-date-picker.a068145a.js +2 -0
  27. package/dist/chunks/{eo-date-picker.647287ef.js.map → eo-date-picker.a068145a.js.map} +1 -1
  28. package/dist/chunks/eo-dynamic-form-item.87fc1816.js +3 -0
  29. package/dist/chunks/{eo-dynamic-form-item.206eba1d.js.map → eo-dynamic-form-item.87fc1816.js.map} +1 -1
  30. package/dist/chunks/eo-form-item.92f16bc1.js +3 -0
  31. package/dist/chunks/eo-form-item.92f16bc1.js.map +1 -0
  32. package/dist/chunks/eo-form.e2369d33.js +2 -0
  33. package/dist/chunks/eo-form.e2369d33.js.map +1 -0
  34. package/dist/chunks/eo-radio.3dfef4db.js +3 -0
  35. package/dist/chunks/{eo-radio.07cb2c75.js.map → eo-radio.3dfef4db.js.map} +1 -1
  36. package/dist/chunks/eo-select.aee01e15.js +3 -0
  37. package/dist/chunks/{eo-select.661359c0.js.map → eo-select.aee01e15.js.map} +1 -1
  38. package/dist/chunks/eo-textarea.d836fa39.js +2 -0
  39. package/dist/chunks/eo-textarea.d836fa39.js.map +1 -0
  40. package/dist/chunks/eo-time-picker.47e85deb.js +2 -0
  41. package/dist/chunks/{eo-time-picker.3f81cca0.js.map → eo-time-picker.47e85deb.js.map} +1 -1
  42. package/dist/chunks/eo-time-range-picker.c5728b35.js +2 -0
  43. package/dist/chunks/{eo-time-range-picker.b496eab5.js.map → eo-time-range-picker.c5728b35.js.map} +1 -1
  44. package/dist/chunks/eo-upload-file.80033217.js +3 -0
  45. package/dist/chunks/{eo-upload-file.01fc165a.js.map → eo-upload-file.80033217.js.map} +1 -1
  46. package/dist/chunks/eo-upload-image.f406cc57.js +3 -0
  47. package/dist/chunks/{eo-upload-image.256b5177.js.map → eo-upload-image.f406cc57.js.map} +1 -1
  48. package/dist/chunks/main.3f10dde8.js +2 -0
  49. package/dist/chunks/main.3f10dde8.js.map +1 -0
  50. package/dist/examples.json +7 -7
  51. package/dist/index.3a1dae93.js +2 -0
  52. package/dist/index.3a1dae93.js.map +1 -0
  53. package/dist/manifest.json +331 -326
  54. package/dist/types.json +1235 -1212
  55. package/dist-types/form/index.d.ts +1 -0
  56. package/dist-types/textarea/index.d.ts +1 -1
  57. package/package.json +2 -2
  58. package/dist/chunks/4837.efb19b28.js +0 -2
  59. package/dist/chunks/5026.2b177335.js +0 -3
  60. package/dist/chunks/5026.2b177335.js.map +0 -1
  61. package/dist/chunks/6537.d3dbdd3a.js +0 -3
  62. package/dist/chunks/6537.d3dbdd3a.js.map +0 -1
  63. package/dist/chunks/6586.fdcac52b.js +0 -3
  64. package/dist/chunks/7218.764309e9.js +0 -2
  65. package/dist/chunks/799.63685513.js.map +0 -1
  66. package/dist/chunks/825.5bcac785.js +0 -3
  67. package/dist/chunks/825.5bcac785.js.map +0 -1
  68. package/dist/chunks/9259.23d60a51.js +0 -3
  69. package/dist/chunks/9259.23d60a51.js.map +0 -1
  70. package/dist/chunks/eo-checkbox.64e5ccfd.js +0 -2
  71. package/dist/chunks/eo-checkbox.64e5ccfd.js.map +0 -1
  72. package/dist/chunks/eo-color-picker.b7380f86.js +0 -2
  73. package/dist/chunks/eo-date-picker.647287ef.js +0 -2
  74. package/dist/chunks/eo-dynamic-form-item.206eba1d.js +0 -3
  75. package/dist/chunks/eo-form-item.5c41fa37.js +0 -3
  76. package/dist/chunks/eo-form-item.5c41fa37.js.map +0 -1
  77. package/dist/chunks/eo-form.ffd7110b.js +0 -2
  78. package/dist/chunks/eo-form.ffd7110b.js.map +0 -1
  79. package/dist/chunks/eo-radio.07cb2c75.js +0 -3
  80. package/dist/chunks/eo-select.661359c0.js +0 -3
  81. package/dist/chunks/eo-textarea.3ca392a1.js +0 -3
  82. package/dist/chunks/eo-textarea.3ca392a1.js.map +0 -1
  83. package/dist/chunks/eo-time-picker.3f81cca0.js +0 -2
  84. package/dist/chunks/eo-time-range-picker.b496eab5.js +0 -2
  85. package/dist/chunks/eo-upload-file.01fc165a.js +0 -3
  86. package/dist/chunks/eo-upload-image.256b5177.js +0 -3
  87. package/dist/chunks/main.5e26d64a.js +0 -2
  88. package/dist/chunks/main.5e26d64a.js.map +0 -1
  89. package/dist/index.5c2a3203.js +0 -2
  90. package/dist/index.5c2a3203.js.map +0 -1
  91. /package/dist/chunks/{825.5bcac785.js.LICENSE.txt → 4114.511ea433.js.LICENSE.txt} +0 -0
  92. /package/dist/chunks/{5026.2b177335.js.LICENSE.txt → 5026.1ef46032.js.LICENSE.txt} +0 -0
  93. /package/dist/chunks/{6537.d3dbdd3a.js.LICENSE.txt → 6537.1fc354f4.js.LICENSE.txt} +0 -0
  94. /package/dist/chunks/{6586.fdcac52b.js.LICENSE.txt → 6586.7c0a8144.js.LICENSE.txt} +0 -0
  95. /package/dist/chunks/{799.63685513.js.LICENSE.txt → 799.0d02d664.js.LICENSE.txt} +0 -0
  96. /package/dist/chunks/{9259.23d60a51.js.LICENSE.txt → 9259.49033ecf.js.LICENSE.txt} +0 -0
  97. /package/dist/chunks/{eo-dynamic-form-item.206eba1d.js.LICENSE.txt → eo-checkbox.53e20010.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{eo-form-item.5c41fa37.js.LICENSE.txt → eo-dynamic-form-item.87fc1816.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{eo-radio.07cb2c75.js.LICENSE.txt → eo-form-item.92f16bc1.js.LICENSE.txt} +0 -0
  100. /package/dist/chunks/{eo-select.661359c0.js.LICENSE.txt → eo-radio.3dfef4db.js.LICENSE.txt} +0 -0
  101. /package/dist/chunks/{eo-textarea.3ca392a1.js.LICENSE.txt → eo-select.aee01e15.js.LICENSE.txt} +0 -0
  102. /package/dist/chunks/{eo-upload-file.01fc165a.js.LICENSE.txt → eo-upload-file.80033217.js.LICENSE.txt} +0 -0
  103. /package/dist/chunks/{eo-upload-image.256b5177.js.LICENSE.txt → eo-upload-image.f406cc57.js.LICENSE.txt} +0 -0
@@ -189,254 +189,109 @@
189
189
  "category": "form-input-basic"
190
190
  },
191
191
  {
192
- "name": "eo-textarea",
192
+ "name": "eo-radio",
193
193
  "alias": [
194
- "form.general-textarea"
194
+ "form.general-radio"
195
195
  ],
196
196
  "properties": [
197
197
  {
198
198
  "name": "name",
199
- "description": "字段名称",
199
+ "description": "下拉框字段名",
200
200
  "type": "string"
201
201
  },
202
202
  {
203
203
  "name": "label",
204
- "description": "标签文字",
205
- "type": "string"
206
- },
207
- {
208
- "name": "value",
209
- "description": "值",
210
- "type": "string"
211
- },
212
- {
213
- "name": "placeholder",
214
- "description": "占位说明",
204
+ "description": "单选框字段说明",
215
205
  "type": "string"
216
206
  },
217
207
  {
218
- "name": "disabled",
219
- "description": "是否禁用",
220
- "type": "boolean"
221
- },
222
- {
223
- "name": "minLength",
224
- "description": "最小长度",
225
- "type": "number"
226
- },
227
- {
228
- "name": "maxLength",
229
- "description": "最大长度",
230
- "type": "number"
208
+ "name": "options",
209
+ "description": "单选框选项表",
210
+ "required": true,
211
+ "attribute": false,
212
+ "type": "GeneralOption[]"
231
213
  },
232
214
  {
233
- "name": "autoSize",
234
- "description": "大小自适应",
215
+ "name": "value",
216
+ "description": "单选框当前选中始值",
235
217
  "attribute": false,
236
- "type": "AutoSize"
218
+ "type": "any"
237
219
  },
238
220
  {
239
221
  "name": "required",
240
222
  "description": "是否必填",
241
223
  "type": "boolean"
242
224
  },
243
- {
244
- "name": "max",
245
- "description": "表单校验最大长度",
246
- "type": "number"
247
- },
248
- {
249
- "name": "min",
250
- "description": "表单校验最小长度",
251
- "type": "number"
252
- },
253
225
  {
254
226
  "name": "message",
255
- "description": "校验信息",
227
+ "description": "校验文本信息",
256
228
  "attribute": false,
257
229
  "type": "Record<string, string>"
258
230
  },
259
231
  {
260
- "name": "textareaStyle",
261
- "description": "自定义样式",
262
- "attribute": false,
263
- "type": "React.CSSProperties"
264
- }
265
- ],
266
- "events": [
267
- {
268
- "name": "change",
269
- "description": "",
270
- "detail": {
271
- "description": null,
272
- "type": "string"
273
- }
274
- }
275
- ],
276
- "slots": [],
277
- "methods": [
232
+ "name": "disabled",
233
+ "description": "是否禁用",
234
+ "type": "boolean"
235
+ },
278
236
  {
279
- "name": "focusTextarea",
280
- "params": [],
281
- "description": "focus",
282
- "returns": {}
283
- }
284
- ],
285
- "parts": [],
286
- "description": "通用多行文本输入框构件",
287
- "category": "form-input-basic"
288
- },
289
- {
290
- "name": "eo-form",
291
- "alias": [
292
- "form.general-form"
293
- ],
294
- "properties": [
237
+ "name": "type",
238
+ "description": "单选框样式类型",
239
+ "default": "\"default\"",
240
+ "type": "RadioType"
241
+ },
295
242
  {
296
- "name": "layout",
297
- "description": "布局方式(默认 vertical 布局)",
298
- "default": "vertical",
299
- "type": "Layout"
243
+ "name": "ui",
244
+ "description": "UI样式",
245
+ "default": "\"default\"",
246
+ "type": "UIType"
300
247
  },
301
248
  {
302
249
  "name": "size",
303
- "description": "表单组件尺寸",
250
+ "description": "大小,只对按钮样式生效",
251
+ "default": "\"medium\"",
304
252
  "type": "ComponentSize"
305
253
  },
306
254
  {
307
- "name": "labelCol",
308
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
309
- "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
- "attribute": false,
311
- "type": "ColProps"
312
- },
313
- {
314
- "name": "wrapperCol",
315
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
316
- "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 }",
255
+ "name": "customStyle",
256
+ "description": "自定义radio的外层样式",
317
257
  "attribute": false,
318
- "type": "ColProps"
258
+ "type": "React.CSSProperties"
319
259
  },
320
260
  {
321
- "name": "formStyle",
261
+ "name": "useBrick",
262
+ "description": "自定义radio的内容",
322
263
  "attribute": false,
323
- "type": "React.CSSProperties"
264
+ "type": "UseSingleBrickConf"
324
265
  }
325
266
  ],
326
267
  "events": [
327
268
  {
328
- "name": "values.change",
329
- "description": "表单值变更事件",
330
- "detail": {
331
- "description": null,
332
- "type": "Record<string, unknown>"
333
- }
334
- },
335
- {
336
- "name": "validate.success",
337
- "description": "表单验证成功时触发事件",
269
+ "name": "change",
270
+ "description": "值变化事件",
338
271
  "detail": {
339
- "type": "Record<string, unknown>"
272
+ "type": "GeneralComplexOption | undefined"
340
273
  }
341
274
  },
342
275
  {
343
- "name": "validate.error",
344
- "description": "表单验证报错时触发事件",
276
+ "name": "options.change",
277
+ "description": "选项列表变化事件",
345
278
  "detail": {
346
- "type": "(MessageBody & { name: string })[]"
279
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
347
280
  }
348
281
  }
349
282
  ],
350
- "slots": [
351
- {
352
- "name": null,
353
- "description": "表单内容"
354
- }
355
- ],
356
- "methods": [
357
- {
358
- "name": "validate",
359
- "params": [],
360
- "description": "表单校验方法",
361
- "returns": {
362
- "type": "boolean | Record<string, unknown>"
363
- }
364
- },
365
- {
366
- "name": "setInitValue",
367
- "params": [
368
- {
369
- "name": "values",
370
- "type": "Record<string, unknown>"
371
- },
372
- {
373
- "name": "options",
374
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
375
- }
376
- ],
377
- "description": "表单设置值方法",
378
- "returns": {}
379
- },
380
- {
381
- "name": "resetFields",
382
- "params": [
383
- {
384
- "name": "name",
385
- "type": "string"
386
- }
387
- ],
388
- "description": "表单重置值方法",
389
- "returns": {}
390
- },
391
- {
392
- "name": "getFieldsValue",
393
- "params": [
394
- {
395
- "name": "name",
396
- "type": "string"
397
- }
398
- ],
399
- "description": "获取表单值方法",
400
- "returns": {}
401
- },
402
- {
403
- "name": "validateField",
404
- "params": [
405
- {
406
- "name": "name",
407
- "type": "string"
408
- }
409
- ],
410
- "description": "校验表单字段方法",
411
- "returns": {}
412
- },
413
- {
414
- "name": "resetValidateState",
415
- "params": [],
416
- "description": "重置表单校验状态方法",
417
- "returns": {}
418
- }
419
- ],
283
+ "slots": [],
284
+ "methods": [],
420
285
  "parts": [],
421
- "description": "表单构件",
286
+ "description": "通用单选构件",
422
287
  "category": "form-input-basic"
423
288
  },
424
289
  {
425
- "name": "eo-form-item",
290
+ "name": "eo-textarea",
426
291
  "alias": [
427
- "form.general-form-item"
292
+ "form.general-textarea"
428
293
  ],
429
294
  "properties": [
430
- {
431
- "name": "formElement",
432
- "attribute": false,
433
- "type": "Form"
434
- },
435
- {
436
- "name": "curElement",
437
- "attribute": false,
438
- "type": "HTMLElement"
439
- },
440
295
  {
441
296
  "name": "name",
442
297
  "description": "字段名称",
@@ -444,178 +299,149 @@
444
299
  },
445
300
  {
446
301
  "name": "label",
302
+ "description": "标签文字",
447
303
  "type": "string"
448
304
  },
449
305
  {
450
- "name": "pattern",
306
+ "name": "value",
307
+ "description": "值",
451
308
  "type": "string"
452
309
  },
453
310
  {
454
- "name": "message",
455
- "attribute": false,
456
- "type": "Record<string, string>"
311
+ "name": "placeholder",
312
+ "description": "占位说明",
313
+ "type": "string"
457
314
  },
458
315
  {
459
- "name": "max",
460
- "type": "number"
316
+ "name": "disabled",
317
+ "description": "是否禁用",
318
+ "type": "boolean"
461
319
  },
462
320
  {
463
- "name": "min",
321
+ "name": "minLength",
322
+ "description": "最小长度",
464
323
  "type": "number"
465
324
  },
466
325
  {
467
- "name": "required",
468
- "description": "表单项是否为必填",
469
- "type": "boolean"
470
- },
471
- {
472
- "name": "value",
473
- "description": "初始值",
474
- "type": "string"
326
+ "name": "maxLength",
327
+ "description": "最大长度",
328
+ "type": "number"
475
329
  },
476
330
  {
477
- "name": "valuePropsName",
478
- "type": "string"
331
+ "name": "autoSize",
332
+ "description": "大小自适应",
333
+ "attribute": false,
334
+ "type": "AutoSize"
479
335
  },
480
336
  {
481
- "name": "layout",
482
- "type": "Layout"
337
+ "name": "required",
338
+ "description": "是否必填",
339
+ "type": "boolean"
483
340
  },
484
341
  {
485
- "name": "size",
486
- "type": "ComponentSize"
342
+ "name": "max",
343
+ "description": "表单校验最大长度",
344
+ "type": "number"
487
345
  },
488
346
  {
489
- "name": "trim",
490
- "description": "是否自动去除前后的空白字符",
491
- "default": "true"
347
+ "name": "min",
348
+ "description": "表单校验最小长度",
349
+ "type": "number"
492
350
  },
493
351
  {
494
- "name": "trigger",
495
- "description": "事件触发方法名",
496
- "type": "string"
352
+ "name": "message",
353
+ "description": "校验信息",
354
+ "attribute": false,
355
+ "type": "Record<string, string>"
497
356
  },
498
357
  {
499
- "name": "validator",
500
- "description": "表单项校验方法",
358
+ "name": "textareaStyle",
359
+ "description": "自定义样式",
501
360
  "attribute": false,
502
- "type": "((value: any) => MessageBody)"
503
- },
361
+ "type": "React.CSSProperties"
362
+ }
363
+ ],
364
+ "events": [
504
365
  {
505
- "name": "needValidate",
506
- "description": "值变化时是否主动出发校验",
507
- "type": "boolean"
366
+ "name": "change",
367
+ "description": "",
368
+ "detail": {
369
+ "description": null,
370
+ "type": "string"
371
+ }
508
372
  }
509
373
  ],
510
- "events": [],
511
- "slots": [
374
+ "slots": [],
375
+ "methods": [
512
376
  {
513
- "name": null,
514
- "description": "表单项内容"
377
+ "name": "focusTextarea",
378
+ "params": [],
379
+ "description": "focus",
380
+ "returns": {}
515
381
  }
516
382
  ],
517
- "methods": [],
518
383
  "parts": [],
519
- "description": "通用输入框构件",
520
- "category": "form-input-basic",
521
- "insider": true
384
+ "description": "通用多行文本输入框构件",
385
+ "category": "form-input-basic"
522
386
  },
523
387
  {
524
- "name": "eo-radio",
388
+ "name": "eo-submit-buttons",
525
389
  "alias": [
526
- "form.general-radio"
390
+ "form.submit-buttons"
527
391
  ],
528
392
  "properties": [
529
393
  {
530
- "name": "name",
531
- "description": "下拉框字段名",
394
+ "name": "submitText",
395
+ "description": "提交按钮的文字",
396
+ "default": "\"提交\"",
532
397
  "type": "string"
533
398
  },
534
399
  {
535
- "name": "label",
536
- "description": "单选框字段说明",
400
+ "name": "cancelText",
401
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
537
402
  "type": "string"
538
403
  },
539
404
  {
540
- "name": "options",
541
- "description": "单选框选项表",
542
- "required": true,
543
- "attribute": false,
544
- "type": "GeneralOption[]"
545
- },
546
- {
547
- "name": "value",
548
- "description": "单选框当前选中始值",
549
- "attribute": false,
550
- "type": "any"
551
- },
552
- {
553
- "name": "required",
554
- "description": "是否必填",
405
+ "name": "disableAfterClick",
406
+ "description": "点击确定按钮后自动禁用",
555
407
  "type": "boolean"
556
408
  },
557
409
  {
558
- "name": "message",
559
- "description": "校验文本信息",
560
- "attribute": false,
561
- "type": "Record<string, string>"
562
- },
563
- {
564
- "name": "disabled",
565
- "description": "是否禁用",
410
+ "name": "submitDisabled",
411
+ "description": "禁用提交按钮",
566
412
  "type": "boolean"
567
413
  },
568
414
  {
569
- "name": "type",
570
- "description": "单选框样式类型",
571
- "default": "\"default\"",
572
- "type": "RadioType"
573
- },
574
- {
575
- "name": "ui",
576
- "description": "UI样式",
577
- "default": "\"default\"",
578
- "type": "UIType"
579
- },
580
- {
581
- "name": "size",
582
- "description": "大小,只对按钮样式生效",
583
- "default": "\"medium\"",
584
- "type": "ComponentSize"
585
- },
586
- {
587
- "name": "customStyle",
588
- "description": "自定义radio的外层样式",
589
- "attribute": false,
590
- "type": "React.CSSProperties"
591
- },
592
- {
593
- "name": "useBrick",
594
- "description": "自定义radio的内容",
595
- "attribute": false,
596
- "type": "UseSingleBrickConf"
415
+ "name": "submitType",
416
+ "description": "提交按钮类型",
417
+ "type": "ButtonType"
418
+ },
419
+ {
420
+ "name": "cancelType",
421
+ "description": "取消按钮类型",
422
+ "type": "ButtonType"
597
423
  }
598
424
  ],
599
425
  "events": [
600
426
  {
601
- "name": "change",
602
- "description": "值变化事件",
427
+ "name": "submit",
428
+ "description": "点击提交按钮触发的事件",
603
429
  "detail": {
604
- "type": "GeneralComplexOption | undefined"
430
+ "type": "void"
605
431
  }
606
432
  },
607
433
  {
608
- "name": "options.change",
609
- "description": "选项列表变化事件",
434
+ "name": "cancel",
435
+ "description": "点击取消按钮触发的事件",
610
436
  "detail": {
611
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
437
+ "type": "void"
612
438
  }
613
439
  }
614
440
  ],
615
441
  "slots": [],
616
442
  "methods": [],
617
443
  "parts": [],
618
- "description": "通用单选构件",
444
+ "description": "表单提交按钮",
619
445
  "category": "form-input-basic"
620
446
  },
621
447
  {
@@ -761,63 +587,143 @@
761
587
  "category": "form-input-basic"
762
588
  },
763
589
  {
764
- "name": "eo-submit-buttons",
590
+ "name": "eo-form",
765
591
  "alias": [
766
- "form.submit-buttons"
592
+ "form.general-form"
767
593
  ],
768
594
  "properties": [
769
595
  {
770
- "name": "submitText",
771
- "description": "提交按钮的文字",
772
- "default": "\"提交\"",
773
- "type": "string"
596
+ "name": "staticValues",
597
+ "attribute": false,
598
+ "type": "Record<string, unknown>"
774
599
  },
775
600
  {
776
- "name": "cancelText",
777
- "description": "取消按钮的文字,不设置则不显示取消按钮",
778
- "type": "string"
601
+ "name": "layout",
602
+ "description": "布局方式(默认 vertical 布局)",
603
+ "default": "vertical",
604
+ "type": "Layout"
779
605
  },
780
606
  {
781
- "name": "disableAfterClick",
782
- "description": "点击确定按钮后自动禁用",
783
- "type": "boolean"
607
+ "name": "size",
608
+ "description": "表单组件尺寸",
609
+ "type": "ComponentSize"
784
610
  },
785
611
  {
786
- "name": "submitDisabled",
787
- "description": "禁用提交按钮",
788
- "type": "boolean"
612
+ "name": "labelCol",
613
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
614
+ "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 }",
615
+ "attribute": false,
616
+ "type": "ColProps"
789
617
  },
790
618
  {
791
- "name": "submitType",
792
- "description": "提交按钮类型",
793
- "type": "ButtonType"
619
+ "name": "wrapperCol",
620
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
621
+ "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 }",
622
+ "attribute": false,
623
+ "type": "ColProps"
794
624
  },
795
625
  {
796
- "name": "cancelType",
797
- "description": "取消按钮类型",
798
- "type": "ButtonType"
626
+ "name": "formStyle",
627
+ "attribute": false,
628
+ "type": "React.CSSProperties"
799
629
  }
800
630
  ],
801
631
  "events": [
802
632
  {
803
- "name": "submit",
804
- "description": "点击提交按钮触发的事件",
633
+ "name": "values.change",
634
+ "description": "表单值变更事件",
805
635
  "detail": {
806
- "type": "void"
636
+ "description": null,
637
+ "type": "Record<string, unknown>"
807
638
  }
808
639
  },
809
640
  {
810
- "name": "cancel",
811
- "description": "点击取消按钮触发的事件",
641
+ "name": "validate.success",
642
+ "description": "表单验证成功时触发事件",
812
643
  "detail": {
813
- "type": "void"
644
+ "type": "Record<string, unknown>"
645
+ }
646
+ },
647
+ {
648
+ "name": "validate.error",
649
+ "description": "表单验证报错时触发事件",
650
+ "detail": {
651
+ "type": "(MessageBody & { name: string })[]"
814
652
  }
815
653
  }
816
654
  ],
817
- "slots": [],
818
- "methods": [],
655
+ "slots": [
656
+ {
657
+ "name": null,
658
+ "description": "表单内容"
659
+ }
660
+ ],
661
+ "methods": [
662
+ {
663
+ "name": "validate",
664
+ "params": [],
665
+ "description": "表单校验方法",
666
+ "returns": {
667
+ "type": "boolean | Record<string, unknown>"
668
+ }
669
+ },
670
+ {
671
+ "name": "setInitValue",
672
+ "params": [
673
+ {
674
+ "name": "values",
675
+ "type": "Record<string, unknown>"
676
+ },
677
+ {
678
+ "name": "options",
679
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
680
+ }
681
+ ],
682
+ "description": "表单设置值方法",
683
+ "returns": {}
684
+ },
685
+ {
686
+ "name": "resetFields",
687
+ "params": [
688
+ {
689
+ "name": "name",
690
+ "type": "string"
691
+ }
692
+ ],
693
+ "description": "表单重置值方法",
694
+ "returns": {}
695
+ },
696
+ {
697
+ "name": "getFieldsValue",
698
+ "params": [
699
+ {
700
+ "name": "name",
701
+ "type": "string"
702
+ }
703
+ ],
704
+ "description": "获取表单值方法",
705
+ "returns": {}
706
+ },
707
+ {
708
+ "name": "validateField",
709
+ "params": [
710
+ {
711
+ "name": "name",
712
+ "type": "string"
713
+ }
714
+ ],
715
+ "description": "校验表单字段方法",
716
+ "returns": {}
717
+ },
718
+ {
719
+ "name": "resetValidateState",
720
+ "params": [],
721
+ "description": "重置表单校验状态方法",
722
+ "returns": {}
723
+ }
724
+ ],
819
725
  "parts": [],
820
- "description": "表单提交按钮",
726
+ "description": "表单构件",
821
727
  "category": "form-input-basic"
822
728
  },
823
729
  {
@@ -1004,6 +910,105 @@
1004
910
  "description": "动态表单",
1005
911
  "category": "form-input-basic"
1006
912
  },
913
+ {
914
+ "name": "eo-form-item",
915
+ "alias": [
916
+ "form.general-form-item"
917
+ ],
918
+ "properties": [
919
+ {
920
+ "name": "formElement",
921
+ "attribute": false,
922
+ "type": "Form"
923
+ },
924
+ {
925
+ "name": "curElement",
926
+ "attribute": false,
927
+ "type": "HTMLElement"
928
+ },
929
+ {
930
+ "name": "name",
931
+ "description": "字段名称",
932
+ "type": "string"
933
+ },
934
+ {
935
+ "name": "label",
936
+ "type": "string"
937
+ },
938
+ {
939
+ "name": "pattern",
940
+ "type": "string"
941
+ },
942
+ {
943
+ "name": "message",
944
+ "attribute": false,
945
+ "type": "Record<string, string>"
946
+ },
947
+ {
948
+ "name": "max",
949
+ "type": "number"
950
+ },
951
+ {
952
+ "name": "min",
953
+ "type": "number"
954
+ },
955
+ {
956
+ "name": "required",
957
+ "description": "表单项是否为必填",
958
+ "type": "boolean"
959
+ },
960
+ {
961
+ "name": "value",
962
+ "description": "初始值",
963
+ "type": "string"
964
+ },
965
+ {
966
+ "name": "valuePropsName",
967
+ "type": "string"
968
+ },
969
+ {
970
+ "name": "layout",
971
+ "type": "Layout"
972
+ },
973
+ {
974
+ "name": "size",
975
+ "type": "ComponentSize"
976
+ },
977
+ {
978
+ "name": "trim",
979
+ "description": "是否自动去除前后的空白字符",
980
+ "default": "true"
981
+ },
982
+ {
983
+ "name": "trigger",
984
+ "description": "事件触发方法名",
985
+ "type": "string"
986
+ },
987
+ {
988
+ "name": "validator",
989
+ "description": "表单项校验方法",
990
+ "attribute": false,
991
+ "type": "((value: any) => MessageBody)"
992
+ },
993
+ {
994
+ "name": "needValidate",
995
+ "description": "值变化时是否主动出发校验",
996
+ "type": "boolean"
997
+ }
998
+ ],
999
+ "events": [],
1000
+ "slots": [
1001
+ {
1002
+ "name": null,
1003
+ "description": "表单项内容"
1004
+ }
1005
+ ],
1006
+ "methods": [],
1007
+ "parts": [],
1008
+ "description": "通用输入框构件",
1009
+ "category": "form-input-basic",
1010
+ "insider": true
1011
+ },
1007
1012
  {
1008
1013
  "name": "eo-search",
1009
1014
  "alias": [