@next-bricks/form 1.13.10 → 1.13.11

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.
@@ -287,144 +287,107 @@
287
287
  "category": "form-input-basic"
288
288
  },
289
289
  {
290
- "name": "eo-form",
290
+ "name": "eo-form-item",
291
291
  "alias": [
292
- "form.general-form"
292
+ "form.general-form-item"
293
293
  ],
294
294
  "properties": [
295
295
  {
296
- "name": "staticValues",
296
+ "name": "formElement",
297
297
  "attribute": false,
298
- "type": "Record<string, unknown>"
298
+ "type": "Form"
299
299
  },
300
300
  {
301
- "name": "layout",
302
- "description": "布局方式(默认 vertical 布局)",
303
- "default": "vertical",
304
- "type": "Layout"
301
+ "name": "curElement",
302
+ "attribute": false,
303
+ "type": "HTMLElement"
305
304
  },
306
305
  {
307
- "name": "size",
308
- "description": "表单组件尺寸",
309
- "type": "ComponentSize"
306
+ "name": "name",
307
+ "description": "字段名称",
308
+ "type": "string"
310
309
  },
311
310
  {
312
- "name": "labelCol",
313
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
314
- "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 }",
315
- "attribute": false,
316
- "type": "ColProps"
311
+ "name": "label",
312
+ "type": "string"
317
313
  },
318
314
  {
319
- "name": "wrapperCol",
320
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
321
- "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 }",
322
- "attribute": false,
323
- "type": "ColProps"
315
+ "name": "pattern",
316
+ "type": "string"
324
317
  },
325
318
  {
326
- "name": "formStyle",
319
+ "name": "message",
327
320
  "attribute": false,
328
- "type": "React.CSSProperties"
329
- }
330
- ],
331
- "events": [
321
+ "type": "Record<string, string>"
322
+ },
332
323
  {
333
- "name": "values.change",
334
- "description": "表单值变更事件",
335
- "detail": {
336
- "description": null,
337
- "type": "Record<string, unknown>"
338
- }
324
+ "name": "type",
325
+ "type": "string"
339
326
  },
340
327
  {
341
- "name": "validate.success",
342
- "description": "表单验证成功时触发事件",
343
- "detail": {
344
- "type": "Record<string, unknown>"
345
- }
328
+ "name": "max",
329
+ "type": "number"
346
330
  },
347
331
  {
348
- "name": "validate.error",
349
- "description": "表单验证报错时触发事件",
350
- "detail": {
351
- "type": "(MessageBody & { name: string })[]"
352
- }
353
- }
354
- ],
355
- "slots": [
332
+ "name": "min",
333
+ "type": "number"
334
+ },
356
335
  {
357
- "name": null,
358
- "description": "表单内容"
359
- }
360
- ],
361
- "methods": [
336
+ "name": "required",
337
+ "description": "表单项是否为必填",
338
+ "type": "boolean"
339
+ },
362
340
  {
363
- "name": "validate",
364
- "params": [],
365
- "description": "表单校验方法",
366
- "returns": {
367
- "type": "boolean | Record<string, unknown>"
368
- }
341
+ "name": "value",
342
+ "description": "初始值",
343
+ "type": "string"
369
344
  },
370
345
  {
371
- "name": "setInitValue",
372
- "params": [
373
- {
374
- "name": "values",
375
- "type": "Record<string, unknown>"
376
- },
377
- {
378
- "name": "options",
379
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
380
- }
381
- ],
382
- "description": "表单设置值方法",
383
- "returns": {}
346
+ "name": "valuePropsName",
347
+ "type": "string"
384
348
  },
385
349
  {
386
- "name": "resetFields",
387
- "params": [
388
- {
389
- "name": "name",
390
- "type": "string"
391
- }
392
- ],
393
- "description": "表单重置值方法",
394
- "returns": {}
350
+ "name": "layout",
351
+ "type": "Layout"
395
352
  },
396
353
  {
397
- "name": "getFieldsValue",
398
- "params": [
399
- {
400
- "name": "name",
401
- "type": "string"
402
- }
403
- ],
404
- "description": "获取表单值方法",
405
- "returns": {}
354
+ "name": "size",
355
+ "type": "ComponentSize"
406
356
  },
407
357
  {
408
- "name": "validateField",
409
- "params": [
410
- {
411
- "name": "name",
412
- "type": "string"
413
- }
414
- ],
415
- "description": "校验表单字段方法",
416
- "returns": {}
358
+ "name": "trim",
359
+ "description": "是否自动去除前后的空白字符",
360
+ "default": "true"
417
361
  },
418
362
  {
419
- "name": "resetValidateState",
420
- "params": [],
421
- "description": "重置表单校验状态方法",
422
- "returns": {}
363
+ "name": "trigger",
364
+ "description": "事件触发方法名",
365
+ "type": "string"
366
+ },
367
+ {
368
+ "name": "validator",
369
+ "description": "表单项校验方法",
370
+ "attribute": false,
371
+ "type": "((value: any) => MessageBody)"
372
+ },
373
+ {
374
+ "name": "needValidate",
375
+ "description": "值变化时是否主动出发校验",
376
+ "type": "boolean"
423
377
  }
424
378
  ],
379
+ "events": [],
380
+ "slots": [
381
+ {
382
+ "name": null,
383
+ "description": "表单项内容"
384
+ }
385
+ ],
386
+ "methods": [],
425
387
  "parts": [],
426
- "description": "表单构件",
427
- "category": "form-input-basic"
388
+ "description": "通用输入框构件",
389
+ "category": "form-input-basic",
390
+ "insider": true
428
391
  },
429
392
  {
430
393
  "name": "eo-radio",
@@ -525,107 +488,144 @@
525
488
  "category": "form-input-basic"
526
489
  },
527
490
  {
528
- "name": "eo-form-item",
491
+ "name": "eo-form",
529
492
  "alias": [
530
- "form.general-form-item"
493
+ "form.general-form"
531
494
  ],
532
495
  "properties": [
533
496
  {
534
- "name": "formElement",
535
- "attribute": false,
536
- "type": "Form"
537
- },
538
- {
539
- "name": "curElement",
497
+ "name": "staticValues",
540
498
  "attribute": false,
541
- "type": "HTMLElement"
542
- },
543
- {
544
- "name": "name",
545
- "description": "字段名称",
546
- "type": "string"
499
+ "type": "Record<string, unknown>"
547
500
  },
548
501
  {
549
- "name": "label",
550
- "type": "string"
502
+ "name": "layout",
503
+ "description": "布局方式(默认 vertical 布局)",
504
+ "default": "vertical",
505
+ "type": "Layout"
551
506
  },
552
507
  {
553
- "name": "pattern",
554
- "type": "string"
508
+ "name": "size",
509
+ "description": "表单组件尺寸",
510
+ "type": "ComponentSize"
555
511
  },
556
512
  {
557
- "name": "message",
513
+ "name": "labelCol",
514
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
515
+ "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 }",
558
516
  "attribute": false,
559
- "type": "Record<string, string>"
517
+ "type": "ColProps"
560
518
  },
561
519
  {
562
- "name": "type",
563
- "type": "string"
520
+ "name": "wrapperCol",
521
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
522
+ "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 }",
523
+ "attribute": false,
524
+ "type": "ColProps"
564
525
  },
565
526
  {
566
- "name": "max",
567
- "type": "number"
568
- },
527
+ "name": "formStyle",
528
+ "attribute": false,
529
+ "type": "React.CSSProperties"
530
+ }
531
+ ],
532
+ "events": [
569
533
  {
570
- "name": "min",
571
- "type": "number"
534
+ "name": "values.change",
535
+ "description": "表单值变更事件",
536
+ "detail": {
537
+ "description": null,
538
+ "type": "Record<string, unknown>"
539
+ }
572
540
  },
573
541
  {
574
- "name": "required",
575
- "description": "表单项是否为必填",
576
- "type": "boolean"
542
+ "name": "validate.success",
543
+ "description": "表单验证成功时触发事件",
544
+ "detail": {
545
+ "type": "Record<string, unknown>"
546
+ }
577
547
  },
578
548
  {
579
- "name": "value",
580
- "description": "初始值",
581
- "type": "string"
582
- },
549
+ "name": "validate.error",
550
+ "description": "表单验证报错时触发事件",
551
+ "detail": {
552
+ "type": "(MessageBody & { name: string })[]"
553
+ }
554
+ }
555
+ ],
556
+ "slots": [
583
557
  {
584
- "name": "valuePropsName",
585
- "type": "string"
586
- },
558
+ "name": null,
559
+ "description": "表单内容"
560
+ }
561
+ ],
562
+ "methods": [
587
563
  {
588
- "name": "layout",
589
- "type": "Layout"
564
+ "name": "validate",
565
+ "params": [],
566
+ "description": "表单校验方法",
567
+ "returns": {
568
+ "type": "boolean | Record<string, unknown>"
569
+ }
590
570
  },
591
571
  {
592
- "name": "size",
593
- "type": "ComponentSize"
572
+ "name": "setInitValue",
573
+ "params": [
574
+ {
575
+ "name": "values",
576
+ "type": "Record<string, unknown>"
577
+ },
578
+ {
579
+ "name": "options",
580
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
581
+ }
582
+ ],
583
+ "description": "表单设置值方法",
584
+ "returns": {}
594
585
  },
595
586
  {
596
- "name": "trim",
597
- "description": "是否自动去除前后的空白字符",
598
- "default": "true"
587
+ "name": "resetFields",
588
+ "params": [
589
+ {
590
+ "name": "name",
591
+ "type": "string"
592
+ }
593
+ ],
594
+ "description": "表单重置值方法",
595
+ "returns": {}
599
596
  },
600
597
  {
601
- "name": "trigger",
602
- "description": "事件触发方法名",
603
- "type": "string"
598
+ "name": "getFieldsValue",
599
+ "params": [
600
+ {
601
+ "name": "name",
602
+ "type": "string"
603
+ }
604
+ ],
605
+ "description": "获取表单值方法",
606
+ "returns": {}
604
607
  },
605
608
  {
606
- "name": "validator",
607
- "description": "表单项校验方法",
608
- "attribute": false,
609
- "type": "((value: any) => MessageBody)"
609
+ "name": "validateField",
610
+ "params": [
611
+ {
612
+ "name": "name",
613
+ "type": "string"
614
+ }
615
+ ],
616
+ "description": "校验表单字段方法",
617
+ "returns": {}
610
618
  },
611
619
  {
612
- "name": "needValidate",
613
- "description": "值变化时是否主动出发校验",
614
- "type": "boolean"
615
- }
616
- ],
617
- "events": [],
618
- "slots": [
619
- {
620
- "name": null,
621
- "description": "表单项内容"
620
+ "name": "resetValidateState",
621
+ "params": [],
622
+ "description": "重置表单校验状态方法",
623
+ "returns": {}
622
624
  }
623
625
  ],
624
- "methods": [],
625
626
  "parts": [],
626
- "description": "通用输入框构件",
627
- "category": "form-input-basic",
628
- "insider": true
627
+ "description": "表单构件",
628
+ "category": "form-input-basic"
629
629
  },
630
630
  {
631
631
  "name": "eo-select",
@@ -724,6 +724,7 @@
724
724
  },
725
725
  {
726
726
  "name": "debounceSearchDelay",
727
+ "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
727
728
  "type": "number"
728
729
  },
729
730
  {
@@ -783,142 +784,50 @@
783
784
  },
784
785
  {
785
786
  "name": "cancelText",
786
- "description": "取消按钮的文字,不设置则不显示取消按钮",
787
- "type": "string"
788
- },
789
- {
790
- "name": "disableAfterClick",
791
- "description": "点击确定按钮后自动禁用",
792
- "type": "boolean"
793
- },
794
- {
795
- "name": "submitDisabled",
796
- "description": "禁用提交按钮",
797
- "type": "boolean"
798
- },
799
- {
800
- "name": "submitType",
801
- "description": "提交按钮类型",
802
- "type": "ButtonType"
803
- },
804
- {
805
- "name": "cancelType",
806
- "description": "取消按钮类型",
807
- "type": "ButtonType"
808
- }
809
- ],
810
- "events": [
811
- {
812
- "name": "submit",
813
- "description": "点击提交按钮触发的事件",
814
- "detail": {
815
- "type": "void"
816
- }
817
- },
818
- {
819
- "name": "cancel",
820
- "description": "点击取消按钮触发的事件",
821
- "detail": {
822
- "type": "void"
823
- }
824
- }
825
- ],
826
- "slots": [],
827
- "methods": [],
828
- "parts": [],
829
- "description": "表单提交按钮",
830
- "category": "form-input-basic"
831
- },
832
- {
833
- "name": "eo-checkbox",
834
- "alias": [
835
- "form.general-checkbox"
836
- ],
837
- "properties": [
838
- {
839
- "name": "name",
840
- "description": "字段名称",
841
- "type": "string"
842
- },
843
- {
844
- "name": "label",
845
- "description": "字段说明",
846
- "type": "string"
847
- },
848
- {
849
- "name": "value",
850
- "description": "值",
851
- "attribute": false,
852
- "type": "CheckboxValueType[]"
853
- },
854
- {
855
- "name": "options",
856
- "description": "多选框选项表",
857
- "required": true,
858
- "default": "[]",
859
- "attribute": false,
860
- "type": "CheckboxOptionType[]"
861
- },
862
- {
863
- "name": "type",
864
- "description": "类型",
865
- "default": "\"default\"",
866
- "type": "CheckboxType"
867
- },
868
- {
869
- "name": "disabled",
870
- "description": "是否禁用",
871
- "type": "boolean"
787
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
788
+ "type": "string"
872
789
  },
873
790
  {
874
- "name": "isCustom",
875
- "description": "是否为自定义",
876
- "default": "false",
791
+ "name": "disableAfterClick",
792
+ "description": "点击确定按钮后自动禁用",
877
793
  "type": "boolean"
878
794
  },
879
795
  {
880
- "name": "required",
881
- "description": "是否必填",
796
+ "name": "submitDisabled",
797
+ "description": "禁用提交按钮",
882
798
  "type": "boolean"
883
799
  },
884
800
  {
885
- "name": "message",
886
- "description": "校验文本",
887
- "attribute": false,
888
- "type": "Record<string, string>"
889
- },
890
- {
891
- "name": "isGroup",
892
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
893
- "type": "boolean"
801
+ "name": "submitType",
802
+ "description": "提交按钮类型",
803
+ "type": "ButtonType"
894
804
  },
895
805
  {
896
- "name": "optionGroups",
897
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
898
- "attribute": false,
899
- "type": "OptionGroup[]"
806
+ "name": "cancelType",
807
+ "description": "取消按钮类型",
808
+ "type": "ButtonType"
900
809
  }
901
810
  ],
902
811
  "events": [
903
812
  {
904
- "name": "change",
905
- "description": "复选框变化事件",
813
+ "name": "submit",
814
+ "description": "点击提交按钮触发的事件",
906
815
  "detail": {
907
- "type": "CheckboxOptionType[]"
816
+ "type": "void"
908
817
  }
909
818
  },
910
819
  {
911
- "name": "options.change",
912
- "description": "复选框变化事件",
820
+ "name": "cancel",
821
+ "description": "点击取消按钮触发的事件",
913
822
  "detail": {
914
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
823
+ "type": "void"
915
824
  }
916
825
  }
917
826
  ],
918
827
  "slots": [],
919
828
  "methods": [],
920
829
  "parts": [],
921
- "description": "表单复选框构件",
830
+ "description": "表单提交按钮",
922
831
  "category": "form-input-basic"
923
832
  },
924
833
  {
@@ -1074,6 +983,98 @@
1074
983
  "description": "搜索框",
1075
984
  "category": "interact-basic"
1076
985
  },
986
+ {
987
+ "name": "eo-checkbox",
988
+ "alias": [
989
+ "form.general-checkbox"
990
+ ],
991
+ "properties": [
992
+ {
993
+ "name": "name",
994
+ "description": "字段名称",
995
+ "type": "string"
996
+ },
997
+ {
998
+ "name": "label",
999
+ "description": "字段说明",
1000
+ "type": "string"
1001
+ },
1002
+ {
1003
+ "name": "value",
1004
+ "description": "值",
1005
+ "attribute": false,
1006
+ "type": "CheckboxValueType[]"
1007
+ },
1008
+ {
1009
+ "name": "options",
1010
+ "description": "多选框选项表",
1011
+ "required": true,
1012
+ "default": "[]",
1013
+ "attribute": false,
1014
+ "type": "CheckboxOptionType[]"
1015
+ },
1016
+ {
1017
+ "name": "type",
1018
+ "description": "类型",
1019
+ "default": "\"default\"",
1020
+ "type": "CheckboxType"
1021
+ },
1022
+ {
1023
+ "name": "disabled",
1024
+ "description": "是否禁用",
1025
+ "type": "boolean"
1026
+ },
1027
+ {
1028
+ "name": "isCustom",
1029
+ "description": "是否为自定义",
1030
+ "default": "false",
1031
+ "type": "boolean"
1032
+ },
1033
+ {
1034
+ "name": "required",
1035
+ "description": "是否必填",
1036
+ "type": "boolean"
1037
+ },
1038
+ {
1039
+ "name": "message",
1040
+ "description": "校验文本",
1041
+ "attribute": false,
1042
+ "type": "Record<string, string>"
1043
+ },
1044
+ {
1045
+ "name": "isGroup",
1046
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
1047
+ "type": "boolean"
1048
+ },
1049
+ {
1050
+ "name": "optionGroups",
1051
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
1052
+ "attribute": false,
1053
+ "type": "OptionGroup[]"
1054
+ }
1055
+ ],
1056
+ "events": [
1057
+ {
1058
+ "name": "change",
1059
+ "description": "复选框变化事件",
1060
+ "detail": {
1061
+ "type": "CheckboxOptionType[]"
1062
+ }
1063
+ },
1064
+ {
1065
+ "name": "options.change",
1066
+ "description": "复选框变化事件",
1067
+ "detail": {
1068
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
1069
+ }
1070
+ }
1071
+ ],
1072
+ "slots": [],
1073
+ "methods": [],
1074
+ "parts": [],
1075
+ "description": "表单复选框构件",
1076
+ "category": "form-input-basic"
1077
+ },
1077
1078
  {
1078
1079
  "name": "eo-icon-select",
1079
1080
  "alias": [
@@ -1648,24 +1649,27 @@
1648
1649
  "category": "form-input-basic"
1649
1650
  },
1650
1651
  {
1651
- "name": "eo-time-range-picker",
1652
+ "name": "eo-color-picker",
1652
1653
  "properties": [
1653
1654
  {
1654
1655
  "name": "name",
1655
- "description": "时间段选择器字段名",
1656
+ "description": "字段名称",
1656
1657
  "type": "string"
1657
1658
  },
1658
1659
  {
1659
1660
  "name": "label",
1660
- "description": "时间段选择器说明",
1661
+ "description": "字段说明",
1661
1662
  "type": "string"
1662
1663
  },
1663
1664
  {
1664
1665
  "name": "value",
1665
- "description": "时间段选择器的初始值",
1666
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1667
- "attribute": false,
1668
- "type": "TimeRange"
1666
+ "description": "",
1667
+ "type": "string"
1668
+ },
1669
+ {
1670
+ "name": "defaultValue",
1671
+ "description": "颜色默认的值",
1672
+ "type": "string | Color"
1669
1673
  },
1670
1674
  {
1671
1675
  "name": "required",
@@ -1673,72 +1677,74 @@
1673
1677
  "type": "boolean"
1674
1678
  },
1675
1679
  {
1676
- "name": "rangeType",
1677
- "description": "时间段类型",
1680
+ "name": "allowClear",
1681
+ "description": "允许清除选择的颜色",
1682
+ "type": "boolean"
1683
+ },
1684
+ {
1685
+ "name": "size",
1686
+ "description": "设置触发器大小",
1687
+ "default": "middle",
1678
1688
  "attribute": false,
1679
- "type": "RangeType"
1689
+ "type": "\"small\" | \"middle\" | \"large\""
1680
1690
  },
1681
1691
  {
1682
- "name": "selectNearDays",
1683
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1684
- "type": "number"
1692
+ "name": "showText",
1693
+ "description": "显示颜色文本",
1694
+ "type": "boolean"
1685
1695
  },
1686
1696
  {
1687
- "name": "emitChangeOnInit",
1688
- "description": "",
1689
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1697
+ "name": "disabled",
1698
+ "description": "是否禁用",
1690
1699
  "type": "boolean"
1691
1700
  },
1692
1701
  {
1693
- "name": "presetRanges",
1694
- "description": "",
1695
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1702
+ "name": "format",
1703
+ "description": "颜色格式",
1704
+ "default": "hex",
1696
1705
  "attribute": false,
1697
- "type": "presetRangeType[]"
1706
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1698
1707
  },
1699
1708
  {
1700
- "name": "validator",
1709
+ "name": "configProps",
1710
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1701
1711
  "attribute": false,
1702
- "type": "((value: any) => MessageBody | string)"
1712
+ "type": "Partial<ColorPickerProps>"
1703
1713
  }
1704
1714
  ],
1705
1715
  "events": [
1706
1716
  {
1707
1717
  "name": "change",
1708
- "description": "时间段变化时触发",
1718
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1709
1719
  "detail": {
1710
- "type": "TimeRange"
1720
+ "type": "string | undefined"
1711
1721
  }
1712
1722
  }
1713
1723
  ],
1714
1724
  "slots": [],
1715
1725
  "methods": [],
1716
1726
  "parts": [],
1717
- "description": "时间区间选择器",
1718
- "category": "form-input-basic"
1727
+ "description": "构件 `eo-color-picker`"
1719
1728
  },
1720
1729
  {
1721
- "name": "eo-color-picker",
1730
+ "name": "eo-time-range-picker",
1722
1731
  "properties": [
1723
1732
  {
1724
1733
  "name": "name",
1725
- "description": "字段名称",
1734
+ "description": "时间段选择器字段名",
1726
1735
  "type": "string"
1727
1736
  },
1728
1737
  {
1729
1738
  "name": "label",
1730
- "description": "字段说明",
1739
+ "description": "时间段选择器说明",
1731
1740
  "type": "string"
1732
1741
  },
1733
1742
  {
1734
1743
  "name": "value",
1735
- "description": "",
1736
- "type": "string"
1737
- },
1738
- {
1739
- "name": "defaultValue",
1740
- "description": "颜色默认的值",
1741
- "type": "string | Color"
1744
+ "description": "时间段选择器的初始值",
1745
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1746
+ "attribute": false,
1747
+ "type": "TimeRange"
1742
1748
  },
1743
1749
  {
1744
1750
  "name": "required",
@@ -1746,54 +1752,49 @@
1746
1752
  "type": "boolean"
1747
1753
  },
1748
1754
  {
1749
- "name": "allowClear",
1750
- "description": "允许清除选择的颜色",
1751
- "type": "boolean"
1752
- },
1753
- {
1754
- "name": "size",
1755
- "description": "设置触发器大小",
1756
- "default": "middle",
1755
+ "name": "rangeType",
1756
+ "description": "时间段类型",
1757
1757
  "attribute": false,
1758
- "type": "\"small\" | \"middle\" | \"large\""
1758
+ "type": "RangeType"
1759
1759
  },
1760
1760
  {
1761
- "name": "showText",
1762
- "description": "显示颜色文本",
1763
- "type": "boolean"
1761
+ "name": "selectNearDays",
1762
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1763
+ "type": "number"
1764
1764
  },
1765
1765
  {
1766
- "name": "disabled",
1767
- "description": "是否禁用",
1766
+ "name": "emitChangeOnInit",
1767
+ "description": "",
1768
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1768
1769
  "type": "boolean"
1769
1770
  },
1770
1771
  {
1771
- "name": "format",
1772
- "description": "颜色格式",
1773
- "default": "hex",
1772
+ "name": "presetRanges",
1773
+ "description": "",
1774
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1774
1775
  "attribute": false,
1775
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1776
+ "type": "presetRangeType[]"
1776
1777
  },
1777
1778
  {
1778
- "name": "configProps",
1779
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1779
+ "name": "validator",
1780
1780
  "attribute": false,
1781
- "type": "Partial<ColorPickerProps>"
1781
+ "type": "((value: any) => MessageBody | string)"
1782
1782
  }
1783
1783
  ],
1784
1784
  "events": [
1785
1785
  {
1786
1786
  "name": "change",
1787
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1787
+ "description": "时间段变化时触发",
1788
1788
  "detail": {
1789
- "type": "string | undefined"
1789
+ "type": "TimeRange"
1790
1790
  }
1791
1791
  }
1792
1792
  ],
1793
1793
  "slots": [],
1794
1794
  "methods": [],
1795
1795
  "parts": [],
1796
- "description": "构件 `eo-color-picker`"
1796
+ "description": "时间区间选择器",
1797
+ "category": "form-input-basic"
1797
1798
  }
1798
1799
  ],
1799
1800
  "providers": []