vant 2.12.34-beta.0 → 2.12.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "2.12.34-beta.0",
3
+ "version": "2.12.37",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -15,6 +15,7 @@ export type ImagePreviewOptions =
15
15
  closeIcon?: string;
16
16
  asyncClose?: boolean;
17
17
  transition?: string;
18
+ overlayStyle?: object;
18
19
  swipeDuration?: number;
19
20
  startPosition?: number;
20
21
  showIndicators?: boolean;
@@ -1,72 +1,4 @@
1
1
  {
2
- "van-action-sheet/v-model (value)": {
3
- "type": "boolean",
4
- "description": "是否显示动作面板, 默认值: `false`"
5
- },
6
- "van-action-sheet/actions": {
7
- "type": "Action[]",
8
- "description": "面板选项列表, 默认值: `[]`"
9
- },
10
- "van-action-sheet/title": {
11
- "type": "string",
12
- "description": "顶部标题, 默认值: -"
13
- },
14
- "van-action-sheet/cancel-text": {
15
- "type": "string",
16
- "description": "取消按钮文字, 默认值: -"
17
- },
18
- "van-action-sheet/description": {
19
- "type": "string",
20
- "description": "选项上方的描述信息, 默认值: -"
21
- },
22
- "van-action-sheet/closeable": {
23
- "type": "boolean",
24
- "description": "是否显示关闭图标, 默认值: `true`"
25
- },
26
- "van-action-sheet/close-icon": {
27
- "type": "string",
28
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
29
- },
30
- "van-action-sheet/duration": {
31
- "type": "number | string",
32
- "description": "动画时长,单位秒, 默认值: `0.3`"
33
- },
34
- "van-action-sheet/round": {
35
- "type": "boolean",
36
- "description": "是否显示圆角, 默认值: `true`"
37
- },
38
- "van-action-sheet/overlay": {
39
- "type": "boolean",
40
- "description": "是否显示遮罩层, 默认值: `true`"
41
- },
42
- "van-action-sheet/lock-scroll": {
43
- "type": "boolean",
44
- "description": "是否锁定背景滚动, 默认值: `true`"
45
- },
46
- "van-action-sheet/lazy-render": {
47
- "type": "boolean",
48
- "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
49
- },
50
- "van-action-sheet/close-on-popstate": {
51
- "type": "boolean",
52
- "description": "是否在页面回退时自动关闭, 默认值: `false`"
53
- },
54
- "van-action-sheet/close-on-click-action": {
55
- "type": "boolean",
56
- "description": "是否在点击选项后关闭, 默认值: `false`"
57
- },
58
- "van-action-sheet/close-on-click-overlay": {
59
- "type": "boolean",
60
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
61
- },
62
- "van-action-sheet/safe-area-inset-bottom": {
63
- "type": "boolean",
64
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
65
- },
66
- "van-action-sheet/get-container": {
67
- "type": "string | () => Element",
68
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
69
- },
70
2
  "van-address-edit/area-list": {
71
3
  "type": "object",
72
4
  "description": "地区列表, 默认值: -"
@@ -155,22 +87,6 @@
155
87
  "type": "(key, val) => string",
156
88
  "description": "自定义校验函数, 默认值: -"
157
89
  },
158
- "van-badge/content": {
159
- "type": "number | string",
160
- "description": "徽标内容, 默认值: -"
161
- },
162
- "van-badge/color": {
163
- "type": "string",
164
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
165
- },
166
- "van-badge/dot": {
167
- "type": "boolean",
168
- "description": "是否展示为小红点, 默认值: `false`"
169
- },
170
- "van-badge/max": {
171
- "type": "number | string",
172
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
173
- },
174
90
  "van-address-list/v-model": {
175
91
  "type": "string",
176
92
  "description": "当前选中地址的 id, 默认值: -"
@@ -199,6 +115,22 @@
199
115
  "type": "string",
200
116
  "description": "默认地址标签文字, 默认值: -"
201
117
  },
118
+ "van-badge/content": {
119
+ "type": "number | string",
120
+ "description": "徽标内容, 默认值: -"
121
+ },
122
+ "van-badge/color": {
123
+ "type": "string",
124
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
125
+ },
126
+ "van-badge/dot": {
127
+ "type": "boolean",
128
+ "description": "是否展示为小红点, 默认值: `false`"
129
+ },
130
+ "van-badge/max": {
131
+ "type": "number | string",
132
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
133
+ },
202
134
  "van-button/type": {
203
135
  "type": "string",
204
136
  "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
@@ -459,6 +391,74 @@
459
391
  "type": "string",
460
392
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
461
393
  },
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, 默认值: -"
@@ -1059,18 +1059,6 @@
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
- },
1074
1062
  "van-dialog/v-model": {
1075
1063
  "type": "boolean",
1076
1064
  "description": "是否显示弹窗, 默认值: -"
@@ -1163,6 +1151,18 @@
1163
1151
  "type": "string | () => Element",
1164
1152
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1165
1153
  },
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`"
@@ -1715,6 +1715,10 @@
1715
1715
  "type": "string",
1716
1716
  "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: `van-fade`"
1717
1717
  },
1718
+ "van-image-preview/overlay-style": {
1719
+ "type": "object",
1720
+ "description": "自定义遮罩层样式, 默认值: -"
1721
+ },
1718
1722
  "van-image-preview/get-container": {
1719
1723
  "type": "string | () => Element",
1720
1724
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
@@ -1875,30 +1879,6 @@
1875
1879
  "type": "boolean",
1876
1880
  "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
1877
1881
  },
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
- },
1902
1882
  "van-number-keyboard/v-model (value)": {
1903
1883
  "type": "string",
1904
1884
  "description": "当前输入值, 默认值: -"
@@ -1963,6 +1943,30 @@
1963
1943
  "type": "boolean",
1964
1944
  "description": "是否将通过随机顺序展示按键, 默认值: `false`"
1965
1945
  },
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
+ },
1966
1970
  "van-pagination/v-model": {
1967
1971
  "type": "number",
1968
1972
  "description": "当前页码, 默认值: -"
@@ -2455,42 +2459,6 @@
2455
2459
  "type": "string",
2456
2460
  "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
2457
2461
  },
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
- },
2494
2462
  "van-share-sheet/options": {
2495
2463
  "type": "Option[]",
2496
2464
  "description": "分享选项, 默认值: `[]`"
@@ -2539,6 +2507,42 @@
2539
2507
  "type": "string | () => Element",
2540
2508
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
2541
2509
  },
2510
+ "van-sidebar/v-model": {
2511
+ "type": "number | string",
2512
+ "description": "当前导航项的索引, 默认值: `0`"
2513
+ },
2514
+ "van-sidebar-item/title": {
2515
+ "type": "string",
2516
+ "description": "内容, 默认值: `''`"
2517
+ },
2518
+ "van-sidebar-item/dot": {
2519
+ "type": "boolean",
2520
+ "description": "是否显示右上角小红点, 默认值: `false`"
2521
+ },
2522
+ "van-sidebar-item/badge": {
2523
+ "type": "number | string",
2524
+ "description": "图标右上角徽标的内容, 默认值: -"
2525
+ },
2526
+ "van-sidebar-item/info": {
2527
+ "type": "number | string",
2528
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
2529
+ },
2530
+ "van-sidebar-item/disabled": {
2531
+ "type": "boolean",
2532
+ "description": "是否禁用该项, 默认值: `false`"
2533
+ },
2534
+ "van-sidebar-item/url": {
2535
+ "type": "string",
2536
+ "description": "点击后跳转的链接地址, 默认值: -"
2537
+ },
2538
+ "van-sidebar-item/to": {
2539
+ "type": "string | object",
2540
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
2541
+ },
2542
+ "van-sidebar-item/replace": {
2543
+ "type": "boolean",
2544
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
2545
+ },
2542
2546
  "van-skeleton/row": {
2543
2547
  "type": "number | string",
2544
2548
  "description": "段落占位图行数, 默认值: `0`"
package/vetur/tags.json CHANGED
@@ -1,25 +1,4 @@
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
- },
23
2
  "van-address-edit": {
24
3
  "attributes": [
25
4
  "area-list",
@@ -46,14 +25,6 @@
46
25
  "validator"
47
26
  ]
48
27
  },
49
- "van-badge": {
50
- "attributes": [
51
- "content",
52
- "color",
53
- "dot",
54
- "max"
55
- ]
56
- },
57
28
  "van-address-list": {
58
29
  "attributes": [
59
30
  "v-model",
@@ -65,6 +36,14 @@
65
36
  "default-tag-text"
66
37
  ]
67
38
  },
39
+ "van-badge": {
40
+ "attributes": [
41
+ "content",
42
+ "color",
43
+ "dot",
44
+ "max"
45
+ ]
46
+ },
68
47
  "van-button": {
69
48
  "attributes": [
70
49
  "type",
@@ -154,6 +133,27 @@
154
133
  "range-prompt"
155
134
  ]
156
135
  },
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",
@@ -384,13 +384,6 @@
384
384
  "max-minute"
385
385
  ]
386
386
  },
387
- "van-divider": {
388
- "attributes": [
389
- "dashed",
390
- "hairline",
391
- "content-position"
392
- ]
393
- },
394
387
  "van-dialog": {
395
388
  "attributes": [
396
389
  "v-model",
@@ -418,6 +411,13 @@
418
411
  "get-container"
419
412
  ]
420
413
  },
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",
@@ -606,6 +606,7 @@
606
606
  "close-icon",
607
607
  "close-icon-position",
608
608
  "transition",
609
+ "overlay-style",
609
610
  "get-container"
610
611
  ]
611
612
  },
@@ -672,16 +673,6 @@
672
673
  "wrapable"
673
674
  ]
674
675
  },
675
- "van-overlay": {
676
- "attributes": [
677
- "show",
678
- "z-index",
679
- "duration",
680
- "class-name",
681
- "custom-style",
682
- "lock-scroll"
683
- ]
684
- },
685
676
  "van-number-keyboard": {
686
677
  "attributes": [
687
678
  "v-model (value)",
@@ -702,6 +693,16 @@
702
693
  "random-key-order"
703
694
  ]
704
695
  },
696
+ "van-overlay": {
697
+ "attributes": [
698
+ "show",
699
+ "z-index",
700
+ "duration",
701
+ "class-name",
702
+ "custom-style",
703
+ "lock-scroll"
704
+ ]
705
+ },
705
706
  "van-pagination": {
706
707
  "attributes": [
707
708
  "v-model",
@@ -873,6 +874,22 @@
873
874
  "right-icon"
874
875
  ]
875
876
  },
877
+ "van-share-sheet": {
878
+ "attributes": [
879
+ "options",
880
+ "title",
881
+ "cancel-text",
882
+ "description",
883
+ "duration",
884
+ "overlay",
885
+ "lock-scroll",
886
+ "lazy-render",
887
+ "close-on-popstate",
888
+ "close-on-click-overlay",
889
+ "safe-area-inset-bottom",
890
+ "get-container"
891
+ ]
892
+ },
876
893
  "van-sidebar": {
877
894
  "attributes": [
878
895
  "v-model"
@@ -890,22 +907,6 @@
890
907
  "replace"
891
908
  ]
892
909
  },
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
910
  "van-skeleton": {
910
911
  "attributes": [
911
912
  "row",