vant 2.12.30-beta.0 → 2.12.30-beta.1

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.0",
3
+ "version": "2.12.30-beta.1",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1,48 +1,4 @@
1
1
  {
2
- "van-address-list/v-model": {
3
- "type": "string",
4
- "description": "当前选中地址的 id, 默认值: -"
5
- },
6
- "van-address-list/list": {
7
- "type": "Address[]",
8
- "description": "地址列表, 默认值: `[]`"
9
- },
10
- "van-address-list/disabled-list": {
11
- "type": "Address[]",
12
- "description": "不可配送地址列表, 默认值: `[]`"
13
- },
14
- "van-address-list/disabled-text": {
15
- "type": "string",
16
- "description": "不可配送提示文案, 默认值: -"
17
- },
18
- "van-address-list/switchable": {
19
- "type": "boolean",
20
- "description": "是否允许切换地址, 默认值: `true`"
21
- },
22
- "van-address-list/add-button-text": {
23
- "type": "string",
24
- "description": "底部按钮文字, 默认值: `新增地址`"
25
- },
26
- "van-address-list/default-tag-text": {
27
- "type": "string",
28
- "description": "默认地址标签文字, 默认值: -"
29
- },
30
- "van-badge/content": {
31
- "type": "number | string",
32
- "description": "徽标内容, 默认值: -"
33
- },
34
- "van-badge/color": {
35
- "type": "string",
36
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
37
- },
38
- "van-badge/dot": {
39
- "type": "boolean",
40
- "description": "是否展示为小红点, 默认值: `false`"
41
- },
42
- "van-badge/max": {
43
- "type": "number | string",
44
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
45
- },
46
2
  "van-action-sheet/v-model (value)": {
47
3
  "type": "boolean",
48
4
  "description": "是否显示动作面板, 默认值: `false`"
@@ -199,6 +155,74 @@
199
155
  "type": "(key, val) => string",
200
156
  "description": "自定义校验函数, 默认值: -"
201
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
+ "van-area/value": {
175
+ "type": "string",
176
+ "description": "当前选中的省市区`code`, 默认值: -"
177
+ },
178
+ "van-area/title": {
179
+ "type": "string",
180
+ "description": "顶部栏标题, 默认值: -"
181
+ },
182
+ "van-area/confirm-button-text": {
183
+ "type": "string",
184
+ "description": "确认按钮文字, 默认值: `确认`"
185
+ },
186
+ "van-area/cancel-button-text": {
187
+ "type": "string",
188
+ "description": "取消按钮文字, 默认值: `取消`"
189
+ },
190
+ "van-area/area-list": {
191
+ "type": "object",
192
+ "description": "省市区数据,格式见下方, 默认值: -"
193
+ },
194
+ "van-area/columns-placeholder": {
195
+ "type": "string[]",
196
+ "description": "列占位提示文字, 默认值: `[]`"
197
+ },
198
+ "van-area/loading": {
199
+ "type": "boolean",
200
+ "description": "是否显示加载状态, 默认值: `false`"
201
+ },
202
+ "van-area/readonly": {
203
+ "type": "boolean",
204
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
205
+ },
206
+ "van-area/item-height": {
207
+ "type": "number | string",
208
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
209
+ },
210
+ "van-area/columns-num": {
211
+ "type": "number | string",
212
+ "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
213
+ },
214
+ "van-area/visible-item-count": {
215
+ "type": "number | string",
216
+ "description": "可见的选项个数, 默认值: `6`"
217
+ },
218
+ "van-area/swipe-duration": {
219
+ "type": "number | string",
220
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
221
+ },
222
+ "van-area/is-oversea-code": {
223
+ "type": "() => boolean",
224
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
225
+ },
202
226
  "van-button/type": {
203
227
  "type": "string",
204
228
  "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
@@ -287,6 +311,34 @@
287
311
  "type": "boolean",
288
312
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
289
313
  },
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
+ },
290
342
  "van-calendar/type": {
291
343
  "type": "string",
292
344
  "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
@@ -407,6 +459,34 @@
407
459
  "type": "string",
408
460
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
409
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
+ },
410
490
  "van-card/thumb": {
411
491
  "type": "string",
412
492
  "description": "左侧图片 URL, 默认值: -"
@@ -451,34 +531,6 @@
451
531
  "type": "boolean",
452
532
  "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
453
533
  },
454
- "van-cascader/title": {
455
- "type": "string",
456
- "description": "顶部标题, 默认值: -"
457
- },
458
- "van-cascader/value": {
459
- "type": "string | number",
460
- "description": "选中项的值, 默认值: -"
461
- },
462
- "van-cascader/options": {
463
- "type": "Option[]",
464
- "description": "可选项数据源, 默认值: `[]`"
465
- },
466
- "van-cascader/placeholder": {
467
- "type": "string",
468
- "description": "未选中时的提示文案, 默认值: `请选择`"
469
- },
470
- "van-cascader/active-color": {
471
- "type": "string",
472
- "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
473
- },
474
- "van-cascader/closeable": {
475
- "type": "boolean",
476
- "description": "是否显示关闭图标, 默认值: `true`"
477
- },
478
- "van-cascader/field-names": {
479
- "type": "object",
480
- "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
481
- },
482
534
  "van-cell-group/title": {
483
535
  "type": "string",
484
536
  "description": "分组标题, 默认值: `-`"
@@ -563,58 +615,6 @@
563
615
  "type": "any",
564
616
  "description": "描述信息额外类名, 默认值: -"
565
617
  },
566
- "van-area/value": {
567
- "type": "string",
568
- "description": "当前选中的省市区`code`, 默认值: -"
569
- },
570
- "van-area/title": {
571
- "type": "string",
572
- "description": "顶部栏标题, 默认值: -"
573
- },
574
- "van-area/confirm-button-text": {
575
- "type": "string",
576
- "description": "确认按钮文字, 默认值: `确认`"
577
- },
578
- "van-area/cancel-button-text": {
579
- "type": "string",
580
- "description": "取消按钮文字, 默认值: `取消`"
581
- },
582
- "van-area/area-list": {
583
- "type": "object",
584
- "description": "省市区数据,格式见下方, 默认值: -"
585
- },
586
- "van-area/columns-placeholder": {
587
- "type": "string[]",
588
- "description": "列占位提示文字, 默认值: `[]`"
589
- },
590
- "van-area/loading": {
591
- "type": "boolean",
592
- "description": "是否显示加载状态, 默认值: `false`"
593
- },
594
- "van-area/readonly": {
595
- "type": "boolean",
596
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
597
- },
598
- "van-area/item-height": {
599
- "type": "number | string",
600
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
601
- },
602
- "van-area/columns-num": {
603
- "type": "number | string",
604
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
605
- },
606
- "van-area/visible-item-count": {
607
- "type": "number | string",
608
- "description": "可见的选项个数, 默认值: `6`"
609
- },
610
- "van-area/swipe-duration": {
611
- "type": "number | string",
612
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
613
- },
614
- "van-area/is-oversea-code": {
615
- "type": "() => boolean",
616
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
617
- },
618
618
  "van-checkbox/v-model (value)": {
619
619
  "type": "boolean",
620
620
  "description": "是否为选中状态, 默认值: `false`"
@@ -1151,18 +1151,6 @@
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
- },
1166
1154
  "van-dropdown-menu/active-color": {
1167
1155
  "type": "string",
1168
1156
  "description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
@@ -1219,6 +1207,18 @@
1219
1207
  "type": "string | () => Element",
1220
1208
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1221
1209
  },
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`"
@@ -1743,6 +1743,30 @@
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
+ },
1746
1770
  "van-list/v-model": {
1747
1771
  "type": "boolean",
1748
1772
  "description": "是否处于加载状态,加载过程中不触发`load`事件, 默认值: `false`"
@@ -1779,30 +1803,6 @@
1779
1803
  "type": "string",
1780
1804
  "description": "滚动触发加载的方向,可选值为`up`, 默认值: `down`"
1781
1805
  },
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": "标题, 默认值: `''`"
@@ -2879,6 +2879,54 @@
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
+ },
2882
2930
  "van-submit-bar/price": {
2883
2931
  "type": "number",
2884
2932
  "description": "价格(单位分), 默认值: -"
@@ -2935,54 +2983,6 @@
2935
2983
  "type": "boolean",
2936
2984
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
2937
2985
  },
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": "标识符,可以在事件参数中获取到, 默认值: -"