vant 2.12.54 → 2.13.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.
@@ -67,21 +67,93 @@
67
67
  "type": "string | () => Element",
68
68
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
69
69
  },
70
- "van-badge/content": {
71
- "type": "number | string",
72
- "description": "徽标内容, 默认值: -"
70
+ "van-address-edit/area-list": {
71
+ "type": "object",
72
+ "description": "地区列表, 默认值: -"
73
73
  },
74
- "van-badge/color": {
74
+ "van-address-edit/area-columns-placeholder": {
75
+ "type": "string[]",
76
+ "description": "地区选择列占位提示文字, 默认值: `[]`"
77
+ },
78
+ "van-address-edit/area-placeholder": {
75
79
  "type": "string",
76
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
80
+ "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
77
81
  },
78
- "van-badge/dot": {
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": {
79
91
  "type": "boolean",
80
- "description": "是否展示为小红点, 默认值: `false`"
92
+ "description": "是否显示邮政编码, 默认值: `false`"
81
93
  },
82
- "van-badge/max": {
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": {
83
127
  "type": "number | string",
84
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
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": "自定义校验函数, 默认值: -"
85
157
  },
86
158
  "van-area/value": {
87
159
  "type": "string",
@@ -135,6 +207,34 @@
135
207
  "type": "() => boolean",
136
208
  "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
137
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
+ },
138
238
  "van-button/type": {
139
239
  "type": "string",
140
240
  "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
@@ -223,77 +323,21 @@
223
323
  "type": "boolean",
224
324
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
225
325
  },
226
- "van-address-list/v-model": {
227
- "type": "string",
228
- "description": "当前选中地址的 id, 默认值: -"
229
- },
230
- "van-address-list/list": {
231
- "type": "Address[]",
232
- "description": "地址列表, 默认值: `[]`"
233
- },
234
- "van-address-list/disabled-list": {
235
- "type": "Address[]",
236
- "description": "不可配送地址列表, 默认值: `[]`"
326
+ "van-badge/content": {
327
+ "type": "number | string",
328
+ "description": "徽标内容, 默认值: -"
237
329
  },
238
- "van-address-list/disabled-text": {
330
+ "van-badge/color": {
239
331
  "type": "string",
240
- "description": "不可配送提示文案, 默认值: -"
332
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
241
333
  },
242
- "van-address-list/switchable": {
334
+ "van-badge/dot": {
243
335
  "type": "boolean",
244
- "description": "是否允许切换地址, 默认值: `true`"
245
- },
246
- "van-address-list/add-button-text": {
247
- "type": "string",
248
- "description": "底部按钮文字, 默认值: `新增地址`"
249
- },
250
- "van-address-list/default-tag-text": {
251
- "type": "string",
252
- "description": "默认地址标签文字, 默认值: -"
253
- },
254
- "van-card/thumb": {
255
- "type": "string",
256
- "description": "左侧图片 URL, 默认值: -"
257
- },
258
- "van-card/title": {
259
- "type": "string",
260
- "description": "标题, 默认值: -"
261
- },
262
- "van-card/desc": {
263
- "type": "string",
264
- "description": "描述, 默认值: -"
265
- },
266
- "van-card/tag": {
267
- "type": "string",
268
- "description": "图片角标, 默认值: -"
269
- },
270
- "van-card/num": {
271
- "type": "number | string",
272
- "description": "商品数量, 默认值: -"
273
- },
274
- "van-card/price": {
275
- "type": "number | string",
276
- "description": "商品价格, 默认值: -"
336
+ "description": "是否展示为小红点, 默认值: `false`"
277
337
  },
278
- "van-card/origin-price": {
338
+ "van-badge/max": {
279
339
  "type": "number | string",
280
- "description": "商品划线原价, 默认值: -"
281
- },
282
- "van-card/centered": {
283
- "type": "boolean",
284
- "description": "内容是否垂直居中, 默认值: `false`"
285
- },
286
- "van-card/currency": {
287
- "type": "string",
288
- "description": "货币符号, 默认值: `¥`"
289
- },
290
- "van-card/thumb-link": {
291
- "type": "string",
292
- "description": "点击左侧图片后跳转的链接地址, 默认值: -"
293
- },
294
- "van-card/lazy-load": {
295
- "type": "boolean",
296
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
340
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
297
341
  },
298
342
  "van-calendar/type": {
299
343
  "type": "string",
@@ -407,6 +451,50 @@
407
451
  "type": "boolean",
408
452
  "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
409
453
  },
454
+ "van-card/thumb": {
455
+ "type": "string",
456
+ "description": "左侧图片 URL, 默认值: -"
457
+ },
458
+ "van-card/title": {
459
+ "type": "string",
460
+ "description": "标题, 默认值: -"
461
+ },
462
+ "van-card/desc": {
463
+ "type": "string",
464
+ "description": "描述, 默认值: -"
465
+ },
466
+ "van-card/tag": {
467
+ "type": "string",
468
+ "description": "图片角标, 默认值: -"
469
+ },
470
+ "van-card/num": {
471
+ "type": "number | string",
472
+ "description": "商品数量, 默认值: -"
473
+ },
474
+ "van-card/price": {
475
+ "type": "number | string",
476
+ "description": "商品价格, 默认值: -"
477
+ },
478
+ "van-card/origin-price": {
479
+ "type": "number | string",
480
+ "description": "商品划线原价, 默认值: -"
481
+ },
482
+ "van-card/centered": {
483
+ "type": "boolean",
484
+ "description": "内容是否垂直居中, 默认值: `false`"
485
+ },
486
+ "van-card/currency": {
487
+ "type": "string",
488
+ "description": "货币符号, 默认值: `¥`"
489
+ },
490
+ "van-card/thumb-link": {
491
+ "type": "string",
492
+ "description": "点击左侧图片后跳转的链接地址, 默认值: -"
493
+ },
494
+ "van-card/lazy-load": {
495
+ "type": "boolean",
496
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
497
+ },
410
498
  "van-cascader/title": {
411
499
  "type": "string",
412
500
  "description": "顶部标题, 默认值: -"
@@ -439,94 +527,6 @@
439
527
  "type": "object",
440
528
  "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
441
529
  },
442
- "van-address-edit/area-list": {
443
- "type": "object",
444
- "description": "地区列表, 默认值: -"
445
- },
446
- "van-address-edit/area-columns-placeholder": {
447
- "type": "string[]",
448
- "description": "地区选择列占位提示文字, 默认值: `[]`"
449
- },
450
- "van-address-edit/area-placeholder": {
451
- "type": "string",
452
- "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
453
- },
454
- "van-address-edit/address-info": {
455
- "type": "AddressInfo",
456
- "description": "收货人信息初始值, 默认值: `{}`"
457
- },
458
- "van-address-edit/search-result": {
459
- "type": "SearchResult[]",
460
- "description": "详细地址搜索结果, 默认值: `[]`"
461
- },
462
- "van-address-edit/show-postal": {
463
- "type": "boolean",
464
- "description": "是否显示邮政编码, 默认值: `false`"
465
- },
466
- "van-address-edit/show-delete": {
467
- "type": "boolean",
468
- "description": "是否显示删除按钮, 默认值: `false`"
469
- },
470
- "van-address-edit/show-set-default": {
471
- "type": "boolean",
472
- "description": "是否显示默认地址栏, 默认值: `false`"
473
- },
474
- "van-address-edit/show-search-result": {
475
- "type": "boolean",
476
- "description": "是否显示搜索结果, 默认值: `false`"
477
- },
478
- "van-address-edit/show-area": {
479
- "type": "boolean",
480
- "description": "是否显示地区, 默认值: `true`"
481
- },
482
- "van-address-edit/show-detail": {
483
- "type": "boolean",
484
- "description": "是否显示详细地址, 默认值: `true`"
485
- },
486
- "van-address-edit/disable-area": {
487
- "type": "boolean",
488
- "description": "是否禁用地区选择, 默认值: `false`"
489
- },
490
- "van-address-edit/save-button-text": {
491
- "type": "string",
492
- "description": "保存按钮文字, 默认值: `保存`"
493
- },
494
- "van-address-edit/delete-button-text": {
495
- "type": "string",
496
- "description": "删除按钮文字, 默认值: `删除`"
497
- },
498
- "van-address-edit/detail-rows": {
499
- "type": "number | string",
500
- "description": "详细地址输入框行数, 默认值: `1`"
501
- },
502
- "van-address-edit/detail-maxlength": {
503
- "type": "number | string",
504
- "description": "详细地址最大长度, 默认值: `200`"
505
- },
506
- "van-address-edit/is-saving": {
507
- "type": "boolean",
508
- "description": "是否显示保存按钮加载动画, 默认值: `false`"
509
- },
510
- "van-address-edit/is-deleting": {
511
- "type": "boolean",
512
- "description": "是否显示删除按钮加载动画, 默认值: `false`"
513
- },
514
- "van-address-edit/tel-validator": {
515
- "type": "string => boolean",
516
- "description": "手机号格式校验函数, 默认值: -"
517
- },
518
- "van-address-edit/tel-maxlength": {
519
- "type": "number | string",
520
- "description": "手机号最大长度, 默认值: -"
521
- },
522
- "van-address-edit/postal-validator": {
523
- "type": "string => boolean",
524
- "description": "邮政编码格式校验函数, 默认值: -"
525
- },
526
- "van-address-edit/validator": {
527
- "type": "(key, val) => string",
528
- "description": "自定义校验函数, 默认值: -"
529
- },
530
530
  "van-cell/title": {
531
531
  "type": "number | string",
532
532
  "description": "左侧标题, 默认值: -"
@@ -1811,70 +1811,6 @@
1811
1811
  "type": "boolean",
1812
1812
  "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
1813
1813
  },
1814
- "van-number-keyboard/v-model (value)": {
1815
- "type": "string",
1816
- "description": "当前输入值, 默认值: -"
1817
- },
1818
- "van-number-keyboard/show": {
1819
- "type": "boolean",
1820
- "description": "是否显示键盘, 默认值: -"
1821
- },
1822
- "van-number-keyboard/title": {
1823
- "type": "string",
1824
- "description": "键盘标题, 默认值: -"
1825
- },
1826
- "van-number-keyboard/theme": {
1827
- "type": "string",
1828
- "description": "样式风格,可选值为 `custom`, 默认值: `default`"
1829
- },
1830
- "van-number-keyboard/maxlength": {
1831
- "type": "number | string",
1832
- "description": "输入值最大长度, 默认值: -"
1833
- },
1834
- "van-number-keyboard/transition": {
1835
- "type": "boolean",
1836
- "description": "是否开启过场动画, 默认值: `true`"
1837
- },
1838
- "van-number-keyboard/z-index": {
1839
- "type": "number | string",
1840
- "description": "键盘 z-index 层级, 默认值: `100`"
1841
- },
1842
- "van-number-keyboard/extra-key": {
1843
- "type": "string | string[]",
1844
- "description": "底部额外按键的内容, 默认值: `''`"
1845
- },
1846
- "van-number-keyboard/close-button-text": {
1847
- "type": "string",
1848
- "description": "关闭按钮文字,空则不展示, 默认值: -"
1849
- },
1850
- "van-number-keyboard/delete-button-text": {
1851
- "type": "string",
1852
- "description": "删除按钮文字,空则展示删除图标, 默认值: -"
1853
- },
1854
- "van-number-keyboard/close-button-loading": {
1855
- "type": "boolean",
1856
- "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效, 默认值: `false`"
1857
- },
1858
- "van-number-keyboard/show-delete-key": {
1859
- "type": "boolean",
1860
- "description": "是否展示删除图标, 默认值: `true`"
1861
- },
1862
- "van-number-keyboard/hide-on-click-outside": {
1863
- "type": "boolean",
1864
- "description": "点击外部时是否收起键盘, 默认值: `true`"
1865
- },
1866
- "van-number-keyboard/get-container": {
1867
- "type": "string | () => Element",
1868
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1869
- },
1870
- "van-number-keyboard/safe-area-inset-bottom": {
1871
- "type": "boolean",
1872
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
1873
- },
1874
- "van-number-keyboard/random-key-order": {
1875
- "type": "boolean",
1876
- "description": "是否将通过随机顺序展示按键, 默认值: `false`"
1877
- },
1878
1814
  "van-overlay/show": {
1879
1815
  "type": "boolean",
1880
1816
  "description": "是否展示遮罩层, 默认值: `false`"
@@ -1907,33 +1843,97 @@
1907
1843
  "type": "string",
1908
1844
  "description": "显示模式,可选值为 `simple`, 默认值: `multi`"
1909
1845
  },
1910
- "van-pagination/prev-text": {
1846
+ "van-pagination/prev-text": {
1847
+ "type": "string",
1848
+ "description": "上一页按钮文字, 默认值: `上一页`"
1849
+ },
1850
+ "van-pagination/next-text": {
1851
+ "type": "string",
1852
+ "description": "下一页按钮文字, 默认值: `下一页`"
1853
+ },
1854
+ "van-pagination/page-count": {
1855
+ "type": "number | string",
1856
+ "description": "总页数, 默认值: 根据页数计算"
1857
+ },
1858
+ "van-pagination/total-items": {
1859
+ "type": "number | string",
1860
+ "description": "总记录数, 默认值: `0`"
1861
+ },
1862
+ "van-pagination/items-per-page": {
1863
+ "type": "number | string",
1864
+ "description": "每页记录数, 默认值: `10`"
1865
+ },
1866
+ "van-pagination/show-page-size": {
1867
+ "type": "number | string",
1868
+ "description": "显示的页码个数, 默认值: `5`"
1869
+ },
1870
+ "van-pagination/force-ellipses": {
1871
+ "type": "boolean",
1872
+ "description": "是否显示省略号, 默认值: `false`"
1873
+ },
1874
+ "van-number-keyboard/v-model (value)": {
1875
+ "type": "string",
1876
+ "description": "当前输入值, 默认值: -"
1877
+ },
1878
+ "van-number-keyboard/show": {
1879
+ "type": "boolean",
1880
+ "description": "是否显示键盘, 默认值: -"
1881
+ },
1882
+ "van-number-keyboard/title": {
1883
+ "type": "string",
1884
+ "description": "键盘标题, 默认值: -"
1885
+ },
1886
+ "van-number-keyboard/theme": {
1887
+ "type": "string",
1888
+ "description": "样式风格,可选值为 `custom`, 默认值: `default`"
1889
+ },
1890
+ "van-number-keyboard/maxlength": {
1891
+ "type": "number | string",
1892
+ "description": "输入值最大长度, 默认值: -"
1893
+ },
1894
+ "van-number-keyboard/transition": {
1895
+ "type": "boolean",
1896
+ "description": "是否开启过场动画, 默认值: `true`"
1897
+ },
1898
+ "van-number-keyboard/z-index": {
1899
+ "type": "number | string",
1900
+ "description": "键盘 z-index 层级, 默认值: `100`"
1901
+ },
1902
+ "van-number-keyboard/extra-key": {
1903
+ "type": "string | string[]",
1904
+ "description": "底部额外按键的内容, 默认值: `''`"
1905
+ },
1906
+ "van-number-keyboard/close-button-text": {
1911
1907
  "type": "string",
1912
- "description": "上一页按钮文字, 默认值: `上一页`"
1908
+ "description": "关闭按钮文字,空则不展示, 默认值: -"
1913
1909
  },
1914
- "van-pagination/next-text": {
1910
+ "van-number-keyboard/delete-button-text": {
1915
1911
  "type": "string",
1916
- "description": "下一页按钮文字, 默认值: `下一页`"
1912
+ "description": "删除按钮文字,空则展示删除图标, 默认值: -"
1917
1913
  },
1918
- "van-pagination/page-count": {
1919
- "type": "number | string",
1920
- "description": "总页数, 默认值: 根据页数计算"
1914
+ "van-number-keyboard/close-button-loading": {
1915
+ "type": "boolean",
1916
+ "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效, 默认值: `false`"
1921
1917
  },
1922
- "van-pagination/total-items": {
1923
- "type": "number | string",
1924
- "description": "总记录数, 默认值: `0`"
1918
+ "van-number-keyboard/show-delete-key": {
1919
+ "type": "boolean",
1920
+ "description": "是否展示删除图标, 默认值: `true`"
1925
1921
  },
1926
- "van-pagination/items-per-page": {
1927
- "type": "number | string",
1928
- "description": "每页记录数, 默认值: `10`"
1922
+ "van-number-keyboard/hide-on-click-outside": {
1923
+ "type": "boolean",
1924
+ "description": "点击外部时是否收起键盘, 默认值: `true`"
1929
1925
  },
1930
- "van-pagination/show-page-size": {
1931
- "type": "number | string",
1932
- "description": "显示的页码个数, 默认值: `5`"
1926
+ "van-number-keyboard/get-container": {
1927
+ "type": "string | () => Element",
1928
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1933
1929
  },
1934
- "van-pagination/force-ellipses": {
1930
+ "van-number-keyboard/safe-area-inset-bottom": {
1935
1931
  "type": "boolean",
1936
- "description": "是否显示省略号, 默认值: `false`"
1932
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
1933
+ },
1934
+ "van-number-keyboard/random-key-order": {
1935
+ "type": "boolean",
1936
+ "description": "是否将通过随机顺序展示按键, 默认值: `false`"
1937
1937
  },
1938
1938
  "van-panel/title": {
1939
1939
  "type": "string",
@@ -2035,46 +2035,6 @@
2035
2035
  "type": "number | string",
2036
2036
  "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
2037
2037
  },
2038
- "van-popover/v-model": {
2039
- "type": "boolean",
2040
- "description": "是否展示气泡弹出层, 默认值: `false`"
2041
- },
2042
- "van-popover/actions": {
2043
- "type": "Action[]",
2044
- "description": "选项列表, 默认值: `[]`"
2045
- },
2046
- "van-popover/placement": {
2047
- "type": "string",
2048
- "description": "弹出位置, 默认值: `bottom`"
2049
- },
2050
- "van-popover/theme": {
2051
- "type": "string",
2052
- "description": "主题风格,可选值为 `dark`, 默认值: `light`"
2053
- },
2054
- "van-popover/trigger": {
2055
- "type": "-",
2056
- "description": "触发方式,可选值为 `click`, 默认值: undefined"
2057
- },
2058
- "van-popover/offset": {
2059
- "type": "[number, number]",
2060
- "description": "出现位置的偏移量, 默认值: `[0, 8]`"
2061
- },
2062
- "van-popover/overlay": {
2063
- "type": "boolean",
2064
- "description": "是否显示遮罩层, 默认值: `false`"
2065
- },
2066
- "van-popover/close-on-click-action": {
2067
- "type": "boolean",
2068
- "description": "是否在点击选项后关闭, 默认值: `true`"
2069
- },
2070
- "van-popover/close-on-click-outside": {
2071
- "type": "boolean",
2072
- "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
2073
- },
2074
- "van-popover/get-container": {
2075
- "type": "string | () => Element",
2076
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: `body`"
2077
- },
2078
2038
  "van-popup/v-model (value)": {
2079
2039
  "type": "boolean",
2080
2040
  "description": "是否显示弹出层, 默认值: `false`"
@@ -2147,6 +2107,46 @@
2147
2107
  "type": "boolean",
2148
2108
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
2149
2109
  },
2110
+ "van-popover/v-model": {
2111
+ "type": "boolean",
2112
+ "description": "是否展示气泡弹出层, 默认值: `false`"
2113
+ },
2114
+ "van-popover/actions": {
2115
+ "type": "Action[]",
2116
+ "description": "选项列表, 默认值: `[]`"
2117
+ },
2118
+ "van-popover/placement": {
2119
+ "type": "string",
2120
+ "description": "弹出位置, 默认值: `bottom`"
2121
+ },
2122
+ "van-popover/theme": {
2123
+ "type": "string",
2124
+ "description": "主题风格,可选值为 `dark`, 默认值: `light`"
2125
+ },
2126
+ "van-popover/trigger": {
2127
+ "type": "-",
2128
+ "description": "触发方式,可选值为 `click`, 默认值: undefined"
2129
+ },
2130
+ "van-popover/offset": {
2131
+ "type": "[number, number]",
2132
+ "description": "出现位置的偏移量, 默认值: `[0, 8]`"
2133
+ },
2134
+ "van-popover/overlay": {
2135
+ "type": "boolean",
2136
+ "description": "是否显示遮罩层, 默认值: `false`"
2137
+ },
2138
+ "van-popover/close-on-click-action": {
2139
+ "type": "boolean",
2140
+ "description": "是否在点击选项后关闭, 默认值: `true`"
2141
+ },
2142
+ "van-popover/close-on-click-outside": {
2143
+ "type": "boolean",
2144
+ "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
2145
+ },
2146
+ "van-popover/get-container": {
2147
+ "type": "string | () => Element",
2148
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: `body`"
2149
+ },
2150
2150
  "van-progress/percentage": {
2151
2151
  "type": "number | string",
2152
2152
  "description": "进度百分比, 默认值: `0`"
@@ -2759,6 +2759,18 @@
2759
2759
  "type": "boolean",
2760
2760
  "description": "是否允许输入的值为空, 默认值: `false`"
2761
2761
  },
2762
+ "van-sticky/offset-top": {
2763
+ "type": "number | string",
2764
+ "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2765
+ },
2766
+ "van-sticky/z-index": {
2767
+ "type": "number | string",
2768
+ "description": "吸顶时的 z-index, 默认值: `99`"
2769
+ },
2770
+ "van-sticky/container": {
2771
+ "type": "Element",
2772
+ "description": "容器对应的 HTML 节点, 默认值: -"
2773
+ },
2762
2774
  "van-steps/active": {
2763
2775
  "type": "number | string",
2764
2776
  "description": "当前步骤, 默认值: `0`"
@@ -2795,18 +2807,6 @@
2795
2807
  "type": "boolean",
2796
2808
  "description": "是否进行居中对齐,仅在竖向展示时有效, 默认值: `false`"
2797
2809
  },
2798
- "van-sticky/offset-top": {
2799
- "type": "number | string",
2800
- "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2801
- },
2802
- "van-sticky/z-index": {
2803
- "type": "number | string",
2804
- "description": "吸顶时的 z-index, 默认值: `99`"
2805
- },
2806
- "van-sticky/container": {
2807
- "type": "Element",
2808
- "description": "容器对应的 HTML 节点, 默认值: -"
2809
- },
2810
2810
  "van-submit-bar/price": {
2811
2811
  "type": "number",
2812
2812
  "description": "价格(单位分), 默认值: -"
@@ -2863,6 +2863,30 @@
2863
2863
  "type": "boolean",
2864
2864
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
2865
2865
  },
2866
+ "van-swipe-cell/name": {
2867
+ "type": "number | string",
2868
+ "description": "标识符,可以在事件参数中获取到, 默认值: -"
2869
+ },
2870
+ "van-swipe-cell/left-width": {
2871
+ "type": "number | string",
2872
+ "description": "指定左侧滑动区域宽度,单位为`px`, 默认值: `auto`"
2873
+ },
2874
+ "van-swipe-cell/right-width": {
2875
+ "type": "number | string",
2876
+ "description": "指定右侧滑动区域宽度,单位为`px`, 默认值: `auto`"
2877
+ },
2878
+ "van-swipe-cell/before-close": {
2879
+ "type": "Function",
2880
+ "description": "关闭前的回调函数, 默认值: -"
2881
+ },
2882
+ "van-swipe-cell/disabled": {
2883
+ "type": "boolean",
2884
+ "description": "是否禁用滑动, 默认值: `false`"
2885
+ },
2886
+ "van-swipe-cell/stop-propagation": {
2887
+ "type": "boolean",
2888
+ "description": "是否阻止滑动事件冒泡, 默认值: `false`"
2889
+ },
2866
2890
  "van-swipe/autoplay": {
2867
2891
  "type": "number | string",
2868
2892
  "description": "自动轮播间隔,单位为 ms, 默认值: -"
@@ -2911,62 +2935,6 @@
2911
2935
  "type": "string",
2912
2936
  "description": "指示器颜色, 默认值: `#1989fa`"
2913
2937
  },
2914
- "van-swipe-cell/name": {
2915
- "type": "number | string",
2916
- "description": "标识符,可以在事件参数中获取到, 默认值: -"
2917
- },
2918
- "van-swipe-cell/left-width": {
2919
- "type": "number | string",
2920
- "description": "指定左侧滑动区域宽度,单位为`px`, 默认值: `auto`"
2921
- },
2922
- "van-swipe-cell/right-width": {
2923
- "type": "number | string",
2924
- "description": "指定右侧滑动区域宽度,单位为`px`, 默认值: `auto`"
2925
- },
2926
- "van-swipe-cell/before-close": {
2927
- "type": "Function",
2928
- "description": "关闭前的回调函数, 默认值: -"
2929
- },
2930
- "van-swipe-cell/disabled": {
2931
- "type": "boolean",
2932
- "description": "是否禁用滑动, 默认值: `false`"
2933
- },
2934
- "van-swipe-cell/stop-propagation": {
2935
- "type": "boolean",
2936
- "description": "是否阻止滑动事件冒泡, 默认值: `false`"
2937
- },
2938
- "van-switch/v-model": {
2939
- "type": "any",
2940
- "description": "开关选中状态, 默认值: `false`"
2941
- },
2942
- "van-switch/loading": {
2943
- "type": "boolean",
2944
- "description": "是否为加载状态, 默认值: `false`"
2945
- },
2946
- "van-switch/disabled": {
2947
- "type": "boolean",
2948
- "description": "是否为禁用状态, 默认值: `false`"
2949
- },
2950
- "van-switch/size": {
2951
- "type": "number | string",
2952
- "description": "开关尺寸,默认单位为`px`, 默认值: `30px`"
2953
- },
2954
- "van-switch/active-color": {
2955
- "type": "string",
2956
- "description": "打开时的背景色, 默认值: `#1989fa`"
2957
- },
2958
- "van-switch/inactive-color": {
2959
- "type": "string",
2960
- "description": "关闭时的背景色, 默认值: `white`"
2961
- },
2962
- "van-switch/active-value": {
2963
- "type": "any",
2964
- "description": "打开时对应的值, 默认值: `true`"
2965
- },
2966
- "van-switch/inactive-value": {
2967
- "type": "any",
2968
- "description": "关闭时对应的值, 默认值: `false`"
2969
- },
2970
2938
  "van-switch-cell/v-model": {
2971
2939
  "type": "any",
2972
2940
  "description": "开关状态, 默认值: `false`"
@@ -3011,6 +2979,38 @@
3011
2979
  "type": "any",
3012
2980
  "description": "关闭时的值, 默认值: `false`"
3013
2981
  },
2982
+ "van-switch/v-model": {
2983
+ "type": "any",
2984
+ "description": "开关选中状态, 默认值: `false`"
2985
+ },
2986
+ "van-switch/loading": {
2987
+ "type": "boolean",
2988
+ "description": "是否为加载状态, 默认值: `false`"
2989
+ },
2990
+ "van-switch/disabled": {
2991
+ "type": "boolean",
2992
+ "description": "是否为禁用状态, 默认值: `false`"
2993
+ },
2994
+ "van-switch/size": {
2995
+ "type": "number | string",
2996
+ "description": "开关尺寸,默认单位为`px`, 默认值: `30px`"
2997
+ },
2998
+ "van-switch/active-color": {
2999
+ "type": "string",
3000
+ "description": "打开时的背景色, 默认值: `#1989fa`"
3001
+ },
3002
+ "van-switch/inactive-color": {
3003
+ "type": "string",
3004
+ "description": "关闭时的背景色, 默认值: `white`"
3005
+ },
3006
+ "van-switch/active-value": {
3007
+ "type": "any",
3008
+ "description": "打开时对应的值, 默认值: `true`"
3009
+ },
3010
+ "van-switch/inactive-value": {
3011
+ "type": "any",
3012
+ "description": "关闭时对应的值, 默认值: `false`"
3013
+ },
3014
3014
  "van-tab/v-model": {
3015
3015
  "type": "number | string",
3016
3016
  "description": "绑定当前选中标签的标识符, 默认值: `0`"