vant 4.0.0-rc.3 → 4.0.0-rc.4

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.
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "4.0.0-rc.3",
5
+ "version": "4.0.0-rc.4",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -550,38 +550,33 @@
550
550
  ]
551
551
  },
552
552
  {
553
- "name": "van-address-list",
553
+ "name": "van-action-sheet",
554
554
  "slots": [
555
555
  {
556
556
  "name": "default",
557
- "description": "Custom content after list"
557
+ "description": "Custom content"
558
558
  },
559
559
  {
560
- "name": "top",
561
- "description": "Custom content before list"
560
+ "name": "description",
561
+ "description": "Custom description above the options"
562
562
  },
563
563
  {
564
- "name": "item-bottom",
565
- "description": "Custom content after list item"
564
+ "name": "cancel",
565
+ "description": "Custom the content of cancel button"
566
566
  },
567
567
  {
568
- "name": "tag",
569
- "description": "Custom tag of list item"
568
+ "name": "action",
569
+ "description": "Custom the content of action"
570
570
  }
571
571
  ],
572
572
  "events": [
573
573
  {
574
- "name": "add",
575
- "description": "Emitted when the add button is clicked",
576
- "arguments": []
577
- },
578
- {
579
- "name": "edit",
580
- "description": "Emitted when the edit icon of address is clicked",
574
+ "name": "select",
575
+ "description": "Emitted when an option is clicked",
581
576
  "arguments": [
582
577
  {
583
- "name": "item",
584
- "type": "Address"
578
+ "name": "action",
579
+ "type": "ActionSheetAction"
585
580
  },
586
581
  {
587
582
  "name": "index",
@@ -590,97 +585,76 @@
590
585
  ]
591
586
  },
592
587
  {
593
- "name": "select",
594
- "description": "Emitted when an address is selected",
595
- "arguments": [
596
- {
597
- "name": "item",
598
- "type": "Address"
599
- },
600
- {
601
- "name": "index",
602
- "type": "number"
603
- }
604
- ]
588
+ "name": "cancel",
589
+ "description": "Emitted when the cancel button is clicked",
590
+ "arguments": []
605
591
  },
606
592
  {
607
- "name": "edit-disabled",
608
- "description": "Emitted when the edit icon of disabled address is clicked",
609
- "arguments": [
610
- {
611
- "name": "item",
612
- "type": "Address"
613
- },
614
- {
615
- "name": "index",
616
- "type": "number"
617
- }
618
- ]
593
+ "name": "open",
594
+ "description": "Emitted when opening ActionSheet",
595
+ "arguments": []
619
596
  },
620
597
  {
621
- "name": "select-disabled",
622
- "description": "Emitted when a disabled address is selected",
623
- "arguments": [
624
- {
625
- "name": "item",
626
- "type": "Address"
627
- },
628
- {
629
- "name": "index",
630
- "type": "number"
631
- }
632
- ]
598
+ "name": "close",
599
+ "description": "Emitted when closing ActionSheet",
600
+ "arguments": []
633
601
  },
634
602
  {
635
- "name": "click-item",
636
- "description": "Emitted when an address item is clicked",
603
+ "name": "opened",
604
+ "description": "Emitted when ActionSheet is opened",
605
+ "arguments": []
606
+ },
607
+ {
608
+ "name": "closed",
609
+ "description": "Emitted when ActionSheet is closed",
610
+ "arguments": []
611
+ },
612
+ {
613
+ "name": "click-overlay",
614
+ "description": "Emitted when overlay is clicked",
637
615
  "arguments": [
638
616
  {
639
- "name": "item",
640
- "type": "Address"
641
- },
642
- {
643
- "name": "index",
644
- "type": "number"
617
+ "name": "event",
618
+ "type": "MouseEvent"
645
619
  }
646
620
  ]
647
621
  }
648
622
  ],
649
623
  "attributes": [
650
624
  {
651
- "name": "v-model",
652
- "default": "-",
653
- "description": "Id of chosen address",
625
+ "name": "v-model:show",
626
+ "default": "`false`",
627
+ "description": "Whether to show ActionSheet",
654
628
  "options": [],
655
629
  "value": {
656
- "type": "string",
630
+ "type": "boolean",
657
631
  "kind": "expression"
658
632
  }
659
633
  },
660
634
  {
661
- "name": "list",
635
+ "name": "actions",
662
636
  "default": "`[]`",
663
- "description": "Address list",
637
+ "description": "Options",
664
638
  "options": [],
665
639
  "value": {
666
- "type": "Address[]",
640
+ "type": "ActionSheetAction[]",
667
641
  "kind": "expression"
668
642
  }
669
643
  },
670
644
  {
671
- "name": "disabled-list",
672
- "default": "`[]`",
673
- "description": "Disabled address list",
645
+ "name": "title",
646
+ "default": "-",
647
+ "description": "Title",
674
648
  "options": [],
675
649
  "value": {
676
- "type": "Address[]",
650
+ "type": "string",
677
651
  "kind": "expression"
678
652
  }
679
653
  },
680
654
  {
681
- "name": "disabled-text",
655
+ "name": "cancel-text",
682
656
  "default": "-",
683
- "description": "Disabled text",
657
+ "description": "Text of cancel button",
684
658
  "options": [],
685
659
  "value": {
686
660
  "type": "string",
@@ -688,9 +662,19 @@
688
662
  }
689
663
  },
690
664
  {
691
- "name": "switchable",
665
+ "name": "description",
666
+ "default": "-",
667
+ "description": "Description above the options",
668
+ "options": [],
669
+ "value": {
670
+ "type": "string",
671
+ "kind": "expression"
672
+ }
673
+ },
674
+ {
675
+ "name": "closeable",
692
676
  "default": "`true`",
693
- "description": "Whether to allow switch address",
677
+ "description": "Whether to show close icon",
694
678
  "options": [],
695
679
  "value": {
696
680
  "type": "boolean",
@@ -698,9 +682,9 @@
698
682
  }
699
683
  },
700
684
  {
701
- "name": "add-button-text",
702
- "default": "`Add new address`",
703
- "description": "Add button text",
685
+ "name": "close-icon",
686
+ "default": "`cross`",
687
+ "description": "Close icon name",
704
688
  "options": [],
705
689
  "value": {
706
690
  "type": "string",
@@ -708,70 +692,240 @@
708
692
  }
709
693
  },
710
694
  {
711
- "name": "default-tag-text",
695
+ "name": "duration",
696
+ "default": "`0.3`",
697
+ "description": "Transition duration, unit second",
698
+ "options": [],
699
+ "value": {
700
+ "type": "number | string",
701
+ "kind": "expression"
702
+ }
703
+ },
704
+ {
705
+ "name": "z-index",
706
+ "default": "`2000+`",
707
+ "description": "Set the z-index to a fixed value",
708
+ "options": [],
709
+ "value": {
710
+ "type": "number | string",
711
+ "kind": "expression"
712
+ }
713
+ },
714
+ {
715
+ "name": "round",
716
+ "default": "`true`",
717
+ "description": "Whether to show round corner",
718
+ "options": [],
719
+ "value": {
720
+ "type": "boolean",
721
+ "kind": "expression"
722
+ }
723
+ },
724
+ {
725
+ "name": "overlay",
726
+ "default": "`true`",
727
+ "description": "Whether to show overlay",
728
+ "options": [],
729
+ "value": {
730
+ "type": "boolean",
731
+ "kind": "expression"
732
+ }
733
+ },
734
+ {
735
+ "name": "overlay-class",
712
736
  "default": "-",
713
- "description": "Default tag text",
737
+ "description": "Custom overlay class",
714
738
  "options": [],
715
739
  "value": {
716
- "type": "string",
740
+ "type": "string | Array | object",
741
+ "kind": "expression"
742
+ }
743
+ },
744
+ {
745
+ "name": "overlay-style",
746
+ "default": "-",
747
+ "description": "Custom overlay style",
748
+ "options": [],
749
+ "value": {
750
+ "type": "object",
751
+ "kind": "expression"
752
+ }
753
+ },
754
+ {
755
+ "name": "lock-scroll",
756
+ "default": "`true`",
757
+ "description": "Whether to lock background scroll",
758
+ "options": [],
759
+ "value": {
760
+ "type": "boolean",
761
+ "kind": "expression"
762
+ }
763
+ },
764
+ {
765
+ "name": "lazy-render",
766
+ "default": "`true`",
767
+ "description": "Whether to lazy render util appeared",
768
+ "options": [],
769
+ "value": {
770
+ "type": "boolean",
771
+ "kind": "expression"
772
+ }
773
+ },
774
+ {
775
+ "name": "close-on-popstate",
776
+ "default": "`true`",
777
+ "description": "Whether to close when popstate",
778
+ "options": [],
779
+ "value": {
780
+ "type": "boolean",
781
+ "kind": "expression"
782
+ }
783
+ },
784
+ {
785
+ "name": "close-on-click-action",
786
+ "default": "`false`",
787
+ "description": "Whether to close when an action is clicked",
788
+ "options": [],
789
+ "value": {
790
+ "type": "boolean",
791
+ "kind": "expression"
792
+ }
793
+ },
794
+ {
795
+ "name": "close-on-click-overlay",
796
+ "default": "`true`",
797
+ "description": "Whether to close when overlay is clicked",
798
+ "options": [],
799
+ "value": {
800
+ "type": "boolean",
801
+ "kind": "expression"
802
+ }
803
+ },
804
+ {
805
+ "name": "safe-area-inset-bottom",
806
+ "default": "`true`",
807
+ "description": "Whether to enable bottom safe area adaptation",
808
+ "options": [],
809
+ "value": {
810
+ "type": "boolean",
811
+ "kind": "expression"
812
+ }
813
+ },
814
+ {
815
+ "name": "teleport",
816
+ "default": "-",
817
+ "description": "Specifies a target element where ActionSheet will be mounted",
818
+ "options": [],
819
+ "value": {
820
+ "type": "string | Element",
821
+ "kind": "expression"
822
+ }
823
+ },
824
+ {
825
+ "name": "before-close",
826
+ "default": "-",
827
+ "description": "Callback function before close",
828
+ "options": [],
829
+ "value": {
830
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
717
831
  "kind": "expression"
718
832
  }
719
833
  }
720
834
  ]
721
835
  },
722
836
  {
723
- "name": "van-area",
837
+ "name": "van-address-list",
724
838
  "slots": [
725
839
  {
726
- "name": "toolbar",
727
- "description": "Custom toolbar content"
840
+ "name": "default",
841
+ "description": "Custom content after list"
728
842
  },
729
843
  {
730
- "name": "title",
731
- "description": "Custom title"
844
+ "name": "top",
845
+ "description": "Custom content before list"
732
846
  },
733
847
  {
734
- "name": "confirm",
735
- "description": "Custom confirm button text"
848
+ "name": "item-bottom",
849
+ "description": "Custom content after list item"
736
850
  },
737
851
  {
738
- "name": "cancel",
739
- "description": "Custom cancel button text"
852
+ "name": "tag",
853
+ "description": "Custom tag of list item"
854
+ }
855
+ ],
856
+ "events": [
857
+ {
858
+ "name": "add",
859
+ "description": "Emitted when the add button is clicked",
860
+ "arguments": []
861
+ },
862
+ {
863
+ "name": "edit",
864
+ "description": "Emitted when the edit icon of address is clicked",
865
+ "arguments": [
866
+ {
867
+ "name": "item",
868
+ "type": "Address"
869
+ },
870
+ {
871
+ "name": "index",
872
+ "type": "number"
873
+ }
874
+ ]
740
875
  },
741
876
  {
742
- "name": "columns-top",
743
- "description": "Custom content above columns"
877
+ "name": "select",
878
+ "description": "Emitted when an address is selected",
879
+ "arguments": [
880
+ {
881
+ "name": "item",
882
+ "type": "Address"
883
+ },
884
+ {
885
+ "name": "index",
886
+ "type": "number"
887
+ }
888
+ ]
744
889
  },
745
890
  {
746
- "name": "columns-bottom",
747
- "description": "Custom content below columns"
748
- }
749
- ],
750
- "events": [
751
- {
752
- "name": "confirm",
753
- "description": "Emitted when the confirm button is clicked",
891
+ "name": "edit-disabled",
892
+ "description": "Emitted when the edit icon of disabled address is clicked",
754
893
  "arguments": [
755
894
  {
756
- "name": "{ selectedValues, selectedOptions }"
895
+ "name": "item",
896
+ "type": "Address"
897
+ },
898
+ {
899
+ "name": "index",
900
+ "type": "number"
757
901
  }
758
902
  ]
759
903
  },
760
904
  {
761
- "name": "cancel",
762
- "description": "Emitted when the cancel button is clicked",
905
+ "name": "select-disabled",
906
+ "description": "Emitted when a disabled address is selected",
763
907
  "arguments": [
764
908
  {
765
- "name": "{ selectedValues, selectedOptions }"
909
+ "name": "item",
910
+ "type": "Address"
911
+ },
912
+ {
913
+ "name": "index",
914
+ "type": "number"
766
915
  }
767
916
  ]
768
917
  },
769
918
  {
770
- "name": "change",
771
- "description": "Emitted when current option is changed",
919
+ "name": "click-item",
920
+ "description": "Emitted when an address item is clicked",
772
921
  "arguments": [
773
922
  {
774
- "name": "{ selectedValues, selectedOptions, columnIndex }"
923
+ "name": "item",
924
+ "type": "Address"
925
+ },
926
+ {
927
+ "name": "index",
928
+ "type": "number"
775
929
  }
776
930
  ]
777
931
  }
@@ -780,37 +934,7 @@
780
934
  {
781
935
  "name": "v-model",
782
936
  "default": "-",
783
- "description": "the `code` of selected area",
784
- "options": [],
785
- "value": {
786
- "type": "string",
787
- "kind": "expression"
788
- }
789
- },
790
- {
791
- "name": "title",
792
- "default": "-",
793
- "description": "Toolbar title",
794
- "options": [],
795
- "value": {
796
- "type": "string",
797
- "kind": "expression"
798
- }
799
- },
800
- {
801
- "name": "confirm-button-text",
802
- "default": "`Confirm`",
803
- "description": "Text of confirm button",
804
- "options": [],
805
- "value": {
806
- "type": "string",
807
- "kind": "expression"
808
- }
809
- },
810
- {
811
- "name": "cancel-button-text",
812
- "default": "`Cancel`",
813
- "description": "Text of cancel button",
937
+ "description": "Id of chosen address",
814
938
  "options": [],
815
939
  "value": {
816
940
  "type": "string",
@@ -818,39 +942,39 @@
818
942
  }
819
943
  },
820
944
  {
821
- "name": "area-list",
822
- "default": "-",
823
- "description": "Area list data",
945
+ "name": "list",
946
+ "default": "`[]`",
947
+ "description": "Address list",
824
948
  "options": [],
825
949
  "value": {
826
- "type": "object",
950
+ "type": "Address[]",
827
951
  "kind": "expression"
828
952
  }
829
953
  },
830
954
  {
831
- "name": "columns-placeholder",
955
+ "name": "disabled-list",
832
956
  "default": "`[]`",
833
- "description": "Placeholder of columns",
957
+ "description": "Disabled address list",
834
958
  "options": [],
835
959
  "value": {
836
- "type": "string[]",
960
+ "type": "Address[]",
837
961
  "kind": "expression"
838
962
  }
839
963
  },
840
964
  {
841
- "name": "loading",
842
- "default": "`false`",
843
- "description": "Whether to show loading prompt",
965
+ "name": "disabled-text",
966
+ "default": "-",
967
+ "description": "Disabled text",
844
968
  "options": [],
845
969
  "value": {
846
- "type": "boolean",
970
+ "type": "string",
847
971
  "kind": "expression"
848
972
  }
849
973
  },
850
974
  {
851
- "name": "readonly",
852
- "default": "`false`",
853
- "description": "Whether to be readonly",
975
+ "name": "switchable",
976
+ "default": "`true`",
977
+ "description": "Whether to allow switch address",
854
978
  "options": [],
855
979
  "value": {
856
980
  "type": "boolean",
@@ -858,42 +982,22 @@
858
982
  }
859
983
  },
860
984
  {
861
- "name": "option-height",
862
- "default": "`44`",
863
- "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
864
- "options": [],
865
- "value": {
866
- "type": "number | string",
867
- "kind": "expression"
868
- }
869
- },
870
- {
871
- "name": "columns-num",
872
- "default": "`3`",
873
- "description": "Level of picker",
874
- "options": [],
875
- "value": {
876
- "type": "number | string",
877
- "kind": "expression"
878
- }
879
- },
880
- {
881
- "name": "visible-option-num",
882
- "default": "`6`",
883
- "description": "Count of visible columns",
985
+ "name": "add-button-text",
986
+ "default": "`Add new address`",
987
+ "description": "Add button text",
884
988
  "options": [],
885
989
  "value": {
886
- "type": "number | string",
990
+ "type": "string",
887
991
  "kind": "expression"
888
992
  }
889
993
  },
890
994
  {
891
- "name": "swipe-duration",
892
- "default": "`1000`",
893
- "description": "Duration of the momentum animation, unit `ms`",
995
+ "name": "default-tag-text",
996
+ "default": "-",
997
+ "description": "Default tag text",
894
998
  "options": [],
895
999
  "value": {
896
- "type": "number | string",
1000
+ "type": "string",
897
1001
  "kind": "expression"
898
1002
  }
899
1003
  }
@@ -986,118 +1090,67 @@
986
1090
  ]
987
1091
  },
988
1092
  {
989
- "name": "van-button",
1093
+ "name": "van-area",
990
1094
  "slots": [
991
1095
  {
992
- "name": "default",
993
- "description": "Default slot"
1096
+ "name": "toolbar",
1097
+ "description": "Custom toolbar content"
994
1098
  },
995
1099
  {
996
- "name": "icon",
997
- "description": "Custom icon"
1100
+ "name": "title",
1101
+ "description": "Custom title"
998
1102
  },
999
1103
  {
1000
- "name": "loading",
1001
- "description": "Custom loading icon"
1104
+ "name": "confirm",
1105
+ "description": "Custom confirm button text"
1106
+ },
1107
+ {
1108
+ "name": "cancel",
1109
+ "description": "Custom cancel button text"
1110
+ },
1111
+ {
1112
+ "name": "columns-top",
1113
+ "description": "Custom content above columns"
1114
+ },
1115
+ {
1116
+ "name": "columns-bottom",
1117
+ "description": "Custom content below columns"
1002
1118
  }
1003
1119
  ],
1004
1120
  "events": [
1005
1121
  {
1006
- "name": "click",
1007
- "description": "Emitted when button is clicked and not disabled or loading",
1122
+ "name": "confirm",
1123
+ "description": "Emitted when the confirm button is clicked",
1008
1124
  "arguments": [
1009
1125
  {
1010
- "name": "event",
1011
- "type": "MouseEvent"
1126
+ "name": "{ selectedValues, selectedOptions }"
1012
1127
  }
1013
1128
  ]
1014
1129
  },
1015
1130
  {
1016
- "name": "touchstart",
1017
- "description": "Emitted when button is touched",
1131
+ "name": "cancel",
1132
+ "description": "Emitted when the cancel button is clicked",
1018
1133
  "arguments": [
1019
1134
  {
1020
- "name": "event",
1021
- "type": "TouchEvent"
1135
+ "name": "{ selectedValues, selectedOptions }"
1022
1136
  }
1023
- ]
1024
- }
1025
- ],
1026
- "attributes": [
1027
- {
1028
- "name": "type",
1029
- "default": "`default`",
1030
- "description": "Can be set to `primary` `success` `warning` `danger`",
1031
- "options": [],
1032
- "value": {
1033
- "type": "string",
1034
- "kind": "expression"
1035
- }
1036
- },
1037
- {
1038
- "name": "size",
1039
- "default": "`normal`",
1040
- "description": "Can be set to `large` `small` `mini`",
1041
- "options": [],
1042
- "value": {
1043
- "type": "string",
1044
- "kind": "expression"
1045
- }
1046
- },
1047
- {
1048
- "name": "text",
1049
- "default": "-",
1050
- "description": "Text",
1051
- "options": [],
1052
- "value": {
1053
- "type": "string",
1054
- "kind": "expression"
1055
- }
1056
- },
1057
- {
1058
- "name": "color",
1059
- "default": "-",
1060
- "description": "Color, support linear-gradient",
1061
- "options": [],
1062
- "value": {
1063
- "type": "string",
1064
- "kind": "expression"
1065
- }
1066
- },
1067
- {
1068
- "name": "icon",
1069
- "default": "-",
1070
- "description": "Left Icon",
1071
- "options": [],
1072
- "value": {
1073
- "type": "string",
1074
- "kind": "expression"
1075
- }
1076
- },
1077
- {
1078
- "name": "icon-prefix",
1079
- "default": "`van-icon`",
1080
- "description": "Icon className prefix",
1081
- "options": [],
1082
- "value": {
1083
- "type": "string",
1084
- "kind": "expression"
1085
- }
1137
+ ]
1086
1138
  },
1087
1139
  {
1088
- "name": "icon-position",
1089
- "default": "`left`",
1090
- "description": "Icon position, can be set to `right`",
1091
- "options": [],
1092
- "value": {
1093
- "type": "string",
1094
- "kind": "expression"
1095
- }
1096
- },
1140
+ "name": "change",
1141
+ "description": "Emitted when current option is changed",
1142
+ "arguments": [
1143
+ {
1144
+ "name": "{ selectedValues, selectedOptions, columnIndex }"
1145
+ }
1146
+ ]
1147
+ }
1148
+ ],
1149
+ "attributes": [
1097
1150
  {
1098
- "name": "tag",
1099
- "default": "`button`",
1100
- "description": "HTML Tag",
1151
+ "name": "v-model",
1152
+ "default": "-",
1153
+ "description": "the `code` of selected area",
1101
1154
  "options": [],
1102
1155
  "value": {
1103
1156
  "type": "string",
@@ -1105,9 +1158,9 @@
1105
1158
  }
1106
1159
  },
1107
1160
  {
1108
- "name": "native-type",
1109
- "default": "`button`",
1110
- "description": "Native Type Attribute",
1161
+ "name": "title",
1162
+ "default": "-",
1163
+ "description": "Toolbar title",
1111
1164
  "options": [],
1112
1165
  "value": {
1113
1166
  "type": "string",
@@ -1115,49 +1168,49 @@
1115
1168
  }
1116
1169
  },
1117
1170
  {
1118
- "name": "plain",
1119
- "default": "`false`",
1120
- "description": "Whether to be plain button",
1171
+ "name": "confirm-button-text",
1172
+ "default": "`Confirm`",
1173
+ "description": "Text of confirm button",
1121
1174
  "options": [],
1122
1175
  "value": {
1123
- "type": "boolean",
1176
+ "type": "string",
1124
1177
  "kind": "expression"
1125
1178
  }
1126
1179
  },
1127
1180
  {
1128
- "name": "block",
1129
- "default": "`false`",
1130
- "description": "Whether to set display block",
1181
+ "name": "cancel-button-text",
1182
+ "default": "`Cancel`",
1183
+ "description": "Text of cancel button",
1131
1184
  "options": [],
1132
1185
  "value": {
1133
- "type": "boolean",
1186
+ "type": "string",
1134
1187
  "kind": "expression"
1135
1188
  }
1136
1189
  },
1137
1190
  {
1138
- "name": "round",
1139
- "default": "`false`",
1140
- "description": "Whether to be round button",
1191
+ "name": "area-list",
1192
+ "default": "-",
1193
+ "description": "Area list data",
1141
1194
  "options": [],
1142
1195
  "value": {
1143
- "type": "boolean",
1196
+ "type": "object",
1144
1197
  "kind": "expression"
1145
1198
  }
1146
1199
  },
1147
1200
  {
1148
- "name": "square",
1149
- "default": "`false`",
1150
- "description": "Whether to be square button",
1201
+ "name": "columns-placeholder",
1202
+ "default": "`[]`",
1203
+ "description": "Placeholder of columns",
1151
1204
  "options": [],
1152
1205
  "value": {
1153
- "type": "boolean",
1206
+ "type": "string[]",
1154
1207
  "kind": "expression"
1155
1208
  }
1156
1209
  },
1157
1210
  {
1158
- "name": "disabled",
1211
+ "name": "loading",
1159
1212
  "default": "`false`",
1160
- "description": "Whether to disable button",
1213
+ "description": "Whether to show loading prompt",
1161
1214
  "options": [],
1162
1215
  "value": {
1163
1216
  "type": "boolean",
@@ -1165,9 +1218,9 @@
1165
1218
  }
1166
1219
  },
1167
1220
  {
1168
- "name": "loading",
1221
+ "name": "readonly",
1169
1222
  "default": "`false`",
1170
- "description": "Whether to show loading status",
1223
+ "description": "Whether to be readonly",
1171
1224
  "options": [],
1172
1225
  "value": {
1173
1226
  "type": "boolean",
@@ -1175,29 +1228,9 @@
1175
1228
  }
1176
1229
  },
1177
1230
  {
1178
- "name": "loading-text",
1179
- "default": "-",
1180
- "description": "Loading text",
1181
- "options": [],
1182
- "value": {
1183
- "type": "string",
1184
- "kind": "expression"
1185
- }
1186
- },
1187
- {
1188
- "name": "loading-type",
1189
- "default": "`circular`",
1190
- "description": "Loading type, can be set to `spinner`",
1191
- "options": [],
1192
- "value": {
1193
- "type": "string",
1194
- "kind": "expression"
1195
- }
1196
- },
1197
- {
1198
- "name": "loading-size",
1199
- "default": "`20px`",
1200
- "description": "Loading icon size",
1231
+ "name": "option-height",
1232
+ "default": "`44`",
1233
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
1201
1234
  "options": [],
1202
1235
  "value": {
1203
1236
  "type": "number | string",
@@ -1205,133 +1238,100 @@
1205
1238
  }
1206
1239
  },
1207
1240
  {
1208
- "name": "url",
1209
- "default": "-",
1210
- "description": "Link URL",
1241
+ "name": "columns-num",
1242
+ "default": "`3`",
1243
+ "description": "Level of picker",
1211
1244
  "options": [],
1212
1245
  "value": {
1213
- "type": "string",
1246
+ "type": "number | string",
1214
1247
  "kind": "expression"
1215
1248
  }
1216
1249
  },
1217
1250
  {
1218
- "name": "to",
1219
- "default": "-",
1220
- "description": "Target route of the link, same as using vue-router",
1251
+ "name": "visible-option-num",
1252
+ "default": "`6`",
1253
+ "description": "Count of visible columns",
1221
1254
  "options": [],
1222
1255
  "value": {
1223
- "type": "string | object",
1256
+ "type": "number | string",
1224
1257
  "kind": "expression"
1225
1258
  }
1226
1259
  },
1227
1260
  {
1228
- "name": "replace",
1229
- "default": "`false`",
1230
- "description": "If true, the navigation will not leave a history record",
1261
+ "name": "swipe-duration",
1262
+ "default": "`1000`",
1263
+ "description": "Duration of the momentum animation, unit `ms`",
1231
1264
  "options": [],
1232
1265
  "value": {
1233
- "type": "boolean",
1266
+ "type": "number | string",
1234
1267
  "kind": "expression"
1235
1268
  }
1236
1269
  }
1237
1270
  ]
1238
1271
  },
1239
1272
  {
1240
- "name": "van-action-sheet",
1273
+ "name": "van-button",
1241
1274
  "slots": [
1242
1275
  {
1243
1276
  "name": "default",
1244
- "description": "Custom content"
1245
- },
1246
- {
1247
- "name": "description",
1248
- "description": "Custom description above the options"
1277
+ "description": "Default slot"
1249
1278
  },
1250
1279
  {
1251
- "name": "cancel",
1252
- "description": "Custom the content of cancel button"
1280
+ "name": "icon",
1281
+ "description": "Custom icon"
1253
1282
  },
1254
1283
  {
1255
- "name": "action",
1256
- "description": "Custom the content of action"
1284
+ "name": "loading",
1285
+ "description": "Custom loading icon"
1257
1286
  }
1258
1287
  ],
1259
1288
  "events": [
1260
1289
  {
1261
- "name": "select",
1262
- "description": "Emitted when an option is clicked",
1290
+ "name": "click",
1291
+ "description": "Emitted when button is clicked and not disabled or loading",
1263
1292
  "arguments": [
1264
1293
  {
1265
- "name": "action",
1266
- "type": "ActionSheetAction"
1267
- },
1268
- {
1269
- "name": "index",
1270
- "type": "number"
1294
+ "name": "event",
1295
+ "type": "MouseEvent"
1271
1296
  }
1272
1297
  ]
1273
1298
  },
1274
1299
  {
1275
- "name": "cancel",
1276
- "description": "Emitted when the cancel button is clicked",
1277
- "arguments": []
1278
- },
1279
- {
1280
- "name": "open",
1281
- "description": "Emitted when opening ActionSheet",
1282
- "arguments": []
1283
- },
1284
- {
1285
- "name": "close",
1286
- "description": "Emitted when closing ActionSheet",
1287
- "arguments": []
1288
- },
1289
- {
1290
- "name": "opened",
1291
- "description": "Emitted when ActionSheet is opened",
1292
- "arguments": []
1293
- },
1294
- {
1295
- "name": "closed",
1296
- "description": "Emitted when ActionSheet is closed",
1297
- "arguments": []
1298
- },
1299
- {
1300
- "name": "click-overlay",
1301
- "description": "Emitted when overlay is clicked",
1300
+ "name": "touchstart",
1301
+ "description": "Emitted when button is touched",
1302
1302
  "arguments": [
1303
1303
  {
1304
1304
  "name": "event",
1305
- "type": "MouseEvent"
1305
+ "type": "TouchEvent"
1306
1306
  }
1307
1307
  ]
1308
1308
  }
1309
1309
  ],
1310
1310
  "attributes": [
1311
1311
  {
1312
- "name": "v-model:show",
1313
- "default": "`false`",
1314
- "description": "Whether to show ActionSheet",
1312
+ "name": "type",
1313
+ "default": "`default`",
1314
+ "description": "Can be set to `primary` `success` `warning` `danger`",
1315
1315
  "options": [],
1316
1316
  "value": {
1317
- "type": "boolean",
1317
+ "type": "string",
1318
1318
  "kind": "expression"
1319
1319
  }
1320
1320
  },
1321
1321
  {
1322
- "name": "actions",
1323
- "default": "`[]`",
1324
- "description": "Options",
1322
+ "name": "size",
1323
+ "default": "`normal`",
1324
+ "description": "Can be set to `large` `small` `mini`",
1325
1325
  "options": [],
1326
1326
  "value": {
1327
- "type": "ActionSheetAction[]",
1327
+ "type": "string",
1328
1328
  "kind": "expression"
1329
1329
  }
1330
1330
  },
1331
1331
  {
1332
- "name": "title",
1332
+ "name": "text",
1333
1333
  "default": "-",
1334
- "description": "Title",
1334
+ "description": "Text",
1335
1335
  "options": [],
1336
1336
  "value": {
1337
1337
  "type": "string",
@@ -1339,9 +1339,9 @@
1339
1339
  }
1340
1340
  },
1341
1341
  {
1342
- "name": "cancel-text",
1342
+ "name": "color",
1343
1343
  "default": "-",
1344
- "description": "Text of cancel button",
1344
+ "description": "Color, support linear-gradient",
1345
1345
  "options": [],
1346
1346
  "value": {
1347
1347
  "type": "string",
@@ -1349,9 +1349,9 @@
1349
1349
  }
1350
1350
  },
1351
1351
  {
1352
- "name": "description",
1352
+ "name": "icon",
1353
1353
  "default": "-",
1354
- "description": "Description above the options",
1354
+ "description": "Left Icon",
1355
1355
  "options": [],
1356
1356
  "value": {
1357
1357
  "type": "string",
@@ -1359,19 +1359,19 @@
1359
1359
  }
1360
1360
  },
1361
1361
  {
1362
- "name": "closeable",
1363
- "default": "`true`",
1364
- "description": "Whether to show close icon",
1362
+ "name": "icon-prefix",
1363
+ "default": "`van-icon`",
1364
+ "description": "Icon className prefix",
1365
1365
  "options": [],
1366
1366
  "value": {
1367
- "type": "boolean",
1367
+ "type": "string",
1368
1368
  "kind": "expression"
1369
1369
  }
1370
1370
  },
1371
1371
  {
1372
- "name": "close-icon",
1373
- "default": "`cross`",
1374
- "description": "Close icon name",
1372
+ "name": "icon-position",
1373
+ "default": "`left`",
1374
+ "description": "Icon position, can be set to `right`",
1375
1375
  "options": [],
1376
1376
  "value": {
1377
1377
  "type": "string",
@@ -1379,29 +1379,29 @@
1379
1379
  }
1380
1380
  },
1381
1381
  {
1382
- "name": "duration",
1383
- "default": "`0.3`",
1384
- "description": "Transition duration, unit second",
1382
+ "name": "tag",
1383
+ "default": "`button`",
1384
+ "description": "HTML Tag",
1385
1385
  "options": [],
1386
1386
  "value": {
1387
- "type": "number | string",
1387
+ "type": "string",
1388
1388
  "kind": "expression"
1389
1389
  }
1390
1390
  },
1391
1391
  {
1392
- "name": "z-index",
1393
- "default": "`2000+`",
1394
- "description": "Set the z-index to a fixed value",
1392
+ "name": "native-type",
1393
+ "default": "`button`",
1394
+ "description": "Native Type Attribute",
1395
1395
  "options": [],
1396
1396
  "value": {
1397
- "type": "number | string",
1397
+ "type": "string",
1398
1398
  "kind": "expression"
1399
1399
  }
1400
1400
  },
1401
1401
  {
1402
- "name": "round",
1403
- "default": "`true`",
1404
- "description": "Whether to show round corner",
1402
+ "name": "plain",
1403
+ "default": "`false`",
1404
+ "description": "Whether to be plain button",
1405
1405
  "options": [],
1406
1406
  "value": {
1407
1407
  "type": "boolean",
@@ -1409,9 +1409,9 @@
1409
1409
  }
1410
1410
  },
1411
1411
  {
1412
- "name": "overlay",
1413
- "default": "`true`",
1414
- "description": "Whether to show overlay",
1412
+ "name": "block",
1413
+ "default": "`false`",
1414
+ "description": "Whether to set display block",
1415
1415
  "options": [],
1416
1416
  "value": {
1417
1417
  "type": "boolean",
@@ -1419,29 +1419,29 @@
1419
1419
  }
1420
1420
  },
1421
1421
  {
1422
- "name": "overlay-class",
1423
- "default": "-",
1424
- "description": "Custom overlay class",
1422
+ "name": "round",
1423
+ "default": "`false`",
1424
+ "description": "Whether to be round button",
1425
1425
  "options": [],
1426
1426
  "value": {
1427
- "type": "string | Array | object",
1427
+ "type": "boolean",
1428
1428
  "kind": "expression"
1429
1429
  }
1430
1430
  },
1431
1431
  {
1432
- "name": "overlay-style",
1433
- "default": "-",
1434
- "description": "Custom overlay style",
1432
+ "name": "square",
1433
+ "default": "`false`",
1434
+ "description": "Whether to be square button",
1435
1435
  "options": [],
1436
1436
  "value": {
1437
- "type": "object",
1437
+ "type": "boolean",
1438
1438
  "kind": "expression"
1439
1439
  }
1440
1440
  },
1441
1441
  {
1442
- "name": "lock-scroll",
1443
- "default": "`true`",
1444
- "description": "Whether to lock background scroll",
1442
+ "name": "disabled",
1443
+ "default": "`false`",
1444
+ "description": "Whether to disable button",
1445
1445
  "options": [],
1446
1446
  "value": {
1447
1447
  "type": "boolean",
@@ -1449,9 +1449,9 @@
1449
1449
  }
1450
1450
  },
1451
1451
  {
1452
- "name": "lazy-render",
1453
- "default": "`true`",
1454
- "description": "Whether to lazy render util appeared",
1452
+ "name": "loading",
1453
+ "default": "`false`",
1454
+ "description": "Whether to show loading status",
1455
1455
  "options": [],
1456
1456
  "value": {
1457
1457
  "type": "boolean",
@@ -1459,62 +1459,62 @@
1459
1459
  }
1460
1460
  },
1461
1461
  {
1462
- "name": "close-on-popstate",
1463
- "default": "`true`",
1464
- "description": "Whether to close when popstate",
1462
+ "name": "loading-text",
1463
+ "default": "-",
1464
+ "description": "Loading text",
1465
1465
  "options": [],
1466
1466
  "value": {
1467
- "type": "boolean",
1467
+ "type": "string",
1468
1468
  "kind": "expression"
1469
1469
  }
1470
1470
  },
1471
1471
  {
1472
- "name": "close-on-click-action",
1473
- "default": "`false`",
1474
- "description": "Whether to close when an action is clicked",
1472
+ "name": "loading-type",
1473
+ "default": "`circular`",
1474
+ "description": "Loading type, can be set to `spinner`",
1475
1475
  "options": [],
1476
1476
  "value": {
1477
- "type": "boolean",
1477
+ "type": "string",
1478
1478
  "kind": "expression"
1479
1479
  }
1480
1480
  },
1481
1481
  {
1482
- "name": "close-on-click-overlay",
1483
- "default": "`true`",
1484
- "description": "Whether to close when overlay is clicked",
1482
+ "name": "loading-size",
1483
+ "default": "`20px`",
1484
+ "description": "Loading icon size",
1485
1485
  "options": [],
1486
1486
  "value": {
1487
- "type": "boolean",
1487
+ "type": "number | string",
1488
1488
  "kind": "expression"
1489
1489
  }
1490
1490
  },
1491
1491
  {
1492
- "name": "safe-area-inset-bottom",
1493
- "default": "`true`",
1494
- "description": "Whether to enable bottom safe area adaptation",
1492
+ "name": "url",
1493
+ "default": "-",
1494
+ "description": "Link URL",
1495
1495
  "options": [],
1496
1496
  "value": {
1497
- "type": "boolean",
1497
+ "type": "string",
1498
1498
  "kind": "expression"
1499
1499
  }
1500
1500
  },
1501
1501
  {
1502
- "name": "teleport",
1502
+ "name": "to",
1503
1503
  "default": "-",
1504
- "description": "Specifies a target element where ActionSheet will be mounted",
1504
+ "description": "Target route of the link, same as using vue-router",
1505
1505
  "options": [],
1506
1506
  "value": {
1507
- "type": "string | Element",
1507
+ "type": "string | object",
1508
1508
  "kind": "expression"
1509
1509
  }
1510
1510
  },
1511
1511
  {
1512
- "name": "before-close",
1513
- "default": "-",
1514
- "description": "Callback function before close",
1512
+ "name": "replace",
1513
+ "default": "`false`",
1514
+ "description": "If true, the navigation will not leave a history record",
1515
1515
  "options": [],
1516
1516
  "value": {
1517
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
1517
+ "type": "boolean",
1518
1518
  "kind": "expression"
1519
1519
  }
1520
1520
  }
@@ -2287,7 +2287,7 @@
2287
2287
  "description": "Custom the fields of options",
2288
2288
  "options": [],
2289
2289
  "value": {
2290
- "type": "object",
2290
+ "type": "CascaderFieldNames",
2291
2291
  "kind": "expression"
2292
2292
  }
2293
2293
  }
@@ -4835,7 +4835,7 @@
4835
4835
  "description": "Emitted when end validation",
4836
4836
  "arguments": [
4837
4837
  {
4838
- "name": "{ status: string }"
4838
+ "name": "{ status: string, message: string }"
4839
4839
  }
4840
4840
  ]
4841
4841
  }
@@ -6734,99 +6734,6 @@
6734
6734
  }
6735
6735
  ]
6736
6736
  },
6737
- {
6738
- "name": "van-overlay",
6739
- "slots": [
6740
- {
6741
- "name": "default",
6742
- "description": "Default slot"
6743
- }
6744
- ],
6745
- "events": [
6746
- {
6747
- "name": "click",
6748
- "description": "Emitted when component is clicked",
6749
- "arguments": [
6750
- {
6751
- "name": "event",
6752
- "type": "MouseEvent"
6753
- }
6754
- ]
6755
- }
6756
- ],
6757
- "attributes": [
6758
- {
6759
- "name": "show",
6760
- "default": "`false`",
6761
- "description": "Whether to show overlay",
6762
- "options": [],
6763
- "value": {
6764
- "type": "boolean",
6765
- "kind": "expression"
6766
- }
6767
- },
6768
- {
6769
- "name": "z-index",
6770
- "default": "`1`",
6771
- "description": "z-index",
6772
- "options": [],
6773
- "value": {
6774
- "type": "number | string",
6775
- "kind": "expression"
6776
- }
6777
- },
6778
- {
6779
- "name": "duration",
6780
- "default": "`0.3`",
6781
- "description": "Animation duration",
6782
- "options": [],
6783
- "value": {
6784
- "type": "number | string",
6785
- "kind": "expression"
6786
- }
6787
- },
6788
- {
6789
- "name": "class-name",
6790
- "default": "-",
6791
- "description": "ClassName",
6792
- "options": [],
6793
- "value": {
6794
- "type": "string",
6795
- "kind": "expression"
6796
- }
6797
- },
6798
- {
6799
- "name": "custom-class",
6800
- "default": "-",
6801
- "description": "Custom style",
6802
- "options": [],
6803
- "value": {
6804
- "type": "object",
6805
- "kind": "expression"
6806
- }
6807
- },
6808
- {
6809
- "name": "lock-scroll",
6810
- "default": "`true`",
6811
- "description": "Whether to lock background scroll",
6812
- "options": [],
6813
- "value": {
6814
- "type": "boolean",
6815
- "kind": "expression"
6816
- }
6817
- },
6818
- {
6819
- "name": "lazy-render",
6820
- "default": "`true`",
6821
- "description": "Whether to lazy render util appeared",
6822
- "options": [],
6823
- "value": {
6824
- "type": "boolean",
6825
- "kind": "expression"
6826
- }
6827
- }
6828
- ]
6829
- },
6830
6737
  {
6831
6738
  "name": "van-number-keyboard",
6832
6739
  "slots": [
@@ -7053,6 +6960,99 @@
7053
6960
  }
7054
6961
  ]
7055
6962
  },
6963
+ {
6964
+ "name": "van-overlay",
6965
+ "slots": [
6966
+ {
6967
+ "name": "default",
6968
+ "description": "Default slot"
6969
+ }
6970
+ ],
6971
+ "events": [
6972
+ {
6973
+ "name": "click",
6974
+ "description": "Emitted when component is clicked",
6975
+ "arguments": [
6976
+ {
6977
+ "name": "event",
6978
+ "type": "MouseEvent"
6979
+ }
6980
+ ]
6981
+ }
6982
+ ],
6983
+ "attributes": [
6984
+ {
6985
+ "name": "show",
6986
+ "default": "`false`",
6987
+ "description": "Whether to show overlay",
6988
+ "options": [],
6989
+ "value": {
6990
+ "type": "boolean",
6991
+ "kind": "expression"
6992
+ }
6993
+ },
6994
+ {
6995
+ "name": "z-index",
6996
+ "default": "`1`",
6997
+ "description": "z-index",
6998
+ "options": [],
6999
+ "value": {
7000
+ "type": "number | string",
7001
+ "kind": "expression"
7002
+ }
7003
+ },
7004
+ {
7005
+ "name": "duration",
7006
+ "default": "`0.3`",
7007
+ "description": "Animation duration",
7008
+ "options": [],
7009
+ "value": {
7010
+ "type": "number | string",
7011
+ "kind": "expression"
7012
+ }
7013
+ },
7014
+ {
7015
+ "name": "class-name",
7016
+ "default": "-",
7017
+ "description": "ClassName",
7018
+ "options": [],
7019
+ "value": {
7020
+ "type": "string",
7021
+ "kind": "expression"
7022
+ }
7023
+ },
7024
+ {
7025
+ "name": "custom-class",
7026
+ "default": "-",
7027
+ "description": "Custom style",
7028
+ "options": [],
7029
+ "value": {
7030
+ "type": "object",
7031
+ "kind": "expression"
7032
+ }
7033
+ },
7034
+ {
7035
+ "name": "lock-scroll",
7036
+ "default": "`true`",
7037
+ "description": "Whether to lock background scroll",
7038
+ "options": [],
7039
+ "value": {
7040
+ "type": "boolean",
7041
+ "kind": "expression"
7042
+ }
7043
+ },
7044
+ {
7045
+ "name": "lazy-render",
7046
+ "default": "`true`",
7047
+ "description": "Whether to lazy render util appeared",
7048
+ "options": [],
7049
+ "value": {
7050
+ "type": "boolean",
7051
+ "kind": "expression"
7052
+ }
7053
+ }
7054
+ ]
7055
+ },
7056
7056
  {
7057
7057
  "name": "van-pagination",
7058
7058
  "slots": [