vant 2.12.36 → 2.12.40
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.
- package/es/cascader/index.js +20 -13
- package/es/datetime-picker/index.js +1 -1
- package/es/datetime-picker/shared.js +25 -3
- package/es/datetime-picker/utils.js +4 -0
- package/es/icon/index.css +1 -1
- package/es/icon/index.less +1 -0
- package/es/image-preview/ImagePreview.js +1 -0
- package/es/image-preview/ImagePreviewItem.js +8 -3
- package/es/image-preview/index.js +1 -0
- package/es/index.js +1 -1
- package/es/mixins/touch.js +10 -6
- package/es/nav-bar/index.js +9 -1
- package/es/slider/index.js +23 -4
- package/es/swipe/index.js +2 -8
- package/es/tabbar/index.js +14 -6
- package/lib/cascader/index.js +20 -13
- package/lib/datetime-picker/index.js +1 -1
- package/lib/datetime-picker/shared.js +25 -3
- package/lib/datetime-picker/utils.js +4 -0
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.less +1 -0
- package/lib/image-preview/ImagePreview.js +1 -0
- package/lib/image-preview/ImagePreviewItem.js +8 -3
- package/lib/image-preview/index.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/mixins/touch.js +10 -7
- package/lib/nav-bar/index.js +9 -1
- package/lib/slider/index.js +23 -4
- package/lib/swipe/index.js +2 -8
- package/lib/tabbar/index.js +14 -6
- package/lib/vant.js +124 -51
- package/lib/vant.min.js +1 -1
- package/package.json +4 -1
- package/types/image-preview.d.ts +1 -0
- package/vetur/attributes.json +383 -375
- package/vetur/tags.json +121 -119
- package/vetur/web-types.json +1153 -1127
package/vetur/tags.json
CHANGED
@@ -1,4 +1,25 @@
|
|
1
1
|
{
|
2
|
+
"van-action-sheet": {
|
3
|
+
"attributes": [
|
4
|
+
"v-model (value)",
|
5
|
+
"actions",
|
6
|
+
"title",
|
7
|
+
"cancel-text",
|
8
|
+
"description",
|
9
|
+
"closeable",
|
10
|
+
"close-icon",
|
11
|
+
"duration",
|
12
|
+
"round",
|
13
|
+
"overlay",
|
14
|
+
"lock-scroll",
|
15
|
+
"lazy-render",
|
16
|
+
"close-on-popstate",
|
17
|
+
"close-on-click-action",
|
18
|
+
"close-on-click-overlay",
|
19
|
+
"safe-area-inset-bottom",
|
20
|
+
"get-container"
|
21
|
+
]
|
22
|
+
},
|
2
23
|
"van-address-edit": {
|
3
24
|
"attributes": [
|
4
25
|
"area-list",
|
@@ -25,23 +46,6 @@
|
|
25
46
|
"validator"
|
26
47
|
]
|
27
48
|
},
|
28
|
-
"van-area": {
|
29
|
-
"attributes": [
|
30
|
-
"value",
|
31
|
-
"title",
|
32
|
-
"confirm-button-text",
|
33
|
-
"cancel-button-text",
|
34
|
-
"area-list",
|
35
|
-
"columns-placeholder",
|
36
|
-
"loading",
|
37
|
-
"readonly",
|
38
|
-
"item-height",
|
39
|
-
"columns-num",
|
40
|
-
"visible-item-count",
|
41
|
-
"swipe-duration",
|
42
|
-
"is-oversea-code"
|
43
|
-
]
|
44
|
-
},
|
45
49
|
"van-address-list": {
|
46
50
|
"attributes": [
|
47
51
|
"v-model",
|
@@ -53,51 +57,12 @@
|
|
53
57
|
"default-tag-text"
|
54
58
|
]
|
55
59
|
},
|
56
|
-
"van-
|
57
|
-
"attributes": [
|
58
|
-
"v-model (value)",
|
59
|
-
"actions",
|
60
|
-
"title",
|
61
|
-
"cancel-text",
|
62
|
-
"description",
|
63
|
-
"closeable",
|
64
|
-
"close-icon",
|
65
|
-
"duration",
|
66
|
-
"round",
|
67
|
-
"overlay",
|
68
|
-
"lock-scroll",
|
69
|
-
"lazy-render",
|
70
|
-
"close-on-popstate",
|
71
|
-
"close-on-click-action",
|
72
|
-
"close-on-click-overlay",
|
73
|
-
"safe-area-inset-bottom",
|
74
|
-
"get-container"
|
75
|
-
]
|
76
|
-
},
|
77
|
-
"van-button": {
|
60
|
+
"van-badge": {
|
78
61
|
"attributes": [
|
79
|
-
"
|
80
|
-
"size",
|
81
|
-
"text",
|
62
|
+
"content",
|
82
63
|
"color",
|
83
|
-
"
|
84
|
-
"
|
85
|
-
"icon-position",
|
86
|
-
"tag",
|
87
|
-
"native-type",
|
88
|
-
"block",
|
89
|
-
"plain",
|
90
|
-
"square",
|
91
|
-
"round",
|
92
|
-
"disabled",
|
93
|
-
"hairline",
|
94
|
-
"loading",
|
95
|
-
"loading-text",
|
96
|
-
"loading-type",
|
97
|
-
"loading-size",
|
98
|
-
"url",
|
99
|
-
"to",
|
100
|
-
"replace"
|
64
|
+
"dot",
|
65
|
+
"max"
|
101
66
|
]
|
102
67
|
},
|
103
68
|
"van-calendar": {
|
@@ -146,12 +111,21 @@
|
|
146
111
|
"range-prompt"
|
147
112
|
]
|
148
113
|
},
|
149
|
-
"van-
|
114
|
+
"van-area": {
|
150
115
|
"attributes": [
|
151
|
-
"
|
152
|
-
"
|
153
|
-
"
|
154
|
-
"
|
116
|
+
"value",
|
117
|
+
"title",
|
118
|
+
"confirm-button-text",
|
119
|
+
"cancel-button-text",
|
120
|
+
"area-list",
|
121
|
+
"columns-placeholder",
|
122
|
+
"loading",
|
123
|
+
"readonly",
|
124
|
+
"item-height",
|
125
|
+
"columns-num",
|
126
|
+
"visible-item-count",
|
127
|
+
"swipe-duration",
|
128
|
+
"is-oversea-code"
|
155
129
|
]
|
156
130
|
},
|
157
131
|
"van-card": {
|
@@ -177,6 +151,7 @@
|
|
177
151
|
"placeholder",
|
178
152
|
"active-color",
|
179
153
|
"closeable",
|
154
|
+
"show-header",
|
180
155
|
"field-names"
|
181
156
|
]
|
182
157
|
},
|
@@ -209,6 +184,32 @@
|
|
209
184
|
"label-class"
|
210
185
|
]
|
211
186
|
},
|
187
|
+
"van-button": {
|
188
|
+
"attributes": [
|
189
|
+
"type",
|
190
|
+
"size",
|
191
|
+
"text",
|
192
|
+
"color",
|
193
|
+
"icon",
|
194
|
+
"icon-prefix",
|
195
|
+
"icon-position",
|
196
|
+
"tag",
|
197
|
+
"native-type",
|
198
|
+
"block",
|
199
|
+
"plain",
|
200
|
+
"square",
|
201
|
+
"round",
|
202
|
+
"disabled",
|
203
|
+
"hairline",
|
204
|
+
"loading",
|
205
|
+
"loading-text",
|
206
|
+
"loading-type",
|
207
|
+
"loading-size",
|
208
|
+
"url",
|
209
|
+
"to",
|
210
|
+
"replace"
|
211
|
+
]
|
212
|
+
},
|
212
213
|
"van-checkbox": {
|
213
214
|
"attributes": [
|
214
215
|
"v-model (value)",
|
@@ -353,6 +354,33 @@
|
|
353
354
|
"show-count"
|
354
355
|
]
|
355
356
|
},
|
357
|
+
"van-dialog": {
|
358
|
+
"attributes": [
|
359
|
+
"v-model",
|
360
|
+
"title",
|
361
|
+
"width",
|
362
|
+
"message",
|
363
|
+
"message-align",
|
364
|
+
"theme",
|
365
|
+
"show-confirm-button",
|
366
|
+
"show-cancel-button",
|
367
|
+
"confirm-button-text",
|
368
|
+
"confirm-button-color",
|
369
|
+
"cancel-button-text",
|
370
|
+
"cancel-button-color",
|
371
|
+
"overlay",
|
372
|
+
"overlay-class",
|
373
|
+
"overlay-style",
|
374
|
+
"close-on-popstate",
|
375
|
+
"close-on-click-overlay",
|
376
|
+
"lazy-render",
|
377
|
+
"lock-scroll",
|
378
|
+
"allow-html",
|
379
|
+
"before-close",
|
380
|
+
"transition",
|
381
|
+
"get-container"
|
382
|
+
]
|
383
|
+
},
|
356
384
|
"van-datetime-picker": {
|
357
385
|
"attributes": [
|
358
386
|
"type",
|
@@ -384,33 +412,6 @@
|
|
384
412
|
"max-minute"
|
385
413
|
]
|
386
414
|
},
|
387
|
-
"van-dialog": {
|
388
|
-
"attributes": [
|
389
|
-
"v-model",
|
390
|
-
"title",
|
391
|
-
"width",
|
392
|
-
"message",
|
393
|
-
"message-align",
|
394
|
-
"theme",
|
395
|
-
"show-confirm-button",
|
396
|
-
"show-cancel-button",
|
397
|
-
"confirm-button-text",
|
398
|
-
"confirm-button-color",
|
399
|
-
"cancel-button-text",
|
400
|
-
"cancel-button-color",
|
401
|
-
"overlay",
|
402
|
-
"overlay-class",
|
403
|
-
"overlay-style",
|
404
|
-
"close-on-popstate",
|
405
|
-
"close-on-click-overlay",
|
406
|
-
"lazy-render",
|
407
|
-
"lock-scroll",
|
408
|
-
"allow-html",
|
409
|
-
"before-close",
|
410
|
-
"transition",
|
411
|
-
"get-container"
|
412
|
-
]
|
413
|
-
},
|
414
415
|
"van-divider": {
|
415
416
|
"attributes": [
|
416
417
|
"dashed",
|
@@ -606,6 +607,7 @@
|
|
606
607
|
"close-icon",
|
607
608
|
"close-icon-position",
|
608
609
|
"transition",
|
610
|
+
"overlay-style",
|
609
611
|
"get-container"
|
610
612
|
]
|
611
613
|
},
|
@@ -1092,33 +1094,6 @@
|
|
1092
1094
|
"inactive-value"
|
1093
1095
|
]
|
1094
1096
|
},
|
1095
|
-
"van-tabbar": {
|
1096
|
-
"attributes": [
|
1097
|
-
"v-model",
|
1098
|
-
"fixed",
|
1099
|
-
"border",
|
1100
|
-
"z-index",
|
1101
|
-
"active-color",
|
1102
|
-
"inactive-color",
|
1103
|
-
"route",
|
1104
|
-
"placeholder",
|
1105
|
-
"safe-area-inset-bottom",
|
1106
|
-
"before-change"
|
1107
|
-
]
|
1108
|
-
},
|
1109
|
-
"van-tabbar-item": {
|
1110
|
-
"attributes": [
|
1111
|
-
"name",
|
1112
|
-
"icon",
|
1113
|
-
"icon-prefix",
|
1114
|
-
"dot",
|
1115
|
-
"badge",
|
1116
|
-
"info",
|
1117
|
-
"url",
|
1118
|
-
"to",
|
1119
|
-
"replace"
|
1120
|
-
]
|
1121
|
-
},
|
1122
1097
|
"van-tabs": {
|
1123
1098
|
"attributes": [
|
1124
1099
|
"v-model",
|
@@ -1157,6 +1132,33 @@
|
|
1157
1132
|
"title-class"
|
1158
1133
|
]
|
1159
1134
|
},
|
1135
|
+
"van-tabbar": {
|
1136
|
+
"attributes": [
|
1137
|
+
"v-model",
|
1138
|
+
"fixed",
|
1139
|
+
"border",
|
1140
|
+
"z-index",
|
1141
|
+
"active-color",
|
1142
|
+
"inactive-color",
|
1143
|
+
"route",
|
1144
|
+
"placeholder",
|
1145
|
+
"safe-area-inset-bottom",
|
1146
|
+
"before-change"
|
1147
|
+
]
|
1148
|
+
},
|
1149
|
+
"van-tabbar-item": {
|
1150
|
+
"attributes": [
|
1151
|
+
"name",
|
1152
|
+
"icon",
|
1153
|
+
"icon-prefix",
|
1154
|
+
"dot",
|
1155
|
+
"badge",
|
1156
|
+
"info",
|
1157
|
+
"url",
|
1158
|
+
"to",
|
1159
|
+
"replace"
|
1160
|
+
]
|
1161
|
+
},
|
1160
1162
|
"van-tag": {
|
1161
1163
|
"attributes": [
|
1162
1164
|
"type",
|