vant 3.3.3-beta.nuxt3 → 3.3.6

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.
@@ -253,33 +253,6 @@
253
253
  "type": "(key, val) => string",
254
254
  "description": "自定义校验函数, 默认值: -"
255
255
  },
256
- "van-badge/content": {
257
- "type": "number | string",
258
- "description": "徽标内容, 默认值: -"
259
- },
260
- "van-badge/color": {
261
- "type": "string",
262
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
263
- },
264
- "van-badge/dot": {
265
- "type": "boolean",
266
- "description": "是否展示为小红点, 默认值: `false`"
267
- },
268
- "van-badge/max": {
269
- "type": "number | string",
270
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
271
- },
272
- "van-badge/offset": {
273
- "type": "[number | string, number \\",
274
- "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
275
- "options": [
276
- "-"
277
- ]
278
- },
279
- "van-badge/show-zero": {
280
- "type": "boolean",
281
- "description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
282
- },
283
256
  "van-address-list/v-model": {
284
257
  "type": "string",
285
258
  "description": "当前选中地址的 id, 默认值: -"
@@ -360,6 +333,33 @@
360
333
  "type": "() => boolean",
361
334
  "description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
362
335
  },
336
+ "van-badge/content": {
337
+ "type": "number | string",
338
+ "description": "徽标内容, 默认值: -"
339
+ },
340
+ "van-badge/color": {
341
+ "type": "string",
342
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
343
+ },
344
+ "van-badge/dot": {
345
+ "type": "boolean",
346
+ "description": "是否展示为小红点, 默认值: `false`"
347
+ },
348
+ "van-badge/max": {
349
+ "type": "number | string",
350
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
351
+ },
352
+ "van-badge/offset": {
353
+ "type": "[number | string, number \\",
354
+ "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
355
+ "options": [
356
+ "-"
357
+ ]
358
+ },
359
+ "van-badge/show-zero": {
360
+ "type": "boolean",
361
+ "description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
362
+ },
363
363
  "van-button/type": {
364
364
  "type": "string",
365
365
  "description": "类型,可选值为 `primary` `success` `warning` `danger`, 默认值: `default`"
@@ -1214,18 +1214,6 @@
1214
1214
  "type": "number | string",
1215
1215
  "description": "可选的最大分钟, 默认值: `59`"
1216
1216
  },
1217
- "van-divider/dashed": {
1218
- "type": "boolean",
1219
- "description": "是否使用虚线, 默认值: `false`"
1220
- },
1221
- "van-divider/hairline": {
1222
- "type": "boolean",
1223
- "description": "是否使用 0.5px 线, 默认值: `true`"
1224
- },
1225
- "van-divider/content-position": {
1226
- "type": "string",
1227
- "description": "内容位置,可选值为 `left` `right`, 默认值: `center`"
1228
- },
1229
1217
  "van-dialog/v-model:show": {
1230
1218
  "type": "boolean",
1231
1219
  "description": "是否显示弹窗, 默认值: -"
@@ -1318,17 +1306,17 @@
1318
1306
  "type": "string | Element",
1319
1307
  "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
1320
1308
  },
1321
- "van-empty/image": {
1322
- "type": "string",
1323
- "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
1309
+ "van-divider/dashed": {
1310
+ "type": "boolean",
1311
+ "description": "是否使用虚线, 默认值: `false`"
1324
1312
  },
1325
- "van-empty/image-size": {
1326
- "type": "number | string",
1327
- "description": "图片大小,默认单位为 `px`, 默认值: -"
1313
+ "van-divider/hairline": {
1314
+ "type": "boolean",
1315
+ "description": "是否使用 0.5px 线, 默认值: `true`"
1328
1316
  },
1329
- "van-empty/description": {
1317
+ "van-divider/content-position": {
1330
1318
  "type": "string",
1331
- "description": "图片下方的描述文字, 默认值: -"
1319
+ "description": "内容位置,可选值为 `left` `right`, 默认值: `center`"
1332
1320
  },
1333
1321
  "van-dropdown-menu/active-color": {
1334
1322
  "type": "string",
@@ -1389,6 +1377,18 @@
1389
1377
  "type": "string | Element",
1390
1378
  "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
1391
1379
  },
1380
+ "van-empty/image": {
1381
+ "type": "string",
1382
+ "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
1383
+ },
1384
+ "van-empty/image-size": {
1385
+ "type": "number | string",
1386
+ "description": "图片大小,默认单位为 `px`, 默认值: -"
1387
+ },
1388
+ "van-empty/description": {
1389
+ "type": "string",
1390
+ "description": "图片下方的描述文字, 默认值: -"
1391
+ },
1392
1392
  "van-field/v-model": {
1393
1393
  "type": "number | string",
1394
1394
  "description": "当前输入的值, 默认值: -"
@@ -1692,33 +1692,61 @@
1692
1692
  "type": "string",
1693
1693
  "description": "根节点对应的 HTML 标签名, 默认值: `i`"
1694
1694
  },
1695
- "van-index-bar/index-list": {
1696
- "type": "string[] | number[]",
1697
- "description": "索引字符列表, 默认值: `A-Z`"
1695
+ "van-image/src": {
1696
+ "type": "string",
1697
+ "description": "图片链接, 默认值: -"
1698
1698
  },
1699
- "van-index-bar/z-index": {
1699
+ "van-image/fit": {
1700
+ "type": "string",
1701
+ "description": "图片填充模式, 默认值: `fill`"
1702
+ },
1703
+ "van-image/alt": {
1704
+ "type": "string",
1705
+ "description": "替代文本, 默认值: -"
1706
+ },
1707
+ "van-image/width": {
1700
1708
  "type": "number | string",
1701
- "description": "z-index 层级, 默认值: `1`"
1709
+ "description": "宽度,默认单位为 `px`, 默认值: -"
1702
1710
  },
1703
- "van-index-bar/sticky": {
1711
+ "van-image/height": {
1712
+ "type": "number | string",
1713
+ "description": "高度,默认单位为 `px`, 默认值: -"
1714
+ },
1715
+ "van-image/radius": {
1716
+ "type": "number | string",
1717
+ "description": "圆角大小,默认单位为 `px`, 默认值: `0`"
1718
+ },
1719
+ "van-image/round": {
1704
1720
  "type": "boolean",
1705
- "description": "是否开启锚点自动吸顶, 默认值: `true`"
1721
+ "description": "是否显示为圆形, 默认值: `false`"
1706
1722
  },
1707
- "van-index-bar/sticky-offset-top": {
1708
- "type": "number",
1709
- "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
1723
+ "van-image/lazy-load": {
1724
+ "type": "boolean",
1725
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
1710
1726
  },
1711
- "van-index-bar/highlight-color": {
1727
+ "van-image/show-error": {
1728
+ "type": "boolean",
1729
+ "description": "是否展示图片加载失败提示, 默认值: `true`"
1730
+ },
1731
+ "van-image/show-loading": {
1732
+ "type": "boolean",
1733
+ "description": "是否展示图片加载中提示, 默认值: `true`"
1734
+ },
1735
+ "van-image/error-icon": {
1712
1736
  "type": "string",
1713
- "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
1737
+ "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
1714
1738
  },
1715
- "van-index-bar/teleport": {
1716
- "type": "string | Element",
1717
- "description": "指定索引栏挂载的节点, 默认值: -"
1739
+ "van-image/loading-icon": {
1740
+ "type": "string",
1741
+ "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
1718
1742
  },
1719
- "van-index-anchor/index": {
1743
+ "van-image/icon-size": {
1720
1744
  "type": "number | string",
1721
- "description": "索引字符, 默认值: -"
1745
+ "description": "加载图标和失败图标的大小, 默认值: `32px`"
1746
+ },
1747
+ "van-image/icon-prefix": {
1748
+ "type": "string",
1749
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1722
1750
  },
1723
1751
  "van-image-preview/v-model:show": {
1724
1752
  "type": "boolean",
@@ -1795,85 +1823,33 @@
1795
1823
  "type": "string | Element",
1796
1824
  "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
1797
1825
  },
1798
- "van-image/src": {
1799
- "type": "string",
1800
- "description": "图片链接, 默认值: -"
1801
- },
1802
- "van-image/fit": {
1803
- "type": "string",
1804
- "description": "图片填充模式, 默认值: `fill`"
1805
- },
1806
- "van-image/alt": {
1807
- "type": "string",
1808
- "description": "替代文本, 默认值: -"
1809
- },
1810
- "van-image/width": {
1811
- "type": "number | string",
1812
- "description": "宽度,默认单位为 `px`, 默认值: -"
1813
- },
1814
- "van-image/height": {
1815
- "type": "number | string",
1816
- "description": "高度,默认单位为 `px`, 默认值: -"
1826
+ "van-index-bar/index-list": {
1827
+ "type": "string[] | number[]",
1828
+ "description": "索引字符列表, 默认值: `A-Z`"
1817
1829
  },
1818
- "van-image/radius": {
1830
+ "van-index-bar/z-index": {
1819
1831
  "type": "number | string",
1820
- "description": "圆角大小,默认单位为 `px`, 默认值: `0`"
1821
- },
1822
- "van-image/round": {
1823
- "type": "boolean",
1824
- "description": "是否显示为圆形, 默认值: `false`"
1825
- },
1826
- "van-image/lazy-load": {
1827
- "type": "boolean",
1828
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
1829
- },
1830
- "van-image/show-error": {
1831
- "type": "boolean",
1832
- "description": "是否展示图片加载失败提示, 默认值: `true`"
1832
+ "description": "z-index 层级, 默认值: `1`"
1833
1833
  },
1834
- "van-image/show-loading": {
1834
+ "van-index-bar/sticky": {
1835
1835
  "type": "boolean",
1836
- "description": "是否展示图片加载中提示, 默认值: `true`"
1837
- },
1838
- "van-image/error-icon": {
1839
- "type": "string",
1840
- "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
1841
- },
1842
- "van-image/loading-icon": {
1843
- "type": "string",
1844
- "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
1845
- },
1846
- "van-image/icon-size": {
1847
- "type": "number | string",
1848
- "description": "加载图标和失败图标的大小, 默认值: `32px`"
1849
- },
1850
- "van-image/icon-prefix": {
1851
- "type": "string",
1852
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1836
+ "description": "是否开启锚点自动吸顶, 默认值: `true`"
1853
1837
  },
1854
- "van-loading/color": {
1855
- "type": "string",
1856
- "description": "颜色, 默认值: `#c9c9c9`"
1838
+ "van-index-bar/sticky-offset-top": {
1839
+ "type": "number",
1840
+ "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
1857
1841
  },
1858
- "van-loading/type": {
1842
+ "van-index-bar/highlight-color": {
1859
1843
  "type": "string",
1860
- "description": "类型,可选值为 `spinner`, 默认值: `circular`"
1844
+ "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
1861
1845
  },
1862
- "van-loading/size": {
1863
- "type": "number | string",
1864
- "description": "加载图标大小,默认单位为 `px`, 默认值: `30px`"
1846
+ "van-index-bar/teleport": {
1847
+ "type": "string | Element",
1848
+ "description": "指定索引栏挂载的节点, 默认值: -"
1865
1849
  },
1866
- "van-loading/text-size": {
1850
+ "van-index-anchor/index": {
1867
1851
  "type": "number | string",
1868
- "description": "文字大小,默认单位为 `px`, 默认值: `14px`"
1869
- },
1870
- "van-loading/text-color": {
1871
- "type": "string",
1872
- "description": "文字颜色, 默认值: `#c9c9c9`"
1873
- },
1874
- "van-loading/vertical": {
1875
- "type": "boolean",
1876
- "description": "是否垂直排列图标和文字内容, 默认值: `false`"
1852
+ "description": "索引字符, 默认值: -"
1877
1853
  },
1878
1854
  "van-list/v-model:loading": {
1879
1855
  "type": "boolean",
@@ -1911,73 +1887,29 @@
1911
1887
  "type": "string",
1912
1888
  "description": "滚动触发加载的方向,可选值为 `up`, 默认值: `down`"
1913
1889
  },
1914
- "van-number-keyboard/v-model": {
1890
+ "van-loading/color": {
1915
1891
  "type": "string",
1916
- "description": "当前输入值, 默认值: -"
1917
- },
1918
- "van-number-keyboard/show": {
1919
- "type": "boolean",
1920
- "description": "是否显示键盘, 默认值: -"
1892
+ "description": "颜色, 默认值: `#c9c9c9`"
1921
1893
  },
1922
- "van-number-keyboard/title": {
1894
+ "van-loading/type": {
1923
1895
  "type": "string",
1924
- "description": "键盘标题, 默认值: -"
1896
+ "description": "类型,可选值为 `spinner`, 默认值: `circular`"
1925
1897
  },
1926
- "van-number-keyboard/theme": {
1927
- "type": "string",
1928
- "description": "样式风格,可选值为 `custom`, 默认值: `default`"
1929
- },
1930
- "van-number-keyboard/maxlength": {
1898
+ "van-loading/size": {
1931
1899
  "type": "number | string",
1932
- "description": "输入值最大长度, 默认值: `Infinity`"
1933
- },
1934
- "van-number-keyboard/transition": {
1935
- "type": "boolean",
1936
- "description": "是否开启过场动画, 默认值: `true`"
1900
+ "description": "加载图标大小,默认单位为 `px`, 默认值: `30px`"
1937
1901
  },
1938
- "van-number-keyboard/z-index": {
1902
+ "van-loading/text-size": {
1939
1903
  "type": "number | string",
1940
- "description": "键盘 z-index 层级, 默认值: `100`"
1941
- },
1942
- "van-number-keyboard/extra-key": {
1943
- "type": "string | string[]",
1944
- "description": "底部额外按键的内容, 默认值: `''`"
1945
- },
1946
- "van-number-keyboard/close-button-text": {
1947
- "type": "string",
1948
- "description": "关闭按钮文字,空则不展示, 默认值: -"
1904
+ "description": "文字大小,默认单位为 `px`, 默认值: `14px`"
1949
1905
  },
1950
- "van-number-keyboard/delete-button-text": {
1906
+ "van-loading/text-color": {
1951
1907
  "type": "string",
1952
- "description": "删除按钮文字,空则展示删除图标, 默认值: -"
1953
- },
1954
- "van-number-keyboard/close-button-loading": {
1955
- "type": "boolean",
1956
- "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效, 默认值: `false`"
1957
- },
1958
- "van-number-keyboard/show-delete-key": {
1959
- "type": "boolean",
1960
- "description": "是否展示删除图标, 默认值: `true`"
1961
- },
1962
- "van-number-keyboard/blur-on-close": {
1963
- "type": "boolean",
1964
- "description": "是否在点击关闭按钮时触发 blur 事件, 默认值: `true`"
1965
- },
1966
- "van-number-keyboard/hide-on-click-outside": {
1967
- "type": "boolean",
1968
- "description": "是否在点击外部时收起键盘, 默认值: `true`"
1969
- },
1970
- "van-number-keyboard/teleport": {
1971
- "type": "string | Element",
1972
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
1973
- },
1974
- "van-number-keyboard/safe-area-inset-bottom": {
1975
- "type": "boolean",
1976
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
1908
+ "description": "文字颜色, 默认值: `#c9c9c9`"
1977
1909
  },
1978
- "van-number-keyboard/random-key-order": {
1910
+ "van-loading/vertical": {
1979
1911
  "type": "boolean",
1980
- "description": "是否将通过随机顺序展示按键, 默认值: `false`"
1912
+ "description": "是否垂直排列图标和文字内容, 默认值: `false`"
1981
1913
  },
1982
1914
  "van-nav-bar/title": {
1983
1915
  "type": "string",
@@ -2051,6 +1983,74 @@
2051
1983
  "type": "boolean",
2052
1984
  "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
2053
1985
  },
1986
+ "van-number-keyboard/v-model": {
1987
+ "type": "string",
1988
+ "description": "当前输入值, 默认值: -"
1989
+ },
1990
+ "van-number-keyboard/show": {
1991
+ "type": "boolean",
1992
+ "description": "是否显示键盘, 默认值: -"
1993
+ },
1994
+ "van-number-keyboard/title": {
1995
+ "type": "string",
1996
+ "description": "键盘标题, 默认值: -"
1997
+ },
1998
+ "van-number-keyboard/theme": {
1999
+ "type": "string",
2000
+ "description": "样式风格,可选值为 `custom`, 默认值: `default`"
2001
+ },
2002
+ "van-number-keyboard/maxlength": {
2003
+ "type": "number | string",
2004
+ "description": "输入值最大长度, 默认值: `Infinity`"
2005
+ },
2006
+ "van-number-keyboard/transition": {
2007
+ "type": "boolean",
2008
+ "description": "是否开启过场动画, 默认值: `true`"
2009
+ },
2010
+ "van-number-keyboard/z-index": {
2011
+ "type": "number | string",
2012
+ "description": "键盘 z-index 层级, 默认值: `100`"
2013
+ },
2014
+ "van-number-keyboard/extra-key": {
2015
+ "type": "string | string[]",
2016
+ "description": "底部额外按键的内容, 默认值: `''`"
2017
+ },
2018
+ "van-number-keyboard/close-button-text": {
2019
+ "type": "string",
2020
+ "description": "关闭按钮文字,空则不展示, 默认值: -"
2021
+ },
2022
+ "van-number-keyboard/delete-button-text": {
2023
+ "type": "string",
2024
+ "description": "删除按钮文字,空则展示删除图标, 默认值: -"
2025
+ },
2026
+ "van-number-keyboard/close-button-loading": {
2027
+ "type": "boolean",
2028
+ "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效, 默认值: `false`"
2029
+ },
2030
+ "van-number-keyboard/show-delete-key": {
2031
+ "type": "boolean",
2032
+ "description": "是否展示删除图标, 默认值: `true`"
2033
+ },
2034
+ "van-number-keyboard/blur-on-close": {
2035
+ "type": "boolean",
2036
+ "description": "是否在点击关闭按钮时触发 blur 事件, 默认值: `true`"
2037
+ },
2038
+ "van-number-keyboard/hide-on-click-outside": {
2039
+ "type": "boolean",
2040
+ "description": "是否在点击外部时收起键盘, 默认值: `true`"
2041
+ },
2042
+ "van-number-keyboard/teleport": {
2043
+ "type": "string | Element",
2044
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
2045
+ },
2046
+ "van-number-keyboard/safe-area-inset-bottom": {
2047
+ "type": "boolean",
2048
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
2049
+ },
2050
+ "van-number-keyboard/random-key-order": {
2051
+ "type": "boolean",
2052
+ "description": "是否将通过随机顺序展示按键, 默认值: `false`"
2053
+ },
2054
2054
  "van-overlay/show": {
2055
2055
  "type": "boolean",
2056
2056
  "description": "是否展示遮罩层, 默认值: `false`"
@@ -2111,6 +2111,34 @@
2111
2111
  "type": "boolean",
2112
2112
  "description": "是否显示省略号, 默认值: `false`"
2113
2113
  },
2114
+ "van-password-input/value": {
2115
+ "type": "string",
2116
+ "description": "密码值, 默认值: `''`"
2117
+ },
2118
+ "van-password-input/info": {
2119
+ "type": "string",
2120
+ "description": "输入框下方文字提示, 默认值: -"
2121
+ },
2122
+ "van-password-input/error-info": {
2123
+ "type": "string",
2124
+ "description": "输入框下方错误提示, 默认值: -"
2125
+ },
2126
+ "van-password-input/length": {
2127
+ "type": "number | string",
2128
+ "description": "密码最大长度, 默认值: `6`"
2129
+ },
2130
+ "van-password-input/gutter": {
2131
+ "type": "number | string",
2132
+ "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
2133
+ },
2134
+ "van-password-input/mask": {
2135
+ "type": "boolean",
2136
+ "description": "是否隐藏密码内容, 默认值: `true`"
2137
+ },
2138
+ "van-password-input/focused": {
2139
+ "type": "boolean",
2140
+ "description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
2141
+ },
2114
2142
  "van-picker/columns": {
2115
2143
  "type": "Column[]",
2116
2144
  "description": "对象数组,配置每一列显示的数据, 默认值: `[]`"
@@ -2163,34 +2191,6 @@
2163
2191
  "type": "number | string",
2164
2192
  "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
2165
2193
  },
2166
- "van-password-input/value": {
2167
- "type": "string",
2168
- "description": "密码值, 默认值: `''`"
2169
- },
2170
- "van-password-input/info": {
2171
- "type": "string",
2172
- "description": "输入框下方文字提示, 默认值: -"
2173
- },
2174
- "van-password-input/error-info": {
2175
- "type": "string",
2176
- "description": "输入框下方错误提示, 默认值: -"
2177
- },
2178
- "van-password-input/length": {
2179
- "type": "number | string",
2180
- "description": "密码最大长度, 默认值: `6`"
2181
- },
2182
- "van-password-input/gutter": {
2183
- "type": "number | string",
2184
- "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
2185
- },
2186
- "van-password-input/mask": {
2187
- "type": "boolean",
2188
- "description": "是否隐藏密码内容, 默认值: `true`"
2189
- },
2190
- "van-password-input/focused": {
2191
- "type": "boolean",
2192
- "description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
2193
- },
2194
2194
  "van-popover/v-model:show": {
2195
2195
  "type": "boolean",
2196
2196
  "description": "是否展示气泡弹出层, 默认值: `false`"
@@ -2258,42 +2258,6 @@
2258
2258
  "type": "string",
2259
2259
  "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
2260
2260
  },
2261
- "van-progress/percentage": {
2262
- "type": "number | string",
2263
- "description": "进度百分比, 默认值: `0`"
2264
- },
2265
- "van-progress/stroke-width": {
2266
- "type": "number | string",
2267
- "description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
2268
- },
2269
- "van-progress/color": {
2270
- "type": "string",
2271
- "description": "进度条颜色, 默认值: `#1989fa`"
2272
- },
2273
- "van-progress/track-color": {
2274
- "type": "string",
2275
- "description": "轨道颜色, 默认值: `#e5e5e5`"
2276
- },
2277
- "van-progress/pivot-text": {
2278
- "type": "string",
2279
- "description": "进度文字内容, 默认值: 百分比"
2280
- },
2281
- "van-progress/pivot-color": {
2282
- "type": "string",
2283
- "description": "进度文字背景色, 默认值: 同进度条颜色"
2284
- },
2285
- "van-progress/text-color": {
2286
- "type": "string",
2287
- "description": "进度文字颜色, 默认值: `white`"
2288
- },
2289
- "van-progress/inactive": {
2290
- "type": "boolean",
2291
- "description": "是否置灰, 默认值: `false`"
2292
- },
2293
- "van-progress/show-pivot": {
2294
- "type": "boolean",
2295
- "description": "是否显示进度文字, 默认值: `true`"
2296
- },
2297
2261
  "van-popup/v-model:show": {
2298
2262
  "type": "boolean",
2299
2263
  "description": "是否显示弹出层, 默认值: `false`"
@@ -2377,141 +2341,81 @@
2377
2341
  "type": "boolean",
2378
2342
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
2379
2343
  },
2380
- "van-pull-refresh/v-model": {
2381
- "type": "boolean",
2382
- "description": "是否处于加载中状态, 默认值: -"
2383
- },
2384
- "van-pull-refresh/pulling-text": {
2385
- "type": "string",
2386
- "description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
2387
- },
2388
- "van-pull-refresh/loosing-text": {
2389
- "type": "string",
2390
- "description": "释放过程提示文案, 默认值: `释放即可刷新...`"
2391
- },
2392
- "van-pull-refresh/loading-text": {
2393
- "type": "string",
2394
- "description": "加载过程提示文案, 默认值: `加载中...`"
2395
- },
2396
- "van-pull-refresh/success-text": {
2397
- "type": "string",
2398
- "description": "刷新成功提示文案, 默认值: -"
2399
- },
2400
- "van-pull-refresh/success-duration": {
2401
- "type": "number | string",
2402
- "description": "刷新成功提示展示时长(ms), 默认值: `500`"
2403
- },
2404
- "van-pull-refresh/animation-duration": {
2405
- "type": "number | string",
2406
- "description": "动画时长, 默认值: `300`"
2407
- },
2408
- "van-pull-refresh/head-height": {
2409
- "type": "number | string",
2410
- "description": "顶部内容高度, 默认值: `50`"
2411
- },
2412
- "van-pull-refresh/pull-distance": {
2344
+ "van-progress/percentage": {
2413
2345
  "type": "number | string",
2414
- "description": "触发下拉刷新的距离, 默认值: `head-height` 一致"
2415
- },
2416
- "van-pull-refresh/disabled": {
2417
- "type": "boolean",
2418
- "description": "是否禁用下拉刷新, 默认值: `false`"
2346
+ "description": "进度百分比, 默认值: `0`"
2419
2347
  },
2420
- "van-search/v-model": {
2348
+ "van-progress/stroke-width": {
2421
2349
  "type": "number | string",
2422
- "description": "当前输入的值, 默认值: -"
2423
- },
2424
- "van-search/label": {
2425
- "type": "string",
2426
- "description": "搜索框左侧文本, 默认值: -"
2427
- },
2428
- "van-search/name": {
2429
- "type": "string",
2430
- "description": "名称,作为提交表单时的标识符, 默认值: -"
2431
- },
2432
- "van-search/shape": {
2433
- "type": "string",
2434
- "description": "搜索框形状,可选值为 `round`, 默认值: `square`"
2350
+ "description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
2435
2351
  },
2436
- "van-search/id": {
2352
+ "van-progress/color": {
2437
2353
  "type": "string",
2438
- "description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: `van-search-n-input`"
2354
+ "description": "进度条颜色, 默认值: `#1989fa`"
2439
2355
  },
2440
- "van-search/background": {
2356
+ "van-progress/track-color": {
2441
2357
  "type": "string",
2442
- "description": "搜索框外部背景色, 默认值: `#f2f2f2`"
2443
- },
2444
- "van-search/maxlength": {
2445
- "type": "number | string",
2446
- "description": "输入的最大字符数, 默认值: -"
2358
+ "description": "轨道颜色, 默认值: `#e5e5e5`"
2447
2359
  },
2448
- "van-search/placeholder": {
2360
+ "van-progress/pivot-text": {
2449
2361
  "type": "string",
2450
- "description": "占位提示文字, 默认值: -"
2451
- },
2452
- "van-search/clearable": {
2453
- "type": "boolean",
2454
- "description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
2362
+ "description": "进度文字内容, 默认值: 百分比"
2455
2363
  },
2456
- "van-search/clear-icon": {
2364
+ "van-progress/pivot-color": {
2457
2365
  "type": "string",
2458
- "description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
2366
+ "description": "进度文字背景色, 默认值: 同进度条颜色"
2459
2367
  },
2460
- "van-search/clear-trigger": {
2368
+ "van-progress/text-color": {
2461
2369
  "type": "string",
2462
- "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
2463
- },
2464
- "van-search/autofocus": {
2465
- "type": "boolean",
2466
- "description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
2467
- },
2468
- "van-search/show-action": {
2469
- "type": "boolean",
2470
- "description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
2471
- },
2472
- "van-search/action-text": {
2473
- "type": "boolean",
2474
- "description": "取消按钮文字, 默认值: `取消`"
2475
- },
2476
- "van-search/disabled": {
2477
- "type": "boolean",
2478
- "description": "是否禁用输入框, 默认值: `false`"
2370
+ "description": "进度文字颜色, 默认值: `white`"
2479
2371
  },
2480
- "van-search/readonly": {
2372
+ "van-progress/inactive": {
2481
2373
  "type": "boolean",
2482
- "description": "是否将输入框设为只读状态,只读状态下无法输入内容, 默认值: `false`"
2374
+ "description": "是否置灰, 默认值: `false`"
2483
2375
  },
2484
- "van-search/error": {
2376
+ "van-progress/show-pivot": {
2485
2377
  "type": "boolean",
2486
- "description": "是否将输入内容标红, 默认值: `false`"
2487
- },
2488
- "van-search/error-message": {
2489
- "type": "string",
2490
- "description": "底部错误提示文案,为空时不展示, 默认值: -"
2378
+ "description": "是否显示进度文字, 默认值: `true`"
2491
2379
  },
2492
- "van-search/formatter": {
2493
- "type": "(val: string) => string",
2494
- "description": "输入内容格式化函数, 默认值: -"
2380
+ "van-pull-refresh/v-model": {
2381
+ "type": "boolean",
2382
+ "description": "是否处于加载中状态, 默认值: -"
2495
2383
  },
2496
- "van-search/format-trigger": {
2384
+ "van-pull-refresh/pulling-text": {
2497
2385
  "type": "string",
2498
- "description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
2386
+ "description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
2499
2387
  },
2500
- "van-search/input-align": {
2388
+ "van-pull-refresh/loosing-text": {
2501
2389
  "type": "string",
2502
- "description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
2390
+ "description": "释放过程提示文案, 默认值: `释放即可刷新...`"
2503
2391
  },
2504
- "van-search/left-icon": {
2392
+ "van-pull-refresh/loading-text": {
2505
2393
  "type": "string",
2506
- "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
2394
+ "description": "加载过程提示文案, 默认值: `加载中...`"
2507
2395
  },
2508
- "van-search/right-icon": {
2396
+ "van-pull-refresh/success-text": {
2509
2397
  "type": "string",
2510
- "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
2398
+ "description": "刷新成功提示文案, 默认值: -"
2511
2399
  },
2512
- "van-search/autocomplete": {
2513
- "type": "string",
2514
- "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
2400
+ "van-pull-refresh/success-duration": {
2401
+ "type": "number | string",
2402
+ "description": "刷新成功提示展示时长(ms), 默认值: `500`"
2403
+ },
2404
+ "van-pull-refresh/animation-duration": {
2405
+ "type": "number | string",
2406
+ "description": "动画时长, 默认值: `300`"
2407
+ },
2408
+ "van-pull-refresh/head-height": {
2409
+ "type": "number | string",
2410
+ "description": "顶部内容高度, 默认值: `50`"
2411
+ },
2412
+ "van-pull-refresh/pull-distance": {
2413
+ "type": "number | string",
2414
+ "description": "触发下拉刷新的距离, 默认值: 与 `head-height` 一致"
2415
+ },
2416
+ "van-pull-refresh/disabled": {
2417
+ "type": "boolean",
2418
+ "description": "是否禁用下拉刷新, 默认值: `false`"
2515
2419
  },
2516
2420
  "van-radio/name": {
2517
2421
  "type": "any",
@@ -2617,6 +2521,102 @@
2617
2521
  "type": "boolean",
2618
2522
  "description": "是否可以通过滑动手势选择评分, 默认值: `true`"
2619
2523
  },
2524
+ "van-search/v-model": {
2525
+ "type": "number | string",
2526
+ "description": "当前输入的值, 默认值: -"
2527
+ },
2528
+ "van-search/label": {
2529
+ "type": "string",
2530
+ "description": "搜索框左侧文本, 默认值: -"
2531
+ },
2532
+ "van-search/name": {
2533
+ "type": "string",
2534
+ "description": "名称,作为提交表单时的标识符, 默认值: -"
2535
+ },
2536
+ "van-search/shape": {
2537
+ "type": "string",
2538
+ "description": "搜索框形状,可选值为 `round`, 默认值: `square`"
2539
+ },
2540
+ "van-search/id": {
2541
+ "type": "string",
2542
+ "description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: `van-search-n-input`"
2543
+ },
2544
+ "van-search/background": {
2545
+ "type": "string",
2546
+ "description": "搜索框外部背景色, 默认值: `#f2f2f2`"
2547
+ },
2548
+ "van-search/maxlength": {
2549
+ "type": "number | string",
2550
+ "description": "输入的最大字符数, 默认值: -"
2551
+ },
2552
+ "van-search/placeholder": {
2553
+ "type": "string",
2554
+ "description": "占位提示文字, 默认值: -"
2555
+ },
2556
+ "van-search/clearable": {
2557
+ "type": "boolean",
2558
+ "description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
2559
+ },
2560
+ "van-search/clear-icon": {
2561
+ "type": "string",
2562
+ "description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
2563
+ },
2564
+ "van-search/clear-trigger": {
2565
+ "type": "string",
2566
+ "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
2567
+ },
2568
+ "van-search/autofocus": {
2569
+ "type": "boolean",
2570
+ "description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
2571
+ },
2572
+ "van-search/show-action": {
2573
+ "type": "boolean",
2574
+ "description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
2575
+ },
2576
+ "van-search/action-text": {
2577
+ "type": "boolean",
2578
+ "description": "取消按钮文字, 默认值: `取消`"
2579
+ },
2580
+ "van-search/disabled": {
2581
+ "type": "boolean",
2582
+ "description": "是否禁用输入框, 默认值: `false`"
2583
+ },
2584
+ "van-search/readonly": {
2585
+ "type": "boolean",
2586
+ "description": "是否将输入框设为只读状态,只读状态下无法输入内容, 默认值: `false`"
2587
+ },
2588
+ "van-search/error": {
2589
+ "type": "boolean",
2590
+ "description": "是否将输入内容标红, 默认值: `false`"
2591
+ },
2592
+ "van-search/error-message": {
2593
+ "type": "string",
2594
+ "description": "底部错误提示文案,为空时不展示, 默认值: -"
2595
+ },
2596
+ "van-search/formatter": {
2597
+ "type": "(val: string) => string",
2598
+ "description": "输入内容格式化函数, 默认值: -"
2599
+ },
2600
+ "van-search/format-trigger": {
2601
+ "type": "string",
2602
+ "description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
2603
+ },
2604
+ "van-search/input-align": {
2605
+ "type": "string",
2606
+ "description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
2607
+ },
2608
+ "van-search/left-icon": {
2609
+ "type": "string",
2610
+ "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
2611
+ },
2612
+ "van-search/right-icon": {
2613
+ "type": "string",
2614
+ "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
2615
+ },
2616
+ "van-search/autocomplete": {
2617
+ "type": "string",
2618
+ "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
2619
+ },
2620
2620
  "van-share-sheet/v-model:show": {
2621
2621
  "type": "boolean",
2622
2622
  "description": "是否显示分享面板, 默认值: `false`"
@@ -3014,30 +3014,6 @@
3014
3014
  "type": "boolean",
3015
3015
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
3016
3016
  },
3017
- "van-swipe-cell/name": {
3018
- "type": "number | string",
3019
- "description": "标识符,可以在事件参数中获取到, 默认值: `''`"
3020
- },
3021
- "van-swipe-cell/left-width": {
3022
- "type": "number | string",
3023
- "description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
3024
- },
3025
- "van-swipe-cell/right-width": {
3026
- "type": "number | string",
3027
- "description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
3028
- },
3029
- "van-swipe-cell/before-close": {
3030
- "type": "(args) => boolean | Promise\\<boolean\\>",
3031
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
3032
- },
3033
- "van-swipe-cell/disabled": {
3034
- "type": "boolean",
3035
- "description": "是否禁用滑动, 默认值: `false`"
3036
- },
3037
- "van-swipe-cell/stop-propagation": {
3038
- "type": "boolean",
3039
- "description": "是否阻止滑动事件冒泡, 默认值: `false`"
3040
- },
3041
3017
  "van-swipe/autoplay": {
3042
3018
  "type": "number | string",
3043
3019
  "description": "自动轮播间隔,单位为 ms, 默认值: -"
@@ -3086,6 +3062,30 @@
3086
3062
  "type": "string",
3087
3063
  "description": "指示器颜色, 默认值: `#1989fa`"
3088
3064
  },
3065
+ "van-swipe-cell/name": {
3066
+ "type": "number | string",
3067
+ "description": "标识符,可以在事件参数中获取到, 默认值: `''`"
3068
+ },
3069
+ "van-swipe-cell/left-width": {
3070
+ "type": "number | string",
3071
+ "description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
3072
+ },
3073
+ "van-swipe-cell/right-width": {
3074
+ "type": "number | string",
3075
+ "description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
3076
+ },
3077
+ "van-swipe-cell/before-close": {
3078
+ "type": "(args) => boolean | Promise\\<boolean\\>",
3079
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
3080
+ },
3081
+ "van-swipe-cell/disabled": {
3082
+ "type": "boolean",
3083
+ "description": "是否禁用滑动, 默认值: `false`"
3084
+ },
3085
+ "van-swipe-cell/stop-propagation": {
3086
+ "type": "boolean",
3087
+ "description": "是否阻止滑动事件冒泡, 默认值: `false`"
3088
+ },
3089
3089
  "van-switch/v-model": {
3090
3090
  "type": "any",
3091
3091
  "description": "开关选中状态, 默认值: `false`"
@@ -3118,42 +3118,6 @@
3118
3118
  "type": "any",
3119
3119
  "description": "关闭时对应的值, 默认值: `false`"
3120
3120
  },
3121
- "van-tag/type": {
3122
- "type": "string",
3123
- "description": "类型,可选值为 `primary` `success` `danger` `warning`, 默认值: `default`"
3124
- },
3125
- "van-tag/size": {
3126
- "type": "string",
3127
- "description": "大小, 可选值为 `large` `medium`, 默认值: -"
3128
- },
3129
- "van-tag/color": {
3130
- "type": "string",
3131
- "description": "标签颜色, 默认值: -"
3132
- },
3133
- "van-tag/show": {
3134
- "type": "boolean",
3135
- "description": "是否展示标签, 默认值: `true`"
3136
- },
3137
- "van-tag/plain": {
3138
- "type": "boolean",
3139
- "description": "是否为空心样式, 默认值: `false`"
3140
- },
3141
- "van-tag/round": {
3142
- "type": "boolean",
3143
- "description": "是否为圆角样式, 默认值: `false`"
3144
- },
3145
- "van-tag/mark": {
3146
- "type": "boolean",
3147
- "description": "是否为标记样式, 默认值: `false`"
3148
- },
3149
- "van-tag/text-color": {
3150
- "type": "string",
3151
- "description": "文本颜色,优先级高于 `color` 属性, 默认值: `white`"
3152
- },
3153
- "van-tag/closeable": {
3154
- "type": "boolean",
3155
- "description": "是否为可关闭标签, 默认值: `false`"
3156
- },
3157
3121
  "van-tabs/v-model:active": {
3158
3122
  "type": "number | string",
3159
3123
  "description": "绑定当前选中标签的标识符, 默认值: `0`"
@@ -3358,6 +3322,42 @@
3358
3322
  "type": "boolean",
3359
3323
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
3360
3324
  },
3325
+ "van-tag/type": {
3326
+ "type": "string",
3327
+ "description": "类型,可选值为 `primary` `success` `danger` `warning`, 默认值: `default`"
3328
+ },
3329
+ "van-tag/size": {
3330
+ "type": "string",
3331
+ "description": "大小, 可选值为 `large` `medium`, 默认值: -"
3332
+ },
3333
+ "van-tag/color": {
3334
+ "type": "string",
3335
+ "description": "标签颜色, 默认值: -"
3336
+ },
3337
+ "van-tag/show": {
3338
+ "type": "boolean",
3339
+ "description": "是否展示标签, 默认值: `true`"
3340
+ },
3341
+ "van-tag/plain": {
3342
+ "type": "boolean",
3343
+ "description": "是否为空心样式, 默认值: `false`"
3344
+ },
3345
+ "van-tag/round": {
3346
+ "type": "boolean",
3347
+ "description": "是否为圆角样式, 默认值: `false`"
3348
+ },
3349
+ "van-tag/mark": {
3350
+ "type": "boolean",
3351
+ "description": "是否为标记样式, 默认值: `false`"
3352
+ },
3353
+ "van-tag/text-color": {
3354
+ "type": "string",
3355
+ "description": "文本颜色,优先级高于 `color` 属性, 默认值: `white`"
3356
+ },
3357
+ "van-tag/closeable": {
3358
+ "type": "boolean",
3359
+ "description": "是否为可关闭标签, 默认值: `false`"
3360
+ },
3361
3361
  "van-tree-select/items": {
3362
3362
  "type": "TreeSelectItem[]",
3363
3363
  "description": "分类显示所需的数据, 默认值: `[]`"