@next-bricks/form 1.21.6 → 1.21.8
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.
- package/dist/bricks.json +31 -31
- package/dist/chunks/9949.753e2720.js +3 -0
- package/dist/chunks/9949.753e2720.js.map +1 -0
- package/dist/chunks/eo-checkbox.0b875e8b.js.map +1 -1
- package/dist/chunks/eo-color-picker.c3b11b2f.js.map +1 -1
- package/dist/chunks/eo-date-picker.f5894c3c.js.map +1 -1
- package/dist/chunks/eo-dynamic-form-item.3837c24e.js.map +1 -1
- package/dist/chunks/eo-icon-select.d343ca96.js.map +1 -1
- package/dist/chunks/{eo-select.78631f61.js → eo-select.9c05c45b.js} +3 -3
- package/dist/chunks/eo-select.9c05c45b.js.map +1 -0
- package/dist/chunks/eo-submit-buttons.bccc3dbf.js.map +1 -1
- package/dist/chunks/eo-switch.3607f593.js.map +1 -1
- package/dist/chunks/eo-textarea.fbc8c190.js.map +1 -1
- package/dist/chunks/eo-time-picker.da156d88.js.map +1 -1
- package/dist/chunks/eo-time-range-picker.15864724.js.map +1 -1
- package/dist/chunks/eo-upload-file.8e5acc0f.js.map +1 -1
- package/dist/chunks/eo-upload-image.1ae9beb3.js.map +1 -1
- package/dist/chunks/{main.bf48d81e.js → main.7bc729a9.js} +2 -2
- package/dist/chunks/{main.bf48d81e.js.map → main.7bc729a9.js.map} +1 -1
- package/dist/examples.json +8 -8
- package/dist/{index.16245117.js → index.b71d6b2b.js} +2 -2
- package/dist/{index.16245117.js.map → index.b71d6b2b.js.map} +1 -1
- package/dist/manifest.json +180 -180
- package/dist-types/checkbox/index.d.ts +11 -0
- package/dist-types/color-picker/index.d.ts +6 -0
- package/dist-types/date-picker/index.d.ts +8 -0
- package/dist-types/dynamic-form-item/index.d.ts +12 -2
- package/dist-types/general-switch/index.d.ts +7 -2
- package/dist-types/icon-select/index.d.ts +7 -1
- package/dist-types/select/index.d.ts +26 -0
- package/dist-types/submit-buttons/index.d.ts +8 -0
- package/dist-types/textarea/index.d.ts +6 -0
- package/dist-types/time-picker/index.d.ts +10 -0
- package/dist-types/time-range-picker/index.d.ts +6 -0
- package/dist-types/upload/upload-file/index.d.ts +6 -0
- package/dist-types/upload/upload-image/index.d.ts +6 -0
- package/package.json +2 -2
- package/dist/chunks/9949.e2b33c07.js +0 -3
- package/dist/chunks/9949.e2b33c07.js.map +0 -1
- package/dist/chunks/eo-select.78631f61.js.map +0 -1
- /package/dist/chunks/{9949.e2b33c07.js.LICENSE.txt → 9949.753e2720.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.78631f61.js.LICENSE.txt → eo-select.9c05c45b.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -531,41 +531,73 @@
|
|
|
531
531
|
"category": "form-input-basic"
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
|
-
"name": "eo-
|
|
534
|
+
"name": "eo-checkbox",
|
|
535
535
|
"alias": [
|
|
536
|
-
"form.
|
|
536
|
+
"form.general-checkbox"
|
|
537
537
|
],
|
|
538
538
|
"properties": [
|
|
539
539
|
{
|
|
540
|
-
"name": "
|
|
541
|
-
"description": "
|
|
542
|
-
"default": "\"提交\"",
|
|
540
|
+
"name": "name",
|
|
541
|
+
"description": "字段名称",
|
|
543
542
|
"type": "string"
|
|
544
543
|
},
|
|
545
544
|
{
|
|
546
|
-
"name": "
|
|
547
|
-
"description": "
|
|
545
|
+
"name": "label",
|
|
546
|
+
"description": "字段说明",
|
|
548
547
|
"type": "string"
|
|
549
548
|
},
|
|
550
549
|
{
|
|
551
|
-
"name": "
|
|
552
|
-
"description": "
|
|
550
|
+
"name": "value",
|
|
551
|
+
"description": "值",
|
|
552
|
+
"attribute": false,
|
|
553
|
+
"type": "CheckboxValueType[]"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "options",
|
|
557
|
+
"description": "多选框选项表",
|
|
558
|
+
"required": true,
|
|
559
|
+
"default": "[]",
|
|
560
|
+
"attribute": false,
|
|
561
|
+
"type": "CheckboxOptionType[]"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "type",
|
|
565
|
+
"description": "类型",
|
|
566
|
+
"default": "\"default\"",
|
|
567
|
+
"type": "CheckboxType"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"name": "disabled",
|
|
571
|
+
"description": "是否禁用",
|
|
553
572
|
"type": "boolean"
|
|
554
573
|
},
|
|
555
574
|
{
|
|
556
|
-
"name": "
|
|
557
|
-
"description": "
|
|
575
|
+
"name": "isCustom",
|
|
576
|
+
"description": "是否为自定义",
|
|
577
|
+
"default": "false",
|
|
558
578
|
"type": "boolean"
|
|
559
579
|
},
|
|
560
580
|
{
|
|
561
|
-
"name": "
|
|
562
|
-
"description": "
|
|
563
|
-
"type": "
|
|
581
|
+
"name": "required",
|
|
582
|
+
"description": "是否必填",
|
|
583
|
+
"type": "boolean"
|
|
564
584
|
},
|
|
565
585
|
{
|
|
566
|
-
"name": "
|
|
567
|
-
"description": "
|
|
568
|
-
"
|
|
586
|
+
"name": "message",
|
|
587
|
+
"description": "校验文本",
|
|
588
|
+
"attribute": false,
|
|
589
|
+
"type": "Record<string, string>"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "isGroup",
|
|
593
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
594
|
+
"type": "boolean"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "optionGroups",
|
|
598
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
599
|
+
"attribute": false,
|
|
600
|
+
"type": "OptionGroup[]"
|
|
569
601
|
},
|
|
570
602
|
{
|
|
571
603
|
"name": "themeVariant",
|
|
@@ -575,69 +607,62 @@
|
|
|
575
607
|
],
|
|
576
608
|
"events": [
|
|
577
609
|
{
|
|
578
|
-
"name": "
|
|
579
|
-
"description": "
|
|
610
|
+
"name": "change",
|
|
611
|
+
"description": "复选框变化事件",
|
|
580
612
|
"detail": {
|
|
581
|
-
"type": "
|
|
613
|
+
"type": "CheckboxOptionType[]"
|
|
582
614
|
}
|
|
583
615
|
},
|
|
584
616
|
{
|
|
585
|
-
"name": "
|
|
586
|
-
"description": "
|
|
617
|
+
"name": "options.change",
|
|
618
|
+
"description": "复选框变化事件",
|
|
587
619
|
"detail": {
|
|
588
|
-
"type": "
|
|
620
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
589
621
|
}
|
|
590
622
|
}
|
|
591
623
|
],
|
|
592
624
|
"slots": [],
|
|
593
625
|
"methods": [],
|
|
594
626
|
"parts": [],
|
|
595
|
-
"description": "
|
|
627
|
+
"description": "表单复选框构件",
|
|
596
628
|
"category": "form-input-basic"
|
|
597
629
|
},
|
|
598
630
|
{
|
|
599
|
-
"name": "eo-
|
|
631
|
+
"name": "eo-submit-buttons",
|
|
600
632
|
"alias": [
|
|
601
|
-
"form.
|
|
633
|
+
"form.submit-buttons"
|
|
602
634
|
],
|
|
603
635
|
"properties": [
|
|
604
636
|
{
|
|
605
|
-
"name": "
|
|
606
|
-
"description": "
|
|
607
|
-
"default": "\"
|
|
637
|
+
"name": "submitText",
|
|
638
|
+
"description": "提交按钮的文字",
|
|
639
|
+
"default": "\"提交\"",
|
|
608
640
|
"type": "string"
|
|
609
641
|
},
|
|
610
642
|
{
|
|
611
|
-
"name": "
|
|
612
|
-
"description": "
|
|
643
|
+
"name": "cancelText",
|
|
644
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
613
645
|
"type": "string"
|
|
614
646
|
},
|
|
615
647
|
{
|
|
616
|
-
"name": "
|
|
617
|
-
"description": "
|
|
618
|
-
"type": "boolean"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"name": "clearable",
|
|
622
|
-
"description": "可以点击清除图标删除内容",
|
|
648
|
+
"name": "disableAfterClick",
|
|
649
|
+
"description": "点击确定按钮后自动禁用",
|
|
623
650
|
"type": "boolean"
|
|
624
651
|
},
|
|
625
652
|
{
|
|
626
|
-
"name": "
|
|
627
|
-
"description": "
|
|
653
|
+
"name": "submitDisabled",
|
|
654
|
+
"description": "禁用提交按钮",
|
|
628
655
|
"type": "boolean"
|
|
629
656
|
},
|
|
630
657
|
{
|
|
631
|
-
"name": "
|
|
632
|
-
"description": "
|
|
633
|
-
"
|
|
634
|
-
"type": "number"
|
|
658
|
+
"name": "submitType",
|
|
659
|
+
"description": "提交按钮类型",
|
|
660
|
+
"type": "ButtonType"
|
|
635
661
|
},
|
|
636
662
|
{
|
|
637
|
-
"name": "
|
|
638
|
-
"description": "
|
|
639
|
-
"
|
|
640
|
-
"type": "CSSProperties"
|
|
663
|
+
"name": "cancelType",
|
|
664
|
+
"description": "取消按钮类型",
|
|
665
|
+
"type": "ButtonType"
|
|
641
666
|
},
|
|
642
667
|
{
|
|
643
668
|
"name": "themeVariant",
|
|
@@ -647,25 +672,25 @@
|
|
|
647
672
|
],
|
|
648
673
|
"events": [
|
|
649
674
|
{
|
|
650
|
-
"name": "
|
|
651
|
-
"description": "
|
|
675
|
+
"name": "submit",
|
|
676
|
+
"description": "点击提交按钮触发的事件",
|
|
652
677
|
"detail": {
|
|
653
|
-
"type": "
|
|
678
|
+
"type": "void"
|
|
654
679
|
}
|
|
655
680
|
},
|
|
656
681
|
{
|
|
657
|
-
"name": "
|
|
658
|
-
"description": "
|
|
682
|
+
"name": "cancel",
|
|
683
|
+
"description": "点击取消按钮触发的事件",
|
|
659
684
|
"detail": {
|
|
660
|
-
"type": "
|
|
685
|
+
"type": "void"
|
|
661
686
|
}
|
|
662
687
|
}
|
|
663
688
|
],
|
|
664
689
|
"slots": [],
|
|
665
690
|
"methods": [],
|
|
666
691
|
"parts": [],
|
|
667
|
-
"description": "
|
|
668
|
-
"category": "
|
|
692
|
+
"description": "表单提交按钮",
|
|
693
|
+
"category": "form-input-basic"
|
|
669
694
|
},
|
|
670
695
|
{
|
|
671
696
|
"name": "eo-dynamic-form-item",
|
|
@@ -760,73 +785,48 @@
|
|
|
760
785
|
"category": "form-input-basic"
|
|
761
786
|
},
|
|
762
787
|
{
|
|
763
|
-
"name": "eo-
|
|
788
|
+
"name": "eo-search",
|
|
764
789
|
"alias": [
|
|
765
|
-
"form.general-
|
|
790
|
+
"form.general-search"
|
|
766
791
|
],
|
|
767
792
|
"properties": [
|
|
768
793
|
{
|
|
769
|
-
"name": "
|
|
770
|
-
"description": "
|
|
794
|
+
"name": "value",
|
|
795
|
+
"description": "搜索框的值",
|
|
796
|
+
"default": "\"\"",
|
|
771
797
|
"type": "string"
|
|
772
798
|
},
|
|
773
799
|
{
|
|
774
|
-
"name": "
|
|
775
|
-
"description": "
|
|
800
|
+
"name": "placeholder",
|
|
801
|
+
"description": "提示语",
|
|
776
802
|
"type": "string"
|
|
777
803
|
},
|
|
778
804
|
{
|
|
779
|
-
"name": "
|
|
780
|
-
"description": "
|
|
781
|
-
"attribute": false,
|
|
782
|
-
"type": "CheckboxValueType[]"
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
"name": "options",
|
|
786
|
-
"description": "多选框选项表",
|
|
787
|
-
"required": true,
|
|
788
|
-
"default": "[]",
|
|
789
|
-
"attribute": false,
|
|
790
|
-
"type": "CheckboxOptionType[]"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
"name": "type",
|
|
794
|
-
"description": "类型",
|
|
795
|
-
"default": "\"default\"",
|
|
796
|
-
"type": "CheckboxType"
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
"name": "disabled",
|
|
800
|
-
"description": "是否禁用",
|
|
805
|
+
"name": "autoFocus",
|
|
806
|
+
"description": "是否自动聚焦",
|
|
801
807
|
"type": "boolean"
|
|
802
808
|
},
|
|
803
809
|
{
|
|
804
|
-
"name": "
|
|
805
|
-
"description": "
|
|
806
|
-
"default": "false",
|
|
810
|
+
"name": "clearable",
|
|
811
|
+
"description": "可以点击清除图标删除内容",
|
|
807
812
|
"type": "boolean"
|
|
808
813
|
},
|
|
809
814
|
{
|
|
810
|
-
"name": "
|
|
811
|
-
"description": "
|
|
815
|
+
"name": "trim",
|
|
816
|
+
"description": "是否剔除前后空格",
|
|
812
817
|
"type": "boolean"
|
|
813
818
|
},
|
|
814
819
|
{
|
|
815
|
-
"name": "
|
|
816
|
-
"description": "
|
|
817
|
-
"
|
|
818
|
-
"type": "
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
"name": "isGroup",
|
|
822
|
-
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
823
|
-
"type": "boolean"
|
|
820
|
+
"name": "debounceTime",
|
|
821
|
+
"description": "默认延迟时间",
|
|
822
|
+
"default": "0",
|
|
823
|
+
"type": "number"
|
|
824
824
|
},
|
|
825
825
|
{
|
|
826
|
-
"name": "
|
|
827
|
-
"description": "
|
|
826
|
+
"name": "inputStyle",
|
|
827
|
+
"description": "输入框样式",
|
|
828
828
|
"attribute": false,
|
|
829
|
-
"type": "
|
|
829
|
+
"type": "CSSProperties"
|
|
830
830
|
},
|
|
831
831
|
{
|
|
832
832
|
"name": "themeVariant",
|
|
@@ -837,29 +837,29 @@
|
|
|
837
837
|
"events": [
|
|
838
838
|
{
|
|
839
839
|
"name": "change",
|
|
840
|
-
"description": "
|
|
840
|
+
"description": "输入的搜索字符,输入变化时触发",
|
|
841
841
|
"detail": {
|
|
842
|
-
"type": "
|
|
842
|
+
"type": "string"
|
|
843
843
|
}
|
|
844
844
|
},
|
|
845
845
|
{
|
|
846
|
-
"name": "
|
|
847
|
-
"description": "
|
|
846
|
+
"name": "search",
|
|
847
|
+
"description": "搜索时触发",
|
|
848
848
|
"detail": {
|
|
849
|
-
"type": "
|
|
849
|
+
"type": "string"
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
],
|
|
853
853
|
"slots": [],
|
|
854
854
|
"methods": [],
|
|
855
855
|
"parts": [],
|
|
856
|
-
"description": "
|
|
857
|
-
"category": "
|
|
856
|
+
"description": "搜索框",
|
|
857
|
+
"category": "interact-basic"
|
|
858
858
|
},
|
|
859
859
|
{
|
|
860
|
-
"name": "eo-
|
|
860
|
+
"name": "eo-icon-select",
|
|
861
861
|
"alias": [
|
|
862
|
-
"form.
|
|
862
|
+
"form.icon-select"
|
|
863
863
|
],
|
|
864
864
|
"properties": [
|
|
865
865
|
{
|
|
@@ -876,28 +876,13 @@
|
|
|
876
876
|
"name": "value",
|
|
877
877
|
"description": "值",
|
|
878
878
|
"attribute": false,
|
|
879
|
-
"type": "
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
"name": "bucketName",
|
|
883
|
-
"description": "对象存储桶名字",
|
|
884
|
-
"type": "string"
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
"name": "maxCount",
|
|
888
|
-
"description": "最大上传数量",
|
|
889
|
-
"type": "number"
|
|
879
|
+
"type": "Icon"
|
|
890
880
|
},
|
|
891
881
|
{
|
|
892
|
-
"name": "
|
|
893
|
-
"description": "
|
|
882
|
+
"name": "disabled",
|
|
883
|
+
"description": "是否禁用",
|
|
894
884
|
"type": "boolean"
|
|
895
885
|
},
|
|
896
|
-
{
|
|
897
|
-
"name": "limitSize",
|
|
898
|
-
"description": "上传大小限制(单位为 MB)",
|
|
899
|
-
"type": "number"
|
|
900
|
-
},
|
|
901
886
|
{
|
|
902
887
|
"name": "required",
|
|
903
888
|
"description": "是否必填",
|
|
@@ -905,15 +890,10 @@
|
|
|
905
890
|
},
|
|
906
891
|
{
|
|
907
892
|
"name": "message",
|
|
908
|
-
"description": "
|
|
893
|
+
"description": "是否必填",
|
|
909
894
|
"attribute": false,
|
|
910
895
|
"type": "Record<string, string>"
|
|
911
896
|
},
|
|
912
|
-
{
|
|
913
|
-
"name": "variant",
|
|
914
|
-
"description": "变体",
|
|
915
|
-
"type": "\"default\" | \"avatar\""
|
|
916
|
-
},
|
|
917
897
|
{
|
|
918
898
|
"name": "themeVariant",
|
|
919
899
|
"description": "主题变体",
|
|
@@ -925,20 +905,20 @@
|
|
|
925
905
|
"name": "change",
|
|
926
906
|
"description": "值变化时触发",
|
|
927
907
|
"detail": {
|
|
928
|
-
"type": "
|
|
908
|
+
"type": "Icon | undefined"
|
|
929
909
|
}
|
|
930
910
|
}
|
|
931
911
|
],
|
|
932
912
|
"slots": [],
|
|
933
913
|
"methods": [],
|
|
934
914
|
"parts": [],
|
|
935
|
-
"description": "
|
|
915
|
+
"description": "图标选择构件",
|
|
936
916
|
"category": "form-input-basic"
|
|
937
917
|
},
|
|
938
918
|
{
|
|
939
|
-
"name": "eo-
|
|
919
|
+
"name": "eo-switch",
|
|
940
920
|
"alias": [
|
|
941
|
-
"form.
|
|
921
|
+
"form.general-switch"
|
|
942
922
|
],
|
|
943
923
|
"properties": [
|
|
944
924
|
{
|
|
@@ -948,14 +928,13 @@
|
|
|
948
928
|
},
|
|
949
929
|
{
|
|
950
930
|
"name": "label",
|
|
951
|
-
"description": "
|
|
931
|
+
"description": "字段文本",
|
|
952
932
|
"type": "string"
|
|
953
933
|
},
|
|
954
934
|
{
|
|
955
935
|
"name": "value",
|
|
956
|
-
"description": "
|
|
957
|
-
"
|
|
958
|
-
"type": "Icon"
|
|
936
|
+
"description": "初始值",
|
|
937
|
+
"type": "boolean"
|
|
959
938
|
},
|
|
960
939
|
{
|
|
961
940
|
"name": "disabled",
|
|
@@ -963,15 +942,31 @@
|
|
|
963
942
|
"type": "boolean"
|
|
964
943
|
},
|
|
965
944
|
{
|
|
966
|
-
"name": "
|
|
967
|
-
"description": "
|
|
968
|
-
"type": "
|
|
945
|
+
"name": "size",
|
|
946
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
947
|
+
"type": "ComponentSize"
|
|
969
948
|
},
|
|
970
949
|
{
|
|
971
|
-
"name": "
|
|
972
|
-
"description": "
|
|
950
|
+
"name": "checkedText",
|
|
951
|
+
"description": "选中时的文本",
|
|
952
|
+
"type": "string"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"name": "unCheckedText",
|
|
956
|
+
"description": "非选中时的文本",
|
|
957
|
+
"type": "string"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "checkedIcon",
|
|
961
|
+
"description": "选中时的图标",
|
|
973
962
|
"attribute": false,
|
|
974
|
-
"type": "
|
|
963
|
+
"type": "GeneralIconProps"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "unCheckedIcon",
|
|
967
|
+
"description": "非选中时的文本",
|
|
968
|
+
"attribute": false,
|
|
969
|
+
"type": "GeneralIconProps"
|
|
975
970
|
},
|
|
976
971
|
{
|
|
977
972
|
"name": "themeVariant",
|
|
@@ -981,23 +976,23 @@
|
|
|
981
976
|
],
|
|
982
977
|
"events": [
|
|
983
978
|
{
|
|
984
|
-
"name": "
|
|
985
|
-
"description": "
|
|
979
|
+
"name": "switch",
|
|
980
|
+
"description": "开关改变时触发",
|
|
986
981
|
"detail": {
|
|
987
|
-
"type": "
|
|
982
|
+
"type": "boolean"
|
|
988
983
|
}
|
|
989
984
|
}
|
|
990
985
|
],
|
|
991
986
|
"slots": [],
|
|
992
987
|
"methods": [],
|
|
993
988
|
"parts": [],
|
|
994
|
-
"description": "
|
|
989
|
+
"description": "开关",
|
|
995
990
|
"category": "form-input-basic"
|
|
996
991
|
},
|
|
997
992
|
{
|
|
998
|
-
"name": "eo-
|
|
993
|
+
"name": "eo-upload-image",
|
|
999
994
|
"alias": [
|
|
1000
|
-
"form.
|
|
995
|
+
"form.upload-image"
|
|
1001
996
|
],
|
|
1002
997
|
"properties": [
|
|
1003
998
|
{
|
|
@@ -1007,45 +1002,50 @@
|
|
|
1007
1002
|
},
|
|
1008
1003
|
{
|
|
1009
1004
|
"name": "label",
|
|
1010
|
-
"description": "
|
|
1005
|
+
"description": "字段说明",
|
|
1011
1006
|
"type": "string"
|
|
1012
1007
|
},
|
|
1013
1008
|
{
|
|
1014
1009
|
"name": "value",
|
|
1015
|
-
"description": "
|
|
1016
|
-
"
|
|
1010
|
+
"description": "值",
|
|
1011
|
+
"attribute": false,
|
|
1012
|
+
"type": "ImageData[]"
|
|
1017
1013
|
},
|
|
1018
1014
|
{
|
|
1019
|
-
"name": "
|
|
1020
|
-
"description": "
|
|
1021
|
-
"type": "
|
|
1015
|
+
"name": "bucketName",
|
|
1016
|
+
"description": "对象存储桶名字",
|
|
1017
|
+
"type": "string"
|
|
1022
1018
|
},
|
|
1023
1019
|
{
|
|
1024
|
-
"name": "
|
|
1025
|
-
"description": "
|
|
1026
|
-
"type": "
|
|
1020
|
+
"name": "maxCount",
|
|
1021
|
+
"description": "最大上传数量",
|
|
1022
|
+
"type": "number"
|
|
1027
1023
|
},
|
|
1028
1024
|
{
|
|
1029
|
-
"name": "
|
|
1030
|
-
"description": "
|
|
1031
|
-
"type": "
|
|
1025
|
+
"name": "multiple",
|
|
1026
|
+
"description": "是否支持选定的多张图片",
|
|
1027
|
+
"type": "boolean"
|
|
1032
1028
|
},
|
|
1033
1029
|
{
|
|
1034
|
-
"name": "
|
|
1035
|
-
"description": "
|
|
1036
|
-
"type": "
|
|
1030
|
+
"name": "limitSize",
|
|
1031
|
+
"description": "上传大小限制(单位为 MB)",
|
|
1032
|
+
"type": "number"
|
|
1037
1033
|
},
|
|
1038
1034
|
{
|
|
1039
|
-
"name": "
|
|
1040
|
-
"description": "
|
|
1041
|
-
"
|
|
1042
|
-
"type": "GeneralIconProps"
|
|
1035
|
+
"name": "required",
|
|
1036
|
+
"description": "是否必填",
|
|
1037
|
+
"type": "boolean"
|
|
1043
1038
|
},
|
|
1044
1039
|
{
|
|
1045
|
-
"name": "
|
|
1046
|
-
"description": "
|
|
1040
|
+
"name": "message",
|
|
1041
|
+
"description": "校验文本信息",
|
|
1047
1042
|
"attribute": false,
|
|
1048
|
-
"type": "
|
|
1043
|
+
"type": "Record<string, string>"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"name": "variant",
|
|
1047
|
+
"description": "变体",
|
|
1048
|
+
"type": "\"default\" | \"avatar\""
|
|
1049
1049
|
},
|
|
1050
1050
|
{
|
|
1051
1051
|
"name": "themeVariant",
|
|
@@ -1055,17 +1055,17 @@
|
|
|
1055
1055
|
],
|
|
1056
1056
|
"events": [
|
|
1057
1057
|
{
|
|
1058
|
-
"name": "
|
|
1059
|
-
"description": "
|
|
1058
|
+
"name": "change",
|
|
1059
|
+
"description": "值变化时触发",
|
|
1060
1060
|
"detail": {
|
|
1061
|
-
"type": "
|
|
1061
|
+
"type": "ImageData[]"
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
1064
|
],
|
|
1065
1065
|
"slots": [],
|
|
1066
1066
|
"methods": [],
|
|
1067
1067
|
"parts": [],
|
|
1068
|
-
"description": "
|
|
1068
|
+
"description": "上传图片构件",
|
|
1069
1069
|
"category": "form-input-basic"
|
|
1070
1070
|
},
|
|
1071
1071
|
{
|
|
@@ -31,6 +31,17 @@ export interface CheckboxProps extends FormItemProps {
|
|
|
31
31
|
optionGroups?: OptionGroup[];
|
|
32
32
|
themeVariant?: "default" | "elevo";
|
|
33
33
|
}
|
|
34
|
+
export interface CheckboxEventsMap {
|
|
35
|
+
change: CustomEvent<CheckboxOptionType[]>;
|
|
36
|
+
optionsChange: CustomEvent<{
|
|
37
|
+
options: CheckboxOptionType[];
|
|
38
|
+
name: string;
|
|
39
|
+
}>;
|
|
40
|
+
}
|
|
41
|
+
export interface CheckboxEventsMapping {
|
|
42
|
+
onChange: "change";
|
|
43
|
+
onOptionsChange: "options.change";
|
|
44
|
+
}
|
|
34
45
|
/**
|
|
35
46
|
* 表单复选框构件
|
|
36
47
|
* @author derrickma
|
|
@@ -8,6 +8,12 @@ export interface EoColorPickerProps extends Pick<ColorPickerProps, "allowClear"
|
|
|
8
8
|
onChange?: (value?: string) => void;
|
|
9
9
|
value?: string;
|
|
10
10
|
}
|
|
11
|
+
export interface EoColorPickerEventsMap {
|
|
12
|
+
change: CustomEvent<string | undefined>;
|
|
13
|
+
}
|
|
14
|
+
export interface EoColorPickerEventsMapping {
|
|
15
|
+
onChange: "change";
|
|
16
|
+
}
|
|
11
17
|
/**
|
|
12
18
|
* 构件 `eo-color-picker`
|
|
13
19
|
* @author astrid
|
|
@@ -25,6 +25,14 @@ interface EoDatePickerProps extends Omit<InternalStateDatePickerProps, "value" |
|
|
|
25
25
|
onChange?: (value: string) => void;
|
|
26
26
|
onOk?: (value: string) => void;
|
|
27
27
|
}
|
|
28
|
+
export interface EoDatePickerEventsMap {
|
|
29
|
+
change: CustomEvent<string>;
|
|
30
|
+
ok: CustomEvent<string>;
|
|
31
|
+
}
|
|
32
|
+
export interface EoDatePickerEventsMapping {
|
|
33
|
+
onChange: "change";
|
|
34
|
+
onOk: "ok";
|
|
35
|
+
}
|
|
28
36
|
/**
|
|
29
37
|
* 日期选择器
|
|
30
38
|
* @author zhendonghuang
|