@next-bricks/form 1.21.13 → 1.21.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 (89) hide show
  1. package/dist/bricks.json +27 -27
  2. package/dist/chunks/1889.b4966a67.js +2 -0
  3. package/dist/chunks/1889.b4966a67.js.map +1 -0
  4. package/dist/chunks/{2537.be4cf82c.js → 2537.f8b70fca.js} +2 -2
  5. package/dist/chunks/{2537.be4cf82c.js.map → 2537.f8b70fca.js.map} +1 -1
  6. package/dist/chunks/3171.19eb4447.js +2 -0
  7. package/dist/chunks/3171.19eb4447.js.map +1 -0
  8. package/dist/chunks/5399.2b43f9b8.js +2 -0
  9. package/dist/chunks/5399.2b43f9b8.js.map +1 -0
  10. package/dist/chunks/5552.ac9c4b9d.js +2 -0
  11. package/dist/chunks/5552.ac9c4b9d.js.map +1 -0
  12. package/dist/chunks/{845.2f598dd9.js → 845.66ebad07.js} +3 -3
  13. package/dist/chunks/845.66ebad07.js.map +1 -0
  14. package/dist/chunks/9118.00f515f7.js +3 -0
  15. package/dist/chunks/9118.00f515f7.js.LICENSE.txt +11 -0
  16. package/dist/chunks/9118.00f515f7.js.map +1 -0
  17. package/dist/chunks/948.5923c86a.js +3 -0
  18. package/dist/chunks/948.5923c86a.js.map +1 -0
  19. package/dist/chunks/9949.f1969338.js +3 -0
  20. package/dist/chunks/9949.f1969338.js.map +1 -0
  21. package/dist/chunks/eo-auto-complete.0ed854e4.js.map +1 -1
  22. package/dist/chunks/eo-checkbox.2d0a8dbc.js.map +1 -1
  23. package/dist/chunks/{eo-color-picker.ecf0c4c0.js → eo-color-picker.c8832147.js} +2 -2
  24. package/dist/chunks/eo-color-picker.c8832147.js.map +1 -0
  25. package/dist/chunks/{eo-date-picker.faa60507.js → eo-date-picker.358e2716.js} +2 -2
  26. package/dist/chunks/eo-date-picker.358e2716.js.map +1 -0
  27. package/dist/chunks/{eo-dynamic-form-item.aa5f7d9e.js → eo-dynamic-form-item.04bee6fb.js} +3 -3
  28. package/dist/chunks/eo-dynamic-form-item.04bee6fb.js.map +1 -0
  29. package/dist/chunks/eo-icon-select.6a7f7e12.js.map +1 -1
  30. package/dist/chunks/{eo-radio.b2ed57db.js → eo-radio.f2df4f10.js} +3 -3
  31. package/dist/chunks/eo-radio.f2df4f10.js.map +1 -0
  32. package/dist/chunks/{eo-select.cd00c791.js → eo-select.7976733a.js} +3 -3
  33. package/dist/chunks/eo-select.7976733a.js.map +1 -0
  34. package/dist/chunks/eo-submit-buttons.8a293f65.js.map +1 -1
  35. package/dist/chunks/eo-switch.f0a27c08.js.map +1 -1
  36. package/dist/chunks/eo-textarea.405851dd.js.map +1 -1
  37. package/dist/chunks/{eo-time-picker.46e7a667.js → eo-time-picker.8bd47e44.js} +2 -2
  38. package/dist/chunks/{eo-time-picker.46e7a667.js.map → eo-time-picker.8bd47e44.js.map} +1 -1
  39. package/dist/chunks/{eo-time-range-picker.5afbad69.js → eo-time-range-picker.b6932d6b.js} +2 -2
  40. package/dist/chunks/eo-time-range-picker.b6932d6b.js.map +1 -0
  41. package/dist/chunks/{eo-upload-file.27a4288d.js → eo-upload-file.64f3a33d.js} +3 -3
  42. package/dist/chunks/{eo-upload-file.27a4288d.js.map → eo-upload-file.64f3a33d.js.map} +1 -1
  43. package/dist/chunks/eo-upload-image.b43c2329.js.map +1 -1
  44. package/dist/chunks/main.370da6d5.js +2 -0
  45. package/dist/chunks/main.370da6d5.js.map +1 -0
  46. package/dist/chunks/react.241c9ae9.js +2 -0
  47. package/dist/examples.json +9 -9
  48. package/dist/index.32e08f2f.js +2 -0
  49. package/dist/index.32e08f2f.js.map +1 -0
  50. package/dist/manifest.json +284 -284
  51. package/dist/types.json +3 -3
  52. package/dist-types/dynamic-form-item/index.d.ts +3 -3
  53. package/dist-types/general-switch/index.d.ts +2 -1
  54. package/dist-types/radio/index.d.ts +3 -3
  55. package/dist-types/select/i18n.d.ts +1 -1
  56. package/dist-types/select/index.d.ts +3 -3
  57. package/package.json +2 -2
  58. package/dist/chunks/1889.96e6de82.js +0 -2
  59. package/dist/chunks/1889.96e6de82.js.map +0 -1
  60. package/dist/chunks/3171.30fac628.js +0 -2
  61. package/dist/chunks/3171.30fac628.js.map +0 -1
  62. package/dist/chunks/5399.b22b4003.js +0 -2
  63. package/dist/chunks/5399.b22b4003.js.map +0 -1
  64. package/dist/chunks/5552.75021017.js +0 -2
  65. package/dist/chunks/5552.75021017.js.map +0 -1
  66. package/dist/chunks/845.2f598dd9.js.map +0 -1
  67. package/dist/chunks/948.cb41e9a8.js +0 -3
  68. package/dist/chunks/948.cb41e9a8.js.map +0 -1
  69. package/dist/chunks/9949.3d28a915.js +0 -3
  70. package/dist/chunks/9949.3d28a915.js.map +0 -1
  71. package/dist/chunks/eo-color-picker.ecf0c4c0.js.map +0 -1
  72. package/dist/chunks/eo-date-picker.faa60507.js.map +0 -1
  73. package/dist/chunks/eo-dynamic-form-item.aa5f7d9e.js.map +0 -1
  74. package/dist/chunks/eo-radio.b2ed57db.js.map +0 -1
  75. package/dist/chunks/eo-select.cd00c791.js.map +0 -1
  76. package/dist/chunks/eo-time-range-picker.5afbad69.js.map +0 -1
  77. package/dist/chunks/main.59f7a796.js +0 -2
  78. package/dist/chunks/main.59f7a796.js.map +0 -1
  79. package/dist/chunks/react.2bcc835d.js +0 -2
  80. package/dist/index.2c92cf90.js +0 -2
  81. package/dist/index.2c92cf90.js.map +0 -1
  82. /package/dist/chunks/{845.2f598dd9.js.LICENSE.txt → 845.66ebad07.js.LICENSE.txt} +0 -0
  83. /package/dist/chunks/{948.cb41e9a8.js.LICENSE.txt → 948.5923c86a.js.LICENSE.txt} +0 -0
  84. /package/dist/chunks/{9949.3d28a915.js.LICENSE.txt → 9949.f1969338.js.LICENSE.txt} +0 -0
  85. /package/dist/chunks/{eo-dynamic-form-item.aa5f7d9e.js.LICENSE.txt → eo-dynamic-form-item.04bee6fb.js.LICENSE.txt} +0 -0
  86. /package/dist/chunks/{eo-radio.b2ed57db.js.LICENSE.txt → eo-radio.f2df4f10.js.LICENSE.txt} +0 -0
  87. /package/dist/chunks/{eo-select.cd00c791.js.LICENSE.txt → eo-select.7976733a.js.LICENSE.txt} +0 -0
  88. /package/dist/chunks/{eo-upload-file.27a4288d.js.LICENSE.txt → eo-upload-file.64f3a33d.js.LICENSE.txt} +0 -0
  89. /package/dist/chunks/{react.2bcc835d.js.LICENSE.txt → react.241c9ae9.js.LICENSE.txt} +0 -0
@@ -3,6 +3,111 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
+ {
7
+ "name": "eo-radio",
8
+ "alias": [
9
+ "form.general-radio"
10
+ ],
11
+ "properties": [
12
+ {
13
+ "name": "name",
14
+ "description": "字段名称",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "label",
19
+ "description": "单选框字段说明",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "options",
24
+ "description": "单选框选项表",
25
+ "required": true,
26
+ "attribute": false,
27
+ "type": "GeneralOption[]"
28
+ },
29
+ {
30
+ "name": "value",
31
+ "description": "单选框当前选中值",
32
+ "attribute": false,
33
+ "type": "any"
34
+ },
35
+ {
36
+ "name": "required",
37
+ "description": "是否必填",
38
+ "type": "boolean"
39
+ },
40
+ {
41
+ "name": "message",
42
+ "description": "校验文本信息",
43
+ "attribute": false,
44
+ "type": "Record<string, string>"
45
+ },
46
+ {
47
+ "name": "disabled",
48
+ "description": "是否禁用",
49
+ "type": "boolean"
50
+ },
51
+ {
52
+ "name": "type",
53
+ "description": "单选框样式类型",
54
+ "default": "\"default\"",
55
+ "type": "RadioType"
56
+ },
57
+ {
58
+ "name": "ui",
59
+ "description": "UI样式",
60
+ "default": "\"default\"",
61
+ "type": "UIType"
62
+ },
63
+ {
64
+ "name": "size",
65
+ "description": "大小,只对按钮样式生效",
66
+ "default": "\"medium\"",
67
+ "type": "ComponentSize"
68
+ },
69
+ {
70
+ "name": "customStyle",
71
+ "description": "自定义radio的外层样式",
72
+ "attribute": false,
73
+ "type": "React.CSSProperties"
74
+ },
75
+ {
76
+ "name": "useBrick",
77
+ "description": "自定义radio的内容",
78
+ "attribute": false,
79
+ "type": "UseSingleBrickConfOrRenderFunction"
80
+ },
81
+ {
82
+ "name": "themeVariant",
83
+ "description": "主题变体",
84
+ "type": "\"default\" | \"elevo\""
85
+ }
86
+ ],
87
+ "events": [
88
+ {
89
+ "name": "change",
90
+ "description": "值变化事件",
91
+ "detail": {
92
+ "description": "`GeneralComplexOption | undefined` — 当前选中项的完整选项对象",
93
+ "type": "GeneralComplexOption | undefined"
94
+ }
95
+ },
96
+ {
97
+ "name": "options.change",
98
+ "description": "选项列表变化事件",
99
+ "detail": {
100
+ "description": "`{ options: { label: string; value: any; [key: string]: any }; name: string }` — 最新的选项列表及字段名",
101
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
102
+ }
103
+ }
104
+ ],
105
+ "slots": [],
106
+ "methods": [],
107
+ "parts": [],
108
+ "description": "通用单选构件",
109
+ "category": "form-input-basic"
110
+ },
6
111
  {
7
112
  "name": "eo-textarea",
8
113
  "alias": [
@@ -281,111 +386,6 @@
281
386
  "description": "表单构件",
282
387
  "category": "form-input-basic"
283
388
  },
284
- {
285
- "name": "eo-radio",
286
- "alias": [
287
- "form.general-radio"
288
- ],
289
- "properties": [
290
- {
291
- "name": "name",
292
- "description": "字段名称",
293
- "type": "string"
294
- },
295
- {
296
- "name": "label",
297
- "description": "单选框字段说明",
298
- "type": "string"
299
- },
300
- {
301
- "name": "options",
302
- "description": "单选框选项表",
303
- "required": true,
304
- "attribute": false,
305
- "type": "GeneralOption[]"
306
- },
307
- {
308
- "name": "value",
309
- "description": "单选框当前选中值",
310
- "attribute": false,
311
- "type": "any"
312
- },
313
- {
314
- "name": "required",
315
- "description": "是否必填",
316
- "type": "boolean"
317
- },
318
- {
319
- "name": "message",
320
- "description": "校验文本信息",
321
- "attribute": false,
322
- "type": "Record<string, string>"
323
- },
324
- {
325
- "name": "disabled",
326
- "description": "是否禁用",
327
- "type": "boolean"
328
- },
329
- {
330
- "name": "type",
331
- "description": "单选框样式类型",
332
- "default": "\"default\"",
333
- "type": "RadioType"
334
- },
335
- {
336
- "name": "ui",
337
- "description": "UI样式",
338
- "default": "\"default\"",
339
- "type": "UIType"
340
- },
341
- {
342
- "name": "size",
343
- "description": "大小,只对按钮样式生效",
344
- "default": "\"medium\"",
345
- "type": "ComponentSize"
346
- },
347
- {
348
- "name": "customStyle",
349
- "description": "自定义radio的外层样式",
350
- "attribute": false,
351
- "type": "React.CSSProperties"
352
- },
353
- {
354
- "name": "useBrick",
355
- "description": "自定义radio的内容",
356
- "attribute": false,
357
- "type": "UseSingleBrickConf"
358
- },
359
- {
360
- "name": "themeVariant",
361
- "description": "主题变体",
362
- "type": "\"default\" | \"elevo\""
363
- }
364
- ],
365
- "events": [
366
- {
367
- "name": "change",
368
- "description": "值变化事件",
369
- "detail": {
370
- "description": "`GeneralComplexOption | undefined` — 当前选中项的完整选项对象",
371
- "type": "GeneralComplexOption | undefined"
372
- }
373
- },
374
- {
375
- "name": "options.change",
376
- "description": "选项列表变化事件",
377
- "detail": {
378
- "description": "`{ options: { label: string; value: any; [key: string]: any }; name: string }` — 最新的选项列表及字段名",
379
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
380
- }
381
- }
382
- ],
383
- "slots": [],
384
- "methods": [],
385
- "parts": [],
386
- "description": "通用单选构件",
387
- "category": "form-input-basic"
388
- },
389
389
  {
390
390
  "name": "eo-select",
391
391
  "alias": [
@@ -461,7 +461,7 @@
461
461
  "name": "suffix",
462
462
  "description": "后缀内容,使用 useBrick 在选项及选中值旁显示额外信息",
463
463
  "attribute": false,
464
- "type": "{ useBrick: UseSingleBrickConf }"
464
+ "type": "{ useBrick: UseSingleBrickConfOrRenderFunction }"
465
465
  },
466
466
  {
467
467
  "name": "clearable",
@@ -595,126 +595,30 @@
595
595
  },
596
596
  {
597
597
  "name": "themeVariant",
598
- "description": "主题变体",
599
- "type": "\"default\" | \"elevo\""
600
- }
601
- ],
602
- "events": [
603
- {
604
- "name": "submit",
605
- "description": "点击提交按钮触发的事件",
606
- "detail": {
607
- "type": "void"
608
- }
609
- },
610
- {
611
- "name": "cancel",
612
- "description": "点击取消按钮触发的事件",
613
- "detail": {
614
- "type": "void"
615
- }
616
- }
617
- ],
618
- "slots": [],
619
- "methods": [],
620
- "parts": [],
621
- "description": "表单提交按钮",
622
- "category": "form-input-basic"
623
- },
624
- {
625
- "name": "eo-dynamic-form-item",
626
- "alias": [
627
- "form.dynamic-form-item"
628
- ],
629
- "properties": [
630
- {
631
- "name": "name",
632
- "description": "字段名称",
633
- "type": "string"
634
- },
635
- {
636
- "name": "label",
637
- "description": "字段说明",
638
- "type": "string"
639
- },
640
- {
641
- "name": "required",
642
- "description": "是否必填",
643
- "type": "boolean"
644
- },
645
- {
646
- "name": "value",
647
- "description": "值",
648
- "attribute": false,
649
- "type": "DynamicFormValuesItem[]"
650
- },
651
- {
652
- "name": "message",
653
- "description": "校验文本",
654
- "attribute": false,
655
- "type": "Record<string, string>"
656
- },
657
- {
658
- "name": "hideRemoveButton",
659
- "description": "是否隐藏每一行删除的按钮",
660
- "attribute": false,
661
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
662
- },
663
- {
664
- "name": "disabledRemoveButton",
665
- "description": "是否禁止每一行删除的按钮",
666
- "attribute": false,
667
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
668
- },
669
- {
670
- "name": "hideAddButton",
671
- "description": "是否隐藏添加的按钮",
672
- "attribute": false,
673
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
674
- },
675
- {
676
- "name": "disabledAddButton",
677
- "description": "是否禁止添加的按钮",
678
- "attribute": false,
679
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
680
- },
681
- {
682
- "name": "useBrick",
683
- "description": "动态表单子项构件列表",
684
- "attribute": false,
685
- "type": "UseBrickConf"
686
- }
687
- ],
688
- "events": [
689
- {
690
- "name": "change",
691
- "description": "表单值改变时触发",
692
- "detail": {
693
- "description": "整个动态表单当前所有行的值列表",
694
- "type": "DynamicFormValuesItem[]"
695
- }
696
- },
598
+ "description": "主题变体",
599
+ "type": "\"default\" | \"elevo\""
600
+ }
601
+ ],
602
+ "events": [
697
603
  {
698
- "name": "row.add",
699
- "description": "增加一行时触发",
604
+ "name": "submit",
605
+ "description": "点击提交按钮触发的事件",
700
606
  "detail": {
701
- "description": "{ detail: 该行的默认值, index: 该行的位置 }",
702
- "type": "rowDataType"
607
+ "type": "void"
703
608
  }
704
609
  },
705
610
  {
706
- "name": "row.remove",
707
- "description": "移除一行时触发",
611
+ "name": "cancel",
612
+ "description": "点击取消按钮触发的事件",
708
613
  "detail": {
709
- "description": "{ detail: 该行的值, index: 该行的位置 }",
710
- "type": "rowDataType"
614
+ "type": "void"
711
615
  }
712
616
  }
713
617
  ],
714
618
  "slots": [],
715
619
  "methods": [],
716
620
  "parts": [],
717
- "description": "动态表单",
621
+ "description": "表单提交按钮",
718
622
  "category": "form-input-basic"
719
623
  },
720
624
  {
@@ -890,6 +794,102 @@
890
794
  "description": "搜索框",
891
795
  "category": "interact-basic"
892
796
  },
797
+ {
798
+ "name": "eo-dynamic-form-item",
799
+ "alias": [
800
+ "form.dynamic-form-item"
801
+ ],
802
+ "properties": [
803
+ {
804
+ "name": "name",
805
+ "description": "字段名称",
806
+ "type": "string"
807
+ },
808
+ {
809
+ "name": "label",
810
+ "description": "字段说明",
811
+ "type": "string"
812
+ },
813
+ {
814
+ "name": "required",
815
+ "description": "是否必填",
816
+ "type": "boolean"
817
+ },
818
+ {
819
+ "name": "value",
820
+ "description": "值",
821
+ "attribute": false,
822
+ "type": "DynamicFormValuesItem[]"
823
+ },
824
+ {
825
+ "name": "message",
826
+ "description": "校验文本",
827
+ "attribute": false,
828
+ "type": "Record<string, string>"
829
+ },
830
+ {
831
+ "name": "hideRemoveButton",
832
+ "description": "是否隐藏每一行删除的按钮",
833
+ "attribute": false,
834
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
835
+ },
836
+ {
837
+ "name": "disabledRemoveButton",
838
+ "description": "是否禁止每一行删除的按钮",
839
+ "attribute": false,
840
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
841
+ },
842
+ {
843
+ "name": "hideAddButton",
844
+ "description": "是否隐藏添加的按钮",
845
+ "attribute": false,
846
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
847
+ },
848
+ {
849
+ "name": "disabledAddButton",
850
+ "description": "是否禁止添加的按钮",
851
+ "attribute": false,
852
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
853
+ },
854
+ {
855
+ "name": "useBrick",
856
+ "description": "动态表单子项构件列表",
857
+ "attribute": false,
858
+ "type": "UseBrickConfOrRenderFunction"
859
+ }
860
+ ],
861
+ "events": [
862
+ {
863
+ "name": "change",
864
+ "description": "表单值改变时触发",
865
+ "detail": {
866
+ "description": "整个动态表单当前所有行的值列表",
867
+ "type": "DynamicFormValuesItem[]"
868
+ }
869
+ },
870
+ {
871
+ "name": "row.add",
872
+ "description": "增加一行时触发",
873
+ "detail": {
874
+ "description": "{ detail: 该行的默认值, index: 该行的位置 }",
875
+ "type": "rowDataType"
876
+ }
877
+ },
878
+ {
879
+ "name": "row.remove",
880
+ "description": "移除一行时触发",
881
+ "detail": {
882
+ "description": "{ detail: 该行的值, index: 该行的位置 }",
883
+ "type": "rowDataType"
884
+ }
885
+ }
886
+ ],
887
+ "slots": [],
888
+ "methods": [],
889
+ "parts": [],
890
+ "description": "动态表单",
891
+ "category": "form-input-basic"
892
+ },
893
893
  {
894
894
  "name": "eo-icon-select",
895
895
  "alias": [
@@ -1505,24 +1505,27 @@
1505
1505
  "category": "form-input-basic"
1506
1506
  },
1507
1507
  {
1508
- "name": "eo-time-range-picker",
1508
+ "name": "eo-color-picker",
1509
1509
  "properties": [
1510
1510
  {
1511
1511
  "name": "name",
1512
- "description": "时间段选择器字段名",
1512
+ "description": "字段名称",
1513
1513
  "type": "string"
1514
1514
  },
1515
1515
  {
1516
1516
  "name": "label",
1517
- "description": "时间段选择器说明",
1517
+ "description": "字段说明",
1518
1518
  "type": "string"
1519
1519
  },
1520
1520
  {
1521
1521
  "name": "value",
1522
- "description": "时间段选择器的初始值",
1523
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1524
- "attribute": false,
1525
- "type": "TimeRange"
1522
+ "description": "",
1523
+ "type": "string"
1524
+ },
1525
+ {
1526
+ "name": "defaultValue",
1527
+ "description": "颜色默认的值",
1528
+ "type": "string | Color"
1526
1529
  },
1527
1530
  {
1528
1531
  "name": "required",
@@ -1530,86 +1533,76 @@
1530
1533
  "type": "boolean"
1531
1534
  },
1532
1535
  {
1533
- "name": "rangeType",
1534
- "description": "时间段类型",
1535
- "attribute": false,
1536
- "type": "RangeType"
1537
- },
1538
- {
1539
- "name": "placeholder",
1540
- "description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
1541
- "attribute": false,
1542
- "type": "string | [string, string]"
1536
+ "name": "allowClear",
1537
+ "description": "允许清除选择的颜色",
1538
+ "type": "boolean"
1543
1539
  },
1544
1540
  {
1545
- "name": "inputStyle",
1546
- "description": "输入框样式",
1541
+ "name": "size",
1542
+ "description": "设置触发器大小",
1543
+ "default": "middle",
1547
1544
  "attribute": false,
1548
- "type": "React.CSSProperties"
1545
+ "type": "\"small\" | \"middle\" | \"large\""
1549
1546
  },
1550
1547
  {
1551
- "name": "selectNearDays",
1552
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1553
- "type": "number"
1548
+ "name": "showText",
1549
+ "description": "显示颜色文本",
1550
+ "type": "boolean"
1554
1551
  },
1555
1552
  {
1556
- "name": "emitChangeOnInit",
1557
- "description": "是否在初始化完成后额外触发一次 change 事件。因历史原因,默认行为就是在初始化后触发该事件,为了兼容之前的行为,默认值只能设置为 true。",
1558
- "default": "true",
1553
+ "name": "disabled",
1554
+ "description": "是否禁用",
1559
1555
  "type": "boolean"
1560
1556
  },
1561
1557
  {
1562
- "name": "presetRanges",
1563
- "description": "预设时间范围快捷选择。设置了 selectNearDays 时,presetRanges 不生效;rangeType 为 week 时只能选本周、本月、本季度、今年,rangeType 为 month、quarter、year 时以此类推。",
1564
- "default": "[]",
1558
+ "name": "format",
1559
+ "description": "颜色格式",
1560
+ "default": "hex",
1565
1561
  "attribute": false,
1566
- "type": "presetRangeType[]"
1562
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1567
1563
  },
1568
1564
  {
1569
- "name": "validator",
1570
- "description": "自定义校验函数,返回错误信息字符串或 MessageBody 对象,返回空字符串表示校验通过。",
1565
+ "name": "configProps",
1566
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1571
1567
  "attribute": false,
1572
- "type": "((value: any) => MessageBody | string)"
1568
+ "type": "Partial<ColorPickerProps>"
1573
1569
  }
1574
1570
  ],
1575
1571
  "events": [
1576
1572
  {
1577
1573
  "name": "change",
1578
- "description": "",
1574
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1579
1575
  "detail": {
1580
- "description": "{ startTime: 开始时间字符串, endTime: 结束时间字符串 }",
1581
- "type": "TimeRange"
1576
+ "description": "选中的颜色值,格式由 format 属性决定(hex/rgb/hsb),清除时为 undefined",
1577
+ "type": "string | undefined"
1582
1578
  }
1583
1579
  }
1584
1580
  ],
1585
1581
  "slots": [],
1586
1582
  "methods": [],
1587
1583
  "parts": [],
1588
- "description": "时间区间选择器",
1584
+ "description": "颜色选择器",
1589
1585
  "category": "form-input-basic"
1590
1586
  },
1591
1587
  {
1592
- "name": "eo-color-picker",
1588
+ "name": "eo-time-range-picker",
1593
1589
  "properties": [
1594
1590
  {
1595
1591
  "name": "name",
1596
- "description": "字段名称",
1592
+ "description": "时间段选择器字段名",
1597
1593
  "type": "string"
1598
1594
  },
1599
1595
  {
1600
1596
  "name": "label",
1601
- "description": "字段说明",
1597
+ "description": "时间段选择器说明",
1602
1598
  "type": "string"
1603
1599
  },
1604
1600
  {
1605
1601
  "name": "value",
1606
- "description": "",
1607
- "type": "string"
1608
- },
1609
- {
1610
- "name": "defaultValue",
1611
- "description": "颜色默认的值",
1612
- "type": "string | Color"
1602
+ "description": "时间段选择器的初始值",
1603
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1604
+ "attribute": false,
1605
+ "type": "TimeRange"
1613
1606
  },
1614
1607
  {
1615
1608
  "name": "required",
@@ -1617,55 +1610,62 @@
1617
1610
  "type": "boolean"
1618
1611
  },
1619
1612
  {
1620
- "name": "allowClear",
1621
- "description": "允许清除选择的颜色",
1622
- "type": "boolean"
1613
+ "name": "rangeType",
1614
+ "description": "时间段类型",
1615
+ "attribute": false,
1616
+ "type": "RangeType"
1623
1617
  },
1624
1618
  {
1625
- "name": "size",
1626
- "description": "设置触发器大小",
1627
- "default": "middle",
1619
+ "name": "placeholder",
1620
+ "description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
1628
1621
  "attribute": false,
1629
- "type": "\"small\" | \"middle\" | \"large\""
1622
+ "type": "string | [string, string]"
1630
1623
  },
1631
1624
  {
1632
- "name": "showText",
1633
- "description": "显示颜色文本",
1634
- "type": "boolean"
1625
+ "name": "inputStyle",
1626
+ "description": "输入框样式",
1627
+ "attribute": false,
1628
+ "type": "React.CSSProperties"
1635
1629
  },
1636
1630
  {
1637
- "name": "disabled",
1638
- "description": "是否禁用",
1631
+ "name": "selectNearDays",
1632
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1633
+ "type": "number"
1634
+ },
1635
+ {
1636
+ "name": "emitChangeOnInit",
1637
+ "description": "是否在初始化完成后额外触发一次 change 事件。因历史原因,默认行为就是在初始化后触发该事件,为了兼容之前的行为,默认值只能设置为 true。",
1638
+ "default": "true",
1639
1639
  "type": "boolean"
1640
1640
  },
1641
1641
  {
1642
- "name": "format",
1643
- "description": "颜色格式",
1644
- "default": "hex",
1642
+ "name": "presetRanges",
1643
+ "description": "预设时间范围快捷选择。设置了 selectNearDays 时,presetRanges 不生效;rangeType 为 week 时只能选本周、本月、本季度、今年,rangeType 为 month、quarter、year 时以此类推。",
1644
+ "default": "[]",
1645
1645
  "attribute": false,
1646
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1646
+ "type": "presetRangeType[]"
1647
1647
  },
1648
1648
  {
1649
- "name": "configProps",
1650
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1649
+ "name": "validator",
1650
+ "description": "自定义校验函数,返回错误信息字符串或 MessageBody 对象,返回空字符串表示校验通过。",
1651
1651
  "attribute": false,
1652
- "type": "Partial<ColorPickerProps>"
1652
+ "type": "((value: any) => MessageBody | string)"
1653
1653
  }
1654
1654
  ],
1655
1655
  "events": [
1656
1656
  {
1657
1657
  "name": "change",
1658
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1658
+ "description": "",
1659
1659
  "detail": {
1660
- "description": "选中的颜色值,格式由 format 属性决定(hex/rgb/hsb),清除时为 undefined",
1661
- "type": "string | undefined"
1660
+ "description": "{ startTime: 开始时间字符串, endTime: 结束时间字符串 }",
1661
+ "type": "TimeRange"
1662
1662
  }
1663
1663
  }
1664
1664
  ],
1665
1665
  "slots": [],
1666
1666
  "methods": [],
1667
1667
  "parts": [],
1668
- "description": "颜色选择器",
1668
+ "description": "时间区间选择器",
1669
1669
  "category": "form-input-basic"
1670
1670
  },
1671
1671
  {