vant 2.12.41 → 2.12.42

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.41",
3
+ "version": "2.12.42",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -24,7 +24,7 @@
24
24
  "lint": "vant-cli lint",
25
25
  "test": "vant-cli test",
26
26
  "build": "vant-cli build",
27
- "release": "vant-cli release",
27
+ "release": "vant-cli release --tag latest-v2",
28
28
  "test:watch": "vant-cli test --watch",
29
29
  "release:site": "sh docs/site/release.sh",
30
30
  "test:coverage": "open test/coverage/index.html"
@@ -66,7 +66,7 @@
66
66
  "vue": ">= 2.6.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@vant/cli": "^2.10.3",
69
+ "@vant/cli": "^2.11.5",
70
70
  "prettier": "2.1.0",
71
71
  "vue": "^2.6.12",
72
72
  "vue-template-compiler": "^2.6.12"
@@ -67,6 +67,58 @@
67
67
  "type": "string | () => Element",
68
68
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
69
69
  },
70
+ "van-area/value": {
71
+ "type": "string",
72
+ "description": "当前选中的省市区`code`, 默认值: -"
73
+ },
74
+ "van-area/title": {
75
+ "type": "string",
76
+ "description": "顶部栏标题, 默认值: -"
77
+ },
78
+ "van-area/confirm-button-text": {
79
+ "type": "string",
80
+ "description": "确认按钮文字, 默认值: `确认`"
81
+ },
82
+ "van-area/cancel-button-text": {
83
+ "type": "string",
84
+ "description": "取消按钮文字, 默认值: `取消`"
85
+ },
86
+ "van-area/area-list": {
87
+ "type": "object",
88
+ "description": "省市区数据,格式见下方, 默认值: -"
89
+ },
90
+ "van-area/columns-placeholder": {
91
+ "type": "string[]",
92
+ "description": "列占位提示文字, 默认值: `[]`"
93
+ },
94
+ "van-area/loading": {
95
+ "type": "boolean",
96
+ "description": "是否显示加载状态, 默认值: `false`"
97
+ },
98
+ "van-area/readonly": {
99
+ "type": "boolean",
100
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
101
+ },
102
+ "van-area/item-height": {
103
+ "type": "number | string",
104
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
105
+ },
106
+ "van-area/columns-num": {
107
+ "type": "number | string",
108
+ "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
109
+ },
110
+ "van-area/visible-item-count": {
111
+ "type": "number | string",
112
+ "description": "可见的选项个数, 默认值: `6`"
113
+ },
114
+ "van-area/swipe-duration": {
115
+ "type": "number | string",
116
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
117
+ },
118
+ "van-area/is-oversea-code": {
119
+ "type": "() => boolean",
120
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
121
+ },
70
122
  "van-address-edit/area-list": {
71
123
  "type": "object",
72
124
  "description": "地区列表, 默认值: -"
@@ -183,74 +235,6 @@
183
235
  "type": "string",
184
236
  "description": "默认地址标签文字, 默认值: -"
185
237
  },
186
- "van-badge/content": {
187
- "type": "number | string",
188
- "description": "徽标内容, 默认值: -"
189
- },
190
- "van-badge/color": {
191
- "type": "string",
192
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
193
- },
194
- "van-badge/dot": {
195
- "type": "boolean",
196
- "description": "是否展示为小红点, 默认值: `false`"
197
- },
198
- "van-badge/max": {
199
- "type": "number | string",
200
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
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
238
  "van-button/type": {
255
239
  "type": "string",
256
240
  "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
@@ -339,50 +323,6 @@
339
323
  "type": "boolean",
340
324
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
341
325
  },
342
- "van-card/thumb": {
343
- "type": "string",
344
- "description": "左侧图片 URL, 默认值: -"
345
- },
346
- "van-card/title": {
347
- "type": "string",
348
- "description": "标题, 默认值: -"
349
- },
350
- "van-card/desc": {
351
- "type": "string",
352
- "description": "描述, 默认值: -"
353
- },
354
- "van-card/tag": {
355
- "type": "string",
356
- "description": "图片角标, 默认值: -"
357
- },
358
- "van-card/num": {
359
- "type": "number | string",
360
- "description": "商品数量, 默认值: -"
361
- },
362
- "van-card/price": {
363
- "type": "number | string",
364
- "description": "商品价格, 默认值: -"
365
- },
366
- "van-card/origin-price": {
367
- "type": "number | string",
368
- "description": "商品划线原价, 默认值: -"
369
- },
370
- "van-card/centered": {
371
- "type": "boolean",
372
- "description": "内容是否垂直居中, 默认值: `false`"
373
- },
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`"
385
- },
386
326
  "van-calendar/type": {
387
327
  "type": "string",
388
328
  "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
@@ -503,37 +443,49 @@
503
443
  "type": "string",
504
444
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
505
445
  },
506
- "van-cascader/title": {
446
+ "van-card/thumb": {
507
447
  "type": "string",
508
- "description": "顶部标题, 默认值: -"
509
- },
510
- "van-cascader/value": {
511
- "type": "string | number",
512
- "description": "选中项的值, 默认值: -"
448
+ "description": "左侧图片 URL, 默认值: -"
513
449
  },
514
- "van-cascader/options": {
515
- "type": "Option[]",
516
- "description": "可选项数据源, 默认值: `[]`"
450
+ "van-card/title": {
451
+ "type": "string",
452
+ "description": "标题, 默认值: -"
517
453
  },
518
- "van-cascader/placeholder": {
454
+ "van-card/desc": {
519
455
  "type": "string",
520
- "description": "未选中时的提示文案, 默认值: `请选择`"
456
+ "description": "描述, 默认值: -"
521
457
  },
522
- "van-cascader/active-color": {
458
+ "van-card/tag": {
523
459
  "type": "string",
524
- "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
460
+ "description": "图片角标, 默认值: -"
525
461
  },
526
- "van-cascader/closeable": {
527
- "type": "boolean",
528
- "description": "是否显示关闭图标, 默认值: `true`"
462
+ "van-card/num": {
463
+ "type": "number | string",
464
+ "description": "商品数量, 默认值: -"
529
465
  },
530
- "van-cascader/show-header": {
466
+ "van-card/price": {
467
+ "type": "number | string",
468
+ "description": "商品价格, 默认值: -"
469
+ },
470
+ "van-card/origin-price": {
471
+ "type": "number | string",
472
+ "description": "商品划线原价, 默认值: -"
473
+ },
474
+ "van-card/centered": {
531
475
  "type": "boolean",
532
- "description": "是否展示标题栏, 默认值: `true`"
476
+ "description": "内容是否垂直居中, 默认值: `false`"
533
477
  },
534
- "van-cascader/field-names": {
535
- "type": "object",
536
- "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
478
+ "van-card/currency": {
479
+ "type": "string",
480
+ "description": "货币符号, 默认值: `¥`"
481
+ },
482
+ "van-card/thumb-link": {
483
+ "type": "string",
484
+ "description": "点击左侧图片后跳转的链接地址, 默认值: -"
485
+ },
486
+ "van-card/lazy-load": {
487
+ "type": "boolean",
488
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
537
489
  },
538
490
  "van-cell-group/title": {
539
491
  "type": "string",
@@ -619,6 +571,54 @@
619
571
  "type": "any",
620
572
  "description": "描述信息额外类名, 默认值: -"
621
573
  },
574
+ "van-cascader/title": {
575
+ "type": "string",
576
+ "description": "顶部标题, 默认值: -"
577
+ },
578
+ "van-cascader/value": {
579
+ "type": "string | number",
580
+ "description": "选中项的值, 默认值: -"
581
+ },
582
+ "van-cascader/options": {
583
+ "type": "Option[]",
584
+ "description": "可选项数据源, 默认值: `[]`"
585
+ },
586
+ "van-cascader/placeholder": {
587
+ "type": "string",
588
+ "description": "未选中时的提示文案, 默认值: `请选择`"
589
+ },
590
+ "van-cascader/active-color": {
591
+ "type": "string",
592
+ "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
593
+ },
594
+ "van-cascader/closeable": {
595
+ "type": "boolean",
596
+ "description": "是否显示关闭图标, 默认值: `true`"
597
+ },
598
+ "van-cascader/show-header": {
599
+ "type": "boolean",
600
+ "description": "是否展示标题栏, 默认值: `true`"
601
+ },
602
+ "van-cascader/field-names": {
603
+ "type": "object",
604
+ "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
605
+ },
606
+ "van-badge/content": {
607
+ "type": "number | string",
608
+ "description": "徽标内容, 默认值: -"
609
+ },
610
+ "van-badge/color": {
611
+ "type": "string",
612
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
613
+ },
614
+ "van-badge/dot": {
615
+ "type": "boolean",
616
+ "description": "是否展示为小红点, 默认值: `false`"
617
+ },
618
+ "van-badge/max": {
619
+ "type": "number | string",
620
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
621
+ },
622
622
  "van-checkbox/v-model (value)": {
623
623
  "type": "boolean",
624
624
  "description": "是否为选中状态, 默认值: `false`"
package/vetur/tags.json CHANGED
@@ -20,6 +20,23 @@
20
20
  "get-container"
21
21
  ]
22
22
  },
23
+ "van-area": {
24
+ "attributes": [
25
+ "value",
26
+ "title",
27
+ "confirm-button-text",
28
+ "cancel-button-text",
29
+ "area-list",
30
+ "columns-placeholder",
31
+ "loading",
32
+ "readonly",
33
+ "item-height",
34
+ "columns-num",
35
+ "visible-item-count",
36
+ "swipe-duration",
37
+ "is-oversea-code"
38
+ ]
39
+ },
23
40
  "van-address-edit": {
24
41
  "attributes": [
25
42
  "area-list",
@@ -57,31 +74,6 @@
57
74
  "default-tag-text"
58
75
  ]
59
76
  },
60
- "van-badge": {
61
- "attributes": [
62
- "content",
63
- "color",
64
- "dot",
65
- "max"
66
- ]
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
77
  "van-button": {
86
78
  "attributes": [
87
79
  "type",
@@ -108,21 +100,6 @@
108
100
  "replace"
109
101
  ]
110
102
  },
111
- "van-card": {
112
- "attributes": [
113
- "thumb",
114
- "title",
115
- "desc",
116
- "tag",
117
- "num",
118
- "price",
119
- "origin-price",
120
- "centered",
121
- "currency",
122
- "thumb-link",
123
- "lazy-load"
124
- ]
125
- },
126
103
  "van-calendar": {
127
104
  "attributes": [
128
105
  "type",
@@ -169,16 +146,19 @@
169
146
  "range-prompt"
170
147
  ]
171
148
  },
172
- "van-cascader": {
149
+ "van-card": {
173
150
  "attributes": [
151
+ "thumb",
174
152
  "title",
175
- "value",
176
- "options",
177
- "placeholder",
178
- "active-color",
179
- "closeable",
180
- "show-header",
181
- "field-names"
153
+ "desc",
154
+ "tag",
155
+ "num",
156
+ "price",
157
+ "origin-price",
158
+ "centered",
159
+ "currency",
160
+ "thumb-link",
161
+ "lazy-load"
182
162
  ]
183
163
  },
184
164
  "van-cell-group": {
@@ -210,6 +190,26 @@
210
190
  "label-class"
211
191
  ]
212
192
  },
193
+ "van-cascader": {
194
+ "attributes": [
195
+ "title",
196
+ "value",
197
+ "options",
198
+ "placeholder",
199
+ "active-color",
200
+ "closeable",
201
+ "show-header",
202
+ "field-names"
203
+ ]
204
+ },
205
+ "van-badge": {
206
+ "attributes": [
207
+ "content",
208
+ "color",
209
+ "dot",
210
+ "max"
211
+ ]
212
+ },
213
213
  "van-checkbox": {
214
214
  "attributes": [
215
215
  "v-model (value)",