vant 2.12.34 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "2.12.34",
3
+ "version": "2.12.38",
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,57 +87,73 @@
155
87
  "type": "(key, val) => string",
156
88
  "description": "自定义校验函数, 默认值: -"
157
89
  },
158
- "van-area/value": {
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": {
159
99
  "type": "string",
160
- "description": "当前选中的省市区`code`, 默认值: -"
100
+ "description": "顶部标题, 默认值: -"
161
101
  },
162
- "van-area/title": {
102
+ "van-action-sheet/cancel-text": {
163
103
  "type": "string",
164
- "description": "顶部栏标题, 默认值: -"
104
+ "description": "取消按钮文字, 默认值: -"
165
105
  },
166
- "van-area/confirm-button-text": {
106
+ "van-action-sheet/description": {
167
107
  "type": "string",
168
- "description": "确认按钮文字, 默认值: `确认`"
108
+ "description": "选项上方的描述信息, 默认值: -"
169
109
  },
170
- "van-area/cancel-button-text": {
110
+ "van-action-sheet/closeable": {
111
+ "type": "boolean",
112
+ "description": "是否显示关闭图标, 默认值: `true`"
113
+ },
114
+ "van-action-sheet/close-icon": {
171
115
  "type": "string",
172
- "description": "取消按钮文字, 默认值: `取消`"
116
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
173
117
  },
174
- "van-area/area-list": {
175
- "type": "object",
176
- "description": "省市区数据,格式见下方, 默认值: -"
118
+ "van-action-sheet/duration": {
119
+ "type": "number | string",
120
+ "description": "动画时长,单位秒, 默认值: `0.3`"
177
121
  },
178
- "van-area/columns-placeholder": {
179
- "type": "string[]",
180
- "description": "列占位提示文字, 默认值: `[]`"
122
+ "van-action-sheet/round": {
123
+ "type": "boolean",
124
+ "description": "是否显示圆角, 默认值: `true`"
181
125
  },
182
- "van-area/loading": {
126
+ "van-action-sheet/overlay": {
183
127
  "type": "boolean",
184
- "description": "是否显示加载状态, 默认值: `false`"
128
+ "description": "是否显示遮罩层, 默认值: `true`"
185
129
  },
186
- "van-area/readonly": {
130
+ "van-action-sheet/lock-scroll": {
187
131
  "type": "boolean",
188
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
132
+ "description": "是否锁定背景滚动, 默认值: `true`"
189
133
  },
190
- "van-area/item-height": {
191
- "type": "number | string",
192
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
134
+ "van-action-sheet/lazy-render": {
135
+ "type": "boolean",
136
+ "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
193
137
  },
194
- "van-area/columns-num": {
195
- "type": "number | string",
196
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
138
+ "van-action-sheet/close-on-popstate": {
139
+ "type": "boolean",
140
+ "description": "是否在页面回退时自动关闭, 默认值: `false`"
197
141
  },
198
- "van-area/visible-item-count": {
199
- "type": "number | string",
200
- "description": "可见的选项个数, 默认值: `6`"
142
+ "van-action-sheet/close-on-click-action": {
143
+ "type": "boolean",
144
+ "description": "是否在点击选项后关闭, 默认值: `false`"
201
145
  },
202
- "van-area/swipe-duration": {
203
- "type": "number | string",
204
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
146
+ "van-action-sheet/close-on-click-overlay": {
147
+ "type": "boolean",
148
+ "description": "是否在点击遮罩层后关闭, 默认值: `true`"
205
149
  },
206
- "van-area/is-oversea-code": {
207
- "type": "() => boolean",
208
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
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), 默认值: -"
209
157
  },
210
158
  "van-address-list/v-model": {
211
159
  "type": "string",
@@ -251,6 +199,58 @@
251
199
  "type": "number | string",
252
200
  "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
253
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
+ },
254
254
  "van-button/type": {
255
255
  "type": "string",
256
256
  "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
@@ -871,6 +871,22 @@
871
871
  "type": "string",
872
872
  "description": "默认联系人标签文案, 默认值: -"
873
873
  },
874
+ "van-count-down/time": {
875
+ "type": "number | string",
876
+ "description": "倒计时时长,单位毫秒, 默认值: `0`"
877
+ },
878
+ "van-count-down/format": {
879
+ "type": "string",
880
+ "description": "时间格式, 默认值: `HH:mm:ss`"
881
+ },
882
+ "van-count-down/auto-start": {
883
+ "type": "boolean",
884
+ "description": "是否自动开始倒计时, 默认值: `true`"
885
+ },
886
+ "van-count-down/millisecond": {
887
+ "type": "boolean",
888
+ "description": "是否开启毫秒级渲染, 默认值: `false`"
889
+ },
874
890
  "van-coupon-cell/title": {
875
891
  "type": "string",
876
892
  "description": "单元格标题, 默认值: `优惠券`"
@@ -967,22 +983,6 @@
967
983
  "type": "boolean",
968
984
  "description": "是否展示可用 / 不可用数量, 默认值: `true`"
969
985
  },
970
- "van-count-down/time": {
971
- "type": "number | string",
972
- "description": "倒计时时长,单位毫秒, 默认值: `0`"
973
- },
974
- "van-count-down/format": {
975
- "type": "string",
976
- "description": "时间格式, 默认值: `HH:mm:ss`"
977
- },
978
- "van-count-down/auto-start": {
979
- "type": "boolean",
980
- "description": "是否自动开始倒计时, 默认值: `true`"
981
- },
982
- "van-count-down/millisecond": {
983
- "type": "boolean",
984
- "description": "是否开启毫秒级渲染, 默认值: `false`"
985
- },
986
986
  "van-datetime-picker/type": {
987
987
  "type": "string",
988
988
  "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
@@ -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,6 +1879,30 @@
1875
1879
  "type": "boolean",
1876
1880
  "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
1877
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
+ },
1878
1906
  "van-number-keyboard/v-model (value)": {
1879
1907
  "type": "string",
1880
1908
  "description": "当前输入值, 默认值: -"
@@ -1939,30 +1967,6 @@
1939
1967
  "type": "boolean",
1940
1968
  "description": "是否将通过随机顺序展示按键, 默认值: `false`"
1941
1969
  },
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
1970
  "van-pagination/v-model": {
1967
1971
  "type": "number",
1968
1972
  "description": "当前页码, 默认值: -"
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,21 +25,25 @@
46
25
  "validator"
47
26
  ]
48
27
  },
49
- "van-area": {
28
+ "van-action-sheet": {
50
29
  "attributes": [
51
- "value",
30
+ "v-model (value)",
31
+ "actions",
52
32
  "title",
53
- "confirm-button-text",
54
- "cancel-button-text",
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"
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"
64
47
  ]
65
48
  },
66
49
  "van-address-list": {
@@ -82,6 +65,23 @@
82
65
  "max"
83
66
  ]
84
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
+ },
85
85
  "van-button": {
86
86
  "attributes": [
87
87
  "type",
@@ -313,6 +313,14 @@
313
313
  "default-tag-text"
314
314
  ]
315
315
  },
316
+ "van-count-down": {
317
+ "attributes": [
318
+ "time",
319
+ "format",
320
+ "auto-start",
321
+ "millisecond"
322
+ ]
323
+ },
316
324
  "van-coupon-cell": {
317
325
  "attributes": [
318
326
  "title",
@@ -345,14 +353,6 @@
345
353
  "show-count"
346
354
  ]
347
355
  },
348
- "van-count-down": {
349
- "attributes": [
350
- "time",
351
- "format",
352
- "auto-start",
353
- "millisecond"
354
- ]
355
- },
356
356
  "van-datetime-picker": {
357
357
  "attributes": [
358
358
  "type",
@@ -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,6 +673,16 @@
672
673
  "wrapable"
673
674
  ]
674
675
  },
676
+ "van-overlay": {
677
+ "attributes": [
678
+ "show",
679
+ "z-index",
680
+ "duration",
681
+ "class-name",
682
+ "custom-style",
683
+ "lock-scroll"
684
+ ]
685
+ },
675
686
  "van-number-keyboard": {
676
687
  "attributes": [
677
688
  "v-model (value)",
@@ -692,16 +703,6 @@
692
703
  "random-key-order"
693
704
  ]
694
705
  },
695
- "van-overlay": {
696
- "attributes": [
697
- "show",
698
- "z-index",
699
- "duration",
700
- "class-name",
701
- "custom-style",
702
- "lock-scroll"
703
- ]
704
- },
705
706
  "van-pagination": {
706
707
  "attributes": [
707
708
  "v-model",