@next-bricks/form 1.9.1 → 1.9.3

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 (93) hide show
  1. package/dist/bricks.json +36 -36
  2. package/dist/chunks/{1337.ae1ccbf9.js → 1337.8d586b6b.js} +2 -2
  3. package/dist/chunks/1337.8d586b6b.js.map +1 -0
  4. package/dist/chunks/{1889.8950b0f8.js → 1889.004f20a1.js} +2 -2
  5. package/dist/chunks/{1889.8950b0f8.js.map → 1889.004f20a1.js.map} +1 -1
  6. package/dist/chunks/{3171.8661ee5e.js → 3171.87e8940d.js} +2 -2
  7. package/dist/chunks/{3171.8661ee5e.js.map → 3171.87e8940d.js.map} +1 -1
  8. package/dist/chunks/{3649.8dc5d1fe.js → 3649.abde197c.js} +3 -3
  9. package/dist/chunks/{3649.8dc5d1fe.js.map → 3649.abde197c.js.map} +1 -1
  10. package/dist/chunks/{5552.1b178581.js → 5552.a169645a.js} +2 -2
  11. package/dist/chunks/{5552.1b178581.js.map → 5552.a169645a.js.map} +1 -1
  12. package/dist/chunks/7115.6e551388.js +2 -0
  13. package/dist/chunks/7115.6e551388.js.map +1 -0
  14. package/dist/chunks/{790.9c0adae8.js → 790.a0da1c30.js} +2 -2
  15. package/dist/chunks/{790.9c0adae8.js.map → 790.a0da1c30.js.map} +1 -1
  16. package/dist/chunks/{7949.6375f0d5.js → 7949.1f1c9f7d.js} +2 -2
  17. package/dist/chunks/{7949.6375f0d5.js.map → 7949.1f1c9f7d.js.map} +1 -1
  18. package/dist/chunks/8954.458a7fa9.js +2 -0
  19. package/dist/chunks/8954.458a7fa9.js.map +1 -0
  20. package/dist/chunks/9496.a39c7c4e.js +2 -0
  21. package/dist/chunks/9496.a39c7c4e.js.map +1 -0
  22. package/dist/chunks/{eo-auto-complete.e685a0e8.js → eo-auto-complete.bf5ea5a8.js} +3 -3
  23. package/dist/chunks/{eo-auto-complete.e685a0e8.js.map → eo-auto-complete.bf5ea5a8.js.map} +1 -1
  24. package/dist/chunks/{eo-checkbox.8bcee8eb.js → eo-checkbox.b4956dea.js} +2 -2
  25. package/dist/chunks/{eo-checkbox.8bcee8eb.js.map → eo-checkbox.b4956dea.js.map} +1 -1
  26. package/dist/chunks/{eo-color-picker.37e25580.js → eo-color-picker.c0fc35a2.js} +2 -2
  27. package/dist/chunks/{eo-color-picker.37e25580.js.map → eo-color-picker.c0fc35a2.js.map} +1 -1
  28. package/dist/chunks/{eo-date-picker.f8fd6cc4.js → eo-date-picker.80184cf4.js} +2 -2
  29. package/dist/chunks/{eo-date-picker.f8fd6cc4.js.map → eo-date-picker.80184cf4.js.map} +1 -1
  30. package/dist/chunks/{eo-dynamic-form-item.a283df8e.js → eo-dynamic-form-item.01e53cc9.js} +3 -3
  31. package/dist/chunks/{eo-dynamic-form-item.a283df8e.js.map → eo-dynamic-form-item.01e53cc9.js.map} +1 -1
  32. package/dist/chunks/{eo-form-item.362208d7.js → eo-form-item.a5db4203.js} +3 -3
  33. package/dist/chunks/{eo-form-item.362208d7.js.map → eo-form-item.a5db4203.js.map} +1 -1
  34. package/dist/chunks/eo-form.950a4fa5.js +2 -0
  35. package/dist/chunks/{eo-form.d33471f7.js.map → eo-form.950a4fa5.js.map} +1 -1
  36. package/dist/chunks/{eo-icon-select.19e773cd.js → eo-icon-select.7e1794dc.js} +3 -3
  37. package/dist/chunks/{eo-icon-select.19e773cd.js.map → eo-icon-select.7e1794dc.js.map} +1 -1
  38. package/dist/chunks/{eo-input.9425bc10.js → eo-input.1180f4e2.js} +3 -3
  39. package/dist/chunks/{eo-input.9425bc10.js.map → eo-input.1180f4e2.js.map} +1 -1
  40. package/dist/chunks/{eo-radio.fdc26720.js → eo-radio.bde94bc4.js} +3 -3
  41. package/dist/chunks/{eo-radio.fdc26720.js.map → eo-radio.bde94bc4.js.map} +1 -1
  42. package/dist/chunks/{eo-search.f709d5af.js → eo-search.a9569167.js} +2 -2
  43. package/dist/chunks/{eo-search.f709d5af.js.map → eo-search.a9569167.js.map} +1 -1
  44. package/dist/chunks/{eo-select.22939aff.js → eo-select.6485c749.js} +3 -3
  45. package/dist/chunks/{eo-select.22939aff.js.map → eo-select.6485c749.js.map} +1 -1
  46. package/dist/chunks/eo-submit-buttons.82b33a72.js +2 -0
  47. package/dist/chunks/{eo-submit-buttons.9a9ae6e8.js.map → eo-submit-buttons.82b33a72.js.map} +1 -1
  48. package/dist/chunks/{eo-switch.2e6d6ce6.js → eo-switch.18c89925.js} +3 -3
  49. package/dist/chunks/{eo-switch.2e6d6ce6.js.map → eo-switch.18c89925.js.map} +1 -1
  50. package/dist/chunks/{eo-textarea.3cab6583.js → eo-textarea.b6e645b7.js} +3 -3
  51. package/dist/chunks/{eo-textarea.3cab6583.js.map → eo-textarea.b6e645b7.js.map} +1 -1
  52. package/dist/chunks/{eo-time-picker.cc9c0bf8.js → eo-time-picker.2b4110b1.js} +2 -2
  53. package/dist/chunks/{eo-time-picker.cc9c0bf8.js.map → eo-time-picker.2b4110b1.js.map} +1 -1
  54. package/dist/chunks/{eo-time-range-picker.b3157745.js → eo-time-range-picker.59524fd1.js} +2 -2
  55. package/dist/chunks/{eo-time-range-picker.b3157745.js.map → eo-time-range-picker.59524fd1.js.map} +1 -1
  56. package/dist/chunks/{eo-upload-file.cf277c16.js → eo-upload-file.3e9ed5ea.js} +3 -3
  57. package/dist/chunks/{eo-upload-file.cf277c16.js.map → eo-upload-file.3e9ed5ea.js.map} +1 -1
  58. package/dist/chunks/eo-upload-image.729ca4da.js +3 -0
  59. package/dist/chunks/eo-upload-image.729ca4da.js.map +1 -0
  60. package/dist/chunks/main.de47e189.js +2 -0
  61. package/dist/chunks/{main.7d657b3e.js.map → main.de47e189.js.map} +1 -1
  62. package/dist/examples.json +12 -12
  63. package/dist/index.27987d36.js +2 -0
  64. package/dist/index.27987d36.js.map +1 -0
  65. package/dist/manifest.json +422 -422
  66. package/dist/types.json +1217 -1217
  67. package/package.json +2 -2
  68. package/dist/chunks/1337.ae1ccbf9.js.map +0 -1
  69. package/dist/chunks/5669.b160d017.js +0 -2
  70. package/dist/chunks/5669.b160d017.js.map +0 -1
  71. package/dist/chunks/8050.471d4fe3.js +0 -2
  72. package/dist/chunks/8050.471d4fe3.js.map +0 -1
  73. package/dist/chunks/8954.cac36d0b.js +0 -2
  74. package/dist/chunks/8954.cac36d0b.js.map +0 -1
  75. package/dist/chunks/eo-form.d33471f7.js +0 -2
  76. package/dist/chunks/eo-submit-buttons.9a9ae6e8.js +0 -2
  77. package/dist/chunks/eo-upload-image.9f8b3aaa.js +0 -3
  78. package/dist/chunks/eo-upload-image.9f8b3aaa.js.map +0 -1
  79. package/dist/chunks/main.7d657b3e.js +0 -2
  80. package/dist/index.2e08f4b5.js +0 -2
  81. package/dist/index.2e08f4b5.js.map +0 -1
  82. /package/dist/chunks/{3649.8dc5d1fe.js.LICENSE.txt → 3649.abde197c.js.LICENSE.txt} +0 -0
  83. /package/dist/chunks/{eo-auto-complete.e685a0e8.js.LICENSE.txt → eo-auto-complete.bf5ea5a8.js.LICENSE.txt} +0 -0
  84. /package/dist/chunks/{eo-dynamic-form-item.a283df8e.js.LICENSE.txt → eo-dynamic-form-item.01e53cc9.js.LICENSE.txt} +0 -0
  85. /package/dist/chunks/{eo-form-item.362208d7.js.LICENSE.txt → eo-form-item.a5db4203.js.LICENSE.txt} +0 -0
  86. /package/dist/chunks/{eo-icon-select.19e773cd.js.LICENSE.txt → eo-icon-select.7e1794dc.js.LICENSE.txt} +0 -0
  87. /package/dist/chunks/{eo-input.9425bc10.js.LICENSE.txt → eo-input.1180f4e2.js.LICENSE.txt} +0 -0
  88. /package/dist/chunks/{eo-radio.fdc26720.js.LICENSE.txt → eo-radio.bde94bc4.js.LICENSE.txt} +0 -0
  89. /package/dist/chunks/{eo-select.22939aff.js.LICENSE.txt → eo-select.6485c749.js.LICENSE.txt} +0 -0
  90. /package/dist/chunks/{eo-switch.2e6d6ce6.js.LICENSE.txt → eo-switch.18c89925.js.LICENSE.txt} +0 -0
  91. /package/dist/chunks/{eo-textarea.3cab6583.js.LICENSE.txt → eo-textarea.b6e645b7.js.LICENSE.txt} +0 -0
  92. /package/dist/chunks/{eo-upload-file.cf277c16.js.LICENSE.txt → eo-upload-file.3e9ed5ea.js.LICENSE.txt} +0 -0
  93. /package/dist/chunks/{eo-upload-image.9f8b3aaa.js.LICENSE.txt → eo-upload-image.729ca4da.js.LICENSE.txt} +0 -0
@@ -189,229 +189,101 @@
189
189
  "category": "form-input-basic"
190
190
  },
191
191
  {
192
- "name": "eo-form",
193
- "alias": [
194
- "form.general-form"
195
- ],
196
- "properties": [
197
- {
198
- "name": "layout",
199
- "description": "布局方式(默认 vertical 布局)",
200
- "default": "vertical",
201
- "type": "Layout"
202
- },
203
- {
204
- "name": "size",
205
- "description": "表单组件尺寸",
206
- "type": "ComponentSize"
207
- },
208
- {
209
- "name": "labelCol",
210
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
211
- "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
212
- "attribute": false,
213
- "type": "ColProps"
214
- },
215
- {
216
- "name": "wrapperCol",
217
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
218
- "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
219
- "attribute": false,
220
- "type": "ColProps"
221
- },
222
- {
223
- "name": "formStyle",
224
- "attribute": false,
225
- "type": "React.CSSProperties"
226
- }
227
- ],
228
- "events": [
229
- {
230
- "name": "values.change",
231
- "description": "表单值变更事件",
232
- "detail": {
233
- "description": null,
234
- "type": "Record<string, unknown>"
235
- }
236
- },
237
- {
238
- "name": "validate.success",
239
- "description": "表单验证成功时触发事件",
240
- "detail": {
241
- "type": "Record<string, unknown>"
242
- }
243
- },
244
- {
245
- "name": "validate.error",
246
- "description": "表单验证报错时触发事件",
247
- "detail": {
248
- "type": "MessageBody[]"
249
- }
250
- }
251
- ],
252
- "slots": [
253
- {
254
- "name": null,
255
- "description": "表单内容"
256
- }
257
- ],
258
- "methods": [
259
- {
260
- "name": "validate",
261
- "params": [],
262
- "description": "表单校验方法",
263
- "returns": {
264
- "type": "boolean | Record<string, unknown>"
265
- }
266
- },
267
- {
268
- "name": "setInitValue",
269
- "params": [
270
- {
271
- "name": "values",
272
- "type": "Record<string, unknown>"
273
- },
274
- {
275
- "name": "options",
276
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
277
- }
278
- ],
279
- "description": "表单设置值方法",
280
- "returns": {}
281
- },
282
- {
283
- "name": "resetFields",
284
- "params": [
285
- {
286
- "name": "name",
287
- "type": "string"
288
- }
289
- ],
290
- "description": "表单重置值方法",
291
- "returns": {}
292
- },
293
- {
294
- "name": "getFieldsValue",
295
- "params": [
296
- {
297
- "name": "name",
298
- "type": "string"
299
- }
300
- ],
301
- "description": "获取表单值方法",
302
- "returns": {}
303
- },
304
- {
305
- "name": "validateField",
306
- "params": [
307
- {
308
- "name": "name",
309
- "type": "string"
310
- }
311
- ],
312
- "description": "校验表单字段方法",
313
- "returns": {}
314
- },
315
- {
316
- "name": "resetValidateState",
317
- "params": [],
318
- "description": "重置表单校验状态方法",
319
- "returns": {}
320
- }
321
- ],
322
- "parts": [],
323
- "description": "表单构件",
324
- "category": "form-input-basic"
325
- },
326
- {
327
- "name": "eo-textarea",
192
+ "name": "eo-radio",
328
193
  "alias": [
329
- "form.general-textarea"
194
+ "form.general-radio"
330
195
  ],
331
196
  "properties": [
332
197
  {
333
198
  "name": "name",
334
- "description": "字段名称",
199
+ "description": "下拉框字段名",
335
200
  "type": "string"
336
201
  },
337
202
  {
338
203
  "name": "label",
339
- "description": "标签文字",
204
+ "description": "单选框字段说明",
340
205
  "type": "string"
341
206
  },
342
207
  {
343
- "name": "value",
344
- "description": "",
345
- "type": "string"
208
+ "name": "options",
209
+ "description": "单选框选项表",
210
+ "required": true,
211
+ "attribute": false,
212
+ "type": "GeneralOption[]"
346
213
  },
347
214
  {
348
- "name": "placeholder",
349
- "description": "占位说明",
350
- "type": "string"
215
+ "name": "value",
216
+ "description": "单选框当前选中始值",
217
+ "attribute": false,
218
+ "type": "any"
351
219
  },
352
220
  {
353
- "name": "disabled",
354
- "description": "是否禁用",
221
+ "name": "required",
222
+ "description": "是否必填",
355
223
  "type": "boolean"
356
224
  },
357
225
  {
358
- "name": "minLength",
359
- "description": "最小长度",
360
- "type": "number"
361
- },
362
- {
363
- "name": "maxLength",
364
- "description": "最大长度",
365
- "type": "number"
366
- },
367
- {
368
- "name": "autoSize",
369
- "description": "大小自适应",
226
+ "name": "message",
227
+ "description": "校验文本信息",
370
228
  "attribute": false,
371
- "type": "AutoSize"
229
+ "type": "Record<string, string>"
372
230
  },
373
231
  {
374
- "name": "required",
375
- "description": "是否必填",
232
+ "name": "disabled",
233
+ "description": "是否禁用",
376
234
  "type": "boolean"
377
235
  },
378
236
  {
379
- "name": "max",
380
- "description": "表单校验最大长度",
381
- "type": "number"
237
+ "name": "type",
238
+ "description": "单选框样式类型",
239
+ "default": "\"default\"",
240
+ "type": "RadioType"
382
241
  },
383
242
  {
384
- "name": "min",
385
- "description": "表单校验最小长度",
386
- "type": "number"
243
+ "name": "ui",
244
+ "description": "UI样式",
245
+ "default": "\"default\"",
246
+ "type": "UIType"
387
247
  },
388
248
  {
389
- "name": "message",
390
- "description": "校验信息",
391
- "attribute": false,
392
- "type": "Record<string, string>"
249
+ "name": "size",
250
+ "description": "大小,只对按钮样式生效",
251
+ "default": "\"medium\"",
252
+ "type": "ComponentSize"
393
253
  },
394
254
  {
395
- "name": "textareaStyle",
396
- "description": "自定义样式",
255
+ "name": "customStyle",
256
+ "description": "自定义radio的外层样式",
397
257
  "attribute": false,
398
258
  "type": "React.CSSProperties"
259
+ },
260
+ {
261
+ "name": "useBrick",
262
+ "description": "自定义radio的内容",
263
+ "attribute": false,
264
+ "type": "UseSingleBrickConf"
399
265
  }
400
266
  ],
401
267
  "events": [
402
268
  {
403
269
  "name": "change",
404
- "description": "",
270
+ "description": "值变化事件",
405
271
  "detail": {
406
- "description": null,
407
- "type": "string"
272
+ "type": "GeneralComplexOption | undefined"
273
+ }
274
+ },
275
+ {
276
+ "name": "options.change",
277
+ "description": "选项列表变化事件",
278
+ "detail": {
279
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
408
280
  }
409
281
  }
410
282
  ],
411
283
  "slots": [],
412
284
  "methods": [],
413
285
  "parts": [],
414
- "description": "通用多行文本输入框构件",
286
+ "description": "通用单选构件",
415
287
  "category": "form-input-basic"
416
288
  },
417
289
  {
@@ -492,124 +364,26 @@
492
364
  "name": "validator",
493
365
  "description": "表单项校验方法",
494
366
  "attribute": false,
495
- "type": "((value: any) => MessageBody)"
496
- },
497
- {
498
- "name": "needValidate",
499
- "description": "值变化时是否主动出发校验",
500
- "type": "boolean"
501
- }
502
- ],
503
- "events": [],
504
- "slots": [
505
- {
506
- "name": null,
507
- "description": "表单项内容"
508
- }
509
- ],
510
- "methods": [],
511
- "parts": [],
512
- "description": "通用输入框构件",
513
- "category": "form-input-basic",
514
- "insider": true
515
- },
516
- {
517
- "name": "eo-radio",
518
- "alias": [
519
- "form.general-radio"
520
- ],
521
- "properties": [
522
- {
523
- "name": "name",
524
- "description": "下拉框字段名",
525
- "type": "string"
526
- },
527
- {
528
- "name": "label",
529
- "description": "单选框字段说明",
530
- "type": "string"
531
- },
532
- {
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>"
555
- },
556
- {
557
- "name": "disabled",
558
- "description": "是否禁用",
559
- "type": "boolean"
560
- },
561
- {
562
- "name": "type",
563
- "description": "单选框样式类型",
564
- "default": "\"default\"",
565
- "type": "RadioType"
566
- },
567
- {
568
- "name": "ui",
569
- "description": "UI样式",
570
- "default": "\"default\"",
571
- "type": "UIType"
572
- },
573
- {
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"
590
- }
591
- ],
592
- "events": [
593
- {
594
- "name": "change",
595
- "description": "值变化事件",
596
- "detail": {
597
- "type": "GeneralComplexOption | undefined"
598
- }
367
+ "type": "((value: any) => MessageBody)"
599
368
  },
600
369
  {
601
- "name": "options.change",
602
- "description": "选项列表变化事件",
603
- "detail": {
604
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
605
- }
370
+ "name": "needValidate",
371
+ "description": "值变化时是否主动出发校验",
372
+ "type": "boolean"
373
+ }
374
+ ],
375
+ "events": [],
376
+ "slots": [
377
+ {
378
+ "name": null,
379
+ "description": "表单项内容"
606
380
  }
607
381
  ],
608
- "slots": [],
609
382
  "methods": [],
610
383
  "parts": [],
611
- "description": "通用单选构件",
612
- "category": "form-input-basic"
384
+ "description": "通用输入框构件",
385
+ "category": "form-input-basic",
386
+ "insider": true
613
387
  },
614
388
  {
615
389
  "name": "eo-select",
@@ -753,66 +527,6 @@
753
527
  "description": "通用下拉选择构件",
754
528
  "category": "form-input-basic"
755
529
  },
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
- },
816
530
  {
817
531
  "name": "eo-checkbox",
818
532
  "alias": [
@@ -905,6 +619,66 @@
905
619
  "description": "表单复选框构件",
906
620
  "category": "form-input-basic"
907
621
  },
622
+ {
623
+ "name": "eo-submit-buttons",
624
+ "alias": [
625
+ "form.submit-buttons"
626
+ ],
627
+ "properties": [
628
+ {
629
+ "name": "submitText",
630
+ "description": "提交按钮的文字",
631
+ "default": "\"提交\"",
632
+ "type": "string"
633
+ },
634
+ {
635
+ "name": "cancelText",
636
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
637
+ "type": "string"
638
+ },
639
+ {
640
+ "name": "disableAfterClick",
641
+ "description": "点击确定按钮后自动禁用",
642
+ "type": "boolean"
643
+ },
644
+ {
645
+ "name": "submitDisabled",
646
+ "description": "禁用提交按钮",
647
+ "type": "boolean"
648
+ },
649
+ {
650
+ "name": "submitType",
651
+ "description": "提交按钮类型",
652
+ "type": "ButtonType"
653
+ },
654
+ {
655
+ "name": "cancelType",
656
+ "description": "取消按钮类型",
657
+ "type": "ButtonType"
658
+ }
659
+ ],
660
+ "events": [
661
+ {
662
+ "name": "submit",
663
+ "description": "点击提交按钮触发的事件",
664
+ "detail": {
665
+ "type": "void"
666
+ }
667
+ },
668
+ {
669
+ "name": "cancel",
670
+ "description": "点击取消按钮触发的事件",
671
+ "detail": {
672
+ "type": "void"
673
+ }
674
+ }
675
+ ],
676
+ "slots": [],
677
+ "methods": [],
678
+ "parts": [],
679
+ "description": "表单提交按钮",
680
+ "category": "form-input-basic"
681
+ },
908
682
  {
909
683
  "name": "eo-dynamic-form-item",
910
684
  "alias": [
@@ -998,63 +772,70 @@
998
772
  "category": "form-input-basic"
999
773
  },
1000
774
  {
1001
- "name": "eo-icon-select",
775
+ "name": "eo-search",
1002
776
  "alias": [
1003
- "form.icon-select"
777
+ "form.general-search"
1004
778
  ],
1005
779
  "properties": [
1006
780
  {
1007
- "name": "name",
1008
- "description": "字段名称",
781
+ "name": "value",
782
+ "description": "搜索框的值",
783
+ "default": "\"\"",
1009
784
  "type": "string"
1010
785
  },
1011
786
  {
1012
- "name": "label",
1013
- "description": "字段说明",
787
+ "name": "placeholder",
788
+ "description": "提示语",
1014
789
  "type": "string"
1015
790
  },
1016
791
  {
1017
- "name": "value",
1018
- "description": "",
1019
- "attribute": false,
1020
- "type": "Icon"
792
+ "name": "autoFocus",
793
+ "description": "是否自动聚焦",
794
+ "type": "boolean"
1021
795
  },
1022
796
  {
1023
- "name": "disabled",
1024
- "description": "是否禁用",
797
+ "name": "clearable",
798
+ "description": "可以点击清除图标删除内容",
1025
799
  "type": "boolean"
1026
800
  },
1027
801
  {
1028
- "name": "required",
1029
- "description": "是否必填",
802
+ "name": "trim",
803
+ "description": "是否剔除前后空格",
1030
804
  "type": "boolean"
1031
805
  },
1032
806
  {
1033
- "name": "message",
1034
- "description": "是否必填",
1035
- "attribute": false,
1036
- "type": "Record<string, string>"
807
+ "name": "debounceTime",
808
+ "description": "默认延迟时间",
809
+ "default": "0",
810
+ "type": "number"
1037
811
  }
1038
812
  ],
1039
813
  "events": [
1040
814
  {
1041
815
  "name": "change",
1042
- "description": "值变化时触发",
816
+ "description": "输入的搜索字符,输入变化时触发",
1043
817
  "detail": {
1044
- "type": "Icon | undefined"
818
+ "type": "string"
819
+ }
820
+ },
821
+ {
822
+ "name": "search",
823
+ "description": "搜索时触发",
824
+ "detail": {
825
+ "type": "string"
1045
826
  }
1046
827
  }
1047
828
  ],
1048
829
  "slots": [],
1049
830
  "methods": [],
1050
831
  "parts": [],
1051
- "description": "图标选择构件",
832
+ "description": "搜索框",
1052
833
  "category": "form-input-basic"
1053
834
  },
1054
835
  {
1055
- "name": "eo-upload-image",
836
+ "name": "eo-icon-select",
1056
837
  "alias": [
1057
- "form.upload-image"
838
+ "form.icon-select"
1058
839
  ],
1059
840
  "properties": [
1060
841
  {
@@ -1071,28 +852,13 @@
1071
852
  "name": "value",
1072
853
  "description": "值",
1073
854
  "attribute": false,
1074
- "type": "ImageData[]"
1075
- },
1076
- {
1077
- "name": "bucketName",
1078
- "description": "对象存储桶名字",
1079
- "type": "string"
1080
- },
1081
- {
1082
- "name": "maxCount",
1083
- "description": "最大上传数量",
1084
- "type": "number"
855
+ "type": "Icon"
1085
856
  },
1086
857
  {
1087
- "name": "multiple",
1088
- "description": "是否支持选定的多张图片",
858
+ "name": "disabled",
859
+ "description": "是否禁用",
1089
860
  "type": "boolean"
1090
861
  },
1091
- {
1092
- "name": "limitSize",
1093
- "description": "上传大小限制(单位为 MB)",
1094
- "type": "number"
1095
- },
1096
862
  {
1097
863
  "name": "required",
1098
864
  "description": "是否必填",
@@ -1100,7 +866,7 @@
1100
866
  },
1101
867
  {
1102
868
  "name": "message",
1103
- "description": "校验文本信息",
869
+ "description": "是否必填",
1104
870
  "attribute": false,
1105
871
  "type": "Record<string, string>"
1106
872
  }
@@ -1110,75 +876,83 @@
1110
876
  "name": "change",
1111
877
  "description": "值变化时触发",
1112
878
  "detail": {
1113
- "type": "ImageData[]"
879
+ "type": "Icon | undefined"
1114
880
  }
1115
881
  }
1116
882
  ],
1117
883
  "slots": [],
1118
884
  "methods": [],
1119
885
  "parts": [],
1120
- "description": "上传图片构件",
886
+ "description": "图标选择构件",
1121
887
  "category": "form-input-basic"
1122
888
  },
1123
889
  {
1124
- "name": "eo-search",
890
+ "name": "eo-upload-image",
1125
891
  "alias": [
1126
- "form.general-search"
892
+ "form.upload-image"
1127
893
  ],
1128
894
  "properties": [
1129
895
  {
1130
- "name": "value",
1131
- "description": "搜索框的值",
1132
- "default": "\"\"",
896
+ "name": "name",
897
+ "description": "字段名称",
1133
898
  "type": "string"
1134
899
  },
1135
900
  {
1136
- "name": "placeholder",
1137
- "description": "提示语",
901
+ "name": "label",
902
+ "description": "字段说明",
1138
903
  "type": "string"
1139
904
  },
1140
905
  {
1141
- "name": "autoFocus",
1142
- "description": "是否自动聚焦",
1143
- "type": "boolean"
906
+ "name": "value",
907
+ "description": "",
908
+ "attribute": false,
909
+ "type": "ImageData[]"
1144
910
  },
1145
911
  {
1146
- "name": "clearable",
1147
- "description": "可以点击清除图标删除内容",
912
+ "name": "bucketName",
913
+ "description": "对象存储桶名字",
914
+ "type": "string"
915
+ },
916
+ {
917
+ "name": "maxCount",
918
+ "description": "最大上传数量",
919
+ "type": "number"
920
+ },
921
+ {
922
+ "name": "multiple",
923
+ "description": "是否支持选定的多张图片",
1148
924
  "type": "boolean"
1149
925
  },
1150
926
  {
1151
- "name": "trim",
1152
- "description": "是否剔除前后空格",
927
+ "name": "limitSize",
928
+ "description": "上传大小限制(单位为 MB)",
929
+ "type": "number"
930
+ },
931
+ {
932
+ "name": "required",
933
+ "description": "是否必填",
1153
934
  "type": "boolean"
1154
935
  },
1155
936
  {
1156
- "name": "debounceTime",
1157
- "description": "默认延迟时间",
1158
- "default": "0",
1159
- "type": "number"
937
+ "name": "message",
938
+ "description": "校验文本信息",
939
+ "attribute": false,
940
+ "type": "Record<string, string>"
1160
941
  }
1161
942
  ],
1162
943
  "events": [
1163
944
  {
1164
945
  "name": "change",
1165
- "description": "输入的搜索字符,输入变化时触发",
1166
- "detail": {
1167
- "type": "string"
1168
- }
1169
- },
1170
- {
1171
- "name": "search",
1172
- "description": "搜索时触发",
946
+ "description": "值变化时触发",
1173
947
  "detail": {
1174
- "type": "string"
948
+ "type": "ImageData[]"
1175
949
  }
1176
950
  }
1177
951
  ],
1178
952
  "slots": [],
1179
953
  "methods": [],
1180
954
  "parts": [],
1181
- "description": "搜索框",
955
+ "description": "上传图片构件",
1182
956
  "category": "form-input-basic"
1183
957
  },
1184
958
  {
@@ -1250,6 +1024,97 @@
1250
1024
  "description": "开关",
1251
1025
  "category": "form-input-basic"
1252
1026
  },
1027
+ {
1028
+ "name": "eo-textarea",
1029
+ "alias": [
1030
+ "form.general-textarea"
1031
+ ],
1032
+ "properties": [
1033
+ {
1034
+ "name": "name",
1035
+ "description": "字段名称",
1036
+ "type": "string"
1037
+ },
1038
+ {
1039
+ "name": "label",
1040
+ "description": "标签文字",
1041
+ "type": "string"
1042
+ },
1043
+ {
1044
+ "name": "value",
1045
+ "description": "值",
1046
+ "type": "string"
1047
+ },
1048
+ {
1049
+ "name": "placeholder",
1050
+ "description": "占位说明",
1051
+ "type": "string"
1052
+ },
1053
+ {
1054
+ "name": "disabled",
1055
+ "description": "是否禁用",
1056
+ "type": "boolean"
1057
+ },
1058
+ {
1059
+ "name": "minLength",
1060
+ "description": "最小长度",
1061
+ "type": "number"
1062
+ },
1063
+ {
1064
+ "name": "maxLength",
1065
+ "description": "最大长度",
1066
+ "type": "number"
1067
+ },
1068
+ {
1069
+ "name": "autoSize",
1070
+ "description": "大小自适应",
1071
+ "attribute": false,
1072
+ "type": "AutoSize"
1073
+ },
1074
+ {
1075
+ "name": "required",
1076
+ "description": "是否必填",
1077
+ "type": "boolean"
1078
+ },
1079
+ {
1080
+ "name": "max",
1081
+ "description": "表单校验最大长度",
1082
+ "type": "number"
1083
+ },
1084
+ {
1085
+ "name": "min",
1086
+ "description": "表单校验最小长度",
1087
+ "type": "number"
1088
+ },
1089
+ {
1090
+ "name": "message",
1091
+ "description": "校验信息",
1092
+ "attribute": false,
1093
+ "type": "Record<string, string>"
1094
+ },
1095
+ {
1096
+ "name": "textareaStyle",
1097
+ "description": "自定义样式",
1098
+ "attribute": false,
1099
+ "type": "React.CSSProperties"
1100
+ }
1101
+ ],
1102
+ "events": [
1103
+ {
1104
+ "name": "change",
1105
+ "description": "",
1106
+ "detail": {
1107
+ "description": null,
1108
+ "type": "string"
1109
+ }
1110
+ }
1111
+ ],
1112
+ "slots": [],
1113
+ "methods": [],
1114
+ "parts": [],
1115
+ "description": "通用多行文本输入框构件",
1116
+ "category": "form-input-basic"
1117
+ },
1253
1118
  {
1254
1119
  "name": "eo-upload-file",
1255
1120
  "properties": [
@@ -1456,6 +1321,141 @@
1456
1321
  "description": "带候选项的输入框",
1457
1322
  "category": "form-input-basic"
1458
1323
  },
1324
+ {
1325
+ "name": "eo-form",
1326
+ "alias": [
1327
+ "form.general-form"
1328
+ ],
1329
+ "properties": [
1330
+ {
1331
+ "name": "layout",
1332
+ "description": "布局方式(默认 vertical 布局)",
1333
+ "default": "vertical",
1334
+ "type": "Layout"
1335
+ },
1336
+ {
1337
+ "name": "size",
1338
+ "description": "表单组件尺寸",
1339
+ "type": "ComponentSize"
1340
+ },
1341
+ {
1342
+ "name": "labelCol",
1343
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
1344
+ "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 }",
1345
+ "attribute": false,
1346
+ "type": "ColProps"
1347
+ },
1348
+ {
1349
+ "name": "wrapperCol",
1350
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
1351
+ "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 }",
1352
+ "attribute": false,
1353
+ "type": "ColProps"
1354
+ },
1355
+ {
1356
+ "name": "formStyle",
1357
+ "attribute": false,
1358
+ "type": "React.CSSProperties"
1359
+ }
1360
+ ],
1361
+ "events": [
1362
+ {
1363
+ "name": "values.change",
1364
+ "description": "表单值变更事件",
1365
+ "detail": {
1366
+ "description": null,
1367
+ "type": "Record<string, unknown>"
1368
+ }
1369
+ },
1370
+ {
1371
+ "name": "validate.success",
1372
+ "description": "表单验证成功时触发事件",
1373
+ "detail": {
1374
+ "type": "Record<string, unknown>"
1375
+ }
1376
+ },
1377
+ {
1378
+ "name": "validate.error",
1379
+ "description": "表单验证报错时触发事件",
1380
+ "detail": {
1381
+ "type": "MessageBody[]"
1382
+ }
1383
+ }
1384
+ ],
1385
+ "slots": [
1386
+ {
1387
+ "name": null,
1388
+ "description": "表单内容"
1389
+ }
1390
+ ],
1391
+ "methods": [
1392
+ {
1393
+ "name": "validate",
1394
+ "params": [],
1395
+ "description": "表单校验方法",
1396
+ "returns": {
1397
+ "type": "boolean | Record<string, unknown>"
1398
+ }
1399
+ },
1400
+ {
1401
+ "name": "setInitValue",
1402
+ "params": [
1403
+ {
1404
+ "name": "values",
1405
+ "type": "Record<string, unknown>"
1406
+ },
1407
+ {
1408
+ "name": "options",
1409
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
1410
+ }
1411
+ ],
1412
+ "description": "表单设置值方法",
1413
+ "returns": {}
1414
+ },
1415
+ {
1416
+ "name": "resetFields",
1417
+ "params": [
1418
+ {
1419
+ "name": "name",
1420
+ "type": "string"
1421
+ }
1422
+ ],
1423
+ "description": "表单重置值方法",
1424
+ "returns": {}
1425
+ },
1426
+ {
1427
+ "name": "getFieldsValue",
1428
+ "params": [
1429
+ {
1430
+ "name": "name",
1431
+ "type": "string"
1432
+ }
1433
+ ],
1434
+ "description": "获取表单值方法",
1435
+ "returns": {}
1436
+ },
1437
+ {
1438
+ "name": "validateField",
1439
+ "params": [
1440
+ {
1441
+ "name": "name",
1442
+ "type": "string"
1443
+ }
1444
+ ],
1445
+ "description": "校验表单字段方法",
1446
+ "returns": {}
1447
+ },
1448
+ {
1449
+ "name": "resetValidateState",
1450
+ "params": [],
1451
+ "description": "重置表单校验状态方法",
1452
+ "returns": {}
1453
+ }
1454
+ ],
1455
+ "parts": [],
1456
+ "description": "表单构件",
1457
+ "category": "form-input-basic"
1458
+ },
1459
1459
  {
1460
1460
  "name": "eo-time-picker",
1461
1461
  "properties": [