vant 2.12.32 → 2.12.33

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.32",
3
+ "version": "2.12.33",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -67,6 +67,94 @@
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
+ },
70
158
  "van-area/value": {
71
159
  "type": "string",
72
160
  "description": "当前选中的省市区`code`, 默认值: -"
@@ -235,6 +323,22 @@
235
323
  "type": "boolean",
236
324
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
237
325
  },
326
+ "van-badge/content": {
327
+ "type": "number | string",
328
+ "description": "徽标内容, 默认值: -"
329
+ },
330
+ "van-badge/color": {
331
+ "type": "string",
332
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
333
+ },
334
+ "van-badge/dot": {
335
+ "type": "boolean",
336
+ "description": "是否展示为小红点, 默认值: `false`"
337
+ },
338
+ "van-badge/max": {
339
+ "type": "number | string",
340
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
341
+ },
238
342
  "van-calendar/type": {
239
343
  "type": "string",
240
344
  "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
@@ -355,22 +459,6 @@
355
459
  "type": "string",
356
460
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
357
461
  },
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
- },
374
462
  "van-card/thumb": {
375
463
  "type": "string",
376
464
  "description": "左侧图片 URL, 默认值: -"
@@ -415,94 +503,6 @@
415
503
  "type": "boolean",
416
504
  "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
417
505
  },
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": "顶部标题, 默认值: -"
@@ -1875,30 +1875,6 @@
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
- },
1902
1878
  "van-number-keyboard/v-model (value)": {
1903
1879
  "type": "string",
1904
1880
  "description": "当前输入值, 默认值: -"
@@ -1963,6 +1939,30 @@
1963
1939
  "type": "boolean",
1964
1940
  "description": "是否将通过随机顺序展示按键, 默认值: `false`"
1965
1941
  },
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": "当前页码, 默认值: -"
package/vetur/tags.json CHANGED
@@ -20,6 +20,32 @@
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
+ },
23
49
  "van-area": {
24
50
  "attributes": [
25
51
  "value",
@@ -74,6 +100,14 @@
74
100
  "replace"
75
101
  ]
76
102
  },
103
+ "van-badge": {
104
+ "attributes": [
105
+ "content",
106
+ "color",
107
+ "dot",
108
+ "max"
109
+ ]
110
+ },
77
111
  "van-calendar": {
78
112
  "attributes": [
79
113
  "type",
@@ -120,14 +154,6 @@
120
154
  "range-prompt"
121
155
  ]
122
156
  },
123
- "van-badge": {
124
- "attributes": [
125
- "content",
126
- "color",
127
- "dot",
128
- "max"
129
- ]
130
- },
131
157
  "van-card": {
132
158
  "attributes": [
133
159
  "thumb",
@@ -143,32 +169,6 @@
143
169
  "lazy-load"
144
170
  ]
145
171
  },
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,16 +672,6 @@
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
- },
685
675
  "van-number-keyboard": {
686
676
  "attributes": [
687
677
  "v-model (value)",
@@ -702,6 +692,16 @@
702
692
  "random-key-order"
703
693
  ]
704
694
  },
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",