vant 2.12.37 → 2.12.38
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/index.js +1 -1
- package/es/mixins/touch.js +10 -6
- package/es/slider/index.js +23 -4
- package/es/swipe/index.js +2 -8
- package/lib/index.js +1 -1
- package/lib/mixins/touch.js +10 -7
- package/lib/slider/index.js +23 -4
- package/lib/swipe/index.js +2 -8
- package/lib/vant.js +36 -19
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +144 -144
- package/vetur/tags.json +48 -48
- package/vetur/web-types.json +513 -505
package/package.json
CHANGED
package/vetur/attributes.json
CHANGED
@@ -87,6 +87,74 @@
|
|
87
87
|
"type": "(key, val) => string",
|
88
88
|
"description": "自定义校验函数, 默认值: -"
|
89
89
|
},
|
90
|
+
"van-action-sheet/v-model (value)": {
|
91
|
+
"type": "boolean",
|
92
|
+
"description": "是否显示动作面板, 默认值: `false`"
|
93
|
+
},
|
94
|
+
"van-action-sheet/actions": {
|
95
|
+
"type": "Action[]",
|
96
|
+
"description": "面板选项列表, 默认值: `[]`"
|
97
|
+
},
|
98
|
+
"van-action-sheet/title": {
|
99
|
+
"type": "string",
|
100
|
+
"description": "顶部标题, 默认值: -"
|
101
|
+
},
|
102
|
+
"van-action-sheet/cancel-text": {
|
103
|
+
"type": "string",
|
104
|
+
"description": "取消按钮文字, 默认值: -"
|
105
|
+
},
|
106
|
+
"van-action-sheet/description": {
|
107
|
+
"type": "string",
|
108
|
+
"description": "选项上方的描述信息, 默认值: -"
|
109
|
+
},
|
110
|
+
"van-action-sheet/closeable": {
|
111
|
+
"type": "boolean",
|
112
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
113
|
+
},
|
114
|
+
"van-action-sheet/close-icon": {
|
115
|
+
"type": "string",
|
116
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
117
|
+
},
|
118
|
+
"van-action-sheet/duration": {
|
119
|
+
"type": "number | string",
|
120
|
+
"description": "动画时长,单位秒, 默认值: `0.3`"
|
121
|
+
},
|
122
|
+
"van-action-sheet/round": {
|
123
|
+
"type": "boolean",
|
124
|
+
"description": "是否显示圆角, 默认值: `true`"
|
125
|
+
},
|
126
|
+
"van-action-sheet/overlay": {
|
127
|
+
"type": "boolean",
|
128
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
129
|
+
},
|
130
|
+
"van-action-sheet/lock-scroll": {
|
131
|
+
"type": "boolean",
|
132
|
+
"description": "是否锁定背景滚动, 默认值: `true`"
|
133
|
+
},
|
134
|
+
"van-action-sheet/lazy-render": {
|
135
|
+
"type": "boolean",
|
136
|
+
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
137
|
+
},
|
138
|
+
"van-action-sheet/close-on-popstate": {
|
139
|
+
"type": "boolean",
|
140
|
+
"description": "是否在页面回退时自动关闭, 默认值: `false`"
|
141
|
+
},
|
142
|
+
"van-action-sheet/close-on-click-action": {
|
143
|
+
"type": "boolean",
|
144
|
+
"description": "是否在点击选项后关闭, 默认值: `false`"
|
145
|
+
},
|
146
|
+
"van-action-sheet/close-on-click-overlay": {
|
147
|
+
"type": "boolean",
|
148
|
+
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
149
|
+
},
|
150
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
151
|
+
"type": "boolean",
|
152
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
153
|
+
},
|
154
|
+
"van-action-sheet/get-container": {
|
155
|
+
"type": "string | () => Element",
|
156
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
157
|
+
},
|
90
158
|
"van-address-list/v-model": {
|
91
159
|
"type": "string",
|
92
160
|
"description": "当前选中地址的 id, 默认值: -"
|
@@ -131,6 +199,58 @@
|
|
131
199
|
"type": "number | string",
|
132
200
|
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
133
201
|
},
|
202
|
+
"van-area/value": {
|
203
|
+
"type": "string",
|
204
|
+
"description": "当前选中的省市区`code`, 默认值: -"
|
205
|
+
},
|
206
|
+
"van-area/title": {
|
207
|
+
"type": "string",
|
208
|
+
"description": "顶部栏标题, 默认值: -"
|
209
|
+
},
|
210
|
+
"van-area/confirm-button-text": {
|
211
|
+
"type": "string",
|
212
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
213
|
+
},
|
214
|
+
"van-area/cancel-button-text": {
|
215
|
+
"type": "string",
|
216
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
217
|
+
},
|
218
|
+
"van-area/area-list": {
|
219
|
+
"type": "object",
|
220
|
+
"description": "省市区数据,格式见下方, 默认值: -"
|
221
|
+
},
|
222
|
+
"van-area/columns-placeholder": {
|
223
|
+
"type": "string[]",
|
224
|
+
"description": "列占位提示文字, 默认值: `[]`"
|
225
|
+
},
|
226
|
+
"van-area/loading": {
|
227
|
+
"type": "boolean",
|
228
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
229
|
+
},
|
230
|
+
"van-area/readonly": {
|
231
|
+
"type": "boolean",
|
232
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
233
|
+
},
|
234
|
+
"van-area/item-height": {
|
235
|
+
"type": "number | string",
|
236
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
237
|
+
},
|
238
|
+
"van-area/columns-num": {
|
239
|
+
"type": "number | string",
|
240
|
+
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
241
|
+
},
|
242
|
+
"van-area/visible-item-count": {
|
243
|
+
"type": "number | string",
|
244
|
+
"description": "可见的选项个数, 默认值: `6`"
|
245
|
+
},
|
246
|
+
"van-area/swipe-duration": {
|
247
|
+
"type": "number | string",
|
248
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
249
|
+
},
|
250
|
+
"van-area/is-oversea-code": {
|
251
|
+
"type": "() => boolean",
|
252
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
253
|
+
},
|
134
254
|
"van-button/type": {
|
135
255
|
"type": "string",
|
136
256
|
"description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
@@ -219,58 +339,6 @@
|
|
219
339
|
"type": "boolean",
|
220
340
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
221
341
|
},
|
222
|
-
"van-area/value": {
|
223
|
-
"type": "string",
|
224
|
-
"description": "当前选中的省市区`code`, 默认值: -"
|
225
|
-
},
|
226
|
-
"van-area/title": {
|
227
|
-
"type": "string",
|
228
|
-
"description": "顶部栏标题, 默认值: -"
|
229
|
-
},
|
230
|
-
"van-area/confirm-button-text": {
|
231
|
-
"type": "string",
|
232
|
-
"description": "确认按钮文字, 默认值: `确认`"
|
233
|
-
},
|
234
|
-
"van-area/cancel-button-text": {
|
235
|
-
"type": "string",
|
236
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
237
|
-
},
|
238
|
-
"van-area/area-list": {
|
239
|
-
"type": "object",
|
240
|
-
"description": "省市区数据,格式见下方, 默认值: -"
|
241
|
-
},
|
242
|
-
"van-area/columns-placeholder": {
|
243
|
-
"type": "string[]",
|
244
|
-
"description": "列占位提示文字, 默认值: `[]`"
|
245
|
-
},
|
246
|
-
"van-area/loading": {
|
247
|
-
"type": "boolean",
|
248
|
-
"description": "是否显示加载状态, 默认值: `false`"
|
249
|
-
},
|
250
|
-
"van-area/readonly": {
|
251
|
-
"type": "boolean",
|
252
|
-
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
253
|
-
},
|
254
|
-
"van-area/item-height": {
|
255
|
-
"type": "number | string",
|
256
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
257
|
-
},
|
258
|
-
"van-area/columns-num": {
|
259
|
-
"type": "number | string",
|
260
|
-
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
261
|
-
},
|
262
|
-
"van-area/visible-item-count": {
|
263
|
-
"type": "number | string",
|
264
|
-
"description": "可见的选项个数, 默认值: `6`"
|
265
|
-
},
|
266
|
-
"van-area/swipe-duration": {
|
267
|
-
"type": "number | string",
|
268
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
269
|
-
},
|
270
|
-
"van-area/is-oversea-code": {
|
271
|
-
"type": "() => boolean",
|
272
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
273
|
-
},
|
274
342
|
"van-calendar/type": {
|
275
343
|
"type": "string",
|
276
344
|
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
|
@@ -391,74 +459,6 @@
|
|
391
459
|
"type": "string",
|
392
460
|
"description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
393
461
|
},
|
394
|
-
"van-action-sheet/v-model (value)": {
|
395
|
-
"type": "boolean",
|
396
|
-
"description": "是否显示动作面板, 默认值: `false`"
|
397
|
-
},
|
398
|
-
"van-action-sheet/actions": {
|
399
|
-
"type": "Action[]",
|
400
|
-
"description": "面板选项列表, 默认值: `[]`"
|
401
|
-
},
|
402
|
-
"van-action-sheet/title": {
|
403
|
-
"type": "string",
|
404
|
-
"description": "顶部标题, 默认值: -"
|
405
|
-
},
|
406
|
-
"van-action-sheet/cancel-text": {
|
407
|
-
"type": "string",
|
408
|
-
"description": "取消按钮文字, 默认值: -"
|
409
|
-
},
|
410
|
-
"van-action-sheet/description": {
|
411
|
-
"type": "string",
|
412
|
-
"description": "选项上方的描述信息, 默认值: -"
|
413
|
-
},
|
414
|
-
"van-action-sheet/closeable": {
|
415
|
-
"type": "boolean",
|
416
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
417
|
-
},
|
418
|
-
"van-action-sheet/close-icon": {
|
419
|
-
"type": "string",
|
420
|
-
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
421
|
-
},
|
422
|
-
"van-action-sheet/duration": {
|
423
|
-
"type": "number | string",
|
424
|
-
"description": "动画时长,单位秒, 默认值: `0.3`"
|
425
|
-
},
|
426
|
-
"van-action-sheet/round": {
|
427
|
-
"type": "boolean",
|
428
|
-
"description": "是否显示圆角, 默认值: `true`"
|
429
|
-
},
|
430
|
-
"van-action-sheet/overlay": {
|
431
|
-
"type": "boolean",
|
432
|
-
"description": "是否显示遮罩层, 默认值: `true`"
|
433
|
-
},
|
434
|
-
"van-action-sheet/lock-scroll": {
|
435
|
-
"type": "boolean",
|
436
|
-
"description": "是否锁定背景滚动, 默认值: `true`"
|
437
|
-
},
|
438
|
-
"van-action-sheet/lazy-render": {
|
439
|
-
"type": "boolean",
|
440
|
-
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
441
|
-
},
|
442
|
-
"van-action-sheet/close-on-popstate": {
|
443
|
-
"type": "boolean",
|
444
|
-
"description": "是否在页面回退时自动关闭, 默认值: `false`"
|
445
|
-
},
|
446
|
-
"van-action-sheet/close-on-click-action": {
|
447
|
-
"type": "boolean",
|
448
|
-
"description": "是否在点击选项后关闭, 默认值: `false`"
|
449
|
-
},
|
450
|
-
"van-action-sheet/close-on-click-overlay": {
|
451
|
-
"type": "boolean",
|
452
|
-
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
453
|
-
},
|
454
|
-
"van-action-sheet/safe-area-inset-bottom": {
|
455
|
-
"type": "boolean",
|
456
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
457
|
-
},
|
458
|
-
"van-action-sheet/get-container": {
|
459
|
-
"type": "string | () => Element",
|
460
|
-
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
461
|
-
},
|
462
462
|
"van-card/thumb": {
|
463
463
|
"type": "string",
|
464
464
|
"description": "左侧图片 URL, 默认值: -"
|
@@ -1879,6 +1879,30 @@
|
|
1879
1879
|
"type": "boolean",
|
1880
1880
|
"description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
|
1881
1881
|
},
|
1882
|
+
"van-overlay/show": {
|
1883
|
+
"type": "boolean",
|
1884
|
+
"description": "是否展示遮罩层, 默认值: `false`"
|
1885
|
+
},
|
1886
|
+
"van-overlay/z-index": {
|
1887
|
+
"type": "number | string",
|
1888
|
+
"description": "z-index 层级, 默认值: `1`"
|
1889
|
+
},
|
1890
|
+
"van-overlay/duration": {
|
1891
|
+
"type": "number | string",
|
1892
|
+
"description": "动画时长,单位秒, 默认值: `0.3`"
|
1893
|
+
},
|
1894
|
+
"van-overlay/class-name": {
|
1895
|
+
"type": "string",
|
1896
|
+
"description": "自定义类名, 默认值: -"
|
1897
|
+
},
|
1898
|
+
"van-overlay/custom-style": {
|
1899
|
+
"type": "object",
|
1900
|
+
"description": "自定义样式, 默认值: -"
|
1901
|
+
},
|
1902
|
+
"van-overlay/lock-scroll": {
|
1903
|
+
"type": "boolean",
|
1904
|
+
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
1905
|
+
},
|
1882
1906
|
"van-number-keyboard/v-model (value)": {
|
1883
1907
|
"type": "string",
|
1884
1908
|
"description": "当前输入值, 默认值: -"
|
@@ -1943,30 +1967,6 @@
|
|
1943
1967
|
"type": "boolean",
|
1944
1968
|
"description": "是否将通过随机顺序展示按键, 默认值: `false`"
|
1945
1969
|
},
|
1946
|
-
"van-overlay/show": {
|
1947
|
-
"type": "boolean",
|
1948
|
-
"description": "是否展示遮罩层, 默认值: `false`"
|
1949
|
-
},
|
1950
|
-
"van-overlay/z-index": {
|
1951
|
-
"type": "number | string",
|
1952
|
-
"description": "z-index 层级, 默认值: `1`"
|
1953
|
-
},
|
1954
|
-
"van-overlay/duration": {
|
1955
|
-
"type": "number | string",
|
1956
|
-
"description": "动画时长,单位秒, 默认值: `0.3`"
|
1957
|
-
},
|
1958
|
-
"van-overlay/class-name": {
|
1959
|
-
"type": "string",
|
1960
|
-
"description": "自定义类名, 默认值: -"
|
1961
|
-
},
|
1962
|
-
"van-overlay/custom-style": {
|
1963
|
-
"type": "object",
|
1964
|
-
"description": "自定义样式, 默认值: -"
|
1965
|
-
},
|
1966
|
-
"van-overlay/lock-scroll": {
|
1967
|
-
"type": "boolean",
|
1968
|
-
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
1969
|
-
},
|
1970
1970
|
"van-pagination/v-model": {
|
1971
1971
|
"type": "number",
|
1972
1972
|
"description": "当前页码, 默认值: -"
|
package/vetur/tags.json
CHANGED
@@ -25,6 +25,27 @@
|
|
25
25
|
"validator"
|
26
26
|
]
|
27
27
|
},
|
28
|
+
"van-action-sheet": {
|
29
|
+
"attributes": [
|
30
|
+
"v-model (value)",
|
31
|
+
"actions",
|
32
|
+
"title",
|
33
|
+
"cancel-text",
|
34
|
+
"description",
|
35
|
+
"closeable",
|
36
|
+
"close-icon",
|
37
|
+
"duration",
|
38
|
+
"round",
|
39
|
+
"overlay",
|
40
|
+
"lock-scroll",
|
41
|
+
"lazy-render",
|
42
|
+
"close-on-popstate",
|
43
|
+
"close-on-click-action",
|
44
|
+
"close-on-click-overlay",
|
45
|
+
"safe-area-inset-bottom",
|
46
|
+
"get-container"
|
47
|
+
]
|
48
|
+
},
|
28
49
|
"van-address-list": {
|
29
50
|
"attributes": [
|
30
51
|
"v-model",
|
@@ -44,6 +65,23 @@
|
|
44
65
|
"max"
|
45
66
|
]
|
46
67
|
},
|
68
|
+
"van-area": {
|
69
|
+
"attributes": [
|
70
|
+
"value",
|
71
|
+
"title",
|
72
|
+
"confirm-button-text",
|
73
|
+
"cancel-button-text",
|
74
|
+
"area-list",
|
75
|
+
"columns-placeholder",
|
76
|
+
"loading",
|
77
|
+
"readonly",
|
78
|
+
"item-height",
|
79
|
+
"columns-num",
|
80
|
+
"visible-item-count",
|
81
|
+
"swipe-duration",
|
82
|
+
"is-oversea-code"
|
83
|
+
]
|
84
|
+
},
|
47
85
|
"van-button": {
|
48
86
|
"attributes": [
|
49
87
|
"type",
|
@@ -70,23 +108,6 @@
|
|
70
108
|
"replace"
|
71
109
|
]
|
72
110
|
},
|
73
|
-
"van-area": {
|
74
|
-
"attributes": [
|
75
|
-
"value",
|
76
|
-
"title",
|
77
|
-
"confirm-button-text",
|
78
|
-
"cancel-button-text",
|
79
|
-
"area-list",
|
80
|
-
"columns-placeholder",
|
81
|
-
"loading",
|
82
|
-
"readonly",
|
83
|
-
"item-height",
|
84
|
-
"columns-num",
|
85
|
-
"visible-item-count",
|
86
|
-
"swipe-duration",
|
87
|
-
"is-oversea-code"
|
88
|
-
]
|
89
|
-
},
|
90
111
|
"van-calendar": {
|
91
112
|
"attributes": [
|
92
113
|
"type",
|
@@ -133,27 +154,6 @@
|
|
133
154
|
"range-prompt"
|
134
155
|
]
|
135
156
|
},
|
136
|
-
"van-action-sheet": {
|
137
|
-
"attributes": [
|
138
|
-
"v-model (value)",
|
139
|
-
"actions",
|
140
|
-
"title",
|
141
|
-
"cancel-text",
|
142
|
-
"description",
|
143
|
-
"closeable",
|
144
|
-
"close-icon",
|
145
|
-
"duration",
|
146
|
-
"round",
|
147
|
-
"overlay",
|
148
|
-
"lock-scroll",
|
149
|
-
"lazy-render",
|
150
|
-
"close-on-popstate",
|
151
|
-
"close-on-click-action",
|
152
|
-
"close-on-click-overlay",
|
153
|
-
"safe-area-inset-bottom",
|
154
|
-
"get-container"
|
155
|
-
]
|
156
|
-
},
|
157
157
|
"van-card": {
|
158
158
|
"attributes": [
|
159
159
|
"thumb",
|
@@ -673,6 +673,16 @@
|
|
673
673
|
"wrapable"
|
674
674
|
]
|
675
675
|
},
|
676
|
+
"van-overlay": {
|
677
|
+
"attributes": [
|
678
|
+
"show",
|
679
|
+
"z-index",
|
680
|
+
"duration",
|
681
|
+
"class-name",
|
682
|
+
"custom-style",
|
683
|
+
"lock-scroll"
|
684
|
+
]
|
685
|
+
},
|
676
686
|
"van-number-keyboard": {
|
677
687
|
"attributes": [
|
678
688
|
"v-model (value)",
|
@@ -693,16 +703,6 @@
|
|
693
703
|
"random-key-order"
|
694
704
|
]
|
695
705
|
},
|
696
|
-
"van-overlay": {
|
697
|
-
"attributes": [
|
698
|
-
"show",
|
699
|
-
"z-index",
|
700
|
-
"duration",
|
701
|
-
"class-name",
|
702
|
-
"custom-style",
|
703
|
-
"lock-scroll"
|
704
|
-
]
|
705
|
-
},
|
706
706
|
"van-pagination": {
|
707
707
|
"attributes": [
|
708
708
|
"v-model",
|