vant 3.2.3 → 3.2.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.
Files changed (130) hide show
  1. package/changelog.generated.md +90 -45
  2. package/es/address-edit/index.d.ts +2 -0
  3. package/es/area/index.d.ts +2 -0
  4. package/es/calendar/index.d.ts +2 -0
  5. package/es/checkbox/Checker.js +1 -1
  6. package/es/checkbox/index.d.ts +2 -0
  7. package/es/checkbox-group/index.d.ts +2 -0
  8. package/es/collapse-item/CollapseItem.js +3 -1
  9. package/es/collapse-item/index.d.ts +2 -0
  10. package/es/count-down/CountDown.d.ts +2 -10
  11. package/es/count-down/index.d.ts +3 -1
  12. package/es/count-down/types.d.ts +11 -0
  13. package/es/count-down/types.js +1 -0
  14. package/es/coupon-list/CouponList.js +4 -11
  15. package/es/coupon-list/index.css +1 -1
  16. package/es/coupon-list/index.less +6 -1
  17. package/es/datetime-picker/index.d.ts +2 -0
  18. package/es/dialog/Dialog.d.ts +1 -4
  19. package/es/dialog/Dialog.js +2 -1
  20. package/es/dialog/function-call.d.ts +12 -37
  21. package/es/dialog/index.d.ts +2 -3
  22. package/es/dialog/types.d.ts +36 -0
  23. package/es/dialog/types.js +1 -0
  24. package/es/dropdown-item/index.d.ts +2 -0
  25. package/es/dropdown-menu/index.d.ts +2 -0
  26. package/es/field/Field.d.ts +8 -6
  27. package/es/field/Field.js +2 -2
  28. package/es/field/index.d.ts +6 -4
  29. package/es/form/index.d.ts +2 -0
  30. package/es/icon/index.css +1 -1
  31. package/es/image/Image.js +1 -2
  32. package/es/image-preview/index.d.ts +2 -0
  33. package/es/index-bar/index.d.ts +2 -0
  34. package/es/index.d.ts +1 -1
  35. package/es/index.js +1 -1
  36. package/es/list/index.d.ts +2 -0
  37. package/es/notice-bar/index.d.ts +2 -0
  38. package/es/notify/Notify.d.ts +1 -1
  39. package/es/notify/function-call.d.ts +4 -17
  40. package/es/notify/index.d.ts +2 -3
  41. package/es/notify/types.d.ts +20 -0
  42. package/es/notify/types.js +1 -0
  43. package/es/picker/index.d.ts +2 -0
  44. package/es/popover/Popover.d.ts +1 -0
  45. package/es/progress/index.d.ts +2 -0
  46. package/es/search/Search.d.ts +8 -0
  47. package/es/search/index.d.ts +8 -0
  48. package/es/submit-bar/index.css +1 -1
  49. package/es/submit-bar/index.less +1 -1
  50. package/es/swipe/index.d.ts +2 -0
  51. package/es/swipe-cell/index.d.ts +2 -0
  52. package/es/tabs/index.d.ts +2 -0
  53. package/es/tabs/utils.js +2 -4
  54. package/es/toast/Toast.d.ts +1 -2
  55. package/es/toast/Toast.js +2 -1
  56. package/es/toast/function-call.d.ts +2 -25
  57. package/es/toast/index.d.ts +2 -3
  58. package/es/toast/types.d.ts +32 -0
  59. package/es/toast/types.js +1 -0
  60. package/es/uploader/index.css +1 -1
  61. package/es/uploader/index.d.ts +2 -0
  62. package/es/uploader/index.less +0 -1
  63. package/lib/address-edit/index.d.ts +2 -0
  64. package/lib/area/index.d.ts +2 -0
  65. package/lib/calendar/index.d.ts +2 -0
  66. package/lib/checkbox/Checker.js +1 -1
  67. package/lib/checkbox/index.d.ts +2 -0
  68. package/lib/checkbox-group/index.d.ts +2 -0
  69. package/lib/collapse-item/CollapseItem.js +3 -1
  70. package/lib/collapse-item/index.d.ts +2 -0
  71. package/lib/count-down/CountDown.d.ts +2 -10
  72. package/lib/count-down/index.d.ts +3 -1
  73. package/lib/count-down/types.d.ts +11 -0
  74. package/lib/count-down/types.js +3 -0
  75. package/lib/coupon-list/CouponList.js +4 -12
  76. package/lib/coupon-list/index.css +1 -1
  77. package/lib/coupon-list/index.less +6 -1
  78. package/lib/datetime-picker/index.d.ts +2 -0
  79. package/lib/dialog/Dialog.d.ts +1 -4
  80. package/lib/dialog/function-call.d.ts +12 -37
  81. package/lib/dialog/index.d.ts +2 -3
  82. package/lib/dialog/types.d.ts +36 -0
  83. package/lib/dialog/types.js +3 -0
  84. package/lib/dropdown-item/index.d.ts +2 -0
  85. package/lib/dropdown-menu/index.d.ts +2 -0
  86. package/lib/field/Field.d.ts +8 -6
  87. package/lib/field/Field.js +2 -2
  88. package/lib/field/index.d.ts +6 -4
  89. package/lib/form/index.d.ts +2 -0
  90. package/lib/icon/index.css +1 -1
  91. package/lib/image/Image.js +1 -2
  92. package/lib/image-preview/index.d.ts +2 -0
  93. package/lib/index-bar/index.d.ts +2 -0
  94. package/lib/index.css +1 -1
  95. package/lib/index.d.ts +1 -1
  96. package/lib/index.js +1 -1
  97. package/lib/list/index.d.ts +2 -0
  98. package/lib/notice-bar/index.d.ts +2 -0
  99. package/lib/notify/Notify.d.ts +1 -1
  100. package/lib/notify/function-call.d.ts +4 -17
  101. package/lib/notify/index.d.ts +2 -3
  102. package/lib/notify/types.d.ts +20 -0
  103. package/lib/notify/types.js +3 -0
  104. package/lib/picker/index.d.ts +2 -0
  105. package/lib/popover/Popover.d.ts +1 -0
  106. package/lib/progress/index.d.ts +2 -0
  107. package/lib/search/Search.d.ts +8 -0
  108. package/lib/search/index.d.ts +8 -0
  109. package/lib/submit-bar/index.css +1 -1
  110. package/lib/submit-bar/index.less +1 -1
  111. package/lib/swipe/index.d.ts +2 -0
  112. package/lib/swipe-cell/index.d.ts +2 -0
  113. package/lib/tabs/index.d.ts +2 -0
  114. package/lib/tabs/utils.js +1 -4
  115. package/lib/toast/Toast.d.ts +1 -2
  116. package/lib/toast/function-call.d.ts +2 -25
  117. package/lib/toast/index.d.ts +2 -3
  118. package/lib/toast/types.d.ts +32 -0
  119. package/lib/toast/types.js +3 -0
  120. package/lib/uploader/index.css +1 -1
  121. package/lib/uploader/index.d.ts +2 -0
  122. package/lib/uploader/index.less +0 -1
  123. package/lib/vant.es.js +225 -269
  124. package/lib/vant.es.min.js +1 -1
  125. package/lib/vant.js +227 -271
  126. package/lib/vant.min.js +1 -1
  127. package/package.json +9 -9
  128. package/vetur/attributes.json +743 -731
  129. package/vetur/tags.json +234 -231
  130. package/vetur/web-types.json +2263 -2233
package/vetur/tags.json CHANGED
@@ -55,23 +55,6 @@
55
55
  "replace"
56
56
  ]
57
57
  },
58
- "van-area": {
59
- "attributes": [
60
- "value",
61
- "title",
62
- "confirm-button-text",
63
- "cancel-button-text",
64
- "area-list",
65
- "columns-placeholder",
66
- "loading",
67
- "readonly",
68
- "item-height",
69
- "columns-num",
70
- "visible-item-count",
71
- "swipe-duration",
72
- "is-oversea-code"
73
- ]
74
- },
75
58
  "van-address-edit": {
76
59
  "attributes": [
77
60
  "area-list",
@@ -109,40 +92,21 @@
109
92
  "default-tag-text"
110
93
  ]
111
94
  },
112
- "van-button": {
95
+ "van-area": {
113
96
  "attributes": [
114
- "type",
115
- "size",
116
- "text",
117
- "color",
118
- "icon",
119
- "icon-prefix",
120
- "icon-position",
121
- "tag",
122
- "native-type",
123
- "block",
124
- "plain",
125
- "square",
126
- "round",
127
- "disabled",
128
- "hairline",
97
+ "value",
98
+ "title",
99
+ "confirm-button-text",
100
+ "cancel-button-text",
101
+ "area-list",
102
+ "columns-placeholder",
129
103
  "loading",
130
- "loading-text",
131
- "loading-type",
132
- "loading-size",
133
- "url",
134
- "to",
135
- "replace"
136
- ]
137
- },
138
- "van-badge": {
139
- "attributes": [
140
- "content",
141
- "color",
142
- "dot",
143
- "max",
144
- "offset",
145
- "show-zero"
104
+ "readonly",
105
+ "item-height",
106
+ "columns-num",
107
+ "visible-item-count",
108
+ "swipe-duration",
109
+ "is-oversea-code"
146
110
  ]
147
111
  },
148
112
  "van-calendar": {
@@ -180,6 +144,42 @@
180
144
  "range-prompt"
181
145
  ]
182
146
  },
147
+ "van-button": {
148
+ "attributes": [
149
+ "type",
150
+ "size",
151
+ "text",
152
+ "color",
153
+ "icon",
154
+ "icon-prefix",
155
+ "icon-position",
156
+ "tag",
157
+ "native-type",
158
+ "block",
159
+ "plain",
160
+ "square",
161
+ "round",
162
+ "disabled",
163
+ "hairline",
164
+ "loading",
165
+ "loading-text",
166
+ "loading-type",
167
+ "loading-size",
168
+ "url",
169
+ "to",
170
+ "replace"
171
+ ]
172
+ },
173
+ "van-badge": {
174
+ "attributes": [
175
+ "content",
176
+ "color",
177
+ "dot",
178
+ "max",
179
+ "offset",
180
+ "show-zero"
181
+ ]
182
+ },
183
183
  "van-card": {
184
184
  "attributes": [
185
185
  "thumb",
@@ -261,22 +261,6 @@
261
261
  "checked-color"
262
262
  ]
263
263
  },
264
- "van-circle": {
265
- "attributes": [
266
- "v-model:current-rate",
267
- "rate",
268
- "size",
269
- "color",
270
- "layer-color",
271
- "fill",
272
- "speed",
273
- "text",
274
- "stroke-width",
275
- "stroke-linecap",
276
- "clockwise",
277
- "start-position"
278
- ]
279
- },
280
264
  "van-row": {
281
265
  "attributes": [
282
266
  "gutter",
@@ -293,6 +277,22 @@
293
277
  "tag"
294
278
  ]
295
279
  },
280
+ "van-circle": {
281
+ "attributes": [
282
+ "v-model:current-rate",
283
+ "rate",
284
+ "size",
285
+ "color",
286
+ "layer-color",
287
+ "fill",
288
+ "speed",
289
+ "text",
290
+ "stroke-width",
291
+ "stroke-linecap",
292
+ "clockwise",
293
+ "start-position"
294
+ ]
295
+ },
296
296
  "van-collapse": {
297
297
  "attributes": [
298
298
  "v-model",
@@ -526,6 +526,17 @@
526
526
  "autocomplete"
527
527
  ]
528
528
  },
529
+ "van-icon": {
530
+ "attributes": [
531
+ "name",
532
+ "dot",
533
+ "badge",
534
+ "color",
535
+ "size",
536
+ "class-prefix",
537
+ "tag"
538
+ ]
539
+ },
529
540
  "van-form": {
530
541
  "attributes": [
531
542
  "label-width",
@@ -543,43 +554,6 @@
543
554
  "submit-on-enter"
544
555
  ]
545
556
  },
546
- "van-icon": {
547
- "attributes": [
548
- "name",
549
- "dot",
550
- "badge",
551
- "color",
552
- "size",
553
- "class-prefix",
554
- "tag"
555
- ]
556
- },
557
- "van-grid": {
558
- "attributes": [
559
- "column-num",
560
- "icon-size",
561
- "gutter",
562
- "border",
563
- "center",
564
- "square",
565
- "clickable",
566
- "direction"
567
- ]
568
- },
569
- "van-grid-item": {
570
- "attributes": [
571
- "text",
572
- "icon",
573
- "icon-prefix",
574
- "icon-color",
575
- "reverse",
576
- "dot",
577
- "badge",
578
- "url",
579
- "to",
580
- "replace"
581
- ]
582
- },
583
557
  "van-image": {
584
558
  "attributes": [
585
559
  "src",
@@ -620,19 +594,32 @@
620
594
  "teleport"
621
595
  ]
622
596
  },
623
- "van-list": {
597
+ "van-grid": {
624
598
  "attributes": [
625
- "v-model:loading",
626
- "v-model:error",
627
- "finished",
628
- "offset",
629
- "loading-text",
630
- "finished-text",
631
- "error-text",
632
- "immediate-check",
599
+ "column-num",
600
+ "icon-size",
601
+ "gutter",
602
+ "border",
603
+ "center",
604
+ "square",
605
+ "clickable",
633
606
  "direction"
634
607
  ]
635
608
  },
609
+ "van-grid-item": {
610
+ "attributes": [
611
+ "text",
612
+ "icon",
613
+ "icon-prefix",
614
+ "icon-color",
615
+ "reverse",
616
+ "dot",
617
+ "badge",
618
+ "url",
619
+ "to",
620
+ "replace"
621
+ ]
622
+ },
636
623
  "van-index-bar": {
637
624
  "attributes": [
638
625
  "index-list",
@@ -648,6 +635,32 @@
648
635
  "index"
649
636
  ]
650
637
  },
638
+ "van-list": {
639
+ "attributes": [
640
+ "v-model:loading",
641
+ "v-model:error",
642
+ "finished",
643
+ "offset",
644
+ "loading-text",
645
+ "finished-text",
646
+ "error-text",
647
+ "immediate-check",
648
+ "direction"
649
+ ]
650
+ },
651
+ "van-notice-bar": {
652
+ "attributes": [
653
+ "mode",
654
+ "text",
655
+ "color",
656
+ "background",
657
+ "left-icon",
658
+ "delay",
659
+ "speed",
660
+ "scrollable",
661
+ "wrapable"
662
+ ]
663
+ },
651
664
  "van-loading": {
652
665
  "attributes": [
653
666
  "color",
@@ -671,42 +684,6 @@
671
684
  "safe-area-inset-top"
672
685
  ]
673
686
  },
674
- "van-notice-bar": {
675
- "attributes": [
676
- "mode",
677
- "text",
678
- "color",
679
- "background",
680
- "left-icon",
681
- "delay",
682
- "speed",
683
- "scrollable",
684
- "wrapable"
685
- ]
686
- },
687
- "van-overlay": {
688
- "attributes": [
689
- "show",
690
- "z-index",
691
- "duration",
692
- "class-name",
693
- "custom-style",
694
- "lock-scroll"
695
- ]
696
- },
697
- "van-pagination": {
698
- "attributes": [
699
- "v-model",
700
- "mode",
701
- "prev-text",
702
- "next-text",
703
- "page-count",
704
- "total-items",
705
- "items-per-page",
706
- "show-page-size",
707
- "force-ellipses"
708
- ]
709
- },
710
687
  "van-number-keyboard": {
711
688
  "attributes": [
712
689
  "v-model",
@@ -728,6 +705,16 @@
728
705
  "random-key-order"
729
706
  ]
730
707
  },
708
+ "van-overlay": {
709
+ "attributes": [
710
+ "show",
711
+ "z-index",
712
+ "duration",
713
+ "class-name",
714
+ "custom-style",
715
+ "lock-scroll"
716
+ ]
717
+ },
731
718
  "van-picker": {
732
719
  "attributes": [
733
720
  "columns",
@@ -745,6 +732,30 @@
745
732
  "swipe-duration"
746
733
  ]
747
734
  },
735
+ "van-password-input": {
736
+ "attributes": [
737
+ "value",
738
+ "info",
739
+ "error-info",
740
+ "length",
741
+ "gutter",
742
+ "mask",
743
+ "focused"
744
+ ]
745
+ },
746
+ "van-pagination": {
747
+ "attributes": [
748
+ "v-model",
749
+ "mode",
750
+ "prev-text",
751
+ "next-text",
752
+ "page-count",
753
+ "total-items",
754
+ "items-per-page",
755
+ "show-page-size",
756
+ "force-ellipses"
757
+ ]
758
+ },
748
759
  "van-popover": {
749
760
  "attributes": [
750
761
  "v-model:show",
@@ -765,17 +776,6 @@
765
776
  "icon-prefix"
766
777
  ]
767
778
  },
768
- "van-password-input": {
769
- "attributes": [
770
- "value",
771
- "info",
772
- "error-info",
773
- "length",
774
- "gutter",
775
- "mask",
776
- "focused"
777
- ]
778
- },
779
779
  "van-popup": {
780
780
  "attributes": [
781
781
  "v-model:show",
@@ -800,6 +800,19 @@
800
800
  "safe-area-inset-bottom"
801
801
  ]
802
802
  },
803
+ "van-progress": {
804
+ "attributes": [
805
+ "percentage",
806
+ "stroke-width",
807
+ "color",
808
+ "track-color",
809
+ "pivot-text",
810
+ "pivot-color",
811
+ "text-color",
812
+ "inactive",
813
+ "show-pivot"
814
+ ]
815
+ },
803
816
  "van-pull-refresh": {
804
817
  "attributes": [
805
818
  "v-model",
@@ -814,17 +827,32 @@
814
827
  "disabled"
815
828
  ]
816
829
  },
817
- "van-progress": {
830
+ "van-search": {
818
831
  "attributes": [
819
- "percentage",
820
- "stroke-width",
821
- "color",
822
- "track-color",
823
- "pivot-text",
824
- "pivot-color",
825
- "text-color",
826
- "inactive",
827
- "show-pivot"
832
+ "v-model",
833
+ "label",
834
+ "name",
835
+ "shape",
836
+ "id",
837
+ "background",
838
+ "maxlength",
839
+ "placeholder",
840
+ "clearable",
841
+ "clear-icon",
842
+ "clear-trigger",
843
+ "autofocus",
844
+ "show-action",
845
+ "action-text",
846
+ "disabled",
847
+ "readonly",
848
+ "error",
849
+ "error-message",
850
+ "formatter",
851
+ "format-trigger",
852
+ "input-align",
853
+ "left-icon",
854
+ "right-icon",
855
+ "autocomplete"
828
856
  ]
829
857
  },
830
858
  "van-radio": {
@@ -865,31 +893,6 @@
865
893
  "touchable"
866
894
  ]
867
895
  },
868
- "van-search": {
869
- "attributes": [
870
- "label",
871
- "shape",
872
- "id",
873
- "background",
874
- "maxlength",
875
- "placeholder",
876
- "clearable",
877
- "clear-icon",
878
- "clear-trigger",
879
- "autofocus",
880
- "show-action",
881
- "action-text",
882
- "disabled",
883
- "readonly",
884
- "error",
885
- "error-message",
886
- "formatter",
887
- "format-trigger",
888
- "input-align",
889
- "left-icon",
890
- "right-icon"
891
- ]
892
- },
893
896
  "van-share-sheet": {
894
897
  "attributes": [
895
898
  "v-model:show",
@@ -926,20 +929,6 @@
926
929
  "replace"
927
930
  ]
928
931
  },
929
- "van-skeleton": {
930
- "attributes": [
931
- "row",
932
- "row-width",
933
- "title",
934
- "avatar",
935
- "loading",
936
- "animate",
937
- "round",
938
- "title-width",
939
- "avatar-size",
940
- "avatar-shape"
941
- ]
942
- },
943
932
  "van-slider": {
944
933
  "attributes": [
945
934
  "v-model",
@@ -957,6 +946,20 @@
957
946
  "vertical"
958
947
  ]
959
948
  },
949
+ "van-skeleton": {
950
+ "attributes": [
951
+ "row",
952
+ "row-width",
953
+ "title",
954
+ "avatar",
955
+ "loading",
956
+ "animate",
957
+ "round",
958
+ "title-width",
959
+ "avatar-size",
960
+ "avatar-shape"
961
+ ]
962
+ },
960
963
  "van-stepper": {
961
964
  "attributes": [
962
965
  "v-model",
@@ -983,30 +986,6 @@
983
986
  "allow-empty"
984
987
  ]
985
988
  },
986
- "van-steps": {
987
- "attributes": [
988
- "active",
989
- "direction",
990
- "active-icon",
991
- "inactive-icon",
992
- "finish-icon",
993
- "active-color",
994
- "inactive-color",
995
- "icon-prefix"
996
- ]
997
- },
998
- "van-step": {
999
- "attributes": []
1000
- },
1001
- "van-sticky": {
1002
- "attributes": [
1003
- "position",
1004
- "offset-top",
1005
- "offset-bottom",
1006
- "z-index",
1007
- "container"
1008
- ]
1009
- },
1010
989
  "van-submit-bar": {
1011
990
  "attributes": [
1012
991
  "price",
@@ -1025,6 +1004,30 @@
1025
1004
  "safe-area-inset-bottom"
1026
1005
  ]
1027
1006
  },
1007
+ "van-sticky": {
1008
+ "attributes": [
1009
+ "position",
1010
+ "offset-top",
1011
+ "offset-bottom",
1012
+ "z-index",
1013
+ "container"
1014
+ ]
1015
+ },
1016
+ "van-steps": {
1017
+ "attributes": [
1018
+ "active",
1019
+ "direction",
1020
+ "active-icon",
1021
+ "inactive-icon",
1022
+ "finish-icon",
1023
+ "active-color",
1024
+ "inactive-color",
1025
+ "icon-prefix"
1026
+ ]
1027
+ },
1028
+ "van-step": {
1029
+ "attributes": []
1030
+ },
1028
1031
  "van-swipe-cell": {
1029
1032
  "attributes": [
1030
1033
  "name",