vant 2.12.33 → 2.12.34-beta.0
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/swipe/index.js +8 -2
- package/es/tabbar-item/index.js +5 -3
- package/lib/index.js +1 -1
- package/lib/swipe/index.js +8 -2
- package/lib/tabbar-item/index.js +5 -3
- package/lib/vant.js +14 -6
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +126 -126
- package/vetur/tags.json +52 -52
- package/vetur/web-types.json +371 -371
package/package.json
CHANGED
package/vetur/attributes.json
CHANGED
@@ -155,57 +155,21 @@
|
|
155
155
|
"type": "(key, val) => string",
|
156
156
|
"description": "自定义校验函数, 默认值: -"
|
157
157
|
},
|
158
|
-
"van-
|
159
|
-
"type": "string",
|
160
|
-
"description": "
|
161
|
-
},
|
162
|
-
"van-area/title": {
|
163
|
-
"type": "string",
|
164
|
-
"description": "顶部栏标题, 默认值: -"
|
165
|
-
},
|
166
|
-
"van-area/confirm-button-text": {
|
167
|
-
"type": "string",
|
168
|
-
"description": "确认按钮文字, 默认值: `确认`"
|
158
|
+
"van-badge/content": {
|
159
|
+
"type": "number | string",
|
160
|
+
"description": "徽标内容, 默认值: -"
|
169
161
|
},
|
170
|
-
"van-
|
162
|
+
"van-badge/color": {
|
171
163
|
"type": "string",
|
172
|
-
"description": "
|
173
|
-
},
|
174
|
-
"van-area/area-list": {
|
175
|
-
"type": "object",
|
176
|
-
"description": "省市区数据,格式见下方, 默认值: -"
|
177
|
-
},
|
178
|
-
"van-area/columns-placeholder": {
|
179
|
-
"type": "string[]",
|
180
|
-
"description": "列占位提示文字, 默认值: `[]`"
|
181
|
-
},
|
182
|
-
"van-area/loading": {
|
183
|
-
"type": "boolean",
|
184
|
-
"description": "是否显示加载状态, 默认值: `false`"
|
164
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
185
165
|
},
|
186
|
-
"van-
|
166
|
+
"van-badge/dot": {
|
187
167
|
"type": "boolean",
|
188
|
-
"description": "
|
189
|
-
},
|
190
|
-
"van-area/item-height": {
|
191
|
-
"type": "number | string",
|
192
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
193
|
-
},
|
194
|
-
"van-area/columns-num": {
|
195
|
-
"type": "number | string",
|
196
|
-
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
197
|
-
},
|
198
|
-
"van-area/visible-item-count": {
|
199
|
-
"type": "number | string",
|
200
|
-
"description": "可见的选项个数, 默认值: `6`"
|
168
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
201
169
|
},
|
202
|
-
"van-
|
170
|
+
"van-badge/max": {
|
203
171
|
"type": "number | string",
|
204
|
-
"description": "
|
205
|
-
},
|
206
|
-
"van-area/is-oversea-code": {
|
207
|
-
"type": "() => boolean",
|
208
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
172
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
209
173
|
},
|
210
174
|
"van-address-list/v-model": {
|
211
175
|
"type": "string",
|
@@ -323,21 +287,57 @@
|
|
323
287
|
"type": "boolean",
|
324
288
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
325
289
|
},
|
326
|
-
"van-
|
327
|
-
"type": "
|
328
|
-
"description": "
|
290
|
+
"van-area/value": {
|
291
|
+
"type": "string",
|
292
|
+
"description": "当前选中的省市区`code`, 默认值: -"
|
329
293
|
},
|
330
|
-
"van-
|
294
|
+
"van-area/title": {
|
331
295
|
"type": "string",
|
332
|
-
"description": "
|
296
|
+
"description": "顶部栏标题, 默认值: -"
|
333
297
|
},
|
334
|
-
"van-
|
298
|
+
"van-area/confirm-button-text": {
|
299
|
+
"type": "string",
|
300
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
301
|
+
},
|
302
|
+
"van-area/cancel-button-text": {
|
303
|
+
"type": "string",
|
304
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
305
|
+
},
|
306
|
+
"van-area/area-list": {
|
307
|
+
"type": "object",
|
308
|
+
"description": "省市区数据,格式见下方, 默认值: -"
|
309
|
+
},
|
310
|
+
"van-area/columns-placeholder": {
|
311
|
+
"type": "string[]",
|
312
|
+
"description": "列占位提示文字, 默认值: `[]`"
|
313
|
+
},
|
314
|
+
"van-area/loading": {
|
335
315
|
"type": "boolean",
|
336
|
-
"description": "
|
316
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
337
317
|
},
|
338
|
-
"van-
|
318
|
+
"van-area/readonly": {
|
319
|
+
"type": "boolean",
|
320
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
321
|
+
},
|
322
|
+
"van-area/item-height": {
|
339
323
|
"type": "number | string",
|
340
|
-
"description": "
|
324
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
325
|
+
},
|
326
|
+
"van-area/columns-num": {
|
327
|
+
"type": "number | string",
|
328
|
+
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
329
|
+
},
|
330
|
+
"van-area/visible-item-count": {
|
331
|
+
"type": "number | string",
|
332
|
+
"description": "可见的选项个数, 默认值: `6`"
|
333
|
+
},
|
334
|
+
"van-area/swipe-duration": {
|
335
|
+
"type": "number | string",
|
336
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
337
|
+
},
|
338
|
+
"van-area/is-oversea-code": {
|
339
|
+
"type": "() => boolean",
|
340
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
341
341
|
},
|
342
342
|
"van-calendar/type": {
|
343
343
|
"type": "string",
|
@@ -1059,6 +1059,18 @@
|
|
1059
1059
|
"type": "number | string",
|
1060
1060
|
"description": "可选的最大分钟, 默认值: `59`"
|
1061
1061
|
},
|
1062
|
+
"van-divider/dashed": {
|
1063
|
+
"type": "boolean",
|
1064
|
+
"description": "是否使用虚线, 默认值: `false`"
|
1065
|
+
},
|
1066
|
+
"van-divider/hairline": {
|
1067
|
+
"type": "boolean",
|
1068
|
+
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1069
|
+
},
|
1070
|
+
"van-divider/content-position": {
|
1071
|
+
"type": "string",
|
1072
|
+
"description": "内容位置,可选值为`left` `right`, 默认值: `center`"
|
1073
|
+
},
|
1062
1074
|
"van-dialog/v-model": {
|
1063
1075
|
"type": "boolean",
|
1064
1076
|
"description": "是否显示弹窗, 默认值: -"
|
@@ -1151,18 +1163,6 @@
|
|
1151
1163
|
"type": "string | () => Element",
|
1152
1164
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
1153
1165
|
},
|
1154
|
-
"van-divider/dashed": {
|
1155
|
-
"type": "boolean",
|
1156
|
-
"description": "是否使用虚线, 默认值: `false`"
|
1157
|
-
},
|
1158
|
-
"van-divider/hairline": {
|
1159
|
-
"type": "boolean",
|
1160
|
-
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1161
|
-
},
|
1162
|
-
"van-divider/content-position": {
|
1163
|
-
"type": "string",
|
1164
|
-
"description": "内容位置,可选值为`left` `right`, 默认值: `center`"
|
1165
|
-
},
|
1166
1166
|
"van-dropdown-menu/active-color": {
|
1167
1167
|
"type": "string",
|
1168
1168
|
"description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
|
@@ -1875,6 +1875,30 @@
|
|
1875
1875
|
"type": "boolean",
|
1876
1876
|
"description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
|
1877
1877
|
},
|
1878
|
+
"van-overlay/show": {
|
1879
|
+
"type": "boolean",
|
1880
|
+
"description": "是否展示遮罩层, 默认值: `false`"
|
1881
|
+
},
|
1882
|
+
"van-overlay/z-index": {
|
1883
|
+
"type": "number | string",
|
1884
|
+
"description": "z-index 层级, 默认值: `1`"
|
1885
|
+
},
|
1886
|
+
"van-overlay/duration": {
|
1887
|
+
"type": "number | string",
|
1888
|
+
"description": "动画时长,单位秒, 默认值: `0.3`"
|
1889
|
+
},
|
1890
|
+
"van-overlay/class-name": {
|
1891
|
+
"type": "string",
|
1892
|
+
"description": "自定义类名, 默认值: -"
|
1893
|
+
},
|
1894
|
+
"van-overlay/custom-style": {
|
1895
|
+
"type": "object",
|
1896
|
+
"description": "自定义样式, 默认值: -"
|
1897
|
+
},
|
1898
|
+
"van-overlay/lock-scroll": {
|
1899
|
+
"type": "boolean",
|
1900
|
+
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
1901
|
+
},
|
1878
1902
|
"van-number-keyboard/v-model (value)": {
|
1879
1903
|
"type": "string",
|
1880
1904
|
"description": "当前输入值, 默认值: -"
|
@@ -1939,30 +1963,6 @@
|
|
1939
1963
|
"type": "boolean",
|
1940
1964
|
"description": "是否将通过随机顺序展示按键, 默认值: `false`"
|
1941
1965
|
},
|
1942
|
-
"van-overlay/show": {
|
1943
|
-
"type": "boolean",
|
1944
|
-
"description": "是否展示遮罩层, 默认值: `false`"
|
1945
|
-
},
|
1946
|
-
"van-overlay/z-index": {
|
1947
|
-
"type": "number | string",
|
1948
|
-
"description": "z-index 层级, 默认值: `1`"
|
1949
|
-
},
|
1950
|
-
"van-overlay/duration": {
|
1951
|
-
"type": "number | string",
|
1952
|
-
"description": "动画时长,单位秒, 默认值: `0.3`"
|
1953
|
-
},
|
1954
|
-
"van-overlay/class-name": {
|
1955
|
-
"type": "string",
|
1956
|
-
"description": "自定义类名, 默认值: -"
|
1957
|
-
},
|
1958
|
-
"van-overlay/custom-style": {
|
1959
|
-
"type": "object",
|
1960
|
-
"description": "自定义样式, 默认值: -"
|
1961
|
-
},
|
1962
|
-
"van-overlay/lock-scroll": {
|
1963
|
-
"type": "boolean",
|
1964
|
-
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
1965
|
-
},
|
1966
1966
|
"van-pagination/v-model": {
|
1967
1967
|
"type": "number",
|
1968
1968
|
"description": "当前页码, 默认值: -"
|
@@ -2455,6 +2455,42 @@
|
|
2455
2455
|
"type": "string",
|
2456
2456
|
"description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2457
2457
|
},
|
2458
|
+
"van-sidebar/v-model": {
|
2459
|
+
"type": "number | string",
|
2460
|
+
"description": "当前导航项的索引, 默认值: `0`"
|
2461
|
+
},
|
2462
|
+
"van-sidebar-item/title": {
|
2463
|
+
"type": "string",
|
2464
|
+
"description": "内容, 默认值: `''`"
|
2465
|
+
},
|
2466
|
+
"van-sidebar-item/dot": {
|
2467
|
+
"type": "boolean",
|
2468
|
+
"description": "是否显示右上角小红点, 默认值: `false`"
|
2469
|
+
},
|
2470
|
+
"van-sidebar-item/badge": {
|
2471
|
+
"type": "number | string",
|
2472
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
2473
|
+
},
|
2474
|
+
"van-sidebar-item/info": {
|
2475
|
+
"type": "number | string",
|
2476
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
2477
|
+
},
|
2478
|
+
"van-sidebar-item/disabled": {
|
2479
|
+
"type": "boolean",
|
2480
|
+
"description": "是否禁用该项, 默认值: `false`"
|
2481
|
+
},
|
2482
|
+
"van-sidebar-item/url": {
|
2483
|
+
"type": "string",
|
2484
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
2485
|
+
},
|
2486
|
+
"van-sidebar-item/to": {
|
2487
|
+
"type": "string | object",
|
2488
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
2489
|
+
},
|
2490
|
+
"van-sidebar-item/replace": {
|
2491
|
+
"type": "boolean",
|
2492
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
2493
|
+
},
|
2458
2494
|
"van-share-sheet/options": {
|
2459
2495
|
"type": "Option[]",
|
2460
2496
|
"description": "分享选项, 默认值: `[]`"
|
@@ -2503,42 +2539,6 @@
|
|
2503
2539
|
"type": "string | () => Element",
|
2504
2540
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
2505
2541
|
},
|
2506
|
-
"van-sidebar/v-model": {
|
2507
|
-
"type": "number | string",
|
2508
|
-
"description": "当前导航项的索引, 默认值: `0`"
|
2509
|
-
},
|
2510
|
-
"van-sidebar-item/title": {
|
2511
|
-
"type": "string",
|
2512
|
-
"description": "内容, 默认值: `''`"
|
2513
|
-
},
|
2514
|
-
"van-sidebar-item/dot": {
|
2515
|
-
"type": "boolean",
|
2516
|
-
"description": "是否显示右上角小红点, 默认值: `false`"
|
2517
|
-
},
|
2518
|
-
"van-sidebar-item/badge": {
|
2519
|
-
"type": "number | string",
|
2520
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
2521
|
-
},
|
2522
|
-
"van-sidebar-item/info": {
|
2523
|
-
"type": "number | string",
|
2524
|
-
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
2525
|
-
},
|
2526
|
-
"van-sidebar-item/disabled": {
|
2527
|
-
"type": "boolean",
|
2528
|
-
"description": "是否禁用该项, 默认值: `false`"
|
2529
|
-
},
|
2530
|
-
"van-sidebar-item/url": {
|
2531
|
-
"type": "string",
|
2532
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
2533
|
-
},
|
2534
|
-
"van-sidebar-item/to": {
|
2535
|
-
"type": "string | object",
|
2536
|
-
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
2537
|
-
},
|
2538
|
-
"van-sidebar-item/replace": {
|
2539
|
-
"type": "boolean",
|
2540
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
2541
|
-
},
|
2542
2542
|
"van-skeleton/row": {
|
2543
2543
|
"type": "number | string",
|
2544
2544
|
"description": "段落占位图行数, 默认值: `0`"
|
package/vetur/tags.json
CHANGED
@@ -46,21 +46,12 @@
|
|
46
46
|
"validator"
|
47
47
|
]
|
48
48
|
},
|
49
|
-
"van-
|
49
|
+
"van-badge": {
|
50
50
|
"attributes": [
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"
|
55
|
-
"area-list",
|
56
|
-
"columns-placeholder",
|
57
|
-
"loading",
|
58
|
-
"readonly",
|
59
|
-
"item-height",
|
60
|
-
"columns-num",
|
61
|
-
"visible-item-count",
|
62
|
-
"swipe-duration",
|
63
|
-
"is-oversea-code"
|
51
|
+
"content",
|
52
|
+
"color",
|
53
|
+
"dot",
|
54
|
+
"max"
|
64
55
|
]
|
65
56
|
},
|
66
57
|
"van-address-list": {
|
@@ -100,12 +91,21 @@
|
|
100
91
|
"replace"
|
101
92
|
]
|
102
93
|
},
|
103
|
-
"van-
|
94
|
+
"van-area": {
|
104
95
|
"attributes": [
|
105
|
-
"
|
106
|
-
"
|
107
|
-
"
|
108
|
-
"
|
96
|
+
"value",
|
97
|
+
"title",
|
98
|
+
"confirm-button-text",
|
99
|
+
"cancel-button-text",
|
100
|
+
"area-list",
|
101
|
+
"columns-placeholder",
|
102
|
+
"loading",
|
103
|
+
"readonly",
|
104
|
+
"item-height",
|
105
|
+
"columns-num",
|
106
|
+
"visible-item-count",
|
107
|
+
"swipe-duration",
|
108
|
+
"is-oversea-code"
|
109
109
|
]
|
110
110
|
},
|
111
111
|
"van-calendar": {
|
@@ -384,6 +384,13 @@
|
|
384
384
|
"max-minute"
|
385
385
|
]
|
386
386
|
},
|
387
|
+
"van-divider": {
|
388
|
+
"attributes": [
|
389
|
+
"dashed",
|
390
|
+
"hairline",
|
391
|
+
"content-position"
|
392
|
+
]
|
393
|
+
},
|
387
394
|
"van-dialog": {
|
388
395
|
"attributes": [
|
389
396
|
"v-model",
|
@@ -411,13 +418,6 @@
|
|
411
418
|
"get-container"
|
412
419
|
]
|
413
420
|
},
|
414
|
-
"van-divider": {
|
415
|
-
"attributes": [
|
416
|
-
"dashed",
|
417
|
-
"hairline",
|
418
|
-
"content-position"
|
419
|
-
]
|
420
|
-
},
|
421
421
|
"van-dropdown-menu": {
|
422
422
|
"attributes": [
|
423
423
|
"active-color",
|
@@ -672,6 +672,16 @@
|
|
672
672
|
"wrapable"
|
673
673
|
]
|
674
674
|
},
|
675
|
+
"van-overlay": {
|
676
|
+
"attributes": [
|
677
|
+
"show",
|
678
|
+
"z-index",
|
679
|
+
"duration",
|
680
|
+
"class-name",
|
681
|
+
"custom-style",
|
682
|
+
"lock-scroll"
|
683
|
+
]
|
684
|
+
},
|
675
685
|
"van-number-keyboard": {
|
676
686
|
"attributes": [
|
677
687
|
"v-model (value)",
|
@@ -692,16 +702,6 @@
|
|
692
702
|
"random-key-order"
|
693
703
|
]
|
694
704
|
},
|
695
|
-
"van-overlay": {
|
696
|
-
"attributes": [
|
697
|
-
"show",
|
698
|
-
"z-index",
|
699
|
-
"duration",
|
700
|
-
"class-name",
|
701
|
-
"custom-style",
|
702
|
-
"lock-scroll"
|
703
|
-
]
|
704
|
-
},
|
705
705
|
"van-pagination": {
|
706
706
|
"attributes": [
|
707
707
|
"v-model",
|
@@ -873,22 +873,6 @@
|
|
873
873
|
"right-icon"
|
874
874
|
]
|
875
875
|
},
|
876
|
-
"van-share-sheet": {
|
877
|
-
"attributes": [
|
878
|
-
"options",
|
879
|
-
"title",
|
880
|
-
"cancel-text",
|
881
|
-
"description",
|
882
|
-
"duration",
|
883
|
-
"overlay",
|
884
|
-
"lock-scroll",
|
885
|
-
"lazy-render",
|
886
|
-
"close-on-popstate",
|
887
|
-
"close-on-click-overlay",
|
888
|
-
"safe-area-inset-bottom",
|
889
|
-
"get-container"
|
890
|
-
]
|
891
|
-
},
|
892
876
|
"van-sidebar": {
|
893
877
|
"attributes": [
|
894
878
|
"v-model"
|
@@ -906,6 +890,22 @@
|
|
906
890
|
"replace"
|
907
891
|
]
|
908
892
|
},
|
893
|
+
"van-share-sheet": {
|
894
|
+
"attributes": [
|
895
|
+
"options",
|
896
|
+
"title",
|
897
|
+
"cancel-text",
|
898
|
+
"description",
|
899
|
+
"duration",
|
900
|
+
"overlay",
|
901
|
+
"lock-scroll",
|
902
|
+
"lazy-render",
|
903
|
+
"close-on-popstate",
|
904
|
+
"close-on-click-overlay",
|
905
|
+
"safe-area-inset-bottom",
|
906
|
+
"get-container"
|
907
|
+
]
|
908
|
+
},
|
909
909
|
"van-skeleton": {
|
910
910
|
"attributes": [
|
911
911
|
"row",
|