@next-bricks/form 1.9.13 → 1.9.15

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 (104) hide show
  1. package/dist/bricks.json +18 -18
  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/{3171.1ecb4921.js → 3171.995e4c39.js} +2 -2
  15. package/dist/chunks/{3171.1ecb4921.js.map → 3171.995e4c39.js.map} +1 -1
  16. package/dist/chunks/{3933.7a45287d.js → 3933.1b01da95.js} +2 -2
  17. package/dist/chunks/{3933.7a45287d.js.map → 3933.1b01da95.js.map} +1 -1
  18. package/dist/chunks/{4658.aa675c0b.js → 4658.c9e8c145.js} +2 -2
  19. package/dist/chunks/{2277.483bec61.js.map → 4658.c9e8c145.js.map} +1 -1
  20. package/dist/chunks/{5552.625e5a95.js → 5552.d35187e2.js} +2 -2
  21. package/dist/chunks/{5552.625e5a95.js.map → 5552.d35187e2.js.map} +1 -1
  22. package/dist/chunks/{6314.7428b72b.js → 6314.125d31fd.js} +2 -2
  23. package/dist/chunks/{6314.7428b72b.js.map → 6314.125d31fd.js.map} +1 -1
  24. package/dist/chunks/{7115.dcf0df96.js → 7115.f4d3b3d8.js} +2 -2
  25. package/dist/chunks/{7115.dcf0df96.js.map → 7115.f4d3b3d8.js.map} +1 -1
  26. package/dist/chunks/{7733.a022f226.js → 7733.1e448413.js} +2 -2
  27. package/dist/chunks/{7733.a022f226.js.map → 7733.1e448413.js.map} +1 -1
  28. package/dist/chunks/{790.950b08a8.js → 790.013d980d.js} +2 -2
  29. package/dist/chunks/{790.950b08a8.js.map → 790.013d980d.js.map} +1 -1
  30. package/dist/chunks/9248.4b0f6d06.js +2 -0
  31. package/dist/chunks/9248.4b0f6d06.js.map +1 -0
  32. package/dist/chunks/{9259.4313ee3f.js → 9259.55ccc5f1.js} +3 -3
  33. package/dist/chunks/9259.55ccc5f1.js.map +1 -0
  34. package/dist/chunks/{9496.d3408683.js → 9496.fde45913.js} +2 -2
  35. package/dist/chunks/{9496.d3408683.js.map → 9496.fde45913.js.map} +1 -1
  36. package/dist/chunks/{9559.07f9e152.js → 9559.8b30d9d3.js} +2 -2
  37. package/dist/chunks/{9559.07f9e152.js.map → 9559.8b30d9d3.js.map} +1 -1
  38. package/dist/chunks/{eo-auto-complete.6db6aca5.js → eo-auto-complete.99ab8d1f.js} +3 -3
  39. package/dist/chunks/{eo-auto-complete.6db6aca5.js.map → eo-auto-complete.99ab8d1f.js.map} +1 -1
  40. package/dist/chunks/{eo-checkbox.6e4de7f0.js → eo-checkbox.722e5d0a.js} +2 -2
  41. package/dist/chunks/{eo-checkbox.6e4de7f0.js.map → eo-checkbox.722e5d0a.js.map} +1 -1
  42. package/dist/chunks/{eo-color-picker.cdb362a7.js → eo-color-picker.3fda3f30.js} +2 -2
  43. package/dist/chunks/{eo-color-picker.cdb362a7.js.map → eo-color-picker.3fda3f30.js.map} +1 -1
  44. package/dist/chunks/{eo-date-picker.9361e87a.js → eo-date-picker.203db4e1.js} +2 -2
  45. package/dist/chunks/{eo-date-picker.9361e87a.js.map → eo-date-picker.203db4e1.js.map} +1 -1
  46. package/dist/chunks/{eo-dynamic-form-item.c2783b20.js → eo-dynamic-form-item.96801e11.js} +3 -3
  47. package/dist/chunks/{eo-dynamic-form-item.c2783b20.js.map → eo-dynamic-form-item.96801e11.js.map} +1 -1
  48. package/dist/chunks/{eo-form-item.d1189f7c.js → eo-form-item.a0e5733a.js} +3 -3
  49. package/dist/chunks/{eo-form-item.d1189f7c.js.map → eo-form-item.a0e5733a.js.map} +1 -1
  50. package/dist/chunks/{eo-form.f1683fe8.js → eo-form.91fe39eb.js} +2 -2
  51. package/dist/chunks/eo-form.91fe39eb.js.map +1 -0
  52. package/dist/chunks/{eo-icon-select.ce687969.js → eo-icon-select.5cc56361.js} +3 -3
  53. package/dist/chunks/{eo-icon-select.ce687969.js.map → eo-icon-select.5cc56361.js.map} +1 -1
  54. package/dist/chunks/{eo-input.6fb8e34e.js → eo-input.8e2c54c5.js} +3 -3
  55. package/dist/chunks/{eo-input.6fb8e34e.js.map → eo-input.8e2c54c5.js.map} +1 -1
  56. package/dist/chunks/{eo-radio.9a162d3d.js → eo-radio.e5293318.js} +3 -3
  57. package/dist/chunks/{eo-radio.9a162d3d.js.map → eo-radio.e5293318.js.map} +1 -1
  58. package/dist/chunks/{eo-search.12bbc094.js → eo-search.a4788513.js} +2 -2
  59. package/dist/chunks/{eo-search.12bbc094.js.map → eo-search.a4788513.js.map} +1 -1
  60. package/dist/chunks/eo-select.3f97c31e.js +3 -0
  61. package/dist/chunks/{eo-select.729ec0cc.js.map → eo-select.3f97c31e.js.map} +1 -1
  62. package/dist/chunks/{eo-submit-buttons.30eaa10f.js → eo-submit-buttons.930edce3.js} +2 -2
  63. package/dist/chunks/{eo-submit-buttons.30eaa10f.js.map → eo-submit-buttons.930edce3.js.map} +1 -1
  64. package/dist/chunks/{eo-switch.5326b853.js → eo-switch.f34c71c5.js} +3 -3
  65. package/dist/chunks/{eo-switch.5326b853.js.map → eo-switch.f34c71c5.js.map} +1 -1
  66. package/dist/chunks/{eo-textarea.70f5d4cf.js → eo-textarea.63e2fd55.js} +3 -3
  67. package/dist/chunks/{eo-textarea.70f5d4cf.js.map → eo-textarea.63e2fd55.js.map} +1 -1
  68. package/dist/chunks/{eo-time-picker.846a5acc.js → eo-time-picker.75cf4fe2.js} +2 -2
  69. package/dist/chunks/{eo-time-picker.846a5acc.js.map → eo-time-picker.75cf4fe2.js.map} +1 -1
  70. package/dist/chunks/{eo-time-range-picker.9062f507.js → eo-time-range-picker.4f2c6619.js} +2 -2
  71. package/dist/chunks/{eo-time-range-picker.9062f507.js.map → eo-time-range-picker.4f2c6619.js.map} +1 -1
  72. package/dist/chunks/{eo-upload-file.065dde0e.js → eo-upload-file.afce9917.js} +3 -3
  73. package/dist/chunks/{eo-upload-file.065dde0e.js.map → eo-upload-file.afce9917.js.map} +1 -1
  74. package/dist/chunks/{eo-upload-image.ec21b2fc.js → eo-upload-image.5573190f.js} +3 -3
  75. package/dist/chunks/{eo-upload-image.ec21b2fc.js.map → eo-upload-image.5573190f.js.map} +1 -1
  76. package/dist/chunks/main.ae02dd07.js +2 -0
  77. package/dist/chunks/main.ae02dd07.js.map +1 -0
  78. package/dist/examples.json +9 -9
  79. package/dist/index.f688cc38.js +2 -0
  80. package/dist/index.f688cc38.js.map +1 -0
  81. package/dist/manifest.json +386 -386
  82. package/dist/types.json +1083 -1083
  83. package/package.json +4 -4
  84. package/dist/chunks/9248.43b18785.js +0 -2
  85. package/dist/chunks/9248.43b18785.js.map +0 -1
  86. package/dist/chunks/9259.4313ee3f.js.map +0 -1
  87. package/dist/chunks/eo-form.f1683fe8.js.map +0 -1
  88. package/dist/chunks/eo-select.729ec0cc.js +0 -3
  89. package/dist/chunks/main.873d1f86.js +0 -2
  90. package/dist/chunks/main.873d1f86.js.map +0 -1
  91. package/dist/index.ea71571d.js +0 -2
  92. package/dist/index.ea71571d.js.map +0 -1
  93. /package/dist/chunks/{9259.4313ee3f.js.LICENSE.txt → 9259.55ccc5f1.js.LICENSE.txt} +0 -0
  94. /package/dist/chunks/{eo-auto-complete.6db6aca5.js.LICENSE.txt → eo-auto-complete.99ab8d1f.js.LICENSE.txt} +0 -0
  95. /package/dist/chunks/{eo-dynamic-form-item.c2783b20.js.LICENSE.txt → eo-dynamic-form-item.96801e11.js.LICENSE.txt} +0 -0
  96. /package/dist/chunks/{eo-form-item.d1189f7c.js.LICENSE.txt → eo-form-item.a0e5733a.js.LICENSE.txt} +0 -0
  97. /package/dist/chunks/{eo-icon-select.ce687969.js.LICENSE.txt → eo-icon-select.5cc56361.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{eo-input.6fb8e34e.js.LICENSE.txt → eo-input.8e2c54c5.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{eo-radio.9a162d3d.js.LICENSE.txt → eo-radio.e5293318.js.LICENSE.txt} +0 -0
  100. /package/dist/chunks/{eo-select.729ec0cc.js.LICENSE.txt → eo-select.3f97c31e.js.LICENSE.txt} +0 -0
  101. /package/dist/chunks/{eo-switch.5326b853.js.LICENSE.txt → eo-switch.f34c71c5.js.LICENSE.txt} +0 -0
  102. /package/dist/chunks/{eo-textarea.70f5d4cf.js.LICENSE.txt → eo-textarea.63e2fd55.js.LICENSE.txt} +0 -0
  103. /package/dist/chunks/{eo-upload-file.065dde0e.js.LICENSE.txt → eo-upload-file.afce9917.js.LICENSE.txt} +0 -0
  104. /package/dist/chunks/{eo-upload-image.ec21b2fc.js.LICENSE.txt → eo-upload-image.5573190f.js.LICENSE.txt} +0 -0
@@ -188,6 +188,331 @@
188
188
  "description": "通用输入框构件",
189
189
  "category": "form-input-basic"
190
190
  },
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",
328
+ "alias": [
329
+ "form.general-textarea"
330
+ ],
331
+ "properties": [
332
+ {
333
+ "name": "name",
334
+ "description": "字段名称",
335
+ "type": "string"
336
+ },
337
+ {
338
+ "name": "label",
339
+ "description": "标签文字",
340
+ "type": "string"
341
+ },
342
+ {
343
+ "name": "value",
344
+ "description": "值",
345
+ "type": "string"
346
+ },
347
+ {
348
+ "name": "placeholder",
349
+ "description": "占位说明",
350
+ "type": "string"
351
+ },
352
+ {
353
+ "name": "disabled",
354
+ "description": "是否禁用",
355
+ "type": "boolean"
356
+ },
357
+ {
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": "大小自适应",
370
+ "attribute": false,
371
+ "type": "AutoSize"
372
+ },
373
+ {
374
+ "name": "required",
375
+ "description": "是否必填",
376
+ "type": "boolean"
377
+ },
378
+ {
379
+ "name": "max",
380
+ "description": "表单校验最大长度",
381
+ "type": "number"
382
+ },
383
+ {
384
+ "name": "min",
385
+ "description": "表单校验最小长度",
386
+ "type": "number"
387
+ },
388
+ {
389
+ "name": "message",
390
+ "description": "校验信息",
391
+ "attribute": false,
392
+ "type": "Record<string, string>"
393
+ },
394
+ {
395
+ "name": "textareaStyle",
396
+ "description": "自定义样式",
397
+ "attribute": false,
398
+ "type": "React.CSSProperties"
399
+ }
400
+ ],
401
+ "events": [
402
+ {
403
+ "name": "change",
404
+ "description": "",
405
+ "detail": {
406
+ "description": null,
407
+ "type": "string"
408
+ }
409
+ }
410
+ ],
411
+ "slots": [],
412
+ "methods": [],
413
+ "parts": [],
414
+ "description": "通用多行文本输入框构件",
415
+ "category": "form-input-basic"
416
+ },
417
+ {
418
+ "name": "eo-form-item",
419
+ "alias": [
420
+ "form.general-form-item"
421
+ ],
422
+ "properties": [
423
+ {
424
+ "name": "formElement",
425
+ "attribute": false,
426
+ "type": "Form"
427
+ },
428
+ {
429
+ "name": "curElement",
430
+ "attribute": false,
431
+ "type": "HTMLElement"
432
+ },
433
+ {
434
+ "name": "name",
435
+ "description": "字段名称",
436
+ "type": "string"
437
+ },
438
+ {
439
+ "name": "label",
440
+ "type": "string"
441
+ },
442
+ {
443
+ "name": "pattern",
444
+ "type": "string"
445
+ },
446
+ {
447
+ "name": "message",
448
+ "attribute": false,
449
+ "type": "Record<string, string>"
450
+ },
451
+ {
452
+ "name": "max",
453
+ "type": "number"
454
+ },
455
+ {
456
+ "name": "min",
457
+ "type": "number"
458
+ },
459
+ {
460
+ "name": "required",
461
+ "description": "表单项是否必填",
462
+ "type": "boolean"
463
+ },
464
+ {
465
+ "name": "value",
466
+ "description": "初始值",
467
+ "type": "string"
468
+ },
469
+ {
470
+ "name": "valuePropsName",
471
+ "type": "string"
472
+ },
473
+ {
474
+ "name": "layout",
475
+ "type": "Layout"
476
+ },
477
+ {
478
+ "name": "size",
479
+ "type": "ComponentSize"
480
+ },
481
+ {
482
+ "name": "trim",
483
+ "description": "是否自动去除前后的空白字符",
484
+ "default": "true"
485
+ },
486
+ {
487
+ "name": "trigger",
488
+ "description": "事件触发方法名",
489
+ "type": "string"
490
+ },
491
+ {
492
+ "name": "validator",
493
+ "description": "表单项校验方法",
494
+ "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
+ },
191
516
  {
192
517
  "name": "eo-radio",
193
518
  "alias": [
@@ -428,105 +753,6 @@
428
753
  "description": "通用下拉选择构件",
429
754
  "category": "form-input-basic"
430
755
  },
431
- {
432
- "name": "eo-form-item",
433
- "alias": [
434
- "form.general-form-item"
435
- ],
436
- "properties": [
437
- {
438
- "name": "formElement",
439
- "attribute": false,
440
- "type": "Form"
441
- },
442
- {
443
- "name": "curElement",
444
- "attribute": false,
445
- "type": "HTMLElement"
446
- },
447
- {
448
- "name": "name",
449
- "description": "字段名称",
450
- "type": "string"
451
- },
452
- {
453
- "name": "label",
454
- "type": "string"
455
- },
456
- {
457
- "name": "pattern",
458
- "type": "string"
459
- },
460
- {
461
- "name": "message",
462
- "attribute": false,
463
- "type": "Record<string, string>"
464
- },
465
- {
466
- "name": "max",
467
- "type": "number"
468
- },
469
- {
470
- "name": "min",
471
- "type": "number"
472
- },
473
- {
474
- "name": "required",
475
- "description": "表单项是否必填",
476
- "type": "boolean"
477
- },
478
- {
479
- "name": "value",
480
- "description": "初始值",
481
- "type": "string"
482
- },
483
- {
484
- "name": "valuePropsName",
485
- "type": "string"
486
- },
487
- {
488
- "name": "layout",
489
- "type": "Layout"
490
- },
491
- {
492
- "name": "size",
493
- "type": "ComponentSize"
494
- },
495
- {
496
- "name": "trim",
497
- "description": "是否自动去除前后的空白字符",
498
- "default": "true"
499
- },
500
- {
501
- "name": "trigger",
502
- "description": "事件触发方法名",
503
- "type": "string"
504
- },
505
- {
506
- "name": "validator",
507
- "description": "表单项校验方法",
508
- "attribute": false,
509
- "type": "((value: any) => MessageBody)"
510
- },
511
- {
512
- "name": "needValidate",
513
- "description": "值变化时是否主动出发校验",
514
- "type": "boolean"
515
- }
516
- ],
517
- "events": [],
518
- "slots": [
519
- {
520
- "name": null,
521
- "description": "表单项内容"
522
- }
523
- ],
524
- "methods": [],
525
- "parts": [],
526
- "description": "通用输入框构件",
527
- "category": "form-input-basic",
528
- "insider": true
529
- },
530
756
  {
531
757
  "name": "eo-submit-buttons",
532
758
  "alias": [
@@ -676,98 +902,7 @@
676
902
  "slots": [],
677
903
  "methods": [],
678
904
  "parts": [],
679
- "description": "表单复选框构件",
680
- "category": "form-input-basic"
681
- },
682
- {
683
- "name": "eo-textarea",
684
- "alias": [
685
- "form.general-textarea"
686
- ],
687
- "properties": [
688
- {
689
- "name": "name",
690
- "description": "字段名称",
691
- "type": "string"
692
- },
693
- {
694
- "name": "label",
695
- "description": "标签文字",
696
- "type": "string"
697
- },
698
- {
699
- "name": "value",
700
- "description": "值",
701
- "type": "string"
702
- },
703
- {
704
- "name": "placeholder",
705
- "description": "占位说明",
706
- "type": "string"
707
- },
708
- {
709
- "name": "disabled",
710
- "description": "是否禁用",
711
- "type": "boolean"
712
- },
713
- {
714
- "name": "minLength",
715
- "description": "最小长度",
716
- "type": "number"
717
- },
718
- {
719
- "name": "maxLength",
720
- "description": "最大长度",
721
- "type": "number"
722
- },
723
- {
724
- "name": "autoSize",
725
- "description": "大小自适应",
726
- "attribute": false,
727
- "type": "AutoSize"
728
- },
729
- {
730
- "name": "required",
731
- "description": "是否必填",
732
- "type": "boolean"
733
- },
734
- {
735
- "name": "max",
736
- "description": "表单校验最大长度",
737
- "type": "number"
738
- },
739
- {
740
- "name": "min",
741
- "description": "表单校验最小长度",
742
- "type": "number"
743
- },
744
- {
745
- "name": "message",
746
- "description": "校验信息",
747
- "attribute": false,
748
- "type": "Record<string, string>"
749
- },
750
- {
751
- "name": "textareaStyle",
752
- "description": "自定义样式",
753
- "attribute": false,
754
- "type": "React.CSSProperties"
755
- }
756
- ],
757
- "events": [
758
- {
759
- "name": "change",
760
- "description": "",
761
- "detail": {
762
- "description": null,
763
- "type": "string"
764
- }
765
- }
766
- ],
767
- "slots": [],
768
- "methods": [],
769
- "parts": [],
770
- "description": "通用多行文本输入框构件",
905
+ "description": "表单复选框构件",
771
906
  "category": "form-input-basic"
772
907
  },
773
908
  {
@@ -977,141 +1112,6 @@
977
1112
  "description": "图标选择构件",
978
1113
  "category": "form-input-basic"
979
1114
  },
980
- {
981
- "name": "eo-form",
982
- "alias": [
983
- "form.general-form"
984
- ],
985
- "properties": [
986
- {
987
- "name": "layout",
988
- "description": "布局方式(默认 vertical 布局)",
989
- "default": "vertical",
990
- "type": "Layout"
991
- },
992
- {
993
- "name": "size",
994
- "description": "表单组件尺寸",
995
- "type": "ComponentSize"
996
- },
997
- {
998
- "name": "labelCol",
999
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
1000
- "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 }",
1001
- "attribute": false,
1002
- "type": "ColProps"
1003
- },
1004
- {
1005
- "name": "wrapperCol",
1006
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
1007
- "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 }",
1008
- "attribute": false,
1009
- "type": "ColProps"
1010
- },
1011
- {
1012
- "name": "formStyle",
1013
- "attribute": false,
1014
- "type": "React.CSSProperties"
1015
- }
1016
- ],
1017
- "events": [
1018
- {
1019
- "name": "values.change",
1020
- "description": "表单值变更事件",
1021
- "detail": {
1022
- "description": null,
1023
- "type": "Record<string, unknown>"
1024
- }
1025
- },
1026
- {
1027
- "name": "validate.success",
1028
- "description": "表单验证成功时触发事件",
1029
- "detail": {
1030
- "type": "Record<string, unknown>"
1031
- }
1032
- },
1033
- {
1034
- "name": "validate.error",
1035
- "description": "表单验证报错时触发事件",
1036
- "detail": {
1037
- "type": "MessageBody[]"
1038
- }
1039
- }
1040
- ],
1041
- "slots": [
1042
- {
1043
- "name": null,
1044
- "description": "表单内容"
1045
- }
1046
- ],
1047
- "methods": [
1048
- {
1049
- "name": "validate",
1050
- "params": [],
1051
- "description": "表单校验方法",
1052
- "returns": {
1053
- "type": "boolean | Record<string, unknown>"
1054
- }
1055
- },
1056
- {
1057
- "name": "setInitValue",
1058
- "params": [
1059
- {
1060
- "name": "values",
1061
- "type": "Record<string, unknown>"
1062
- },
1063
- {
1064
- "name": "options",
1065
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
1066
- }
1067
- ],
1068
- "description": "表单设置值方法",
1069
- "returns": {}
1070
- },
1071
- {
1072
- "name": "resetFields",
1073
- "params": [
1074
- {
1075
- "name": "name",
1076
- "type": "string"
1077
- }
1078
- ],
1079
- "description": "表单重置值方法",
1080
- "returns": {}
1081
- },
1082
- {
1083
- "name": "getFieldsValue",
1084
- "params": [
1085
- {
1086
- "name": "name",
1087
- "type": "string"
1088
- }
1089
- ],
1090
- "description": "获取表单值方法",
1091
- "returns": {}
1092
- },
1093
- {
1094
- "name": "validateField",
1095
- "params": [
1096
- {
1097
- "name": "name",
1098
- "type": "string"
1099
- }
1100
- ],
1101
- "description": "校验表单字段方法",
1102
- "returns": {}
1103
- },
1104
- {
1105
- "name": "resetValidateState",
1106
- "params": [],
1107
- "description": "重置表单校验状态方法",
1108
- "returns": {}
1109
- }
1110
- ],
1111
- "parts": [],
1112
- "description": "表单构件",
1113
- "category": "form-input-basic"
1114
- },
1115
1115
  {
1116
1116
  "name": "eo-upload-image",
1117
1117
  "alias": [
@@ -1632,24 +1632,27 @@
1632
1632
  "category": "form-input-basic"
1633
1633
  },
1634
1634
  {
1635
- "name": "eo-time-range-picker",
1635
+ "name": "eo-color-picker",
1636
1636
  "properties": [
1637
1637
  {
1638
1638
  "name": "name",
1639
- "description": "时间段选择器字段名",
1639
+ "description": "字段名称",
1640
1640
  "type": "string"
1641
1641
  },
1642
1642
  {
1643
1643
  "name": "label",
1644
- "description": "时间段选择器说明",
1644
+ "description": "字段说明",
1645
1645
  "type": "string"
1646
1646
  },
1647
1647
  {
1648
1648
  "name": "value",
1649
- "description": "时间段选择器的初始值",
1650
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1651
- "attribute": false,
1652
- "type": "TimeRange"
1649
+ "description": "",
1650
+ "type": "string"
1651
+ },
1652
+ {
1653
+ "name": "defaultValue",
1654
+ "description": "颜色默认的值",
1655
+ "type": "string | Color"
1653
1656
  },
1654
1657
  {
1655
1658
  "name": "required",
@@ -1657,72 +1660,74 @@
1657
1660
  "type": "boolean"
1658
1661
  },
1659
1662
  {
1660
- "name": "rangeType",
1661
- "description": "时间段类型",
1663
+ "name": "allowClear",
1664
+ "description": "允许清除选择的颜色",
1665
+ "type": "boolean"
1666
+ },
1667
+ {
1668
+ "name": "size",
1669
+ "description": "设置触发器大小",
1670
+ "default": "middle",
1662
1671
  "attribute": false,
1663
- "type": "RangeType"
1672
+ "type": "\"small\" | \"middle\" | \"large\""
1664
1673
  },
1665
1674
  {
1666
- "name": "selectNearDays",
1667
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1668
- "type": "number"
1675
+ "name": "showText",
1676
+ "description": "显示颜色文本",
1677
+ "type": "boolean"
1669
1678
  },
1670
1679
  {
1671
- "name": "emitChangeOnInit",
1672
- "description": "",
1673
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1680
+ "name": "disabled",
1681
+ "description": "是否禁用",
1674
1682
  "type": "boolean"
1675
1683
  },
1676
1684
  {
1677
- "name": "presetRanges",
1678
- "description": "",
1679
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1685
+ "name": "format",
1686
+ "description": "颜色格式",
1687
+ "default": "hex",
1680
1688
  "attribute": false,
1681
- "type": "presetRangeType[]"
1689
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1682
1690
  },
1683
1691
  {
1684
- "name": "validator",
1692
+ "name": "configProps",
1693
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1685
1694
  "attribute": false,
1686
- "type": "((value: any) => MessageBody | string)"
1695
+ "type": "Partial<ColorPickerProps>"
1687
1696
  }
1688
1697
  ],
1689
1698
  "events": [
1690
1699
  {
1691
1700
  "name": "change",
1692
- "description": "时间段变化时触发",
1701
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1693
1702
  "detail": {
1694
- "type": "TimeRange"
1703
+ "type": "string | undefined"
1695
1704
  }
1696
1705
  }
1697
1706
  ],
1698
1707
  "slots": [],
1699
1708
  "methods": [],
1700
1709
  "parts": [],
1701
- "description": "时间区间选择器",
1702
- "category": "form-input-basic"
1710
+ "description": "构件 `eo-color-picker`"
1703
1711
  },
1704
1712
  {
1705
- "name": "eo-color-picker",
1713
+ "name": "eo-time-range-picker",
1706
1714
  "properties": [
1707
1715
  {
1708
1716
  "name": "name",
1709
- "description": "字段名称",
1717
+ "description": "时间段选择器字段名",
1710
1718
  "type": "string"
1711
1719
  },
1712
1720
  {
1713
1721
  "name": "label",
1714
- "description": "字段说明",
1722
+ "description": "时间段选择器说明",
1715
1723
  "type": "string"
1716
1724
  },
1717
1725
  {
1718
1726
  "name": "value",
1719
- "description": "",
1720
- "type": "string"
1721
- },
1722
- {
1723
- "name": "defaultValue",
1724
- "description": "颜色默认的值",
1725
- "type": "string | Color"
1727
+ "description": "时间段选择器的初始值",
1728
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1729
+ "attribute": false,
1730
+ "type": "TimeRange"
1726
1731
  },
1727
1732
  {
1728
1733
  "name": "required",
@@ -1730,54 +1735,49 @@
1730
1735
  "type": "boolean"
1731
1736
  },
1732
1737
  {
1733
- "name": "allowClear",
1734
- "description": "允许清除选择的颜色",
1735
- "type": "boolean"
1736
- },
1737
- {
1738
- "name": "size",
1739
- "description": "设置触发器大小",
1740
- "default": "middle",
1738
+ "name": "rangeType",
1739
+ "description": "时间段类型",
1741
1740
  "attribute": false,
1742
- "type": "\"small\" | \"middle\" | \"large\""
1741
+ "type": "RangeType"
1743
1742
  },
1744
1743
  {
1745
- "name": "showText",
1746
- "description": "显示颜色文本",
1747
- "type": "boolean"
1744
+ "name": "selectNearDays",
1745
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1746
+ "type": "number"
1748
1747
  },
1749
1748
  {
1750
- "name": "disabled",
1751
- "description": "是否禁用",
1749
+ "name": "emitChangeOnInit",
1750
+ "description": "",
1751
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1752
1752
  "type": "boolean"
1753
1753
  },
1754
1754
  {
1755
- "name": "format",
1756
- "description": "颜色格式",
1757
- "default": "hex",
1755
+ "name": "presetRanges",
1756
+ "description": "",
1757
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1758
1758
  "attribute": false,
1759
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1759
+ "type": "presetRangeType[]"
1760
1760
  },
1761
1761
  {
1762
- "name": "configProps",
1763
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1762
+ "name": "validator",
1764
1763
  "attribute": false,
1765
- "type": "Partial<ColorPickerProps>"
1764
+ "type": "((value: any) => MessageBody | string)"
1766
1765
  }
1767
1766
  ],
1768
1767
  "events": [
1769
1768
  {
1770
1769
  "name": "change",
1771
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1770
+ "description": "时间段变化时触发",
1772
1771
  "detail": {
1773
- "type": "string | undefined"
1772
+ "type": "TimeRange"
1774
1773
  }
1775
1774
  }
1776
1775
  ],
1777
1776
  "slots": [],
1778
1777
  "methods": [],
1779
1778
  "parts": [],
1780
- "description": "构件 `eo-color-picker`"
1779
+ "description": "时间区间选择器",
1780
+ "category": "form-input-basic"
1781
1781
  }
1782
1782
  ],
1783
1783
  "providers": []