vant 2.12.46 → 2.12.49

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 (67) hide show
  1. package/README.md +11 -11
  2. package/README.zh-CN.md +9 -9
  3. package/changelog.generated.md +17 -5
  4. package/es/button/index.less +1 -1
  5. package/es/calendar/index.js +2 -2
  6. package/es/collapse-item/index.less +1 -1
  7. package/es/count-down/index.js +1 -1
  8. package/es/datetime-picker/DatePicker.js +1 -1
  9. package/es/datetime-picker/TimePicker.js +1 -1
  10. package/es/datetime-picker/shared.js +1 -1
  11. package/es/dialog/Dialog.js +4 -2
  12. package/es/field/index.js +3 -3
  13. package/es/grid-item/index.less +1 -1
  14. package/es/index.js +1 -1
  15. package/es/locale/lang/vi-VN.js +91 -0
  16. package/es/mixins/touch.js +1 -1
  17. package/es/nav-bar/index.js +1 -1
  18. package/es/notice-bar/index.js +1 -1
  19. package/es/number-keyboard/Key.js +1 -1
  20. package/es/picker/index.js +2 -2
  21. package/es/sidebar-item/index.less +1 -1
  22. package/es/step/index.js +26 -13
  23. package/es/stepper/index.js +1 -1
  24. package/es/steps/index.js +1 -0
  25. package/es/swipe/index.less +1 -1
  26. package/es/switch/index.less +1 -1
  27. package/es/switch-cell/index.js +1 -1
  28. package/es/tabbar/index.js +1 -1
  29. package/es/tabs/index.js +1 -1
  30. package/es/toast/index.less +1 -1
  31. package/es/utils/dom/scroll.js +2 -2
  32. package/es/utils/index.js +1 -1
  33. package/lib/button/index.less +1 -1
  34. package/lib/calendar/index.js +2 -2
  35. package/lib/collapse-item/index.less +1 -1
  36. package/lib/count-down/index.js +1 -1
  37. package/lib/datetime-picker/DatePicker.js +1 -1
  38. package/lib/datetime-picker/TimePicker.js +1 -1
  39. package/lib/datetime-picker/shared.js +1 -1
  40. package/lib/dialog/Dialog.js +4 -2
  41. package/lib/field/index.js +3 -3
  42. package/lib/grid-item/index.less +1 -1
  43. package/lib/index.js +1 -1
  44. package/lib/locale/lang/vi-VN.js +96 -0
  45. package/lib/mixins/touch.js +1 -1
  46. package/lib/nav-bar/index.js +1 -1
  47. package/lib/notice-bar/index.js +1 -1
  48. package/lib/number-keyboard/Key.js +1 -1
  49. package/lib/picker/index.js +2 -2
  50. package/lib/sidebar-item/index.less +1 -1
  51. package/lib/step/index.js +26 -13
  52. package/lib/stepper/index.js +1 -1
  53. package/lib/steps/index.js +1 -0
  54. package/lib/swipe/index.less +1 -1
  55. package/lib/switch/index.less +1 -1
  56. package/lib/switch-cell/index.js +1 -1
  57. package/lib/tabbar/index.js +1 -1
  58. package/lib/tabs/index.js +1 -1
  59. package/lib/toast/index.less +1 -1
  60. package/lib/utils/dom/scroll.js +2 -2
  61. package/lib/utils/index.js +1 -1
  62. package/lib/vant.js +999 -86
  63. package/lib/vant.min.js +2 -2
  64. package/package.json +3 -3
  65. package/vetur/attributes.json +328 -412
  66. package/vetur/tags.json +105 -171
  67. package/vetur/web-types.json +1068 -1182
package/vetur/tags.json CHANGED
@@ -20,6 +20,43 @@
20
20
  "get-container"
21
21
  ]
22
22
  },
23
+ "van-address-list": {
24
+ "attributes": [
25
+ "v-model",
26
+ "list",
27
+ "disabled-list",
28
+ "disabled-text",
29
+ "switchable",
30
+ "add-button-text",
31
+ "default-tag-text"
32
+ ]
33
+ },
34
+ "van-address-edit": {
35
+ "attributes": [
36
+ "area-list",
37
+ "area-columns-placeholder",
38
+ "area-placeholder",
39
+ "address-info",
40
+ "search-result",
41
+ "show-postal",
42
+ "show-delete",
43
+ "show-set-default",
44
+ "show-search-result",
45
+ "show-area",
46
+ "show-detail",
47
+ "disable-area",
48
+ "save-button-text",
49
+ "delete-button-text",
50
+ "detail-rows",
51
+ "detail-maxlength",
52
+ "is-saving",
53
+ "is-deleting",
54
+ "tel-validator",
55
+ "tel-maxlength",
56
+ "postal-validator",
57
+ "validator"
58
+ ]
59
+ },
23
60
  "van-area": {
24
61
  "attributes": [
25
62
  "value",
@@ -37,6 +74,14 @@
37
74
  "is-oversea-code"
38
75
  ]
39
76
  },
77
+ "van-badge": {
78
+ "attributes": [
79
+ "content",
80
+ "color",
81
+ "dot",
82
+ "max"
83
+ ]
84
+ },
40
85
  "van-button": {
41
86
  "attributes": [
42
87
  "type",
@@ -82,29 +127,17 @@
82
127
  "readonly",
83
128
  "confirm-text",
84
129
  "confirm-disabled-text",
85
- "first-day-of-week"
86
- ]
87
- },
88
- "van-poppable": {
89
- "attributes": [
130
+ "first-day-of-week",
90
131
  "v-model",
91
132
  "position",
92
133
  "round",
93
134
  "close-on-popstate",
94
135
  "close-on-click-overlay",
95
136
  "safe-area-inset-bottom",
96
- "get-container"
97
- ]
98
- },
99
- "van-range": {
100
- "attributes": [
137
+ "get-container",
101
138
  "max-range",
102
139
  "range-prompt",
103
- "allow-same-day"
104
- ]
105
- },
106
- "van-multiple": {
107
- "attributes": [
140
+ "allow-same-day",
108
141
  "max-range",
109
142
  "range-prompt"
110
143
  ]
@@ -124,40 +157,6 @@
124
157
  "lazy-load"
125
158
  ]
126
159
  },
127
- "van-address-edit": {
128
- "attributes": [
129
- "area-list",
130
- "area-columns-placeholder",
131
- "area-placeholder",
132
- "address-info",
133
- "search-result",
134
- "show-postal",
135
- "show-delete",
136
- "show-set-default",
137
- "show-search-result",
138
- "show-area",
139
- "show-detail",
140
- "disable-area",
141
- "save-button-text",
142
- "delete-button-text",
143
- "detail-rows",
144
- "detail-maxlength",
145
- "is-saving",
146
- "is-deleting",
147
- "tel-validator",
148
- "tel-maxlength",
149
- "postal-validator",
150
- "validator"
151
- ]
152
- },
153
- "van-badge": {
154
- "attributes": [
155
- "content",
156
- "color",
157
- "dot",
158
- "max"
159
- ]
160
- },
161
160
  "van-cascader": {
162
161
  "attributes": [
163
162
  "title",
@@ -170,25 +169,10 @@
170
169
  "field-names"
171
170
  ]
172
171
  },
173
- "van-address-list": {
174
- "attributes": [
175
- "v-model",
176
- "list",
177
- "disabled-list",
178
- "disabled-text",
179
- "switchable",
180
- "add-button-text",
181
- "default-tag-text"
182
- ]
183
- },
184
- "van-cell-group": {
185
- "attributes": [
186
- "title",
187
- "border"
188
- ]
189
- },
190
172
  "van-cell": {
191
173
  "attributes": [
174
+ "title",
175
+ "border",
192
176
  "title",
193
177
  "value",
194
178
  "label",
@@ -220,11 +204,7 @@
220
204
  "label-position",
221
205
  "icon-size",
222
206
  "checked-color",
223
- "bind-group"
224
- ]
225
- },
226
- "van-checkbox-group": {
227
- "attributes": [
207
+ "bind-group",
228
208
  "v-model (value)",
229
209
  "disabled",
230
210
  "max",
@@ -248,17 +228,13 @@
248
228
  "clockwise"
249
229
  ]
250
230
  },
251
- "van-row": {
231
+ "van-layout": {
252
232
  "attributes": [
253
233
  "type",
254
234
  "gutter",
255
235
  "tag",
256
236
  "justify",
257
- "align"
258
- ]
259
- },
260
- "van-col": {
261
- "attributes": [
237
+ "align",
262
238
  "span",
263
239
  "offset",
264
240
  "tag"
@@ -268,11 +244,7 @@
268
244
  "attributes": [
269
245
  "v-model",
270
246
  "accordion",
271
- "border"
272
- ]
273
- },
274
- "van-collapse-item": {
275
- "attributes": [
247
+ "border",
276
248
  "name",
277
249
  "icon",
278
250
  "size",
@@ -296,6 +268,14 @@
296
268
  "add-text"
297
269
  ]
298
270
  },
271
+ "van-contact-list": {
272
+ "attributes": [
273
+ "v-model",
274
+ "list",
275
+ "add-text",
276
+ "default-tag-text"
277
+ ]
278
+ },
299
279
  "van-contact-edit": {
300
280
  "attributes": [
301
281
  "contact-info",
@@ -307,14 +287,6 @@
307
287
  "set-default-label"
308
288
  ]
309
289
  },
310
- "van-contact-list": {
311
- "attributes": [
312
- "v-model",
313
- "list",
314
- "add-text",
315
- "default-tag-text"
316
- ]
317
- },
318
290
  "van-count-down": {
319
291
  "attributes": [
320
292
  "time",
@@ -323,18 +295,14 @@
323
295
  "millisecond"
324
296
  ]
325
297
  },
326
- "van-coupon-cell": {
298
+ "van-coupon": {
327
299
  "attributes": [
328
300
  "title",
329
301
  "chosen-coupon",
330
302
  "coupons",
331
303
  "editable",
332
304
  "border",
333
- "currency"
334
- ]
335
- },
336
- "van-coupon-list": {
337
- "attributes": [
305
+ "currency",
338
306
  "v-model",
339
307
  "chosen-coupon",
340
308
  "coupons",
@@ -369,17 +337,9 @@
369
337
  "columns-order",
370
338
  "item-height",
371
339
  "visible-item-count",
372
- "swipe-duration"
373
- ]
374
- },
375
- "van-date-picker": {
376
- "attributes": [
340
+ "swipe-duration",
377
341
  "min-date",
378
- "max-date"
379
- ]
380
- },
381
- "van-time-picker": {
382
- "attributes": [
342
+ "max-date",
383
343
  "min-hour",
384
344
  "max-hour",
385
345
  "min-minute",
@@ -428,11 +388,7 @@
428
388
  "duration",
429
389
  "overlay",
430
390
  "close-on-click-overlay",
431
- "close-on-click-outside"
432
- ]
433
- },
434
- "van-dropdown-item": {
435
- "attributes": [
391
+ "close-on-click-outside",
436
392
  "value",
437
393
  "title",
438
394
  "options",
@@ -507,11 +463,7 @@
507
463
  },
508
464
  "van-goods-action": {
509
465
  "attributes": [
510
- "safe-area-inset-bottom"
511
- ]
512
- },
513
- "van-goods-action-icon": {
514
- "attributes": [
466
+ "safe-area-inset-bottom",
515
467
  "text",
516
468
  "icon",
517
469
  "color",
@@ -521,11 +473,7 @@
521
473
  "info",
522
474
  "url",
523
475
  "to",
524
- "replace"
525
- ]
526
- },
527
- "van-goods-action-button": {
528
- "attributes": [
476
+ "replace",
529
477
  "text",
530
478
  "type",
531
479
  "color",
@@ -546,11 +494,7 @@
546
494
  "center",
547
495
  "square",
548
496
  "clickable",
549
- "direction"
550
- ]
551
- },
552
- "van-grid-item": {
553
- "attributes": [
497
+ "direction",
554
498
  "text",
555
499
  "icon",
556
500
  "icon-prefix",
@@ -562,18 +506,6 @@
562
506
  "replace"
563
507
  ]
564
508
  },
565
- "van-icon": {
566
- "attributes": [
567
- "name",
568
- "dot",
569
- "badge",
570
- "info",
571
- "color",
572
- "size",
573
- "class-prefix",
574
- "tag"
575
- ]
576
- },
577
509
  "van-image": {
578
510
  "attributes": [
579
511
  "src",
@@ -591,6 +523,18 @@
591
523
  "icon-prefix"
592
524
  ]
593
525
  },
526
+ "van-icon": {
527
+ "attributes": [
528
+ "name",
529
+ "dot",
530
+ "badge",
531
+ "info",
532
+ "color",
533
+ "size",
534
+ "class-prefix",
535
+ "tag"
536
+ ]
537
+ },
594
538
  "van-image-preview": {
595
539
  "attributes": [
596
540
  "images",
@@ -618,14 +562,13 @@
618
562
  "z-index",
619
563
  "sticky",
620
564
  "sticky-offset-top",
621
- "highlight-color"
622
- ]
623
- },
624
- "van-index-anchor": {
625
- "attributes": [
565
+ "highlight-color",
626
566
  "index"
627
567
  ]
628
568
  },
569
+ "van-lazyload": {
570
+ "attributes": []
571
+ },
629
572
  "van-list": {
630
573
  "attributes": [
631
574
  "v-model",
@@ -649,6 +592,9 @@
649
592
  "vertical"
650
593
  ]
651
594
  },
595
+ "van-国际化": {
596
+ "attributes": []
597
+ },
652
598
  "van-nav-bar": {
653
599
  "attributes": [
654
600
  "title",
@@ -675,6 +621,9 @@
675
621
  "wrapable"
676
622
  ]
677
623
  },
624
+ "van-notify": {
625
+ "attributes": []
626
+ },
678
627
  "van-number-keyboard": {
679
628
  "attributes": [
680
629
  "v-model (value)",
@@ -826,11 +775,7 @@
826
775
  "label-disabled",
827
776
  "label-position",
828
777
  "icon-size",
829
- "checked-color"
830
- ]
831
- },
832
- "van-radio-group": {
833
- "attributes": [
778
+ "checked-color",
834
779
  "v-model (value)",
835
780
  "disabled",
836
781
  "direction",
@@ -894,11 +839,7 @@
894
839
  },
895
840
  "van-sidebar": {
896
841
  "attributes": [
897
- "v-model"
898
- ]
899
- },
900
- "van-sidebar-item": {
901
- "attributes": [
842
+ "v-model",
902
843
  "title",
903
844
  "dot",
904
845
  "badge",
@@ -1008,12 +949,10 @@
1008
949
  "active-icon",
1009
950
  "inactive-icon",
1010
951
  "finish-icon",
1011
- "icon-prefix"
952
+ "icon-prefix",
953
+ "center"
1012
954
  ]
1013
955
  },
1014
- "van-step": {
1015
- "attributes": []
1016
- },
1017
956
  "van-sticky": {
1018
957
  "attributes": [
1019
958
  "offset-top",
@@ -1021,6 +960,9 @@
1021
960
  "container"
1022
961
  ]
1023
962
  },
963
+ "van-内置样式": {
964
+ "attributes": []
965
+ },
1024
966
  "van-submit-bar": {
1025
967
  "attributes": [
1026
968
  "price",
@@ -1055,9 +997,6 @@
1055
997
  "indicator-color"
1056
998
  ]
1057
999
  },
1058
- "van-swipe-item": {
1059
- "attributes": []
1060
- },
1061
1000
  "van-swipe-cell": {
1062
1001
  "attributes": [
1063
1002
  "name",
@@ -1095,7 +1034,7 @@
1095
1034
  "inactive-value"
1096
1035
  ]
1097
1036
  },
1098
- "van-tabs": {
1037
+ "van-tab": {
1099
1038
  "attributes": [
1100
1039
  "v-model",
1101
1040
  "type",
@@ -1115,11 +1054,7 @@
1115
1054
  "swipe-threshold",
1116
1055
  "title-active-color",
1117
1056
  "title-inactive-color",
1118
- "before-change"
1119
- ]
1120
- },
1121
- "van-tab": {
1122
- "attributes": [
1057
+ "before-change",
1123
1058
  "title",
1124
1059
  "disabled",
1125
1060
  "dot",
@@ -1144,11 +1079,7 @@
1144
1079
  "route",
1145
1080
  "placeholder",
1146
1081
  "safe-area-inset-bottom",
1147
- "before-change"
1148
- ]
1149
- },
1150
- "van-tabbar-item": {
1151
- "attributes": [
1082
+ "before-change",
1152
1083
  "name",
1153
1084
  "icon",
1154
1085
  "icon-prefix",
@@ -1172,6 +1103,9 @@
1172
1103
  "closeable"
1173
1104
  ]
1174
1105
  },
1106
+ "van-toast": {
1107
+ "attributes": []
1108
+ },
1175
1109
  "van-tree-select": {
1176
1110
  "attributes": [
1177
1111
  "items",