vant 2.12.29 → 2.12.31

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.29",
3
+ "version": "2.12.31",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -155,33 +155,73 @@
155
155
  "type": "(key, val) => string",
156
156
  "description": "自定义校验函数, 默认值: -"
157
157
  },
158
- "van-address-list/v-model": {
158
+ "van-area/value": {
159
159
  "type": "string",
160
- "description": "当前选中地址的 id, 默认值: -"
160
+ "description": "当前选中的省市区`code`, 默认值: -"
161
161
  },
162
- "van-address-list/list": {
163
- "type": "Address[]",
164
- "description": "地址列表, 默认值: `[]`"
162
+ "van-area/title": {
163
+ "type": "string",
164
+ "description": "顶部栏标题, 默认值: -"
165
165
  },
166
- "van-address-list/disabled-list": {
167
- "type": "Address[]",
168
- "description": "不可配送地址列表, 默认值: `[]`"
166
+ "van-area/confirm-button-text": {
167
+ "type": "string",
168
+ "description": "确认按钮文字, 默认值: `确认`"
169
169
  },
170
- "van-address-list/disabled-text": {
170
+ "van-area/cancel-button-text": {
171
171
  "type": "string",
172
- "description": "不可配送提示文案, 默认值: -"
172
+ "description": "取消按钮文字, 默认值: `取消`"
173
173
  },
174
- "van-address-list/switchable": {
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": {
175
183
  "type": "boolean",
176
- "description": "是否允许切换地址, 默认值: `true`"
184
+ "description": "是否显示加载状态, 默认值: `false`"
177
185
  },
178
- "van-address-list/add-button-text": {
179
- "type": "string",
180
- "description": "底部按钮文字, 默认值: `新增地址`"
186
+ "van-area/readonly": {
187
+ "type": "boolean",
188
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
181
189
  },
182
- "van-address-list/default-tag-text": {
190
+ "van-area/item-height": {
191
+ "type": "number | string",
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`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
209
+ },
210
+ "van-badge/content": {
211
+ "type": "number | string",
212
+ "description": "徽标内容, 默认值: -"
213
+ },
214
+ "van-badge/color": {
183
215
  "type": "string",
184
- "description": "默认地址标签文字, 默认值: -"
216
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
217
+ },
218
+ "van-badge/dot": {
219
+ "type": "boolean",
220
+ "description": "是否展示为小红点, 默认值: `false`"
221
+ },
222
+ "van-badge/max": {
223
+ "type": "number | string",
224
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
185
225
  },
186
226
  "van-button/type": {
187
227
  "type": "string",
@@ -271,21 +311,33 @@
271
311
  "type": "boolean",
272
312
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
273
313
  },
274
- "van-badge/content": {
275
- "type": "number | string",
276
- "description": "徽标内容, 默认值: -"
314
+ "van-address-list/v-model": {
315
+ "type": "string",
316
+ "description": "当前选中地址的 id, 默认值: -"
277
317
  },
278
- "van-badge/color": {
318
+ "van-address-list/list": {
319
+ "type": "Address[]",
320
+ "description": "地址列表, 默认值: `[]`"
321
+ },
322
+ "van-address-list/disabled-list": {
323
+ "type": "Address[]",
324
+ "description": "不可配送地址列表, 默认值: `[]`"
325
+ },
326
+ "van-address-list/disabled-text": {
279
327
  "type": "string",
280
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
328
+ "description": "不可配送提示文案, 默认值: -"
281
329
  },
282
- "van-badge/dot": {
330
+ "van-address-list/switchable": {
283
331
  "type": "boolean",
284
- "description": "是否展示为小红点, 默认值: `false`"
332
+ "description": "是否允许切换地址, 默认值: `true`"
285
333
  },
286
- "van-badge/max": {
287
- "type": "number | string",
288
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
334
+ "van-address-list/add-button-text": {
335
+ "type": "string",
336
+ "description": "底部按钮文字, 默认值: `新增地址`"
337
+ },
338
+ "van-address-list/default-tag-text": {
339
+ "type": "string",
340
+ "description": "默认地址标签文字, 默认值: -"
289
341
  },
290
342
  "van-calendar/type": {
291
343
  "type": "string",
@@ -407,58 +459,6 @@
407
459
  "type": "string",
408
460
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
409
461
  },
410
- "van-area/value": {
411
- "type": "string",
412
- "description": "当前选中的省市区`code`, 默认值: -"
413
- },
414
- "van-area/title": {
415
- "type": "string",
416
- "description": "顶部栏标题, 默认值: -"
417
- },
418
- "van-area/confirm-button-text": {
419
- "type": "string",
420
- "description": "确认按钮文字, 默认值: `确认`"
421
- },
422
- "van-area/cancel-button-text": {
423
- "type": "string",
424
- "description": "取消按钮文字, 默认值: `取消`"
425
- },
426
- "van-area/area-list": {
427
- "type": "object",
428
- "description": "省市区数据,格式见下方, 默认值: -"
429
- },
430
- "van-area/columns-placeholder": {
431
- "type": "string[]",
432
- "description": "列占位提示文字, 默认值: `[]`"
433
- },
434
- "van-area/loading": {
435
- "type": "boolean",
436
- "description": "是否显示加载状态, 默认值: `false`"
437
- },
438
- "van-area/readonly": {
439
- "type": "boolean",
440
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
441
- },
442
- "van-area/item-height": {
443
- "type": "number | string",
444
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
445
- },
446
- "van-area/columns-num": {
447
- "type": "number | string",
448
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
449
- },
450
- "van-area/visible-item-count": {
451
- "type": "number | string",
452
- "description": "可见的选项个数, 默认值: `6`"
453
- },
454
- "van-area/swipe-duration": {
455
- "type": "number | string",
456
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
457
- },
458
- "van-area/is-oversea-code": {
459
- "type": "() => boolean",
460
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
461
- },
462
462
  "van-card/thumb": {
463
463
  "type": "string",
464
464
  "description": "左侧图片 URL, 默认值: -"
@@ -713,7 +713,7 @@
713
713
  },
714
714
  "van-circle/stroke-linecap": {
715
715
  "type": "string",
716
- "description": "进度条端点的形状,可选值为`sqaure` `butt`, 默认值: `round`"
716
+ "description": "进度条端点的形状,可选值为`square` `butt`, 默认值: `round`"
717
717
  },
718
718
  "van-circle/clockwise": {
719
719
  "type": "boolean",
package/vetur/tags.json CHANGED
@@ -46,15 +46,29 @@
46
46
  "validator"
47
47
  ]
48
48
  },
49
- "van-address-list": {
49
+ "van-area": {
50
50
  "attributes": [
51
- "v-model",
52
- "list",
53
- "disabled-list",
54
- "disabled-text",
55
- "switchable",
56
- "add-button-text",
57
- "default-tag-text"
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"
64
+ ]
65
+ },
66
+ "van-badge": {
67
+ "attributes": [
68
+ "content",
69
+ "color",
70
+ "dot",
71
+ "max"
58
72
  ]
59
73
  },
60
74
  "van-button": {
@@ -83,12 +97,15 @@
83
97
  "replace"
84
98
  ]
85
99
  },
86
- "van-badge": {
100
+ "van-address-list": {
87
101
  "attributes": [
88
- "content",
89
- "color",
90
- "dot",
91
- "max"
102
+ "v-model",
103
+ "list",
104
+ "disabled-list",
105
+ "disabled-text",
106
+ "switchable",
107
+ "add-button-text",
108
+ "default-tag-text"
92
109
  ]
93
110
  },
94
111
  "van-calendar": {
@@ -137,23 +154,6 @@
137
154
  "range-prompt"
138
155
  ]
139
156
  },
140
- "van-area": {
141
- "attributes": [
142
- "value",
143
- "title",
144
- "confirm-button-text",
145
- "cancel-button-text",
146
- "area-list",
147
- "columns-placeholder",
148
- "loading",
149
- "readonly",
150
- "item-height",
151
- "columns-num",
152
- "visible-item-count",
153
- "swipe-duration",
154
- "is-oversea-code"
155
- ]
156
- },
157
157
  "van-card": {
158
158
  "attributes": [
159
159
  "thumb",