vant 2.12.37 → 2.12.41

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.37",
3
+ "version": "2.12.41",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -12,6 +12,9 @@
12
12
  "types",
13
13
  "vetur"
14
14
  ],
15
+ "npm": {
16
+ "tag": "latest-v2"
17
+ },
15
18
  "publishConfig": {
16
19
  "registry": "https://registry.npmjs.org/"
17
20
  },
@@ -1,4 +1,72 @@
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
+ },
2
70
  "van-address-edit/area-list": {
3
71
  "type": "object",
4
72
  "description": "地区列表, 默认值: -"
@@ -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,57 +339,49 @@
219
339
  "type": "boolean",
220
340
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
221
341
  },
222
- "van-area/value": {
342
+ "van-card/thumb": {
223
343
  "type": "string",
224
- "description": "当前选中的省市区`code`, 默认值: -"
344
+ "description": "左侧图片 URL, 默认值: -"
225
345
  },
226
- "van-area/title": {
346
+ "van-card/title": {
227
347
  "type": "string",
228
- "description": "顶部栏标题, 默认值: -"
348
+ "description": "标题, 默认值: -"
229
349
  },
230
- "van-area/confirm-button-text": {
350
+ "van-card/desc": {
231
351
  "type": "string",
232
- "description": "确认按钮文字, 默认值: `确认`"
352
+ "description": "描述, 默认值: -"
233
353
  },
234
- "van-area/cancel-button-text": {
354
+ "van-card/tag": {
235
355
  "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`"
356
+ "description": "图片角标, 默认值: -"
253
357
  },
254
- "van-area/item-height": {
358
+ "van-card/num": {
255
359
  "type": "number | string",
256
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
360
+ "description": "商品数量, 默认值: -"
257
361
  },
258
- "van-area/columns-num": {
362
+ "van-card/price": {
259
363
  "type": "number | string",
260
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
364
+ "description": "商品价格, 默认值: -"
261
365
  },
262
- "van-area/visible-item-count": {
366
+ "van-card/origin-price": {
263
367
  "type": "number | string",
264
- "description": "可见的选项个数, 默认值: `6`"
368
+ "description": "商品划线原价, 默认值: -"
265
369
  },
266
- "van-area/swipe-duration": {
267
- "type": "number | string",
268
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
370
+ "van-card/centered": {
371
+ "type": "boolean",
372
+ "description": "内容是否垂直居中, 默认值: `false`"
269
373
  },
270
- "van-area/is-oversea-code": {
271
- "type": "() => boolean",
272
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
374
+ "van-card/currency": {
375
+ "type": "string",
376
+ "description": "货币符号, 默认值: `¥`"
377
+ },
378
+ "van-card/thumb-link": {
379
+ "type": "string",
380
+ "description": "点击左侧图片后跳转的链接地址, 默认值: -"
381
+ },
382
+ "van-card/lazy-load": {
383
+ "type": "boolean",
384
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
273
385
  },
274
386
  "van-calendar/type": {
275
387
  "type": "string",
@@ -391,118 +503,6 @@
391
503
  "type": "string",
392
504
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
393
505
  },
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
- "van-card/thumb": {
463
- "type": "string",
464
- "description": "左侧图片 URL, 默认值: -"
465
- },
466
- "van-card/title": {
467
- "type": "string",
468
- "description": "标题, 默认值: -"
469
- },
470
- "van-card/desc": {
471
- "type": "string",
472
- "description": "描述, 默认值: -"
473
- },
474
- "van-card/tag": {
475
- "type": "string",
476
- "description": "图片角标, 默认值: -"
477
- },
478
- "van-card/num": {
479
- "type": "number | string",
480
- "description": "商品数量, 默认值: -"
481
- },
482
- "van-card/price": {
483
- "type": "number | string",
484
- "description": "商品价格, 默认值: -"
485
- },
486
- "van-card/origin-price": {
487
- "type": "number | string",
488
- "description": "商品划线原价, 默认值: -"
489
- },
490
- "van-card/centered": {
491
- "type": "boolean",
492
- "description": "内容是否垂直居中, 默认值: `false`"
493
- },
494
- "van-card/currency": {
495
- "type": "string",
496
- "description": "货币符号, 默认值: `¥`"
497
- },
498
- "van-card/thumb-link": {
499
- "type": "string",
500
- "description": "点击左侧图片后跳转的链接地址, 默认值: -"
501
- },
502
- "van-card/lazy-load": {
503
- "type": "boolean",
504
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
505
- },
506
506
  "van-cascader/title": {
507
507
  "type": "string",
508
508
  "description": "顶部标题, 默认值: -"
@@ -527,6 +527,10 @@
527
527
  "type": "boolean",
528
528
  "description": "是否显示关闭图标, 默认值: `true`"
529
529
  },
530
+ "van-cascader/show-header": {
531
+ "type": "boolean",
532
+ "description": "是否展示标题栏, 默认值: `true`"
533
+ },
530
534
  "van-cascader/field-names": {
531
535
  "type": "object",
532
536
  "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
package/vetur/tags.json CHANGED
@@ -1,4 +1,25 @@
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
+ },
2
23
  "van-address-edit": {
3
24
  "attributes": [
4
25
  "area-list",
@@ -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,21 +108,19 @@
70
108
  "replace"
71
109
  ]
72
110
  },
73
- "van-area": {
111
+ "van-card": {
74
112
  "attributes": [
75
- "value",
113
+ "thumb",
76
114
  "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"
115
+ "desc",
116
+ "tag",
117
+ "num",
118
+ "price",
119
+ "origin-price",
120
+ "centered",
121
+ "currency",
122
+ "thumb-link",
123
+ "lazy-load"
88
124
  ]
89
125
  },
90
126
  "van-calendar": {
@@ -133,42 +169,6 @@
133
169
  "range-prompt"
134
170
  ]
135
171
  },
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
- "van-card": {
158
- "attributes": [
159
- "thumb",
160
- "title",
161
- "desc",
162
- "tag",
163
- "num",
164
- "price",
165
- "origin-price",
166
- "centered",
167
- "currency",
168
- "thumb-link",
169
- "lazy-load"
170
- ]
171
- },
172
172
  "van-cascader": {
173
173
  "attributes": [
174
174
  "title",
@@ -177,6 +177,7 @@
177
177
  "placeholder",
178
178
  "active-color",
179
179
  "closeable",
180
+ "show-header",
180
181
  "field-names"
181
182
  ]
182
183
  },