vant 3.5.0-beta.1 → 3.5.2

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 (69) hide show
  1. package/LICENSE +10 -0
  2. package/es/action-bar/ActionBar.d.ts +4 -0
  3. package/es/action-bar/ActionBar.mjs +13 -2
  4. package/es/action-bar/index.d.ts +3 -0
  5. package/es/calendar/Calendar.mjs +3 -0
  6. package/es/dialog/Dialog.d.ts +8 -0
  7. package/es/dialog/Dialog.mjs +6 -0
  8. package/es/dialog/function-call.d.ts +10 -0
  9. package/es/dialog/function-call.mjs +2 -0
  10. package/es/dialog/types.d.ts +3 -1
  11. package/es/field/Field.d.ts +3 -1
  12. package/es/field/Field.mjs +7 -1
  13. package/es/field/index.d.ts +3 -1
  14. package/es/index.d.ts +1 -1
  15. package/es/index.mjs +1 -1
  16. package/es/picker/Picker.mjs +1 -1
  17. package/es/picker/PickerColumn.mjs +2 -0
  18. package/es/popup/Popup.mjs +1 -1
  19. package/es/pull-refresh/PullRefresh.d.ts +2 -1
  20. package/es/pull-refresh/PullRefresh.mjs +5 -1
  21. package/es/pull-refresh/index.d.ts +2 -1
  22. package/es/submit-bar/SubmitBar.d.ts +4 -0
  23. package/es/submit-bar/SubmitBar.mjs +13 -2
  24. package/es/submit-bar/index.d.ts +3 -0
  25. package/es/switch/Switch.mjs +2 -1
  26. package/es/toast/function-call.d.ts +5 -6
  27. package/es/toast/types.d.ts +10 -1
  28. package/es/uploader/Uploader.d.ts +3 -3
  29. package/es/uploader/index.d.ts +2 -2
  30. package/lib/action-bar/ActionBar.d.ts +4 -0
  31. package/lib/action-bar/ActionBar.js +12 -1
  32. package/lib/action-bar/index.d.ts +3 -0
  33. package/lib/calendar/Calendar.js +3 -0
  34. package/lib/dialog/Dialog.d.ts +8 -0
  35. package/lib/dialog/Dialog.js +6 -0
  36. package/lib/dialog/function-call.d.ts +10 -0
  37. package/lib/dialog/function-call.js +2 -0
  38. package/lib/dialog/types.d.ts +3 -1
  39. package/lib/field/Field.d.ts +3 -1
  40. package/lib/field/Field.js +7 -1
  41. package/lib/field/index.d.ts +3 -1
  42. package/lib/index.d.ts +1 -1
  43. package/lib/index.js +1 -1
  44. package/lib/picker/Picker.js +1 -1
  45. package/lib/picker/PickerColumn.js +2 -0
  46. package/lib/popup/Popup.js +1 -1
  47. package/lib/pull-refresh/PullRefresh.d.ts +2 -1
  48. package/lib/pull-refresh/PullRefresh.js +5 -1
  49. package/lib/pull-refresh/index.d.ts +2 -1
  50. package/lib/submit-bar/SubmitBar.d.ts +4 -0
  51. package/lib/submit-bar/SubmitBar.js +12 -1
  52. package/lib/submit-bar/index.d.ts +3 -0
  53. package/lib/switch/Switch.js +2 -1
  54. package/lib/toast/function-call.d.ts +5 -6
  55. package/lib/toast/types.d.ts +10 -1
  56. package/lib/uploader/Uploader.d.ts +3 -3
  57. package/lib/uploader/index.d.ts +2 -2
  58. package/lib/vant.cjs.js +72 -28
  59. package/lib/vant.es.js +73 -29
  60. package/lib/vant.js +73 -29
  61. package/lib/vant.min.js +1 -1
  62. package/package.json +3 -3
  63. package/vetur/attributes.json +212 -196
  64. package/vetur/tags.json +72 -68
  65. package/vetur/web-types.json +1061 -994
  66. package/lib/ssr.js +0 -7
  67. package/lib/ssr.mjs +0 -1
  68. package/lib/vant.cjs.min.js +0 -1
  69. package/lib/vant.es.min.js +0 -14649
package/vetur/tags.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "van-action-bar": {
3
3
  "attributes": [
4
- "safe-area-inset-bottom"
4
+ "safe-area-inset-bottom",
5
+ "placeholder"
5
6
  ]
6
7
  },
7
8
  "van-action-bar-icon": {
@@ -32,6 +33,30 @@
32
33
  "replace"
33
34
  ]
34
35
  },
36
+ "van-action-sheet": {
37
+ "attributes": [
38
+ "v-model:show",
39
+ "actions",
40
+ "title",
41
+ "cancel-text",
42
+ "description",
43
+ "closeable",
44
+ "close-icon",
45
+ "duration",
46
+ "round",
47
+ "overlay",
48
+ "overlay-class",
49
+ "overlay-style",
50
+ "lock-scroll",
51
+ "lazy-render",
52
+ "close-on-popstate",
53
+ "close-on-click-action",
54
+ "close-on-click-overlay",
55
+ "safe-area-inset-bottom",
56
+ "teleport",
57
+ "before-close"
58
+ ]
59
+ },
35
60
  "van-address-edit": {
36
61
  "attributes": [
37
62
  "area-list",
@@ -122,30 +147,6 @@
122
147
  "replace"
123
148
  ]
124
149
  },
125
- "van-action-sheet": {
126
- "attributes": [
127
- "v-model:show",
128
- "actions",
129
- "title",
130
- "cancel-text",
131
- "description",
132
- "closeable",
133
- "close-icon",
134
- "duration",
135
- "round",
136
- "overlay",
137
- "overlay-class",
138
- "overlay-style",
139
- "lock-scroll",
140
- "lazy-render",
141
- "close-on-popstate",
142
- "close-on-click-action",
143
- "close-on-click-overlay",
144
- "safe-area-inset-bottom",
145
- "teleport",
146
- "before-close"
147
- ]
148
- },
149
150
  "van-calendar": {
150
151
  "attributes": [
151
152
  "type",
@@ -348,14 +349,6 @@
348
349
  "set-default-label"
349
350
  ]
350
351
  },
351
- "van-contact-list": {
352
- "attributes": [
353
- "v-model",
354
- "list",
355
- "add-text",
356
- "default-tag-text"
357
- ]
358
- },
359
352
  "van-count-down": {
360
353
  "attributes": [
361
354
  "time",
@@ -364,6 +357,14 @@
364
357
  "millisecond"
365
358
  ]
366
359
  },
360
+ "van-contact-list": {
361
+ "attributes": [
362
+ "v-model",
363
+ "list",
364
+ "add-text",
365
+ "default-tag-text"
366
+ ]
367
+ },
367
368
  "van-coupon-cell": {
368
369
  "attributes": [
369
370
  "title",
@@ -437,8 +438,10 @@
437
438
  "show-cancel-button",
438
439
  "cancel-button-text",
439
440
  "cancel-button-color",
441
+ "cancel-button-disabled",
440
442
  "confirm-button-text",
441
443
  "confirm-button-color",
444
+ "confirm-button-disabled",
442
445
  "overlay",
443
446
  "overlay-class",
444
447
  "overlay-style",
@@ -692,6 +695,27 @@
692
695
  "wrapable"
693
696
  ]
694
697
  },
698
+ "van-number-keyboard": {
699
+ "attributes": [
700
+ "v-model",
701
+ "show",
702
+ "title",
703
+ "theme",
704
+ "maxlength",
705
+ "transition",
706
+ "z-index",
707
+ "extra-key",
708
+ "close-button-text",
709
+ "delete-button-text",
710
+ "close-button-loading",
711
+ "show-delete-key",
712
+ "blur-on-close",
713
+ "hide-on-click-outside",
714
+ "teleport",
715
+ "safe-area-inset-bottom",
716
+ "random-key-order"
717
+ ]
718
+ },
695
719
  "van-overlay": {
696
720
  "attributes": [
697
721
  "show",
@@ -716,27 +740,6 @@
716
740
  "force-ellipses"
717
741
  ]
718
742
  },
719
- "van-number-keyboard": {
720
- "attributes": [
721
- "v-model",
722
- "show",
723
- "title",
724
- "theme",
725
- "maxlength",
726
- "transition",
727
- "z-index",
728
- "extra-key",
729
- "close-button-text",
730
- "delete-button-text",
731
- "close-button-loading",
732
- "show-delete-key",
733
- "blur-on-close",
734
- "hide-on-click-outside",
735
- "teleport",
736
- "safe-area-inset-bottom",
737
- "random-key-order"
738
- ]
739
- },
740
743
  "van-password-input": {
741
744
  "attributes": [
742
745
  "value",
@@ -810,6 +813,19 @@
810
813
  "safe-area-inset-bottom"
811
814
  ]
812
815
  },
816
+ "van-progress": {
817
+ "attributes": [
818
+ "percentage",
819
+ "stroke-width",
820
+ "color",
821
+ "track-color",
822
+ "pivot-text",
823
+ "pivot-color",
824
+ "text-color",
825
+ "inactive",
826
+ "show-pivot"
827
+ ]
828
+ },
813
829
  "van-pull-refresh": {
814
830
  "attributes": [
815
831
  "v-model",
@@ -824,19 +840,6 @@
824
840
  "disabled"
825
841
  ]
826
842
  },
827
- "van-progress": {
828
- "attributes": [
829
- "percentage",
830
- "stroke-width",
831
- "color",
832
- "track-color",
833
- "pivot-text",
834
- "pivot-color",
835
- "text-color",
836
- "inactive",
837
- "show-pivot"
838
- ]
839
- },
840
843
  "van-radio": {
841
844
  "attributes": [
842
845
  "name",
@@ -1037,7 +1040,8 @@
1037
1040
  "currency",
1038
1041
  "disabled",
1039
1042
  "loading",
1040
- "safe-area-inset-bottom"
1043
+ "safe-area-inset-bottom",
1044
+ "placeholder"
1041
1045
  ]
1042
1046
  },
1043
1047
  "van-swipe": {