vant 2.12.28 → 2.12.30

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.28",
3
+ "version": "2.12.30",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -67,34 +67,6 @@
67
67
  "type": "string | () => Element",
68
68
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
69
69
  },
70
- "van-address-list/v-model": {
71
- "type": "string",
72
- "description": "当前选中地址的 id, 默认值: -"
73
- },
74
- "van-address-list/list": {
75
- "type": "Address[]",
76
- "description": "地址列表, 默认值: `[]`"
77
- },
78
- "van-address-list/disabled-list": {
79
- "type": "Address[]",
80
- "description": "不可配送地址列表, 默认值: `[]`"
81
- },
82
- "van-address-list/disabled-text": {
83
- "type": "string",
84
- "description": "不可配送提示文案, 默认值: -"
85
- },
86
- "van-address-list/switchable": {
87
- "type": "boolean",
88
- "description": "是否允许切换地址, 默认值: `true`"
89
- },
90
- "van-address-list/add-button-text": {
91
- "type": "string",
92
- "description": "底部按钮文字, 默认值: `新增地址`"
93
- },
94
- "van-address-list/default-tag-text": {
95
- "type": "string",
96
- "description": "默认地址标签文字, 默认值: -"
97
- },
98
70
  "van-address-edit/area-list": {
99
71
  "type": "object",
100
72
  "description": "地区列表, 默认值: -"
@@ -183,6 +155,102 @@
183
155
  "type": "(key, val) => string",
184
156
  "description": "自定义校验函数, 默认值: -"
185
157
  },
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-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
+ },
186
254
  "van-button/type": {
187
255
  "type": "string",
188
256
  "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
@@ -271,74 +339,6 @@
271
339
  "type": "boolean",
272
340
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
273
341
  },
274
- "van-badge/content": {
275
- "type": "number | string",
276
- "description": "徽标内容, 默认值: -"
277
- },
278
- "van-badge/color": {
279
- "type": "string",
280
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
281
- },
282
- "van-badge/dot": {
283
- "type": "boolean",
284
- "description": "是否展示为小红点, 默认值: `false`"
285
- },
286
- "van-badge/max": {
287
- "type": "number | string",
288
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
289
- },
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`"
package/vetur/tags.json CHANGED
@@ -20,17 +20,6 @@
20
20
  "get-container"
21
21
  ]
22
22
  },
23
- "van-address-list": {
24
- "attributes": [
25
- "v-model",
26
- "list",
27
- "disabled-list",
28
- "disabled-text",
29
- "switchable",
30
- "add-button-text",
31
- "default-tag-text"
32
- ]
33
- },
34
23
  "van-address-edit": {
35
24
  "attributes": [
36
25
  "area-list",
@@ -57,30 +46,15 @@
57
46
  "validator"
58
47
  ]
59
48
  },
60
- "van-button": {
49
+ "van-address-list": {
61
50
  "attributes": [
62
- "type",
63
- "size",
64
- "text",
65
- "color",
66
- "icon",
67
- "icon-prefix",
68
- "icon-position",
69
- "tag",
70
- "native-type",
71
- "block",
72
- "plain",
73
- "square",
74
- "round",
75
- "disabled",
76
- "hairline",
77
- "loading",
78
- "loading-text",
79
- "loading-type",
80
- "loading-size",
81
- "url",
82
- "to",
83
- "replace"
51
+ "v-model",
52
+ "list",
53
+ "disabled-list",
54
+ "disabled-text",
55
+ "switchable",
56
+ "add-button-text",
57
+ "default-tag-text"
84
58
  ]
85
59
  },
86
60
  "van-badge": {
@@ -108,6 +82,32 @@
108
82
  "is-oversea-code"
109
83
  ]
110
84
  },
85
+ "van-button": {
86
+ "attributes": [
87
+ "type",
88
+ "size",
89
+ "text",
90
+ "color",
91
+ "icon",
92
+ "icon-prefix",
93
+ "icon-position",
94
+ "tag",
95
+ "native-type",
96
+ "block",
97
+ "plain",
98
+ "square",
99
+ "round",
100
+ "disabled",
101
+ "hairline",
102
+ "loading",
103
+ "loading-text",
104
+ "loading-type",
105
+ "loading-size",
106
+ "url",
107
+ "to",
108
+ "replace"
109
+ ]
110
+ },
111
111
  "van-calendar": {
112
112
  "attributes": [
113
113
  "type",