@next-bricks/form 1.9.14 → 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 (103) hide show
  1. package/dist/bricks.json +26 -26
  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.4238757c.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.d92bfd8f.js → eo-select.3f97c31e.js} +3 -3
  61. package/dist/chunks/{eo-select.d92bfd8f.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 +10 -10
  79. package/dist/index.f688cc38.js +2 -0
  80. package/dist/index.f688cc38.js.map +1 -0
  81. package/dist/manifest.json +346 -346
  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.4238757c.js.map +0 -1
  87. package/dist/chunks/eo-form.f1683fe8.js.map +0 -1
  88. package/dist/chunks/main.7551926f.js +0 -2
  89. package/dist/chunks/main.7551926f.js.map +0 -1
  90. package/dist/index.1f780ab7.js +0 -2
  91. package/dist/index.1f780ab7.js.map +0 -1
  92. /package/dist/chunks/{9259.4238757c.js.LICENSE.txt → 9259.55ccc5f1.js.LICENSE.txt} +0 -0
  93. /package/dist/chunks/{eo-auto-complete.6db6aca5.js.LICENSE.txt → eo-auto-complete.99ab8d1f.js.LICENSE.txt} +0 -0
  94. /package/dist/chunks/{eo-dynamic-form-item.c2783b20.js.LICENSE.txt → eo-dynamic-form-item.96801e11.js.LICENSE.txt} +0 -0
  95. /package/dist/chunks/{eo-form-item.d1189f7c.js.LICENSE.txt → eo-form-item.a0e5733a.js.LICENSE.txt} +0 -0
  96. /package/dist/chunks/{eo-icon-select.ce687969.js.LICENSE.txt → eo-icon-select.5cc56361.js.LICENSE.txt} +0 -0
  97. /package/dist/chunks/{eo-input.6fb8e34e.js.LICENSE.txt → eo-input.8e2c54c5.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{eo-radio.9a162d3d.js.LICENSE.txt → eo-radio.e5293318.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{eo-select.d92bfd8f.js.LICENSE.txt → eo-select.3f97c31e.js.LICENSE.txt} +0 -0
  100. /package/dist/chunks/{eo-switch.5326b853.js.LICENSE.txt → eo-switch.f34c71c5.js.LICENSE.txt} +0 -0
  101. /package/dist/chunks/{eo-textarea.70f5d4cf.js.LICENSE.txt → eo-textarea.63e2fd55.js.LICENSE.txt} +0 -0
  102. /package/dist/chunks/{eo-upload-file.065dde0e.js.LICENSE.txt → eo-upload-file.afce9917.js.LICENSE.txt} +0 -0
  103. /package/dist/chunks/{eo-upload-image.ec21b2fc.js.LICENSE.txt → eo-upload-image.5573190f.js.LICENSE.txt} +0 -0
@@ -188,6 +188,232 @@
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
+ },
191
417
  {
192
418
  "name": "eo-form-item",
193
419
  "alias": [
@@ -385,157 +611,6 @@
385
611
  "description": "通用单选构件",
386
612
  "category": "form-input-basic"
387
613
  },
388
- {
389
- "name": "eo-textarea",
390
- "alias": [
391
- "form.general-textarea"
392
- ],
393
- "properties": [
394
- {
395
- "name": "name",
396
- "description": "字段名称",
397
- "type": "string"
398
- },
399
- {
400
- "name": "label",
401
- "description": "标签文字",
402
- "type": "string"
403
- },
404
- {
405
- "name": "value",
406
- "description": "值",
407
- "type": "string"
408
- },
409
- {
410
- "name": "placeholder",
411
- "description": "占位说明",
412
- "type": "string"
413
- },
414
- {
415
- "name": "disabled",
416
- "description": "是否禁用",
417
- "type": "boolean"
418
- },
419
- {
420
- "name": "minLength",
421
- "description": "最小长度",
422
- "type": "number"
423
- },
424
- {
425
- "name": "maxLength",
426
- "description": "最大长度",
427
- "type": "number"
428
- },
429
- {
430
- "name": "autoSize",
431
- "description": "大小自适应",
432
- "attribute": false,
433
- "type": "AutoSize"
434
- },
435
- {
436
- "name": "required",
437
- "description": "是否必填",
438
- "type": "boolean"
439
- },
440
- {
441
- "name": "max",
442
- "description": "表单校验最大长度",
443
- "type": "number"
444
- },
445
- {
446
- "name": "min",
447
- "description": "表单校验最小长度",
448
- "type": "number"
449
- },
450
- {
451
- "name": "message",
452
- "description": "校验信息",
453
- "attribute": false,
454
- "type": "Record<string, string>"
455
- },
456
- {
457
- "name": "textareaStyle",
458
- "description": "自定义样式",
459
- "attribute": false,
460
- "type": "React.CSSProperties"
461
- }
462
- ],
463
- "events": [
464
- {
465
- "name": "change",
466
- "description": "",
467
- "detail": {
468
- "description": null,
469
- "type": "string"
470
- }
471
- }
472
- ],
473
- "slots": [],
474
- "methods": [],
475
- "parts": [],
476
- "description": "通用多行文本输入框构件",
477
- "category": "form-input-basic"
478
- },
479
- {
480
- "name": "eo-submit-buttons",
481
- "alias": [
482
- "form.submit-buttons"
483
- ],
484
- "properties": [
485
- {
486
- "name": "submitText",
487
- "description": "提交按钮的文字",
488
- "default": "\"提交\"",
489
- "type": "string"
490
- },
491
- {
492
- "name": "cancelText",
493
- "description": "取消按钮的文字,不设置则不显示取消按钮",
494
- "type": "string"
495
- },
496
- {
497
- "name": "disableAfterClick",
498
- "description": "点击确定按钮后自动禁用",
499
- "type": "boolean"
500
- },
501
- {
502
- "name": "submitDisabled",
503
- "description": "禁用提交按钮",
504
- "type": "boolean"
505
- },
506
- {
507
- "name": "submitType",
508
- "description": "提交按钮类型",
509
- "type": "ButtonType"
510
- },
511
- {
512
- "name": "cancelType",
513
- "description": "取消按钮类型",
514
- "type": "ButtonType"
515
- }
516
- ],
517
- "events": [
518
- {
519
- "name": "submit",
520
- "description": "点击提交按钮触发的事件",
521
- "detail": {
522
- "type": "void"
523
- }
524
- },
525
- {
526
- "name": "cancel",
527
- "description": "点击取消按钮触发的事件",
528
- "detail": {
529
- "type": "void"
530
- }
531
- }
532
- ],
533
- "slots": [],
534
- "methods": [],
535
- "parts": [],
536
- "description": "表单提交按钮",
537
- "category": "form-input-basic"
538
- },
539
614
  {
540
615
  "name": "eo-select",
541
616
  "alias": [
@@ -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": [
@@ -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": []