vant 2.12.34-beta.0 → 2.12.34

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.34",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -155,21 +155,57 @@
155
155
  "type": "(key, val) => string",
156
156
  "description": "自定义校验函数, 默认值: -"
157
157
  },
158
- "van-badge/content": {
159
- "type": "number | string",
160
- "description": "徽标内容, 默认值: -"
158
+ "van-area/value": {
159
+ "type": "string",
160
+ "description": "当前选中的省市区`code`, 默认值: -"
161
161
  },
162
- "van-badge/color": {
162
+ "van-area/title": {
163
163
  "type": "string",
164
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
164
+ "description": "顶部栏标题, 默认值: -"
165
165
  },
166
- "van-badge/dot": {
166
+ "van-area/confirm-button-text": {
167
+ "type": "string",
168
+ "description": "确认按钮文字, 默认值: `确认`"
169
+ },
170
+ "van-area/cancel-button-text": {
171
+ "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": {
167
183
  "type": "boolean",
168
- "description": "是否展示为小红点, 默认值: `false`"
184
+ "description": "是否显示加载状态, 默认值: `false`"
169
185
  },
170
- "van-badge/max": {
186
+ "van-area/readonly": {
187
+ "type": "boolean",
188
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
189
+ },
190
+ "van-area/item-height": {
171
191
  "type": "number | string",
172
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
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`"
201
+ },
202
+ "van-area/swipe-duration": {
203
+ "type": "number | string",
204
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
205
+ },
206
+ "van-area/is-oversea-code": {
207
+ "type": "() => boolean",
208
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
173
209
  },
174
210
  "van-address-list/v-model": {
175
211
  "type": "string",
@@ -199,6 +235,22 @@
199
235
  "type": "string",
200
236
  "description": "默认地址标签文字, 默认值: -"
201
237
  },
238
+ "van-badge/content": {
239
+ "type": "number | string",
240
+ "description": "徽标内容, 默认值: -"
241
+ },
242
+ "van-badge/color": {
243
+ "type": "string",
244
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
245
+ },
246
+ "van-badge/dot": {
247
+ "type": "boolean",
248
+ "description": "是否展示为小红点, 默认值: `false`"
249
+ },
250
+ "van-badge/max": {
251
+ "type": "number | string",
252
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
253
+ },
202
254
  "van-button/type": {
203
255
  "type": "string",
204
256
  "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
@@ -287,58 +339,6 @@
287
339
  "type": "boolean",
288
340
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
289
341
  },
290
- "van-area/value": {
291
- "type": "string",
292
- "description": "当前选中的省市区`code`, 默认值: -"
293
- },
294
- "van-area/title": {
295
- "type": "string",
296
- "description": "顶部栏标题, 默认值: -"
297
- },
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": {
315
- "type": "boolean",
316
- "description": "是否显示加载状态, 默认值: `false`"
317
- },
318
- "van-area/readonly": {
319
- "type": "boolean",
320
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
321
- },
322
- "van-area/item-height": {
323
- "type": "number | string",
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
- },
342
342
  "van-calendar/type": {
343
343
  "type": "string",
344
344
  "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
@@ -871,22 +871,6 @@
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
- },
890
874
  "van-coupon-cell/title": {
891
875
  "type": "string",
892
876
  "description": "单元格标题, 默认值: `优惠券`"
@@ -983,6 +967,22 @@
983
967
  "type": "boolean",
984
968
  "description": "是否展示可用 / 不可用数量, 默认值: `true`"
985
969
  },
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`"
@@ -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`"
@@ -1875,30 +1875,6 @@
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
- },
1902
1878
  "van-number-keyboard/v-model (value)": {
1903
1879
  "type": "string",
1904
1880
  "description": "当前输入值, 默认值: -"
@@ -1963,6 +1939,30 @@
1963
1939
  "type": "boolean",
1964
1940
  "description": "是否将通过随机顺序展示按键, 默认值: `false`"
1965
1941
  },
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,42 +2455,6 @@
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
- },
2494
2458
  "van-share-sheet/options": {
2495
2459
  "type": "Option[]",
2496
2460
  "description": "分享选项, 默认值: `[]`"
@@ -2539,6 +2503,42 @@
2539
2503
  "type": "string | () => Element",
2540
2504
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
2541
2505
  },
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,12 +46,21 @@
46
46
  "validator"
47
47
  ]
48
48
  },
49
- "van-badge": {
49
+ "van-area": {
50
50
  "attributes": [
51
- "content",
52
- "color",
53
- "dot",
54
- "max"
51
+ "value",
52
+ "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"
55
64
  ]
56
65
  },
57
66
  "van-address-list": {
@@ -65,6 +74,14 @@
65
74
  "default-tag-text"
66
75
  ]
67
76
  },
77
+ "van-badge": {
78
+ "attributes": [
79
+ "content",
80
+ "color",
81
+ "dot",
82
+ "max"
83
+ ]
84
+ },
68
85
  "van-button": {
69
86
  "attributes": [
70
87
  "type",
@@ -91,23 +108,6 @@
91
108
  "replace"
92
109
  ]
93
110
  },
94
- "van-area": {
95
- "attributes": [
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
- ]
110
- },
111
111
  "van-calendar": {
112
112
  "attributes": [
113
113
  "type",
@@ -313,14 +313,6 @@
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
- },
324
316
  "van-coupon-cell": {
325
317
  "attributes": [
326
318
  "title",
@@ -353,6 +345,14 @@
353
345
  "show-count"
354
346
  ]
355
347
  },
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",
@@ -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",
@@ -672,16 +672,6 @@
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
- },
685
675
  "van-number-keyboard": {
686
676
  "attributes": [
687
677
  "v-model (value)",
@@ -702,6 +692,16 @@
702
692
  "random-key-order"
703
693
  ]
704
694
  },
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,6 +873,22 @@
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
+ },
876
892
  "van-sidebar": {
877
893
  "attributes": [
878
894
  "v-model"
@@ -890,22 +906,6 @@
890
906
  "replace"
891
907
  ]
892
908
  },
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",