vant 3.4.6 → 3.4.7

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 (136) hide show
  1. package/changelog.generated.md +39 -50
  2. package/es/address-list/AddressListItem.d.ts +3 -2
  3. package/es/address-list/AddressListItem.js +1 -1
  4. package/es/badge/Badge.d.ts +4 -3
  5. package/es/badge/index.d.ts +2 -2
  6. package/es/calendar/Calendar.js +1 -1
  7. package/es/calendar/types.d.ts +2 -1
  8. package/es/cascader/types.d.ts +2 -1
  9. package/es/checkbox/Checker.d.ts +2 -1
  10. package/es/collapse/Collapse.d.ts +7 -6
  11. package/es/collapse/index.d.ts +3 -3
  12. package/es/composables/use-touch.js +1 -1
  13. package/es/config-provider/ConfigProvider.d.ts +4 -3
  14. package/es/config-provider/index.d.ts +2 -2
  15. package/es/contact-list/ContactList.d.ts +3 -2
  16. package/es/coupon/Coupon.d.ts +2 -1
  17. package/es/coupon-list/CouponList.d.ts +3 -13
  18. package/es/coupon-list/CouponList.js +9 -7
  19. package/es/coupon-list/index.css +1 -1
  20. package/es/coupon-list/index.d.ts +2 -9
  21. package/es/coupon-list/index.less +4 -16
  22. package/es/coupon-list/style/index.js +1 -0
  23. package/es/coupon-list/style/less.js +1 -0
  24. package/es/coupon-list/var.less +0 -1
  25. package/es/datetime-picker/DatePicker.js +1 -2
  26. package/es/dialog/types.d.ts +2 -2
  27. package/es/dropdown-item/types.d.ts +2 -1
  28. package/es/index-bar/IndexBar.d.ts +5 -4
  29. package/es/index-bar/IndexBar.js +25 -4
  30. package/es/index-bar/index.d.ts +3 -3
  31. package/es/index-bar/types.d.ts +2 -1
  32. package/es/index.d.ts +1 -1
  33. package/es/index.js +1 -1
  34. package/es/locale/lang/is-IS.d.ts +64 -0
  35. package/es/locale/lang/is-IS.js +74 -0
  36. package/es/locale/lang/la-LA.d.ts +64 -0
  37. package/es/locale/lang/la-LA.js +66 -0
  38. package/es/locale/lang/sv-SE.d.ts +64 -0
  39. package/es/locale/lang/sv-SE.js +66 -0
  40. package/es/notify/types.d.ts +2 -1
  41. package/es/number-keyboard/NumberKeyboard.js +10 -1
  42. package/es/picker/types.d.ts +3 -2
  43. package/es/progress/Progress.d.ts +4 -3
  44. package/es/progress/index.d.ts +2 -2
  45. package/es/skeleton/Skeleton.d.ts +5 -4
  46. package/es/skeleton/index.d.ts +3 -3
  47. package/es/tabbar/Tabbar.d.ts +2 -2
  48. package/es/tabs/Tabs.d.ts +1 -1
  49. package/es/tabs/Tabs.js +1 -0
  50. package/es/tabs/types.d.ts +5 -4
  51. package/es/toast/types.d.ts +3 -2
  52. package/es/tree-select/TreeSelect.d.ts +7 -6
  53. package/es/tree-select/index.d.ts +3 -3
  54. package/es/uploader/Uploader.d.ts +4 -4
  55. package/es/uploader/Uploader.js +2 -2
  56. package/es/uploader/UploaderPreviewItem.d.ts +3 -3
  57. package/es/uploader/UploaderPreviewItem.js +9 -6
  58. package/es/uploader/index.d.ts +2 -2
  59. package/es/uploader/types.d.ts +5 -5
  60. package/es/utils/basic.d.ts +1 -0
  61. package/es/utils/format.d.ts +7 -6
  62. package/es/utils/format.js +6 -0
  63. package/es/utils/validate.d.ts +2 -1
  64. package/lib/address-list/AddressListItem.d.ts +3 -2
  65. package/lib/badge/Badge.d.ts +4 -3
  66. package/lib/badge/index.d.ts +2 -2
  67. package/lib/calendar/Calendar.js +1 -1
  68. package/lib/calendar/types.d.ts +2 -1
  69. package/lib/cascader/types.d.ts +2 -1
  70. package/lib/checkbox/Checker.d.ts +2 -1
  71. package/lib/collapse/Collapse.d.ts +7 -6
  72. package/lib/collapse/index.d.ts +3 -3
  73. package/lib/composables/use-touch.js +1 -1
  74. package/lib/config-provider/ConfigProvider.d.ts +4 -3
  75. package/lib/config-provider/index.d.ts +2 -2
  76. package/lib/contact-list/ContactList.d.ts +3 -2
  77. package/lib/coupon/Coupon.d.ts +2 -1
  78. package/lib/coupon-list/CouponList.d.ts +3 -13
  79. package/lib/coupon-list/CouponList.js +9 -7
  80. package/lib/coupon-list/index.css +1 -1
  81. package/lib/coupon-list/index.d.ts +2 -9
  82. package/lib/coupon-list/index.less +4 -16
  83. package/lib/coupon-list/style/index.js +1 -0
  84. package/lib/coupon-list/style/less.js +1 -0
  85. package/lib/coupon-list/var.less +0 -1
  86. package/lib/datetime-picker/DatePicker.js +1 -2
  87. package/lib/dialog/types.d.ts +2 -2
  88. package/lib/dropdown-item/types.d.ts +2 -1
  89. package/lib/index-bar/IndexBar.d.ts +5 -4
  90. package/lib/index-bar/IndexBar.js +25 -4
  91. package/lib/index-bar/index.d.ts +3 -3
  92. package/lib/index-bar/types.d.ts +2 -1
  93. package/lib/index.css +1 -1
  94. package/lib/index.d.ts +1 -1
  95. package/lib/index.js +1 -1
  96. package/lib/index.less +2 -2
  97. package/lib/locale/lang/is-IS.d.ts +64 -0
  98. package/lib/locale/lang/is-IS.js +98 -0
  99. package/lib/locale/lang/la-LA.d.ts +64 -0
  100. package/lib/locale/lang/la-LA.js +90 -0
  101. package/lib/locale/lang/sv-SE.d.ts +64 -0
  102. package/lib/locale/lang/sv-SE.js +90 -0
  103. package/lib/notify/types.d.ts +2 -1
  104. package/lib/number-keyboard/NumberKeyboard.js +10 -1
  105. package/lib/picker/types.d.ts +3 -2
  106. package/lib/progress/Progress.d.ts +4 -3
  107. package/lib/progress/index.d.ts +2 -2
  108. package/lib/skeleton/Skeleton.d.ts +5 -4
  109. package/lib/skeleton/index.d.ts +3 -3
  110. package/lib/tabbar/Tabbar.d.ts +2 -2
  111. package/lib/tabs/Tabs.d.ts +1 -1
  112. package/lib/tabs/Tabs.js +1 -0
  113. package/lib/tabs/types.d.ts +5 -4
  114. package/lib/toast/types.d.ts +3 -2
  115. package/lib/tree-select/TreeSelect.d.ts +7 -6
  116. package/lib/tree-select/index.d.ts +3 -3
  117. package/lib/uploader/Uploader.d.ts +4 -4
  118. package/lib/uploader/Uploader.js +1 -1
  119. package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
  120. package/lib/uploader/UploaderPreviewItem.js +9 -6
  121. package/lib/uploader/index.d.ts +2 -2
  122. package/lib/uploader/types.d.ts +5 -5
  123. package/lib/utils/basic.d.ts +1 -0
  124. package/lib/utils/format.d.ts +7 -6
  125. package/lib/utils/format.js +6 -0
  126. package/lib/utils/validate.d.ts +2 -1
  127. package/lib/vant.cjs.js +269 -229
  128. package/lib/vant.cjs.min.js +1 -1
  129. package/lib/vant.es.js +269 -229
  130. package/lib/vant.es.min.js +269 -229
  131. package/lib/vant.js +269 -229
  132. package/lib/vant.min.js +1 -1
  133. package/package.json +1 -1
  134. package/vetur/attributes.json +641 -638
  135. package/vetur/tags.json +227 -227
  136. package/vetur/web-types.json +2160 -2158
package/vetur/tags.json CHANGED
@@ -1,30 +1,4 @@
1
1
  {
2
- "van-address-edit": {
3
- "attributes": [
4
- "area-list",
5
- "area-columns-placeholder",
6
- "area-placeholder",
7
- "address-info",
8
- "search-result",
9
- "show-postal",
10
- "show-delete",
11
- "show-set-default",
12
- "show-search-result",
13
- "show-area",
14
- "show-detail",
15
- "disable-area",
16
- "save-button-text",
17
- "delete-button-text",
18
- "detail-rows",
19
- "detail-maxlength",
20
- "is-saving",
21
- "is-deleting",
22
- "tel-validator",
23
- "tel-maxlength",
24
- "postal-validator",
25
- "validator"
26
- ]
27
- },
28
2
  "van-action-bar": {
29
3
  "attributes": [
30
4
  "safe-area-inset-bottom"
@@ -58,21 +32,52 @@
58
32
  "replace"
59
33
  ]
60
34
  },
61
- "van-area": {
35
+ "van-address-edit": {
62
36
  "attributes": [
63
- "value",
64
- "title",
65
- "confirm-button-text",
66
- "cancel-button-text",
67
37
  "area-list",
68
- "columns-placeholder",
69
- "loading",
70
- "readonly",
71
- "item-height",
72
- "columns-num",
73
- "visible-item-count",
74
- "swipe-duration",
75
- "is-oversea-code"
38
+ "area-columns-placeholder",
39
+ "area-placeholder",
40
+ "address-info",
41
+ "search-result",
42
+ "show-postal",
43
+ "show-delete",
44
+ "show-set-default",
45
+ "show-search-result",
46
+ "show-area",
47
+ "show-detail",
48
+ "disable-area",
49
+ "save-button-text",
50
+ "delete-button-text",
51
+ "detail-rows",
52
+ "detail-maxlength",
53
+ "is-saving",
54
+ "is-deleting",
55
+ "tel-validator",
56
+ "tel-maxlength",
57
+ "postal-validator",
58
+ "validator"
59
+ ]
60
+ },
61
+ "van-address-list": {
62
+ "attributes": [
63
+ "v-model",
64
+ "list",
65
+ "disabled-list",
66
+ "disabled-text",
67
+ "switchable",
68
+ "add-button-text",
69
+ "default-tag-text"
70
+ ]
71
+ },
72
+ "van-badge": {
73
+ "attributes": [
74
+ "content",
75
+ "color",
76
+ "dot",
77
+ "max",
78
+ "offset",
79
+ "show-zero",
80
+ "position"
76
81
  ]
77
82
  },
78
83
  "van-action-sheet": {
@@ -99,15 +104,21 @@
99
104
  "before-close"
100
105
  ]
101
106
  },
102
- "van-badge": {
107
+ "van-area": {
103
108
  "attributes": [
104
- "content",
105
- "color",
106
- "dot",
107
- "max",
108
- "offset",
109
- "show-zero",
110
- "position"
109
+ "value",
110
+ "title",
111
+ "confirm-button-text",
112
+ "cancel-button-text",
113
+ "area-list",
114
+ "columns-placeholder",
115
+ "loading",
116
+ "readonly",
117
+ "item-height",
118
+ "columns-num",
119
+ "visible-item-count",
120
+ "swipe-duration",
121
+ "is-oversea-code"
111
122
  ]
112
123
  },
113
124
  "van-button": {
@@ -135,17 +146,6 @@
135
146
  "replace"
136
147
  ]
137
148
  },
138
- "van-address-list": {
139
- "attributes": [
140
- "v-model",
141
- "list",
142
- "disabled-list",
143
- "disabled-text",
144
- "switchable",
145
- "add-button-text",
146
- "default-tag-text"
147
- ]
148
- },
149
149
  "van-calendar": {
150
150
  "attributes": [
151
151
  "type",
@@ -264,22 +264,6 @@
264
264
  "checked-color"
265
265
  ]
266
266
  },
267
- "van-circle": {
268
- "attributes": [
269
- "v-model:current-rate",
270
- "rate",
271
- "size",
272
- "color",
273
- "layer-color",
274
- "fill",
275
- "speed",
276
- "text",
277
- "stroke-width",
278
- "stroke-linecap",
279
- "clockwise",
280
- "start-position"
281
- ]
282
- },
283
267
  "van-row": {
284
268
  "attributes": [
285
269
  "gutter",
@@ -296,6 +280,22 @@
296
280
  "tag"
297
281
  ]
298
282
  },
283
+ "van-circle": {
284
+ "attributes": [
285
+ "v-model:current-rate",
286
+ "rate",
287
+ "size",
288
+ "color",
289
+ "layer-color",
290
+ "fill",
291
+ "speed",
292
+ "text",
293
+ "stroke-width",
294
+ "stroke-linecap",
295
+ "clockwise",
296
+ "start-position"
297
+ ]
298
+ },
299
299
  "van-collapse": {
300
300
  "attributes": [
301
301
  "v-model",
@@ -336,6 +336,14 @@
336
336
  "add-text"
337
337
  ]
338
338
  },
339
+ "van-contact-list": {
340
+ "attributes": [
341
+ "v-model",
342
+ "list",
343
+ "add-text",
344
+ "default-tag-text"
345
+ ]
346
+ },
339
347
  "van-contact-edit": {
340
348
  "attributes": [
341
349
  "contact-info",
@@ -347,14 +355,6 @@
347
355
  "set-default-label"
348
356
  ]
349
357
  },
350
- "van-contact-list": {
351
- "attributes": [
352
- "v-model",
353
- "list",
354
- "add-text",
355
- "default-tag-text"
356
- ]
357
- },
358
358
  "van-count-down": {
359
359
  "attributes": [
360
360
  "time",
@@ -393,37 +393,6 @@
393
393
  "show-count"
394
394
  ]
395
395
  },
396
- "van-datetime-picker": {
397
- "attributes": [
398
- "type",
399
- "title",
400
- "confirm-button-text",
401
- "cancel-button-text",
402
- "show-toolbar",
403
- "loading",
404
- "readonly",
405
- "filter",
406
- "formatter",
407
- "columns-order",
408
- "item-height",
409
- "visible-item-count",
410
- "swipe-duration"
411
- ]
412
- },
413
- "van-date-picker": {
414
- "attributes": [
415
- "min-date",
416
- "max-date"
417
- ]
418
- },
419
- "van-time-picker": {
420
- "attributes": [
421
- "min-hour",
422
- "max-hour",
423
- "min-minute",
424
- "max-minute"
425
- ]
426
- },
427
396
  "van-dialog": {
428
397
  "attributes": [
429
398
  "v-model:show",
@@ -451,35 +420,6 @@
451
420
  "teleport"
452
421
  ]
453
422
  },
454
- "van-divider": {
455
- "attributes": [
456
- "dashed",
457
- "hairline",
458
- "content-position"
459
- ]
460
- },
461
- "van-dropdown-menu": {
462
- "attributes": [
463
- "active-color",
464
- "direction",
465
- "z-index",
466
- "duration",
467
- "overlay",
468
- "close-on-click-overlay",
469
- "close-on-click-outside"
470
- ]
471
- },
472
- "van-dropdown-item": {
473
- "attributes": [
474
- "v-model",
475
- "title",
476
- "options",
477
- "disabled",
478
- "lazy-render",
479
- "title-class",
480
- "teleport"
481
- ]
482
- },
483
423
  "van-empty": {
484
424
  "attributes": [
485
425
  "image",
@@ -528,6 +468,66 @@
528
468
  "autocomplete"
529
469
  ]
530
470
  },
471
+ "van-dropdown-menu": {
472
+ "attributes": [
473
+ "active-color",
474
+ "direction",
475
+ "z-index",
476
+ "duration",
477
+ "overlay",
478
+ "close-on-click-overlay",
479
+ "close-on-click-outside"
480
+ ]
481
+ },
482
+ "van-dropdown-item": {
483
+ "attributes": [
484
+ "v-model",
485
+ "title",
486
+ "options",
487
+ "disabled",
488
+ "lazy-render",
489
+ "title-class",
490
+ "teleport"
491
+ ]
492
+ },
493
+ "van-datetime-picker": {
494
+ "attributes": [
495
+ "type",
496
+ "title",
497
+ "confirm-button-text",
498
+ "cancel-button-text",
499
+ "show-toolbar",
500
+ "loading",
501
+ "readonly",
502
+ "filter",
503
+ "formatter",
504
+ "columns-order",
505
+ "item-height",
506
+ "visible-item-count",
507
+ "swipe-duration"
508
+ ]
509
+ },
510
+ "van-date-picker": {
511
+ "attributes": [
512
+ "min-date",
513
+ "max-date"
514
+ ]
515
+ },
516
+ "van-time-picker": {
517
+ "attributes": [
518
+ "min-hour",
519
+ "max-hour",
520
+ "min-minute",
521
+ "max-minute"
522
+ ]
523
+ },
524
+ "van-divider": {
525
+ "attributes": [
526
+ "dashed",
527
+ "hairline",
528
+ "content-position"
529
+ ]
530
+ },
531
531
  "van-form": {
532
532
  "attributes": [
533
533
  "label-width",
@@ -554,7 +554,8 @@
554
554
  "center",
555
555
  "square",
556
556
  "clickable",
557
- "direction"
557
+ "direction",
558
+ "reverse"
558
559
  ]
559
560
  },
560
561
  "van-grid-item": {
@@ -563,7 +564,6 @@
563
564
  "icon",
564
565
  "icon-prefix",
565
566
  "icon-color",
566
- "reverse",
567
567
  "dot",
568
568
  "badge",
569
569
  "badge-props",
@@ -572,18 +572,6 @@
572
572
  "replace"
573
573
  ]
574
574
  },
575
- "van-icon": {
576
- "attributes": [
577
- "name",
578
- "dot",
579
- "badge",
580
- "badge-props",
581
- "color",
582
- "size",
583
- "class-prefix",
584
- "tag"
585
- ]
586
- },
587
575
  "van-image": {
588
576
  "attributes": [
589
577
  "src",
@@ -603,6 +591,18 @@
603
591
  "icon-prefix"
604
592
  ]
605
593
  },
594
+ "van-icon": {
595
+ "attributes": [
596
+ "name",
597
+ "dot",
598
+ "badge",
599
+ "badge-props",
600
+ "color",
601
+ "size",
602
+ "class-prefix",
603
+ "tag"
604
+ ]
605
+ },
606
606
  "van-image-preview": {
607
607
  "attributes": [
608
608
  "v-model:show",
@@ -641,6 +641,16 @@
641
641
  "index"
642
642
  ]
643
643
  },
644
+ "van-loading": {
645
+ "attributes": [
646
+ "color",
647
+ "type",
648
+ "size",
649
+ "text-size",
650
+ "text-color",
651
+ "vertical"
652
+ ]
653
+ },
644
654
  "van-list": {
645
655
  "attributes": [
646
656
  "v-model:loading",
@@ -654,16 +664,6 @@
654
664
  "direction"
655
665
  ]
656
666
  },
657
- "van-loading": {
658
- "attributes": [
659
- "color",
660
- "type",
661
- "size",
662
- "text-size",
663
- "text-color",
664
- "vertical"
665
- ]
666
- },
667
667
  "van-nav-bar": {
668
668
  "attributes": [
669
669
  "title",
@@ -690,6 +690,30 @@
690
690
  "wrapable"
691
691
  ]
692
692
  },
693
+ "van-pagination": {
694
+ "attributes": [
695
+ "v-model",
696
+ "mode",
697
+ "prev-text",
698
+ "next-text",
699
+ "total-items",
700
+ "items-per-page",
701
+ "page-count",
702
+ "show-page-size",
703
+ "force-ellipses"
704
+ ]
705
+ },
706
+ "van-overlay": {
707
+ "attributes": [
708
+ "show",
709
+ "z-index",
710
+ "duration",
711
+ "class-name",
712
+ "custom-class",
713
+ "lock-scroll",
714
+ "lazy-render"
715
+ ]
716
+ },
693
717
  "van-number-keyboard": {
694
718
  "attributes": [
695
719
  "v-model",
@@ -711,30 +735,6 @@
711
735
  "random-key-order"
712
736
  ]
713
737
  },
714
- "van-overlay": {
715
- "attributes": [
716
- "show",
717
- "z-index",
718
- "duration",
719
- "class-name",
720
- "custom-class",
721
- "lock-scroll",
722
- "lazy-render"
723
- ]
724
- },
725
- "van-pagination": {
726
- "attributes": [
727
- "v-model",
728
- "mode",
729
- "prev-text",
730
- "next-text",
731
- "total-items",
732
- "items-per-page",
733
- "page-count",
734
- "show-page-size",
735
- "force-ellipses"
736
- ]
737
- },
738
738
  "van-password-input": {
739
739
  "attributes": [
740
740
  "value",
@@ -783,6 +783,19 @@
783
783
  "icon-prefix"
784
784
  ]
785
785
  },
786
+ "van-progress": {
787
+ "attributes": [
788
+ "percentage",
789
+ "stroke-width",
790
+ "color",
791
+ "track-color",
792
+ "pivot-text",
793
+ "pivot-color",
794
+ "text-color",
795
+ "inactive",
796
+ "show-pivot"
797
+ ]
798
+ },
786
799
  "van-popup": {
787
800
  "attributes": [
788
801
  "v-model:show",
@@ -808,33 +821,6 @@
808
821
  "safe-area-inset-bottom"
809
822
  ]
810
823
  },
811
- "van-progress": {
812
- "attributes": [
813
- "percentage",
814
- "stroke-width",
815
- "color",
816
- "track-color",
817
- "pivot-text",
818
- "pivot-color",
819
- "text-color",
820
- "inactive",
821
- "show-pivot"
822
- ]
823
- },
824
- "van-pull-refresh": {
825
- "attributes": [
826
- "v-model",
827
- "pulling-text",
828
- "loosing-text",
829
- "loading-text",
830
- "success-text",
831
- "success-duration",
832
- "animation-duration",
833
- "head-height",
834
- "pull-distance",
835
- "disabled"
836
- ]
837
- },
838
824
  "van-radio": {
839
825
  "attributes": [
840
826
  "name",
@@ -873,6 +859,20 @@
873
859
  "touchable"
874
860
  ]
875
861
  },
862
+ "van-pull-refresh": {
863
+ "attributes": [
864
+ "v-model",
865
+ "pulling-text",
866
+ "loosing-text",
867
+ "loading-text",
868
+ "success-text",
869
+ "success-duration",
870
+ "animation-duration",
871
+ "head-height",
872
+ "pull-distance",
873
+ "disabled"
874
+ ]
875
+ },
876
876
  "van-search": {
877
877
  "attributes": [
878
878
  "v-model",
@@ -1057,16 +1057,6 @@
1057
1057
  "van-swipe-item": {
1058
1058
  "attributes": []
1059
1059
  },
1060
- "van-swipe-cell": {
1061
- "attributes": [
1062
- "name",
1063
- "left-width",
1064
- "right-width",
1065
- "before-close",
1066
- "disabled",
1067
- "stop-propagation"
1068
- ]
1069
- },
1070
1060
  "van-switch": {
1071
1061
  "attributes": [
1072
1062
  "v-model",
@@ -1079,6 +1069,16 @@
1079
1069
  "inactive-value"
1080
1070
  ]
1081
1071
  },
1072
+ "van-swipe-cell": {
1073
+ "attributes": [
1074
+ "name",
1075
+ "left-width",
1076
+ "right-width",
1077
+ "before-close",
1078
+ "disabled",
1079
+ "stop-propagation"
1080
+ ]
1081
+ },
1082
1082
  "van-tabs": {
1083
1083
  "attributes": [
1084
1084
  "v-model:active",