vant 2.12.30-beta.1 → 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.30-beta.1",
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",
@@ -155,22 +155,6 @@
155
155
  "type": "(key, val) => string",
156
156
  "description": "自定义校验函数, 默认值: -"
157
157
  },
158
- "van-badge/content": {
159
- "type": "number | string",
160
- "description": "徽标内容, 默认值: -"
161
- },
162
- "van-badge/color": {
163
- "type": "string",
164
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
165
- },
166
- "van-badge/dot": {
167
- "type": "boolean",
168
- "description": "是否展示为小红点, 默认值: `false`"
169
- },
170
- "van-badge/max": {
171
- "type": "number | string",
172
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
173
- },
174
158
  "van-area/value": {
175
159
  "type": "string",
176
160
  "description": "当前选中的省市区`code`, 默认值: -"
@@ -223,6 +207,34 @@
223
207
  "type": "() => boolean",
224
208
  "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
225
209
  },
210
+ "van-address-list/v-model": {
211
+ "type": "string",
212
+ "description": "当前选中地址的 id, 默认值: -"
213
+ },
214
+ "van-address-list/list": {
215
+ "type": "Address[]",
216
+ "description": "地址列表, 默认值: `[]`"
217
+ },
218
+ "van-address-list/disabled-list": {
219
+ "type": "Address[]",
220
+ "description": "不可配送地址列表, 默认值: `[]`"
221
+ },
222
+ "van-address-list/disabled-text": {
223
+ "type": "string",
224
+ "description": "不可配送提示文案, 默认值: -"
225
+ },
226
+ "van-address-list/switchable": {
227
+ "type": "boolean",
228
+ "description": "是否允许切换地址, 默认值: `true`"
229
+ },
230
+ "van-address-list/add-button-text": {
231
+ "type": "string",
232
+ "description": "底部按钮文字, 默认值: `新增地址`"
233
+ },
234
+ "van-address-list/default-tag-text": {
235
+ "type": "string",
236
+ "description": "默认地址标签文字, 默认值: -"
237
+ },
226
238
  "van-button/type": {
227
239
  "type": "string",
228
240
  "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
@@ -311,33 +323,21 @@
311
323
  "type": "boolean",
312
324
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
313
325
  },
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": "不可配送地址列表, 默认值: `[]`"
326
+ "van-badge/content": {
327
+ "type": "number | string",
328
+ "description": "徽标内容, 默认值: -"
325
329
  },
326
- "van-address-list/disabled-text": {
330
+ "van-badge/color": {
327
331
  "type": "string",
328
- "description": "不可配送提示文案, 默认值: -"
332
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
329
333
  },
330
- "van-address-list/switchable": {
334
+ "van-badge/dot": {
331
335
  "type": "boolean",
332
- "description": "是否允许切换地址, 默认值: `true`"
333
- },
334
- "van-address-list/add-button-text": {
335
- "type": "string",
336
- "description": "底部按钮文字, 默认值: `新增地址`"
336
+ "description": "是否展示为小红点, 默认值: `false`"
337
337
  },
338
- "van-address-list/default-tag-text": {
339
- "type": "string",
340
- "description": "默认地址标签文字, 默认值: -"
338
+ "van-badge/max": {
339
+ "type": "number | string",
340
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
341
341
  },
342
342
  "van-calendar/type": {
343
343
  "type": "string",
@@ -459,34 +459,6 @@
459
459
  "type": "string",
460
460
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
461
461
  },
462
- "van-cascader/title": {
463
- "type": "string",
464
- "description": "顶部标题, 默认值: -"
465
- },
466
- "van-cascader/value": {
467
- "type": "string | number",
468
- "description": "选中项的值, 默认值: -"
469
- },
470
- "van-cascader/options": {
471
- "type": "Option[]",
472
- "description": "可选项数据源, 默认值: `[]`"
473
- },
474
- "van-cascader/placeholder": {
475
- "type": "string",
476
- "description": "未选中时的提示文案, 默认值: `请选择`"
477
- },
478
- "van-cascader/active-color": {
479
- "type": "string",
480
- "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
481
- },
482
- "van-cascader/closeable": {
483
- "type": "boolean",
484
- "description": "是否显示关闭图标, 默认值: `true`"
485
- },
486
- "van-cascader/field-names": {
487
- "type": "object",
488
- "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
489
- },
490
462
  "van-card/thumb": {
491
463
  "type": "string",
492
464
  "description": "左侧图片 URL, 默认值: -"
@@ -531,6 +503,34 @@
531
503
  "type": "boolean",
532
504
  "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
533
505
  },
506
+ "van-cascader/title": {
507
+ "type": "string",
508
+ "description": "顶部标题, 默认值: -"
509
+ },
510
+ "van-cascader/value": {
511
+ "type": "string | number",
512
+ "description": "选中项的值, 默认值: -"
513
+ },
514
+ "van-cascader/options": {
515
+ "type": "Option[]",
516
+ "description": "可选项数据源, 默认值: `[]`"
517
+ },
518
+ "van-cascader/placeholder": {
519
+ "type": "string",
520
+ "description": "未选中时的提示文案, 默认值: `请选择`"
521
+ },
522
+ "van-cascader/active-color": {
523
+ "type": "string",
524
+ "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
525
+ },
526
+ "van-cascader/closeable": {
527
+ "type": "boolean",
528
+ "description": "是否显示关闭图标, 默认值: `true`"
529
+ },
530
+ "van-cascader/field-names": {
531
+ "type": "object",
532
+ "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
533
+ },
534
534
  "van-cell-group/title": {
535
535
  "type": "string",
536
536
  "description": "分组标题, 默认值: `-`"
@@ -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",
@@ -1145,12 +1145,24 @@
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",
1152
1152
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1153
1153
  },
1154
+ "van-divider/dashed": {
1155
+ "type": "boolean",
1156
+ "description": "是否使用虚线, 默认值: `false`"
1157
+ },
1158
+ "van-divider/hairline": {
1159
+ "type": "boolean",
1160
+ "description": "是否使用 0.5px 线, 默认值: `true`"
1161
+ },
1162
+ "van-divider/content-position": {
1163
+ "type": "string",
1164
+ "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
1165
+ },
1154
1166
  "van-dropdown-menu/active-color": {
1155
1167
  "type": "string",
1156
1168
  "description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
@@ -1207,18 +1219,6 @@
1207
1219
  "type": "string | () => Element",
1208
1220
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1209
1221
  },
1210
- "van-divider/dashed": {
1211
- "type": "boolean",
1212
- "description": "是否使用虚线, 默认值: `false`"
1213
- },
1214
- "van-divider/hairline": {
1215
- "type": "boolean",
1216
- "description": "是否使用 0.5px 线, 默认值: `true`"
1217
- },
1218
- "van-divider/content-position": {
1219
- "type": "string",
1220
- "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
1221
- },
1222
1222
  "van-empty/image": {
1223
1223
  "type": "string",
1224
1224
  "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
@@ -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",
@@ -1743,30 +1743,6 @@
1743
1743
  "type": "number | string",
1744
1744
  "description": "索引字符, 默认值: -"
1745
1745
  },
1746
- "van-loading/color": {
1747
- "type": "string",
1748
- "description": "颜色, 默认值: `#c9c9c9`"
1749
- },
1750
- "van-loading/type": {
1751
- "type": "string",
1752
- "description": "类型,可选值为 `spinner`, 默认值: `circular`"
1753
- },
1754
- "van-loading/size": {
1755
- "type": "number | string",
1756
- "description": "加载图标大小,默认单位为 `px`, 默认值: `30px`"
1757
- },
1758
- "van-loading/text-size": {
1759
- "type": "number | string",
1760
- "description": "文字大小,默认单位为 `px`, 默认值: `14px`"
1761
- },
1762
- "van-loading/text-color": {
1763
- "type": "string",
1764
- "description": "文字颜色, 默认值: `#c9c9c9`"
1765
- },
1766
- "van-loading/vertical": {
1767
- "type": "boolean",
1768
- "description": "是否垂直排列图标和文字内容, 默认值: `false`"
1769
- },
1770
1746
  "van-list/v-model": {
1771
1747
  "type": "boolean",
1772
1748
  "description": "是否处于加载状态,加载过程中不触发`load`事件, 默认值: `false`"
@@ -1803,6 +1779,30 @@
1803
1779
  "type": "string",
1804
1780
  "description": "滚动触发加载的方向,可选值为`up`, 默认值: `down`"
1805
1781
  },
1782
+ "van-loading/color": {
1783
+ "type": "string",
1784
+ "description": "颜色, 默认值: `#c9c9c9`"
1785
+ },
1786
+ "van-loading/type": {
1787
+ "type": "string",
1788
+ "description": "类型,可选值为 `spinner`, 默认值: `circular`"
1789
+ },
1790
+ "van-loading/size": {
1791
+ "type": "number | string",
1792
+ "description": "加载图标大小,默认单位为 `px`, 默认值: `30px`"
1793
+ },
1794
+ "van-loading/text-size": {
1795
+ "type": "number | string",
1796
+ "description": "文字大小,默认单位为 `px`, 默认值: `14px`"
1797
+ },
1798
+ "van-loading/text-color": {
1799
+ "type": "string",
1800
+ "description": "文字颜色, 默认值: `#c9c9c9`"
1801
+ },
1802
+ "van-loading/vertical": {
1803
+ "type": "boolean",
1804
+ "description": "是否垂直排列图标和文字内容, 默认值: `false`"
1805
+ },
1806
1806
  "van-nav-bar/title": {
1807
1807
  "type": "string",
1808
1808
  "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",
@@ -2879,54 +2879,6 @@
2879
2879
  "type": "Element",
2880
2880
  "description": "容器对应的 HTML 节点, 默认值: -"
2881
2881
  },
2882
- "van-swipe/autoplay": {
2883
- "type": "number | string",
2884
- "description": "自动轮播间隔,单位为 ms, 默认值: -"
2885
- },
2886
- "van-swipe/duration": {
2887
- "type": "number | string",
2888
- "description": "动画时长,单位为 ms, 默认值: `500`"
2889
- },
2890
- "van-swipe/initial-swipe": {
2891
- "type": "number | string",
2892
- "description": "初始位置索引值, 默认值: `0`"
2893
- },
2894
- "van-swipe/width": {
2895
- "type": "number | string",
2896
- "description": "滑块宽度,单位为`px`, 默认值: `auto`"
2897
- },
2898
- "van-swipe/height": {
2899
- "type": "number | string",
2900
- "description": "滑块高度,单位为`px`, 默认值: `auto`"
2901
- },
2902
- "van-swipe/loop": {
2903
- "type": "boolean",
2904
- "description": "是否开启循环播放, 默认值: `true`"
2905
- },
2906
- "van-swipe/show-indicators": {
2907
- "type": "boolean",
2908
- "description": "是否显示指示器, 默认值: `true`"
2909
- },
2910
- "van-swipe/vertical": {
2911
- "type": "boolean",
2912
- "description": "是否为纵向滚动, 默认值: `false`"
2913
- },
2914
- "van-swipe/touchable": {
2915
- "type": "boolean",
2916
- "description": "是否可以通过手势滑动, 默认值: `true`"
2917
- },
2918
- "van-swipe/stop-propagation": {
2919
- "type": "boolean",
2920
- "description": "是否阻止滑动事件冒泡, 默认值: `true`"
2921
- },
2922
- "van-swipe/lazy-render": {
2923
- "type": "boolean",
2924
- "description": "是否延迟渲染未展示的轮播, 默认值: `false`"
2925
- },
2926
- "van-swipe/indicator-color": {
2927
- "type": "string",
2928
- "description": "指示器颜色, 默认值: `#1989fa`"
2929
- },
2930
2882
  "van-submit-bar/price": {
2931
2883
  "type": "number",
2932
2884
  "description": "价格(单位分), 默认值: -"
@@ -2983,6 +2935,54 @@
2983
2935
  "type": "boolean",
2984
2936
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
2985
2937
  },
2938
+ "van-swipe/autoplay": {
2939
+ "type": "number | string",
2940
+ "description": "自动轮播间隔,单位为 ms, 默认值: -"
2941
+ },
2942
+ "van-swipe/duration": {
2943
+ "type": "number | string",
2944
+ "description": "动画时长,单位为 ms, 默认值: `500`"
2945
+ },
2946
+ "van-swipe/initial-swipe": {
2947
+ "type": "number | string",
2948
+ "description": "初始位置索引值, 默认值: `0`"
2949
+ },
2950
+ "van-swipe/width": {
2951
+ "type": "number | string",
2952
+ "description": "滑块宽度,单位为`px`, 默认值: `auto`"
2953
+ },
2954
+ "van-swipe/height": {
2955
+ "type": "number | string",
2956
+ "description": "滑块高度,单位为`px`, 默认值: `auto`"
2957
+ },
2958
+ "van-swipe/loop": {
2959
+ "type": "boolean",
2960
+ "description": "是否开启循环播放, 默认值: `true`"
2961
+ },
2962
+ "van-swipe/show-indicators": {
2963
+ "type": "boolean",
2964
+ "description": "是否显示指示器, 默认值: `true`"
2965
+ },
2966
+ "van-swipe/vertical": {
2967
+ "type": "boolean",
2968
+ "description": "是否为纵向滚动, 默认值: `false`"
2969
+ },
2970
+ "van-swipe/touchable": {
2971
+ "type": "boolean",
2972
+ "description": "是否可以通过手势滑动, 默认值: `true`"
2973
+ },
2974
+ "van-swipe/stop-propagation": {
2975
+ "type": "boolean",
2976
+ "description": "是否阻止滑动事件冒泡, 默认值: `true`"
2977
+ },
2978
+ "van-swipe/lazy-render": {
2979
+ "type": "boolean",
2980
+ "description": "是否延迟渲染未展示的轮播, 默认值: `false`"
2981
+ },
2982
+ "van-swipe/indicator-color": {
2983
+ "type": "string",
2984
+ "description": "指示器颜色, 默认值: `#1989fa`"
2985
+ },
2986
2986
  "van-swipe-cell/name": {
2987
2987
  "type": "number | string",
2988
2988
  "description": "标识符,可以在事件参数中获取到, 默认值: -"
package/vetur/tags.json CHANGED
@@ -46,14 +46,6 @@
46
46
  "validator"
47
47
  ]
48
48
  },
49
- "van-badge": {
50
- "attributes": [
51
- "content",
52
- "color",
53
- "dot",
54
- "max"
55
- ]
56
- },
57
49
  "van-area": {
58
50
  "attributes": [
59
51
  "value",
@@ -71,6 +63,17 @@
71
63
  "is-oversea-code"
72
64
  ]
73
65
  },
66
+ "van-address-list": {
67
+ "attributes": [
68
+ "v-model",
69
+ "list",
70
+ "disabled-list",
71
+ "disabled-text",
72
+ "switchable",
73
+ "add-button-text",
74
+ "default-tag-text"
75
+ ]
76
+ },
74
77
  "van-button": {
75
78
  "attributes": [
76
79
  "type",
@@ -97,15 +100,12 @@
97
100
  "replace"
98
101
  ]
99
102
  },
100
- "van-address-list": {
103
+ "van-badge": {
101
104
  "attributes": [
102
- "v-model",
103
- "list",
104
- "disabled-list",
105
- "disabled-text",
106
- "switchable",
107
- "add-button-text",
108
- "default-tag-text"
105
+ "content",
106
+ "color",
107
+ "dot",
108
+ "max"
109
109
  ]
110
110
  },
111
111
  "van-calendar": {
@@ -154,17 +154,6 @@
154
154
  "range-prompt"
155
155
  ]
156
156
  },
157
- "van-cascader": {
158
- "attributes": [
159
- "title",
160
- "value",
161
- "options",
162
- "placeholder",
163
- "active-color",
164
- "closeable",
165
- "field-names"
166
- ]
167
- },
168
157
  "van-card": {
169
158
  "attributes": [
170
159
  "thumb",
@@ -180,6 +169,17 @@
180
169
  "lazy-load"
181
170
  ]
182
171
  },
172
+ "van-cascader": {
173
+ "attributes": [
174
+ "title",
175
+ "value",
176
+ "options",
177
+ "placeholder",
178
+ "active-color",
179
+ "closeable",
180
+ "field-names"
181
+ ]
182
+ },
183
183
  "van-cell-group": {
184
184
  "attributes": [
185
185
  "title",
@@ -411,6 +411,13 @@
411
411
  "get-container"
412
412
  ]
413
413
  },
414
+ "van-divider": {
415
+ "attributes": [
416
+ "dashed",
417
+ "hairline",
418
+ "content-position"
419
+ ]
420
+ },
414
421
  "van-dropdown-menu": {
415
422
  "attributes": [
416
423
  "active-color",
@@ -433,13 +440,6 @@
433
440
  "get-container"
434
441
  ]
435
442
  },
436
- "van-divider": {
437
- "attributes": [
438
- "dashed",
439
- "hairline",
440
- "content-position"
441
- ]
442
- },
443
443
  "van-empty": {
444
444
  "attributes": [
445
445
  "image",
@@ -623,16 +623,6 @@
623
623
  "index"
624
624
  ]
625
625
  },
626
- "van-loading": {
627
- "attributes": [
628
- "color",
629
- "type",
630
- "size",
631
- "text-size",
632
- "text-color",
633
- "vertical"
634
- ]
635
- },
636
626
  "van-list": {
637
627
  "attributes": [
638
628
  "v-model",
@@ -646,6 +636,16 @@
646
636
  "direction"
647
637
  ]
648
638
  },
639
+ "van-loading": {
640
+ "attributes": [
641
+ "color",
642
+ "type",
643
+ "size",
644
+ "text-size",
645
+ "text-color",
646
+ "vertical"
647
+ ]
648
+ },
649
649
  "van-nav-bar": {
650
650
  "attributes": [
651
651
  "title",
@@ -1018,6 +1018,24 @@
1018
1018
  "container"
1019
1019
  ]
1020
1020
  },
1021
+ "van-submit-bar": {
1022
+ "attributes": [
1023
+ "price",
1024
+ "decimal-length",
1025
+ "label",
1026
+ "suffix-label",
1027
+ "text-align",
1028
+ "button-text",
1029
+ "button-type",
1030
+ "button-color",
1031
+ "tip",
1032
+ "tip-icon",
1033
+ "currency",
1034
+ "disabled",
1035
+ "loading",
1036
+ "safe-area-inset-bottom"
1037
+ ]
1038
+ },
1021
1039
  "van-swipe": {
1022
1040
  "attributes": [
1023
1041
  "autoplay",
@@ -1037,24 +1055,6 @@
1037
1055
  "van-swipe-item": {
1038
1056
  "attributes": []
1039
1057
  },
1040
- "van-submit-bar": {
1041
- "attributes": [
1042
- "price",
1043
- "decimal-length",
1044
- "label",
1045
- "suffix-label",
1046
- "text-align",
1047
- "button-text",
1048
- "button-type",
1049
- "button-color",
1050
- "tip",
1051
- "tip-icon",
1052
- "currency",
1053
- "disabled",
1054
- "loading",
1055
- "safe-area-inset-bottom"
1056
- ]
1057
- },
1058
1058
  "van-swipe-cell": {
1059
1059
  "attributes": [
1060
1060
  "name",