vant 2.12.31 → 2.12.32

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.31",
3
+ "version": "2.12.32",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -67,94 +67,6 @@
67
67
  "type": "string | () => Element",
68
68
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
69
69
  },
70
- "van-address-edit/area-list": {
71
- "type": "object",
72
- "description": "地区列表, 默认值: -"
73
- },
74
- "van-address-edit/area-columns-placeholder": {
75
- "type": "string[]",
76
- "description": "地区选择列占位提示文字, 默认值: `[]`"
77
- },
78
- "van-address-edit/area-placeholder": {
79
- "type": "string",
80
- "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
81
- },
82
- "van-address-edit/address-info": {
83
- "type": "AddressInfo",
84
- "description": "收货人信息初始值, 默认值: `{}`"
85
- },
86
- "van-address-edit/search-result": {
87
- "type": "SearchResult[]",
88
- "description": "详细地址搜索结果, 默认值: `[]`"
89
- },
90
- "van-address-edit/show-postal": {
91
- "type": "boolean",
92
- "description": "是否显示邮政编码, 默认值: `false`"
93
- },
94
- "van-address-edit/show-delete": {
95
- "type": "boolean",
96
- "description": "是否显示删除按钮, 默认值: `false`"
97
- },
98
- "van-address-edit/show-set-default": {
99
- "type": "boolean",
100
- "description": "是否显示默认地址栏, 默认值: `false`"
101
- },
102
- "van-address-edit/show-search-result": {
103
- "type": "boolean",
104
- "description": "是否显示搜索结果, 默认值: `false`"
105
- },
106
- "van-address-edit/show-area": {
107
- "type": "boolean",
108
- "description": "是否显示地区, 默认值: `true`"
109
- },
110
- "van-address-edit/show-detail": {
111
- "type": "boolean",
112
- "description": "是否显示详细地址, 默认值: `true`"
113
- },
114
- "van-address-edit/disable-area": {
115
- "type": "boolean",
116
- "description": "是否禁用地区选择, 默认值: `false`"
117
- },
118
- "van-address-edit/save-button-text": {
119
- "type": "string",
120
- "description": "保存按钮文字, 默认值: `保存`"
121
- },
122
- "van-address-edit/delete-button-text": {
123
- "type": "string",
124
- "description": "删除按钮文字, 默认值: `删除`"
125
- },
126
- "van-address-edit/detail-rows": {
127
- "type": "number | string",
128
- "description": "详细地址输入框行数, 默认值: `1`"
129
- },
130
- "van-address-edit/detail-maxlength": {
131
- "type": "number | string",
132
- "description": "详细地址最大长度, 默认值: `200`"
133
- },
134
- "van-address-edit/is-saving": {
135
- "type": "boolean",
136
- "description": "是否显示保存按钮加载动画, 默认值: `false`"
137
- },
138
- "van-address-edit/is-deleting": {
139
- "type": "boolean",
140
- "description": "是否显示删除按钮加载动画, 默认值: `false`"
141
- },
142
- "van-address-edit/tel-validator": {
143
- "type": "string => boolean",
144
- "description": "手机号格式校验函数, 默认值: -"
145
- },
146
- "van-address-edit/tel-maxlength": {
147
- "type": "number | string",
148
- "description": "手机号最大长度, 默认值: -"
149
- },
150
- "van-address-edit/postal-validator": {
151
- "type": "string => boolean",
152
- "description": "邮政编码格式校验函数, 默认值: -"
153
- },
154
- "van-address-edit/validator": {
155
- "type": "(key, val) => string",
156
- "description": "自定义校验函数, 默认值: -"
157
- },
158
70
  "van-area/value": {
159
71
  "type": "string",
160
72
  "description": "当前选中的省市区`code`, 默认值: -"
@@ -207,21 +119,33 @@
207
119
  "type": "() => boolean",
208
120
  "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
209
121
  },
210
- "van-badge/content": {
211
- "type": "number | string",
212
- "description": "徽标内容, 默认值: -"
122
+ "van-address-list/v-model": {
123
+ "type": "string",
124
+ "description": "当前选中地址的 id, 默认值: -"
213
125
  },
214
- "van-badge/color": {
126
+ "van-address-list/list": {
127
+ "type": "Address[]",
128
+ "description": "地址列表, 默认值: `[]`"
129
+ },
130
+ "van-address-list/disabled-list": {
131
+ "type": "Address[]",
132
+ "description": "不可配送地址列表, 默认值: `[]`"
133
+ },
134
+ "van-address-list/disabled-text": {
215
135
  "type": "string",
216
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
136
+ "description": "不可配送提示文案, 默认值: -"
217
137
  },
218
- "van-badge/dot": {
138
+ "van-address-list/switchable": {
219
139
  "type": "boolean",
220
- "description": "是否展示为小红点, 默认值: `false`"
140
+ "description": "是否允许切换地址, 默认值: `true`"
221
141
  },
222
- "van-badge/max": {
223
- "type": "number | string",
224
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
142
+ "van-address-list/add-button-text": {
143
+ "type": "string",
144
+ "description": "底部按钮文字, 默认值: `新增地址`"
145
+ },
146
+ "van-address-list/default-tag-text": {
147
+ "type": "string",
148
+ "description": "默认地址标签文字, 默认值: -"
225
149
  },
226
150
  "van-button/type": {
227
151
  "type": "string",
@@ -311,34 +235,6 @@
311
235
  "type": "boolean",
312
236
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
313
237
  },
314
- "van-address-list/v-model": {
315
- "type": "string",
316
- "description": "当前选中地址的 id, 默认值: -"
317
- },
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": {
327
- "type": "string",
328
- "description": "不可配送提示文案, 默认值: -"
329
- },
330
- "van-address-list/switchable": {
331
- "type": "boolean",
332
- "description": "是否允许切换地址, 默认值: `true`"
333
- },
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": "默认地址标签文字, 默认值: -"
341
- },
342
238
  "van-calendar/type": {
343
239
  "type": "string",
344
240
  "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
@@ -459,6 +355,22 @@
459
355
  "type": "string",
460
356
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
461
357
  },
358
+ "van-badge/content": {
359
+ "type": "number | string",
360
+ "description": "徽标内容, 默认值: -"
361
+ },
362
+ "van-badge/color": {
363
+ "type": "string",
364
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
365
+ },
366
+ "van-badge/dot": {
367
+ "type": "boolean",
368
+ "description": "是否展示为小红点, 默认值: `false`"
369
+ },
370
+ "van-badge/max": {
371
+ "type": "number | string",
372
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
373
+ },
462
374
  "van-card/thumb": {
463
375
  "type": "string",
464
376
  "description": "左侧图片 URL, 默认值: -"
@@ -503,6 +415,94 @@
503
415
  "type": "boolean",
504
416
  "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
505
417
  },
418
+ "van-address-edit/area-list": {
419
+ "type": "object",
420
+ "description": "地区列表, 默认值: -"
421
+ },
422
+ "van-address-edit/area-columns-placeholder": {
423
+ "type": "string[]",
424
+ "description": "地区选择列占位提示文字, 默认值: `[]`"
425
+ },
426
+ "van-address-edit/area-placeholder": {
427
+ "type": "string",
428
+ "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
429
+ },
430
+ "van-address-edit/address-info": {
431
+ "type": "AddressInfo",
432
+ "description": "收货人信息初始值, 默认值: `{}`"
433
+ },
434
+ "van-address-edit/search-result": {
435
+ "type": "SearchResult[]",
436
+ "description": "详细地址搜索结果, 默认值: `[]`"
437
+ },
438
+ "van-address-edit/show-postal": {
439
+ "type": "boolean",
440
+ "description": "是否显示邮政编码, 默认值: `false`"
441
+ },
442
+ "van-address-edit/show-delete": {
443
+ "type": "boolean",
444
+ "description": "是否显示删除按钮, 默认值: `false`"
445
+ },
446
+ "van-address-edit/show-set-default": {
447
+ "type": "boolean",
448
+ "description": "是否显示默认地址栏, 默认值: `false`"
449
+ },
450
+ "van-address-edit/show-search-result": {
451
+ "type": "boolean",
452
+ "description": "是否显示搜索结果, 默认值: `false`"
453
+ },
454
+ "van-address-edit/show-area": {
455
+ "type": "boolean",
456
+ "description": "是否显示地区, 默认值: `true`"
457
+ },
458
+ "van-address-edit/show-detail": {
459
+ "type": "boolean",
460
+ "description": "是否显示详细地址, 默认值: `true`"
461
+ },
462
+ "van-address-edit/disable-area": {
463
+ "type": "boolean",
464
+ "description": "是否禁用地区选择, 默认值: `false`"
465
+ },
466
+ "van-address-edit/save-button-text": {
467
+ "type": "string",
468
+ "description": "保存按钮文字, 默认值: `保存`"
469
+ },
470
+ "van-address-edit/delete-button-text": {
471
+ "type": "string",
472
+ "description": "删除按钮文字, 默认值: `删除`"
473
+ },
474
+ "van-address-edit/detail-rows": {
475
+ "type": "number | string",
476
+ "description": "详细地址输入框行数, 默认值: `1`"
477
+ },
478
+ "van-address-edit/detail-maxlength": {
479
+ "type": "number | string",
480
+ "description": "详细地址最大长度, 默认值: `200`"
481
+ },
482
+ "van-address-edit/is-saving": {
483
+ "type": "boolean",
484
+ "description": "是否显示保存按钮加载动画, 默认值: `false`"
485
+ },
486
+ "van-address-edit/is-deleting": {
487
+ "type": "boolean",
488
+ "description": "是否显示删除按钮加载动画, 默认值: `false`"
489
+ },
490
+ "van-address-edit/tel-validator": {
491
+ "type": "string => boolean",
492
+ "description": "手机号格式校验函数, 默认值: -"
493
+ },
494
+ "van-address-edit/tel-maxlength": {
495
+ "type": "number | string",
496
+ "description": "手机号最大长度, 默认值: -"
497
+ },
498
+ "van-address-edit/postal-validator": {
499
+ "type": "string => boolean",
500
+ "description": "邮政编码格式校验函数, 默认值: -"
501
+ },
502
+ "van-address-edit/validator": {
503
+ "type": "(key, val) => string",
504
+ "description": "自定义校验函数, 默认值: -"
505
+ },
506
506
  "van-cascader/title": {
507
507
  "type": "string",
508
508
  "description": "顶部标题, 默认值: -"
@@ -1145,7 +1145,7 @@
1145
1145
  },
1146
1146
  "van-dialog/transition": {
1147
1147
  "type": "string",
1148
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: -"
1148
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: -"
1149
1149
  },
1150
1150
  "van-dialog/get-container": {
1151
1151
  "type": "string | () => Element",
@@ -1713,7 +1713,7 @@
1713
1713
  },
1714
1714
  "van-image-preview/transition": {
1715
1715
  "type": "string",
1716
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: `van-fade`"
1716
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: `van-fade`"
1717
1717
  },
1718
1718
  "van-image-preview/get-container": {
1719
1719
  "type": "string | () => Element",
@@ -1875,6 +1875,30 @@
1875
1875
  "type": "boolean",
1876
1876
  "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
1877
1877
  },
1878
+ "van-overlay/show": {
1879
+ "type": "boolean",
1880
+ "description": "是否展示遮罩层, 默认值: `false`"
1881
+ },
1882
+ "van-overlay/z-index": {
1883
+ "type": "number | string",
1884
+ "description": "z-index 层级, 默认值: `1`"
1885
+ },
1886
+ "van-overlay/duration": {
1887
+ "type": "number | string",
1888
+ "description": "动画时长,单位秒, 默认值: `0.3`"
1889
+ },
1890
+ "van-overlay/class-name": {
1891
+ "type": "string",
1892
+ "description": "自定义类名, 默认值: -"
1893
+ },
1894
+ "van-overlay/custom-style": {
1895
+ "type": "object",
1896
+ "description": "自定义样式, 默认值: -"
1897
+ },
1898
+ "van-overlay/lock-scroll": {
1899
+ "type": "boolean",
1900
+ "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
1901
+ },
1878
1902
  "van-number-keyboard/v-model (value)": {
1879
1903
  "type": "string",
1880
1904
  "description": "当前输入值, 默认值: -"
@@ -1939,30 +1963,6 @@
1939
1963
  "type": "boolean",
1940
1964
  "description": "是否将通过随机顺序展示按键, 默认值: `false`"
1941
1965
  },
1942
- "van-overlay/show": {
1943
- "type": "boolean",
1944
- "description": "是否展示遮罩层, 默认值: `false`"
1945
- },
1946
- "van-overlay/z-index": {
1947
- "type": "number | string",
1948
- "description": "z-index 层级, 默认值: `1`"
1949
- },
1950
- "van-overlay/duration": {
1951
- "type": "number | string",
1952
- "description": "动画时长,单位秒, 默认值: `0.3`"
1953
- },
1954
- "van-overlay/class-name": {
1955
- "type": "string",
1956
- "description": "自定义类名, 默认值: -"
1957
- },
1958
- "van-overlay/custom-style": {
1959
- "type": "object",
1960
- "description": "自定义样式, 默认值: -"
1961
- },
1962
- "van-overlay/lock-scroll": {
1963
- "type": "boolean",
1964
- "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
1965
- },
1966
1966
  "van-pagination/v-model": {
1967
1967
  "type": "number",
1968
1968
  "description": "当前页码, 默认值: -"
@@ -2197,7 +2197,7 @@
2197
2197
  },
2198
2198
  "van-popup/transition": {
2199
2199
  "type": "string",
2200
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性, 默认值: -"
2200
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性, 默认值: -"
2201
2201
  },
2202
2202
  "van-popup/transition-appear": {
2203
2203
  "type": "boolean",
package/vetur/tags.json CHANGED
@@ -20,32 +20,6 @@
20
20
  "get-container"
21
21
  ]
22
22
  },
23
- "van-address-edit": {
24
- "attributes": [
25
- "area-list",
26
- "area-columns-placeholder",
27
- "area-placeholder",
28
- "address-info",
29
- "search-result",
30
- "show-postal",
31
- "show-delete",
32
- "show-set-default",
33
- "show-search-result",
34
- "show-area",
35
- "show-detail",
36
- "disable-area",
37
- "save-button-text",
38
- "delete-button-text",
39
- "detail-rows",
40
- "detail-maxlength",
41
- "is-saving",
42
- "is-deleting",
43
- "tel-validator",
44
- "tel-maxlength",
45
- "postal-validator",
46
- "validator"
47
- ]
48
- },
49
23
  "van-area": {
50
24
  "attributes": [
51
25
  "value",
@@ -63,12 +37,15 @@
63
37
  "is-oversea-code"
64
38
  ]
65
39
  },
66
- "van-badge": {
40
+ "van-address-list": {
67
41
  "attributes": [
68
- "content",
69
- "color",
70
- "dot",
71
- "max"
42
+ "v-model",
43
+ "list",
44
+ "disabled-list",
45
+ "disabled-text",
46
+ "switchable",
47
+ "add-button-text",
48
+ "default-tag-text"
72
49
  ]
73
50
  },
74
51
  "van-button": {
@@ -97,17 +74,6 @@
97
74
  "replace"
98
75
  ]
99
76
  },
100
- "van-address-list": {
101
- "attributes": [
102
- "v-model",
103
- "list",
104
- "disabled-list",
105
- "disabled-text",
106
- "switchable",
107
- "add-button-text",
108
- "default-tag-text"
109
- ]
110
- },
111
77
  "van-calendar": {
112
78
  "attributes": [
113
79
  "type",
@@ -154,6 +120,14 @@
154
120
  "range-prompt"
155
121
  ]
156
122
  },
123
+ "van-badge": {
124
+ "attributes": [
125
+ "content",
126
+ "color",
127
+ "dot",
128
+ "max"
129
+ ]
130
+ },
157
131
  "van-card": {
158
132
  "attributes": [
159
133
  "thumb",
@@ -169,6 +143,32 @@
169
143
  "lazy-load"
170
144
  ]
171
145
  },
146
+ "van-address-edit": {
147
+ "attributes": [
148
+ "area-list",
149
+ "area-columns-placeholder",
150
+ "area-placeholder",
151
+ "address-info",
152
+ "search-result",
153
+ "show-postal",
154
+ "show-delete",
155
+ "show-set-default",
156
+ "show-search-result",
157
+ "show-area",
158
+ "show-detail",
159
+ "disable-area",
160
+ "save-button-text",
161
+ "delete-button-text",
162
+ "detail-rows",
163
+ "detail-maxlength",
164
+ "is-saving",
165
+ "is-deleting",
166
+ "tel-validator",
167
+ "tel-maxlength",
168
+ "postal-validator",
169
+ "validator"
170
+ ]
171
+ },
172
172
  "van-cascader": {
173
173
  "attributes": [
174
174
  "title",
@@ -672,6 +672,16 @@
672
672
  "wrapable"
673
673
  ]
674
674
  },
675
+ "van-overlay": {
676
+ "attributes": [
677
+ "show",
678
+ "z-index",
679
+ "duration",
680
+ "class-name",
681
+ "custom-style",
682
+ "lock-scroll"
683
+ ]
684
+ },
675
685
  "van-number-keyboard": {
676
686
  "attributes": [
677
687
  "v-model (value)",
@@ -692,16 +702,6 @@
692
702
  "random-key-order"
693
703
  ]
694
704
  },
695
- "van-overlay": {
696
- "attributes": [
697
- "show",
698
- "z-index",
699
- "duration",
700
- "class-name",
701
- "custom-style",
702
- "lock-scroll"
703
- ]
704
- },
705
705
  "van-pagination": {
706
706
  "attributes": [
707
707
  "v-model",