vant 2.12.50 → 2.12.51
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/changelog.generated.md +4 -8
- package/es/calendar/index.js +5 -3
- package/es/index.js +1 -1
- package/lib/calendar/index.js +5 -3
- package/lib/index.js +1 -1
- package/lib/vant.js +6 -4
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +144 -144
- package/vetur/tags.json +52 -52
- package/vetur/web-types.json +458 -458
package/package.json
CHANGED
package/vetur/attributes.json
CHANGED
@@ -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": "地区列表, 默认值: -"
|
@@ -155,86 +207,6 @@
|
|
155
207
|
"type": "(key, val) => string",
|
156
208
|
"description": "自定义校验函数, 默认值: -"
|
157
209
|
},
|
158
|
-
"van-address-list/v-model": {
|
159
|
-
"type": "string",
|
160
|
-
"description": "当前选中地址的 id, 默认值: -"
|
161
|
-
},
|
162
|
-
"van-address-list/list": {
|
163
|
-
"type": "Address[]",
|
164
|
-
"description": "地址列表, 默认值: `[]`"
|
165
|
-
},
|
166
|
-
"van-address-list/disabled-list": {
|
167
|
-
"type": "Address[]",
|
168
|
-
"description": "不可配送地址列表, 默认值: `[]`"
|
169
|
-
},
|
170
|
-
"van-address-list/disabled-text": {
|
171
|
-
"type": "string",
|
172
|
-
"description": "不可配送提示文案, 默认值: -"
|
173
|
-
},
|
174
|
-
"van-address-list/switchable": {
|
175
|
-
"type": "boolean",
|
176
|
-
"description": "是否允许切换地址, 默认值: `true`"
|
177
|
-
},
|
178
|
-
"van-address-list/add-button-text": {
|
179
|
-
"type": "string",
|
180
|
-
"description": "底部按钮文字, 默认值: `新增地址`"
|
181
|
-
},
|
182
|
-
"van-address-list/default-tag-text": {
|
183
|
-
"type": "string",
|
184
|
-
"description": "默认地址标签文字, 默认值: -"
|
185
|
-
},
|
186
|
-
"van-area/value": {
|
187
|
-
"type": "string",
|
188
|
-
"description": "当前选中的省市区`code`, 默认值: -"
|
189
|
-
},
|
190
|
-
"van-area/title": {
|
191
|
-
"type": "string",
|
192
|
-
"description": "顶部栏标题, 默认值: -"
|
193
|
-
},
|
194
|
-
"van-area/confirm-button-text": {
|
195
|
-
"type": "string",
|
196
|
-
"description": "确认按钮文字, 默认值: `确认`"
|
197
|
-
},
|
198
|
-
"van-area/cancel-button-text": {
|
199
|
-
"type": "string",
|
200
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
201
|
-
},
|
202
|
-
"van-area/area-list": {
|
203
|
-
"type": "object",
|
204
|
-
"description": "省市区数据,格式见下方, 默认值: -"
|
205
|
-
},
|
206
|
-
"van-area/columns-placeholder": {
|
207
|
-
"type": "string[]",
|
208
|
-
"description": "列占位提示文字, 默认值: `[]`"
|
209
|
-
},
|
210
|
-
"van-area/loading": {
|
211
|
-
"type": "boolean",
|
212
|
-
"description": "是否显示加载状态, 默认值: `false`"
|
213
|
-
},
|
214
|
-
"van-area/readonly": {
|
215
|
-
"type": "boolean",
|
216
|
-
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
217
|
-
},
|
218
|
-
"van-area/item-height": {
|
219
|
-
"type": "number | string",
|
220
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
221
|
-
},
|
222
|
-
"van-area/columns-num": {
|
223
|
-
"type": "number | string",
|
224
|
-
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
225
|
-
},
|
226
|
-
"van-area/visible-item-count": {
|
227
|
-
"type": "number | string",
|
228
|
-
"description": "可见的选项个数, 默认值: `6`"
|
229
|
-
},
|
230
|
-
"van-area/swipe-duration": {
|
231
|
-
"type": "number | string",
|
232
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
233
|
-
},
|
234
|
-
"van-area/is-oversea-code": {
|
235
|
-
"type": "() => boolean",
|
236
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
237
|
-
},
|
238
210
|
"van-badge/content": {
|
239
211
|
"type": "number | string",
|
240
212
|
"description": "徽标内容, 默认值: -"
|
@@ -339,6 +311,82 @@
|
|
339
311
|
"type": "boolean",
|
340
312
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
341
313
|
},
|
314
|
+
"van-cascader/title": {
|
315
|
+
"type": "string",
|
316
|
+
"description": "顶部标题, 默认值: -"
|
317
|
+
},
|
318
|
+
"van-cascader/value": {
|
319
|
+
"type": "string | number",
|
320
|
+
"description": "选中项的值, 默认值: -"
|
321
|
+
},
|
322
|
+
"van-cascader/options": {
|
323
|
+
"type": "Option[]",
|
324
|
+
"description": "可选项数据源, 默认值: `[]`"
|
325
|
+
},
|
326
|
+
"van-cascader/placeholder": {
|
327
|
+
"type": "string",
|
328
|
+
"description": "未选中时的提示文案, 默认值: `请选择`"
|
329
|
+
},
|
330
|
+
"van-cascader/active-color": {
|
331
|
+
"type": "string",
|
332
|
+
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
333
|
+
},
|
334
|
+
"van-cascader/closeable": {
|
335
|
+
"type": "boolean",
|
336
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
337
|
+
},
|
338
|
+
"van-cascader/show-header": {
|
339
|
+
"type": "boolean",
|
340
|
+
"description": "是否展示标题栏, 默认值: `true`"
|
341
|
+
},
|
342
|
+
"van-cascader/field-names": {
|
343
|
+
"type": "object",
|
344
|
+
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
345
|
+
},
|
346
|
+
"van-card/thumb": {
|
347
|
+
"type": "string",
|
348
|
+
"description": "左侧图片 URL, 默认值: -"
|
349
|
+
},
|
350
|
+
"van-card/title": {
|
351
|
+
"type": "string",
|
352
|
+
"description": "标题, 默认值: -"
|
353
|
+
},
|
354
|
+
"van-card/desc": {
|
355
|
+
"type": "string",
|
356
|
+
"description": "描述, 默认值: -"
|
357
|
+
},
|
358
|
+
"van-card/tag": {
|
359
|
+
"type": "string",
|
360
|
+
"description": "图片角标, 默认值: -"
|
361
|
+
},
|
362
|
+
"van-card/num": {
|
363
|
+
"type": "number | string",
|
364
|
+
"description": "商品数量, 默认值: -"
|
365
|
+
},
|
366
|
+
"van-card/price": {
|
367
|
+
"type": "number | string",
|
368
|
+
"description": "商品价格, 默认值: -"
|
369
|
+
},
|
370
|
+
"van-card/origin-price": {
|
371
|
+
"type": "number | string",
|
372
|
+
"description": "商品划线原价, 默认值: -"
|
373
|
+
},
|
374
|
+
"van-card/centered": {
|
375
|
+
"type": "boolean",
|
376
|
+
"description": "内容是否垂直居中, 默认值: `false`"
|
377
|
+
},
|
378
|
+
"van-card/currency": {
|
379
|
+
"type": "string",
|
380
|
+
"description": "货币符号, 默认值: `¥`"
|
381
|
+
},
|
382
|
+
"van-card/thumb-link": {
|
383
|
+
"type": "string",
|
384
|
+
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
385
|
+
},
|
386
|
+
"van-card/lazy-load": {
|
387
|
+
"type": "boolean",
|
388
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
389
|
+
},
|
342
390
|
"van-calendar/type": {
|
343
391
|
"type": "string",
|
344
392
|
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
|
@@ -451,81 +499,33 @@
|
|
451
499
|
"type": "boolean",
|
452
500
|
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
453
501
|
},
|
454
|
-
"van-
|
455
|
-
"type": "string",
|
456
|
-
"description": "左侧图片 URL, 默认值: -"
|
457
|
-
},
|
458
|
-
"van-card/title": {
|
459
|
-
"type": "string",
|
460
|
-
"description": "标题, 默认值: -"
|
461
|
-
},
|
462
|
-
"van-card/desc": {
|
463
|
-
"type": "string",
|
464
|
-
"description": "描述, 默认值: -"
|
465
|
-
},
|
466
|
-
"van-card/tag": {
|
502
|
+
"van-address-list/v-model": {
|
467
503
|
"type": "string",
|
468
|
-
"description": "
|
469
|
-
},
|
470
|
-
"van-card/num": {
|
471
|
-
"type": "number | string",
|
472
|
-
"description": "商品数量, 默认值: -"
|
473
|
-
},
|
474
|
-
"van-card/price": {
|
475
|
-
"type": "number | string",
|
476
|
-
"description": "商品价格, 默认值: -"
|
477
|
-
},
|
478
|
-
"van-card/origin-price": {
|
479
|
-
"type": "number | string",
|
480
|
-
"description": "商品划线原价, 默认值: -"
|
504
|
+
"description": "当前选中地址的 id, 默认值: -"
|
481
505
|
},
|
482
|
-
"van-
|
483
|
-
"type": "
|
484
|
-
"description": "
|
506
|
+
"van-address-list/list": {
|
507
|
+
"type": "Address[]",
|
508
|
+
"description": "地址列表, 默认值: `[]`"
|
485
509
|
},
|
486
|
-
"van-
|
487
|
-
"type": "
|
488
|
-
"description": "
|
510
|
+
"van-address-list/disabled-list": {
|
511
|
+
"type": "Address[]",
|
512
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
489
513
|
},
|
490
|
-
"van-
|
514
|
+
"van-address-list/disabled-text": {
|
491
515
|
"type": "string",
|
492
|
-
"description": "
|
516
|
+
"description": "不可配送提示文案, 默认值: -"
|
493
517
|
},
|
494
|
-
"van-
|
518
|
+
"van-address-list/switchable": {
|
495
519
|
"type": "boolean",
|
496
|
-
"description": "
|
497
|
-
},
|
498
|
-
"van-cascader/title": {
|
499
|
-
"type": "string",
|
500
|
-
"description": "顶部标题, 默认值: -"
|
501
|
-
},
|
502
|
-
"van-cascader/value": {
|
503
|
-
"type": "string | number",
|
504
|
-
"description": "选中项的值, 默认值: -"
|
505
|
-
},
|
506
|
-
"van-cascader/options": {
|
507
|
-
"type": "Option[]",
|
508
|
-
"description": "可选项数据源, 默认值: `[]`"
|
520
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
509
521
|
},
|
510
|
-
"van-
|
522
|
+
"van-address-list/add-button-text": {
|
511
523
|
"type": "string",
|
512
|
-
"description": "
|
524
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
513
525
|
},
|
514
|
-
"van-
|
526
|
+
"van-address-list/default-tag-text": {
|
515
527
|
"type": "string",
|
516
|
-
"description": "
|
517
|
-
},
|
518
|
-
"van-cascader/closeable": {
|
519
|
-
"type": "boolean",
|
520
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
521
|
-
},
|
522
|
-
"van-cascader/show-header": {
|
523
|
-
"type": "boolean",
|
524
|
-
"description": "是否展示标题栏, 默认值: `true`"
|
525
|
-
},
|
526
|
-
"van-cascader/field-names": {
|
527
|
-
"type": "object",
|
528
|
-
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
528
|
+
"description": "默认地址标签文字, 默认值: -"
|
529
529
|
},
|
530
530
|
"van-cell/title": {
|
531
531
|
"type": "number | string",
|
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",
|
@@ -46,34 +63,6 @@
|
|
46
63
|
"validator"
|
47
64
|
]
|
48
65
|
},
|
49
|
-
"van-address-list": {
|
50
|
-
"attributes": [
|
51
|
-
"v-model",
|
52
|
-
"list",
|
53
|
-
"disabled-list",
|
54
|
-
"disabled-text",
|
55
|
-
"switchable",
|
56
|
-
"add-button-text",
|
57
|
-
"default-tag-text"
|
58
|
-
]
|
59
|
-
},
|
60
|
-
"van-area": {
|
61
|
-
"attributes": [
|
62
|
-
"value",
|
63
|
-
"title",
|
64
|
-
"confirm-button-text",
|
65
|
-
"cancel-button-text",
|
66
|
-
"area-list",
|
67
|
-
"columns-placeholder",
|
68
|
-
"loading",
|
69
|
-
"readonly",
|
70
|
-
"item-height",
|
71
|
-
"columns-num",
|
72
|
-
"visible-item-count",
|
73
|
-
"swipe-duration",
|
74
|
-
"is-oversea-code"
|
75
|
-
]
|
76
|
-
},
|
77
66
|
"van-badge": {
|
78
67
|
"attributes": [
|
79
68
|
"content",
|
@@ -108,6 +97,33 @@
|
|
108
97
|
"replace"
|
109
98
|
]
|
110
99
|
},
|
100
|
+
"van-cascader": {
|
101
|
+
"attributes": [
|
102
|
+
"title",
|
103
|
+
"value",
|
104
|
+
"options",
|
105
|
+
"placeholder",
|
106
|
+
"active-color",
|
107
|
+
"closeable",
|
108
|
+
"show-header",
|
109
|
+
"field-names"
|
110
|
+
]
|
111
|
+
},
|
112
|
+
"van-card": {
|
113
|
+
"attributes": [
|
114
|
+
"thumb",
|
115
|
+
"title",
|
116
|
+
"desc",
|
117
|
+
"tag",
|
118
|
+
"num",
|
119
|
+
"price",
|
120
|
+
"origin-price",
|
121
|
+
"centered",
|
122
|
+
"currency",
|
123
|
+
"thumb-link",
|
124
|
+
"lazy-load"
|
125
|
+
]
|
126
|
+
},
|
111
127
|
"van-calendar": {
|
112
128
|
"attributes": [
|
113
129
|
"type",
|
@@ -142,31 +158,15 @@
|
|
142
158
|
"range-prompt"
|
143
159
|
]
|
144
160
|
},
|
145
|
-
"van-
|
146
|
-
"attributes": [
|
147
|
-
"thumb",
|
148
|
-
"title",
|
149
|
-
"desc",
|
150
|
-
"tag",
|
151
|
-
"num",
|
152
|
-
"price",
|
153
|
-
"origin-price",
|
154
|
-
"centered",
|
155
|
-
"currency",
|
156
|
-
"thumb-link",
|
157
|
-
"lazy-load"
|
158
|
-
]
|
159
|
-
},
|
160
|
-
"van-cascader": {
|
161
|
+
"van-address-list": {
|
161
162
|
"attributes": [
|
162
|
-
"
|
163
|
-
"
|
164
|
-
"
|
165
|
-
"
|
166
|
-
"
|
167
|
-
"
|
168
|
-
"
|
169
|
-
"field-names"
|
163
|
+
"v-model",
|
164
|
+
"list",
|
165
|
+
"disabled-list",
|
166
|
+
"disabled-text",
|
167
|
+
"switchable",
|
168
|
+
"add-button-text",
|
169
|
+
"default-tag-text"
|
170
170
|
]
|
171
171
|
},
|
172
172
|
"van-cell": {
|