vant 2.12.27 → 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.
@@ -2,117 +2,203 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "2.12.27",
5
+ "version": "2.12.30-beta.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
9
  {
10
- "name": "van-address-list",
10
+ "name": "van-action-sheet",
11
11
  "slots": [
12
12
  {
13
13
  "name": "default",
14
- "description": "在列表下方插入内容"
15
- },
16
- {
17
- "name": "top",
18
- "description": "在顶部插入内容"
19
- },
20
- {
21
- "name": "item-bottom",
22
- "description": "在列表项底部插入内容"
14
+ "description": "自定义面板的展示内容"
23
15
  },
24
16
  {
25
- "name": "tag",
26
- "description": "列表项标签内容自定义"
17
+ "name": "description",
18
+ "description": "自定义描述文案"
27
19
  }
28
20
  ],
29
21
  "events": [
30
22
  {
31
- "name": "add",
32
- "description": "点击新增按钮时触发"
23
+ "name": "select",
24
+ "description": "点击选项时触发,禁用或加载状态下不会触发"
33
25
  },
34
26
  {
35
- "name": "edit",
36
- "description": "点击编辑按钮时触发"
27
+ "name": "cancel",
28
+ "description": "点击取消按钮时触发"
37
29
  },
38
30
  {
39
- "name": "select",
40
- "description": "切换选中的地址时触发"
31
+ "name": "open",
32
+ "description": "打开面板时触发"
41
33
  },
42
34
  {
43
- "name": "edit-disabled",
44
- "description": "编辑不可配送的地址时触发"
35
+ "name": "close",
36
+ "description": "关闭面板时触发"
45
37
  },
46
38
  {
47
- "name": "select-disabled",
48
- "description": "选中不可配送的地址时触发"
39
+ "name": "opened",
40
+ "description": "打开面板且动画结束后触发"
49
41
  },
50
42
  {
51
- "name": "click-item",
52
- "description": "点击任意地址时触发"
43
+ "name": "closed",
44
+ "description": "关闭面板且动画结束后触发"
45
+ },
46
+ {
47
+ "name": "click-overlay",
48
+ "description": "点击遮罩层时触发"
53
49
  }
54
50
  ],
55
51
  "attributes": [
56
52
  {
57
- "name": "v-model",
58
- "default": "-",
59
- "description": "当前选中地址的 id",
53
+ "name": "v-model (value)",
54
+ "default": "`false`",
55
+ "description": "是否显示动作面板",
60
56
  "value": {
61
- "type": "string",
57
+ "type": "boolean",
62
58
  "kind": "expression"
63
59
  }
64
60
  },
65
61
  {
66
- "name": "list",
62
+ "name": "actions",
67
63
  "default": "`[]`",
68
- "description": "地址列表",
64
+ "description": "面板选项列表",
69
65
  "value": {
70
- "type": "Address[]",
66
+ "type": "Action[]",
71
67
  "kind": "expression"
72
68
  }
73
69
  },
74
70
  {
75
- "name": "disabled-list",
76
- "default": "`[]`",
77
- "description": "不可配送地址列表",
71
+ "name": "title",
72
+ "default": "-",
73
+ "description": "顶部标题",
78
74
  "value": {
79
- "type": "Address[]",
75
+ "type": "string",
80
76
  "kind": "expression"
81
77
  }
82
78
  },
83
79
  {
84
- "name": "disabled-text",
80
+ "name": "cancel-text",
85
81
  "default": "-",
86
- "description": "不可配送提示文案",
82
+ "description": "取消按钮文字",
87
83
  "value": {
88
84
  "type": "string",
89
85
  "kind": "expression"
90
86
  }
91
87
  },
92
88
  {
93
- "name": "switchable",
89
+ "name": "description",
90
+ "default": "-",
91
+ "description": "选项上方的描述信息",
92
+ "value": {
93
+ "type": "string",
94
+ "kind": "expression"
95
+ }
96
+ },
97
+ {
98
+ "name": "closeable",
94
99
  "default": "`true`",
95
- "description": "是否允许切换地址",
100
+ "description": "是否显示关闭图标",
96
101
  "value": {
97
102
  "type": "boolean",
98
103
  "kind": "expression"
99
104
  }
100
105
  },
101
106
  {
102
- "name": "add-button-text",
103
- "default": "`新增地址`",
104
- "description": "底部按钮文字",
107
+ "name": "close-icon",
108
+ "default": "`cross`",
109
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
105
110
  "value": {
106
111
  "type": "string",
107
112
  "kind": "expression"
108
113
  }
109
114
  },
110
115
  {
111
- "name": "default-tag-text",
116
+ "name": "duration",
117
+ "default": "`0.3`",
118
+ "description": "动画时长,单位秒",
119
+ "value": {
120
+ "type": "number | string",
121
+ "kind": "expression"
122
+ }
123
+ },
124
+ {
125
+ "name": "round",
126
+ "default": "`true`",
127
+ "description": "是否显示圆角",
128
+ "value": {
129
+ "type": "boolean",
130
+ "kind": "expression"
131
+ }
132
+ },
133
+ {
134
+ "name": "overlay",
135
+ "default": "`true`",
136
+ "description": "是否显示遮罩层",
137
+ "value": {
138
+ "type": "boolean",
139
+ "kind": "expression"
140
+ }
141
+ },
142
+ {
143
+ "name": "lock-scroll",
144
+ "default": "`true`",
145
+ "description": "是否锁定背景滚动",
146
+ "value": {
147
+ "type": "boolean",
148
+ "kind": "expression"
149
+ }
150
+ },
151
+ {
152
+ "name": "lazy-render",
153
+ "default": "`true`",
154
+ "description": "是否在显示弹层时才渲染节点",
155
+ "value": {
156
+ "type": "boolean",
157
+ "kind": "expression"
158
+ }
159
+ },
160
+ {
161
+ "name": "close-on-popstate",
162
+ "default": "`false`",
163
+ "description": "是否在页面回退时自动关闭",
164
+ "value": {
165
+ "type": "boolean",
166
+ "kind": "expression"
167
+ }
168
+ },
169
+ {
170
+ "name": "close-on-click-action",
171
+ "default": "`false`",
172
+ "description": "是否在点击选项后关闭",
173
+ "value": {
174
+ "type": "boolean",
175
+ "kind": "expression"
176
+ }
177
+ },
178
+ {
179
+ "name": "close-on-click-overlay",
180
+ "default": "`true`",
181
+ "description": "是否在点击遮罩层后关闭",
182
+ "value": {
183
+ "type": "boolean",
184
+ "kind": "expression"
185
+ }
186
+ },
187
+ {
188
+ "name": "safe-area-inset-bottom",
189
+ "default": "`true`",
190
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
191
+ "value": {
192
+ "type": "boolean",
193
+ "kind": "expression"
194
+ }
195
+ },
196
+ {
197
+ "name": "get-container",
112
198
  "default": "-",
113
- "description": "默认地址标签文字",
199
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
114
200
  "value": {
115
- "type": "string",
201
+ "type": "string | () => Element",
116
202
  "kind": "expression"
117
203
  }
118
204
  }
@@ -365,6 +451,58 @@
365
451
  }
366
452
  ]
367
453
  },
454
+ {
455
+ "name": "van-badge",
456
+ "slots": [
457
+ {
458
+ "name": "default",
459
+ "description": "徽标包裹的子元素"
460
+ },
461
+ {
462
+ "name": "content",
463
+ "description": "自定义徽标内容"
464
+ }
465
+ ],
466
+ "events": [],
467
+ "attributes": [
468
+ {
469
+ "name": "content",
470
+ "default": "-",
471
+ "description": "徽标内容",
472
+ "value": {
473
+ "type": "number | string",
474
+ "kind": "expression"
475
+ }
476
+ },
477
+ {
478
+ "name": "color",
479
+ "default": "`#ee0a24`",
480
+ "description": "徽标背景颜色",
481
+ "value": {
482
+ "type": "string",
483
+ "kind": "expression"
484
+ }
485
+ },
486
+ {
487
+ "name": "dot",
488
+ "default": "`false`",
489
+ "description": "是否展示为小红点",
490
+ "value": {
491
+ "type": "boolean",
492
+ "kind": "expression"
493
+ }
494
+ },
495
+ {
496
+ "name": "max",
497
+ "default": "-",
498
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
499
+ "value": {
500
+ "type": "number | string",
501
+ "kind": "expression"
502
+ }
503
+ }
504
+ ]
505
+ },
368
506
  {
369
507
  "name": "van-area",
370
508
  "slots": [
@@ -743,52 +881,112 @@
743
881
  ]
744
882
  },
745
883
  {
746
- "name": "van-badge",
884
+ "name": "van-address-list",
747
885
  "slots": [
748
886
  {
749
887
  "name": "default",
750
- "description": "徽标包裹的子元素"
888
+ "description": "在列表下方插入内容"
751
889
  },
752
890
  {
753
- "name": "content",
754
- "description": "自定义徽标内容"
891
+ "name": "top",
892
+ "description": "在顶部插入内容"
893
+ },
894
+ {
895
+ "name": "item-bottom",
896
+ "description": "在列表项底部插入内容"
897
+ },
898
+ {
899
+ "name": "tag",
900
+ "description": "列表项标签内容自定义"
755
901
  }
756
902
  ],
757
- "events": [],
758
- "attributes": [
903
+ "events": [
759
904
  {
760
- "name": "content",
761
- "default": "-",
762
- "description": "徽标内容",
763
- "value": {
764
- "type": "number | string",
765
- "kind": "expression"
766
- }
905
+ "name": "add",
906
+ "description": "点击新增按钮时触发"
767
907
  },
768
908
  {
769
- "name": "color",
770
- "default": "`#ee0a24`",
771
- "description": "徽标背景颜色",
909
+ "name": "edit",
910
+ "description": "点击编辑按钮时触发"
911
+ },
912
+ {
913
+ "name": "select",
914
+ "description": "切换选中的地址时触发"
915
+ },
916
+ {
917
+ "name": "edit-disabled",
918
+ "description": "编辑不可配送的地址时触发"
919
+ },
920
+ {
921
+ "name": "select-disabled",
922
+ "description": "选中不可配送的地址时触发"
923
+ },
924
+ {
925
+ "name": "click-item",
926
+ "description": "点击任意地址时触发"
927
+ }
928
+ ],
929
+ "attributes": [
930
+ {
931
+ "name": "v-model",
932
+ "default": "-",
933
+ "description": "当前选中地址的 id",
772
934
  "value": {
773
935
  "type": "string",
774
936
  "kind": "expression"
775
937
  }
776
938
  },
777
939
  {
778
- "name": "dot",
779
- "default": "`false`",
780
- "description": "是否展示为小红点",
940
+ "name": "list",
941
+ "default": "`[]`",
942
+ "description": "地址列表",
943
+ "value": {
944
+ "type": "Address[]",
945
+ "kind": "expression"
946
+ }
947
+ },
948
+ {
949
+ "name": "disabled-list",
950
+ "default": "`[]`",
951
+ "description": "不可配送地址列表",
952
+ "value": {
953
+ "type": "Address[]",
954
+ "kind": "expression"
955
+ }
956
+ },
957
+ {
958
+ "name": "disabled-text",
959
+ "default": "-",
960
+ "description": "不可配送提示文案",
961
+ "value": {
962
+ "type": "string",
963
+ "kind": "expression"
964
+ }
965
+ },
966
+ {
967
+ "name": "switchable",
968
+ "default": "`true`",
969
+ "description": "是否允许切换地址",
781
970
  "value": {
782
971
  "type": "boolean",
783
972
  "kind": "expression"
784
973
  }
785
974
  },
786
975
  {
787
- "name": "max",
976
+ "name": "add-button-text",
977
+ "default": "`新增地址`",
978
+ "description": "底部按钮文字",
979
+ "value": {
980
+ "type": "string",
981
+ "kind": "expression"
982
+ }
983
+ },
984
+ {
985
+ "name": "default-tag-text",
788
986
  "default": "-",
789
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
987
+ "description": "默认地址标签文字",
790
988
  "value": {
791
- "type": "number | string",
989
+ "type": "string",
792
990
  "kind": "expression"
793
991
  }
794
992
  }
@@ -1637,385 +1835,187 @@
1637
1835
  ]
1638
1836
  },
1639
1837
  {
1640
- "name": "van-action-sheet",
1838
+ "name": "van-checkbox",
1641
1839
  "slots": [
1642
1840
  {
1643
1841
  "name": "default",
1644
- "description": "自定义面板的展示内容"
1842
+ "description": "自定义文本"
1645
1843
  },
1646
1844
  {
1647
- "name": "description",
1648
- "description": "自定义描述文案"
1845
+ "name": "icon",
1846
+ "description": "自定义图标"
1649
1847
  }
1650
1848
  ],
1651
1849
  "events": [
1652
1850
  {
1653
- "name": "select",
1654
- "description": "点击选项时触发,禁用或加载状态下不会触发"
1655
- },
1656
- {
1657
- "name": "cancel",
1658
- "description": "点击取消按钮时触发"
1659
- },
1660
- {
1661
- "name": "open",
1662
- "description": "打开面板时触发"
1663
- },
1664
- {
1665
- "name": "close",
1666
- "description": "关闭面板时触发"
1667
- },
1668
- {
1669
- "name": "opened",
1670
- "description": "打开面板且动画结束后触发"
1671
- },
1672
- {
1673
- "name": "closed",
1674
- "description": "关闭面板且动画结束后触发"
1851
+ "name": "change",
1852
+ "description": "当绑定值变化时触发的事件"
1675
1853
  },
1676
1854
  {
1677
- "name": "click-overlay",
1678
- "description": "点击遮罩层时触发"
1855
+ "name": "click",
1856
+ "description": "点击复选框时触发"
1679
1857
  }
1680
1858
  ],
1681
1859
  "attributes": [
1682
1860
  {
1683
1861
  "name": "v-model (value)",
1684
1862
  "default": "`false`",
1685
- "description": "是否显示动作面板",
1863
+ "description": "是否为选中状态",
1686
1864
  "value": {
1687
1865
  "type": "boolean",
1688
1866
  "kind": "expression"
1689
1867
  }
1690
1868
  },
1691
1869
  {
1692
- "name": "actions",
1693
- "default": "`[]`",
1694
- "description": "面板选项列表",
1695
- "value": {
1696
- "type": "Action[]",
1697
- "kind": "expression"
1698
- }
1699
- },
1700
- {
1701
- "name": "title",
1870
+ "name": "name",
1702
1871
  "default": "-",
1703
- "description": "顶部标题",
1872
+ "description": "标识符",
1704
1873
  "value": {
1705
- "type": "string",
1874
+ "type": "any",
1706
1875
  "kind": "expression"
1707
1876
  }
1708
1877
  },
1709
1878
  {
1710
- "name": "cancel-text",
1711
- "default": "-",
1712
- "description": "取消按钮文字",
1879
+ "name": "shape",
1880
+ "default": "`round`",
1881
+ "description": "形状,可选值为 `square`",
1713
1882
  "value": {
1714
1883
  "type": "string",
1715
1884
  "kind": "expression"
1716
1885
  }
1717
1886
  },
1718
1887
  {
1719
- "name": "description",
1720
- "default": "-",
1721
- "description": "选项上方的描述信息",
1888
+ "name": "disabled",
1889
+ "default": "`false`",
1890
+ "description": "是否禁用复选框",
1722
1891
  "value": {
1723
- "type": "string",
1892
+ "type": "boolean",
1724
1893
  "kind": "expression"
1725
1894
  }
1726
1895
  },
1727
1896
  {
1728
- "name": "closeable",
1729
- "default": "`true`",
1730
- "description": "是否显示关闭图标",
1897
+ "name": "label-disabled",
1898
+ "default": "`false`",
1899
+ "description": "是否禁用复选框文本点击",
1731
1900
  "value": {
1732
1901
  "type": "boolean",
1733
1902
  "kind": "expression"
1734
1903
  }
1735
1904
  },
1736
1905
  {
1737
- "name": "close-icon",
1738
- "default": "`cross`",
1739
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
1906
+ "name": "label-position",
1907
+ "default": "`right`",
1908
+ "description": "文本位置,可选值为 `left`",
1740
1909
  "value": {
1741
1910
  "type": "string",
1742
1911
  "kind": "expression"
1743
1912
  }
1744
1913
  },
1745
1914
  {
1746
- "name": "duration",
1747
- "default": "`0.3`",
1748
- "description": "动画时长,单位秒",
1915
+ "name": "icon-size",
1916
+ "default": "`20px`",
1917
+ "description": "图标大小,默认单位为 `px`",
1749
1918
  "value": {
1750
1919
  "type": "number | string",
1751
1920
  "kind": "expression"
1752
1921
  }
1753
1922
  },
1754
1923
  {
1755
- "name": "round",
1756
- "default": "`true`",
1757
- "description": "是否显示圆角",
1924
+ "name": "checked-color",
1925
+ "default": "`#1989fa`",
1926
+ "description": "选中状态颜色",
1758
1927
  "value": {
1759
- "type": "boolean",
1928
+ "type": "string",
1760
1929
  "kind": "expression"
1761
1930
  }
1762
1931
  },
1763
1932
  {
1764
- "name": "overlay",
1933
+ "name": "bind-group",
1765
1934
  "default": "`true`",
1766
- "description": "是否显示遮罩层",
1935
+ "description": "是否与复选框组绑定",
1767
1936
  "value": {
1768
1937
  "type": "boolean",
1769
1938
  "kind": "expression"
1770
1939
  }
1771
- },
1940
+ }
1941
+ ]
1942
+ },
1943
+ {
1944
+ "name": "van-checkbox-group",
1945
+ "slots": [],
1946
+ "events": [
1772
1947
  {
1773
- "name": "lock-scroll",
1774
- "default": "`true`",
1775
- "description": "是否锁定背景滚动",
1776
- "value": {
1777
- "type": "boolean",
1778
- "kind": "expression"
1779
- }
1780
- },
1948
+ "name": "change",
1949
+ "description": "当绑定值变化时触发的事件"
1950
+ }
1951
+ ],
1952
+ "attributes": [
1781
1953
  {
1782
- "name": "lazy-render",
1783
- "default": "`true`",
1784
- "description": "是否在显示弹层时才渲染节点",
1954
+ "name": "v-model (value)",
1955
+ "default": "-",
1956
+ "description": "所有选中项的标识符",
1785
1957
  "value": {
1786
- "type": "boolean",
1958
+ "type": "any[]",
1787
1959
  "kind": "expression"
1788
1960
  }
1789
1961
  },
1790
1962
  {
1791
- "name": "close-on-popstate",
1963
+ "name": "disabled",
1792
1964
  "default": "`false`",
1793
- "description": "是否在页面回退时自动关闭",
1965
+ "description": "是否禁用所有复选框",
1794
1966
  "value": {
1795
1967
  "type": "boolean",
1796
1968
  "kind": "expression"
1797
1969
  }
1798
1970
  },
1799
1971
  {
1800
- "name": "close-on-click-action",
1801
- "default": "`false`",
1802
- "description": "是否在点击选项后关闭",
1972
+ "name": "max",
1973
+ "default": "`0`",
1974
+ "description": "最大可选数,`0`为无限制",
1803
1975
  "value": {
1804
- "type": "boolean",
1976
+ "type": "number | string",
1805
1977
  "kind": "expression"
1806
1978
  }
1807
1979
  },
1808
1980
  {
1809
- "name": "close-on-click-overlay",
1810
- "default": "`true`",
1811
- "description": "是否在点击遮罩层后关闭",
1981
+ "name": "direction",
1982
+ "default": "`vertical`",
1983
+ "description": "排列方向,可选值为 `horizontal`",
1812
1984
  "value": {
1813
- "type": "boolean",
1985
+ "type": "string",
1814
1986
  "kind": "expression"
1815
1987
  }
1816
1988
  },
1817
1989
  {
1818
- "name": "safe-area-inset-bottom",
1819
- "default": "`true`",
1820
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1990
+ "name": "icon-size",
1991
+ "default": "`20px`",
1992
+ "description": "所有复选框的图标大小,默认单位为 `px`",
1821
1993
  "value": {
1822
- "type": "boolean",
1994
+ "type": "number | string",
1823
1995
  "kind": "expression"
1824
1996
  }
1825
1997
  },
1826
1998
  {
1827
- "name": "get-container",
1828
- "default": "-",
1829
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
1999
+ "name": "checked-color",
2000
+ "default": "`#1989fa`",
2001
+ "description": "所有复选框的选中状态颜色",
1830
2002
  "value": {
1831
- "type": "string | () => Element",
2003
+ "type": "string",
1832
2004
  "kind": "expression"
1833
2005
  }
1834
2006
  }
1835
2007
  ]
1836
2008
  },
1837
2009
  {
1838
- "name": "van-checkbox",
2010
+ "name": "van-circle",
1839
2011
  "slots": [
1840
2012
  {
1841
2013
  "name": "default",
1842
- "description": "自定义文本"
1843
- },
1844
- {
1845
- "name": "icon",
1846
- "description": "自定义图标"
2014
+ "description": "自定义文字内容"
1847
2015
  }
1848
2016
  ],
1849
- "events": [
1850
- {
1851
- "name": "change",
1852
- "description": "当绑定值变化时触发的事件"
1853
- },
1854
- {
1855
- "name": "click",
1856
- "description": "点击复选框时触发"
1857
- }
1858
- ],
1859
- "attributes": [
1860
- {
1861
- "name": "v-model (value)",
1862
- "default": "`false`",
1863
- "description": "是否为选中状态",
1864
- "value": {
1865
- "type": "boolean",
1866
- "kind": "expression"
1867
- }
1868
- },
1869
- {
1870
- "name": "name",
1871
- "default": "-",
1872
- "description": "标识符",
1873
- "value": {
1874
- "type": "any",
1875
- "kind": "expression"
1876
- }
1877
- },
1878
- {
1879
- "name": "shape",
1880
- "default": "`round`",
1881
- "description": "形状,可选值为 `square`",
1882
- "value": {
1883
- "type": "string",
1884
- "kind": "expression"
1885
- }
1886
- },
1887
- {
1888
- "name": "disabled",
1889
- "default": "`false`",
1890
- "description": "是否禁用复选框",
1891
- "value": {
1892
- "type": "boolean",
1893
- "kind": "expression"
1894
- }
1895
- },
1896
- {
1897
- "name": "label-disabled",
1898
- "default": "`false`",
1899
- "description": "是否禁用复选框文本点击",
1900
- "value": {
1901
- "type": "boolean",
1902
- "kind": "expression"
1903
- }
1904
- },
1905
- {
1906
- "name": "label-position",
1907
- "default": "`right`",
1908
- "description": "文本位置,可选值为 `left`",
1909
- "value": {
1910
- "type": "string",
1911
- "kind": "expression"
1912
- }
1913
- },
1914
- {
1915
- "name": "icon-size",
1916
- "default": "`20px`",
1917
- "description": "图标大小,默认单位为 `px`",
1918
- "value": {
1919
- "type": "number | string",
1920
- "kind": "expression"
1921
- }
1922
- },
1923
- {
1924
- "name": "checked-color",
1925
- "default": "`#1989fa`",
1926
- "description": "选中状态颜色",
1927
- "value": {
1928
- "type": "string",
1929
- "kind": "expression"
1930
- }
1931
- },
1932
- {
1933
- "name": "bind-group",
1934
- "default": "`true`",
1935
- "description": "是否与复选框组绑定",
1936
- "value": {
1937
- "type": "boolean",
1938
- "kind": "expression"
1939
- }
1940
- }
1941
- ]
1942
- },
1943
- {
1944
- "name": "van-checkbox-group",
1945
- "slots": [],
1946
- "events": [
1947
- {
1948
- "name": "change",
1949
- "description": "当绑定值变化时触发的事件"
1950
- }
1951
- ],
1952
- "attributes": [
1953
- {
1954
- "name": "v-model (value)",
1955
- "default": "-",
1956
- "description": "所有选中项的标识符",
1957
- "value": {
1958
- "type": "any[]",
1959
- "kind": "expression"
1960
- }
1961
- },
1962
- {
1963
- "name": "disabled",
1964
- "default": "`false`",
1965
- "description": "是否禁用所有复选框",
1966
- "value": {
1967
- "type": "boolean",
1968
- "kind": "expression"
1969
- }
1970
- },
1971
- {
1972
- "name": "max",
1973
- "default": "`0`",
1974
- "description": "最大可选数,`0`为无限制",
1975
- "value": {
1976
- "type": "number | string",
1977
- "kind": "expression"
1978
- }
1979
- },
1980
- {
1981
- "name": "direction",
1982
- "default": "`vertical`",
1983
- "description": "排列方向,可选值为 `horizontal`",
1984
- "value": {
1985
- "type": "string",
1986
- "kind": "expression"
1987
- }
1988
- },
1989
- {
1990
- "name": "icon-size",
1991
- "default": "`20px`",
1992
- "description": "所有复选框的图标大小,默认单位为 `px`",
1993
- "value": {
1994
- "type": "number | string",
1995
- "kind": "expression"
1996
- }
1997
- },
1998
- {
1999
- "name": "checked-color",
2000
- "default": "`#1989fa`",
2001
- "description": "所有复选框的选中状态颜色",
2002
- "value": {
2003
- "type": "string",
2004
- "kind": "expression"
2005
- }
2006
- }
2007
- ]
2008
- },
2009
- {
2010
- "name": "van-circle",
2011
- "slots": [
2012
- {
2013
- "name": "default",
2014
- "description": "自定义文字内容"
2015
- }
2016
- ],
2017
- "events": [],
2018
- "attributes": [
2017
+ "events": [],
2018
+ "attributes": [
2019
2019
  {
2020
2020
  "name": "v-model",
2021
2021
  "default": "-",
@@ -3358,45 +3358,6 @@
3358
3358
  }
3359
3359
  ]
3360
3360
  },
3361
- {
3362
- "name": "van-divider",
3363
- "slots": [
3364
- {
3365
- "name": "default",
3366
- "description": "内容"
3367
- }
3368
- ],
3369
- "events": [],
3370
- "attributes": [
3371
- {
3372
- "name": "dashed",
3373
- "default": "`false`",
3374
- "description": "是否使用虚线",
3375
- "value": {
3376
- "type": "boolean",
3377
- "kind": "expression"
3378
- }
3379
- },
3380
- {
3381
- "name": "hairline",
3382
- "default": "`true`",
3383
- "description": "是否使用 0.5px 线",
3384
- "value": {
3385
- "type": "boolean",
3386
- "kind": "expression"
3387
- }
3388
- },
3389
- {
3390
- "name": "content-position",
3391
- "default": "`center`",
3392
- "description": "内容位置,可选值为`left` `right`",
3393
- "value": {
3394
- "type": "string",
3395
- "kind": "expression"
3396
- }
3397
- }
3398
- ]
3399
- },
3400
3361
  {
3401
3362
  "name": "van-dropdown-menu",
3402
3363
  "slots": [],
@@ -3567,6 +3528,45 @@
3567
3528
  }
3568
3529
  ]
3569
3530
  },
3531
+ {
3532
+ "name": "van-divider",
3533
+ "slots": [
3534
+ {
3535
+ "name": "default",
3536
+ "description": "内容"
3537
+ }
3538
+ ],
3539
+ "events": [],
3540
+ "attributes": [
3541
+ {
3542
+ "name": "dashed",
3543
+ "default": "`false`",
3544
+ "description": "是否使用虚线",
3545
+ "value": {
3546
+ "type": "boolean",
3547
+ "kind": "expression"
3548
+ }
3549
+ },
3550
+ {
3551
+ "name": "hairline",
3552
+ "default": "`true`",
3553
+ "description": "是否使用 0.5px 线",
3554
+ "value": {
3555
+ "type": "boolean",
3556
+ "kind": "expression"
3557
+ }
3558
+ },
3559
+ {
3560
+ "name": "content-position",
3561
+ "default": "`center`",
3562
+ "description": "内容位置,可选值为`left` `right`",
3563
+ "value": {
3564
+ "type": "string",
3565
+ "kind": "expression"
3566
+ }
3567
+ }
3568
+ ]
3569
+ },
3570
3570
  {
3571
3571
  "name": "van-empty",
3572
3572
  "slots": [
@@ -4617,329 +4617,329 @@
4617
4617
  ]
4618
4618
  },
4619
4619
  {
4620
- "name": "van-image-preview",
4620
+ "name": "van-image",
4621
4621
  "slots": [
4622
4622
  {
4623
- "name": "index",
4624
- "description": "自定义页码内容"
4623
+ "name": "default",
4624
+ "description": "自定义图片下方的内容"
4625
4625
  },
4626
4626
  {
4627
- "name": "cover",
4628
- "description": "自定义覆盖在图片预览上方的内容"
4627
+ "name": "loading",
4628
+ "description": "自定义加载中的提示内容"
4629
+ },
4630
+ {
4631
+ "name": "error",
4632
+ "description": "自定义加载失败时的提示内容"
4629
4633
  }
4630
4634
  ],
4631
4635
  "events": [
4632
4636
  {
4633
- "name": "close",
4634
- "description": "关闭时触发"
4635
- },
4636
- {
4637
- "name": "closed",
4638
- "description": "关闭且且动画结束后触发"
4637
+ "name": "click",
4638
+ "description": "点击图片时触发"
4639
4639
  },
4640
4640
  {
4641
- "name": "change",
4642
- "description": "切换当前图片时触发"
4641
+ "name": "load",
4642
+ "description": "图片加载完毕时触发"
4643
4643
  },
4644
4644
  {
4645
- "name": "scale",
4646
- "description": "缩放当前图片时触发"
4645
+ "name": "error",
4646
+ "description": "图片加载失败时触发"
4647
4647
  }
4648
4648
  ],
4649
4649
  "attributes": [
4650
4650
  {
4651
- "name": "images",
4652
- "default": "`[]`",
4653
- "description": "需要预览的图片 URL 数组",
4651
+ "name": "src",
4652
+ "default": "-",
4653
+ "description": "图片链接",
4654
4654
  "value": {
4655
- "type": "string[]",
4655
+ "type": "string",
4656
4656
  "kind": "expression"
4657
4657
  }
4658
4658
  },
4659
4659
  {
4660
- "name": "start-position",
4661
- "default": "`0`",
4662
- "description": "图片预览起始位置索引",
4660
+ "name": "fit",
4661
+ "default": "`fill`",
4662
+ "description": "图片填充模式",
4663
4663
  "value": {
4664
- "type": "number | string",
4664
+ "type": "string",
4665
4665
  "kind": "expression"
4666
4666
  }
4667
4667
  },
4668
4668
  {
4669
- "name": "swipe-duration",
4670
- "default": "`300`",
4671
- "description": "动画时长,单位为 ms",
4669
+ "name": "alt",
4670
+ "default": "-",
4671
+ "description": "替代文本",
4672
4672
  "value": {
4673
- "type": "number | string",
4673
+ "type": "string",
4674
4674
  "kind": "expression"
4675
4675
  }
4676
4676
  },
4677
4677
  {
4678
- "name": "show-index",
4679
- "default": "`true`",
4680
- "description": "是否显示页码",
4678
+ "name": "width",
4679
+ "default": "-",
4680
+ "description": "宽度,默认单位为`px`",
4681
4681
  "value": {
4682
- "type": "boolean",
4682
+ "type": "number | string",
4683
4683
  "kind": "expression"
4684
4684
  }
4685
4685
  },
4686
4686
  {
4687
- "name": "show-indicators",
4688
- "default": "`false`",
4689
- "description": "是否显示轮播指示器",
4687
+ "name": "height",
4688
+ "default": "-",
4689
+ "description": "高度,默认单位为`px`",
4690
4690
  "value": {
4691
- "type": "boolean",
4691
+ "type": "number | string",
4692
4692
  "kind": "expression"
4693
4693
  }
4694
4694
  },
4695
4695
  {
4696
- "name": "loop",
4697
- "default": "`true`",
4698
- "description": "是否开启循环播放",
4696
+ "name": "radius",
4697
+ "default": "`0`",
4698
+ "description": "圆角大小,默认单位为`px`",
4699
4699
  "value": {
4700
- "type": "boolean",
4700
+ "type": "number | string",
4701
4701
  "kind": "expression"
4702
4702
  }
4703
4703
  },
4704
4704
  {
4705
- "name": "async-close",
4705
+ "name": "round",
4706
4706
  "default": "`false`",
4707
- "description": "是否开启异步关闭",
4707
+ "description": "是否显示为圆形",
4708
4708
  "value": {
4709
4709
  "type": "boolean",
4710
4710
  "kind": "expression"
4711
4711
  }
4712
4712
  },
4713
4713
  {
4714
- "name": "close-on-popstate",
4715
- "default": "`true`",
4716
- "description": "是否在页面回退时自动关闭",
4714
+ "name": "lazy-load",
4715
+ "default": "`false`",
4716
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
4717
4717
  "value": {
4718
4718
  "type": "boolean",
4719
4719
  "kind": "expression"
4720
4720
  }
4721
4721
  },
4722
4722
  {
4723
- "name": "class-name",
4724
- "default": "-",
4725
- "description": "自定义类名",
4726
- "value": {
4727
- "type": "any",
4728
- "kind": "expression"
4729
- }
4730
- },
4731
- {
4732
- "name": "max-zoom",
4733
- "default": "`3`",
4734
- "description": "手势缩放时,最大缩放比例",
4735
- "value": {
4736
- "type": "number | string",
4737
- "kind": "expression"
4738
- }
4739
- },
4740
- {
4741
- "name": "min-zoom",
4742
- "default": "`1/3`",
4743
- "description": "手势缩放时,最小缩放比例",
4723
+ "name": "show-error",
4724
+ "default": "`true`",
4725
+ "description": "是否展示图片加载失败提示",
4744
4726
  "value": {
4745
- "type": "number | string",
4727
+ "type": "boolean",
4746
4728
  "kind": "expression"
4747
4729
  }
4748
4730
  },
4749
4731
  {
4750
- "name": "closeable",
4751
- "default": "`false`",
4752
- "description": "是否显示关闭图标",
4732
+ "name": "show-loading",
4733
+ "default": "`true`",
4734
+ "description": "是否展示图片加载中提示",
4753
4735
  "value": {
4754
4736
  "type": "boolean",
4755
4737
  "kind": "expression"
4756
4738
  }
4757
4739
  },
4758
4740
  {
4759
- "name": "close-icon",
4760
- "default": "`clear`",
4761
- "description": "关闭图标名称或图片链接",
4741
+ "name": "error-icon",
4742
+ "default": "`photo-fail`",
4743
+ "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接",
4762
4744
  "value": {
4763
4745
  "type": "string",
4764
4746
  "kind": "expression"
4765
4747
  }
4766
4748
  },
4767
4749
  {
4768
- "name": "close-icon-position",
4769
- "default": "`top-right`",
4770
- "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
4750
+ "name": "loading-icon",
4751
+ "default": "`photo`",
4752
+ "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接",
4771
4753
  "value": {
4772
4754
  "type": "string",
4773
4755
  "kind": "expression"
4774
4756
  }
4775
4757
  },
4776
4758
  {
4777
- "name": "transition",
4778
- "default": "`van-fade`",
4779
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
4759
+ "name": "icon-prefix",
4760
+ "default": "`van-icon`",
4761
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4780
4762
  "value": {
4781
4763
  "type": "string",
4782
4764
  "kind": "expression"
4783
4765
  }
4784
- },
4785
- {
4786
- "name": "get-container",
4787
- "default": "-",
4788
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
4789
- "value": {
4790
- "type": "string | () => Element",
4791
- "kind": "expression"
4792
- }
4793
4766
  }
4794
4767
  ]
4795
4768
  },
4796
4769
  {
4797
- "name": "van-image",
4770
+ "name": "van-image-preview",
4798
4771
  "slots": [
4799
4772
  {
4800
- "name": "default",
4801
- "description": "自定义图片下方的内容"
4802
- },
4803
- {
4804
- "name": "loading",
4805
- "description": "自定义加载中的提示内容"
4773
+ "name": "index",
4774
+ "description": "自定义页码内容"
4806
4775
  },
4807
4776
  {
4808
- "name": "error",
4809
- "description": "自定义加载失败时的提示内容"
4777
+ "name": "cover",
4778
+ "description": "自定义覆盖在图片预览上方的内容"
4810
4779
  }
4811
4780
  ],
4812
4781
  "events": [
4813
4782
  {
4814
- "name": "click",
4815
- "description": "点击图片时触发"
4783
+ "name": "close",
4784
+ "description": "关闭时触发"
4816
4785
  },
4817
4786
  {
4818
- "name": "load",
4819
- "description": "图片加载完毕时触发"
4787
+ "name": "closed",
4788
+ "description": "关闭且且动画结束后触发"
4820
4789
  },
4821
4790
  {
4822
- "name": "error",
4823
- "description": "图片加载失败时触发"
4791
+ "name": "change",
4792
+ "description": "切换当前图片时触发"
4793
+ },
4794
+ {
4795
+ "name": "scale",
4796
+ "description": "缩放当前图片时触发"
4824
4797
  }
4825
4798
  ],
4826
4799
  "attributes": [
4827
4800
  {
4828
- "name": "src",
4829
- "default": "-",
4830
- "description": "图片链接",
4801
+ "name": "images",
4802
+ "default": "`[]`",
4803
+ "description": "需要预览的图片 URL 数组",
4831
4804
  "value": {
4832
- "type": "string",
4805
+ "type": "string[]",
4833
4806
  "kind": "expression"
4834
4807
  }
4835
4808
  },
4836
4809
  {
4837
- "name": "fit",
4838
- "default": "`fill`",
4839
- "description": "图片填充模式",
4810
+ "name": "start-position",
4811
+ "default": "`0`",
4812
+ "description": "图片预览起始位置索引",
4840
4813
  "value": {
4841
- "type": "string",
4814
+ "type": "number | string",
4842
4815
  "kind": "expression"
4843
4816
  }
4844
4817
  },
4845
4818
  {
4846
- "name": "alt",
4847
- "default": "-",
4848
- "description": "替代文本",
4819
+ "name": "swipe-duration",
4820
+ "default": "`300`",
4821
+ "description": "动画时长,单位为 ms",
4849
4822
  "value": {
4850
- "type": "string",
4823
+ "type": "number | string",
4851
4824
  "kind": "expression"
4852
4825
  }
4853
4826
  },
4854
4827
  {
4855
- "name": "width",
4856
- "default": "-",
4857
- "description": "宽度,默认单位为`px`",
4828
+ "name": "show-index",
4829
+ "default": "`true`",
4830
+ "description": "是否显示页码",
4858
4831
  "value": {
4859
- "type": "number | string",
4832
+ "type": "boolean",
4860
4833
  "kind": "expression"
4861
4834
  }
4862
4835
  },
4863
4836
  {
4864
- "name": "height",
4865
- "default": "-",
4866
- "description": "高度,默认单位为`px`",
4837
+ "name": "show-indicators",
4838
+ "default": "`false`",
4839
+ "description": "是否显示轮播指示器",
4867
4840
  "value": {
4868
- "type": "number | string",
4841
+ "type": "boolean",
4869
4842
  "kind": "expression"
4870
4843
  }
4871
4844
  },
4872
4845
  {
4873
- "name": "radius",
4874
- "default": "`0`",
4875
- "description": "圆角大小,默认单位为`px`",
4846
+ "name": "loop",
4847
+ "default": "`true`",
4848
+ "description": "是否开启循环播放",
4876
4849
  "value": {
4877
- "type": "number | string",
4850
+ "type": "boolean",
4878
4851
  "kind": "expression"
4879
4852
  }
4880
4853
  },
4881
4854
  {
4882
- "name": "round",
4855
+ "name": "async-close",
4883
4856
  "default": "`false`",
4884
- "description": "是否显示为圆形",
4857
+ "description": "是否开启异步关闭",
4885
4858
  "value": {
4886
4859
  "type": "boolean",
4887
4860
  "kind": "expression"
4888
4861
  }
4889
4862
  },
4890
4863
  {
4891
- "name": "lazy-load",
4892
- "default": "`false`",
4893
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
4864
+ "name": "close-on-popstate",
4865
+ "default": "`true`",
4866
+ "description": "是否在页面回退时自动关闭",
4894
4867
  "value": {
4895
4868
  "type": "boolean",
4896
4869
  "kind": "expression"
4897
4870
  }
4898
4871
  },
4899
4872
  {
4900
- "name": "show-error",
4901
- "default": "`true`",
4902
- "description": "是否展示图片加载失败提示",
4873
+ "name": "class-name",
4874
+ "default": "-",
4875
+ "description": "自定义类名",
4903
4876
  "value": {
4904
- "type": "boolean",
4877
+ "type": "any",
4905
4878
  "kind": "expression"
4906
4879
  }
4907
4880
  },
4908
4881
  {
4909
- "name": "show-loading",
4910
- "default": "`true`",
4911
- "description": "是否展示图片加载中提示",
4882
+ "name": "max-zoom",
4883
+ "default": "`3`",
4884
+ "description": "手势缩放时,最大缩放比例",
4885
+ "value": {
4886
+ "type": "number | string",
4887
+ "kind": "expression"
4888
+ }
4889
+ },
4890
+ {
4891
+ "name": "min-zoom",
4892
+ "default": "`1/3`",
4893
+ "description": "手势缩放时,最小缩放比例",
4894
+ "value": {
4895
+ "type": "number | string",
4896
+ "kind": "expression"
4897
+ }
4898
+ },
4899
+ {
4900
+ "name": "closeable",
4901
+ "default": "`false`",
4902
+ "description": "是否显示关闭图标",
4912
4903
  "value": {
4913
4904
  "type": "boolean",
4914
4905
  "kind": "expression"
4915
4906
  }
4916
4907
  },
4917
4908
  {
4918
- "name": "error-icon",
4919
- "default": "`photo-fail`",
4920
- "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接",
4909
+ "name": "close-icon",
4910
+ "default": "`clear`",
4911
+ "description": "关闭图标名称或图片链接",
4921
4912
  "value": {
4922
4913
  "type": "string",
4923
4914
  "kind": "expression"
4924
4915
  }
4925
4916
  },
4926
4917
  {
4927
- "name": "loading-icon",
4928
- "default": "`photo`",
4929
- "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接",
4918
+ "name": "close-icon-position",
4919
+ "default": "`top-right`",
4920
+ "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
4930
4921
  "value": {
4931
4922
  "type": "string",
4932
4923
  "kind": "expression"
4933
4924
  }
4934
4925
  },
4935
4926
  {
4936
- "name": "icon-prefix",
4937
- "default": "`van-icon`",
4938
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4927
+ "name": "transition",
4928
+ "default": "`van-fade`",
4929
+ "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
4939
4930
  "value": {
4940
4931
  "type": "string",
4941
4932
  "kind": "expression"
4942
4933
  }
4934
+ },
4935
+ {
4936
+ "name": "get-container",
4937
+ "default": "-",
4938
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
4939
+ "value": {
4940
+ "type": "string | () => Element",
4941
+ "kind": "expression"
4942
+ }
4943
4943
  }
4944
4944
  ]
4945
4945
  },
@@ -5026,176 +5026,176 @@
5026
5026
  ]
5027
5027
  },
5028
5028
  {
5029
- "name": "van-list",
5029
+ "name": "van-loading",
5030
5030
  "slots": [
5031
5031
  {
5032
5032
  "name": "default",
5033
- "description": "列表内容"
5034
- },
5035
- {
5036
- "name": "loading",
5037
- "description": "自定义底部加载中提示"
5038
- },
5039
- {
5040
- "name": "finished",
5041
- "description": "自定义加载完成后的提示文案"
5042
- },
5043
- {
5044
- "name": "error",
5045
- "description": "自定义加载失败后的提示文案"
5046
- }
5047
- ],
5048
- "events": [
5049
- {
5050
- "name": "load",
5051
- "description": "滚动条与底部距离小于 offset 时触发"
5033
+ "description": "加载文案"
5052
5034
  }
5053
5035
  ],
5036
+ "events": [],
5054
5037
  "attributes": [
5055
5038
  {
5056
- "name": "v-model",
5057
- "default": "`false`",
5058
- "description": "是否处于加载状态,加载过程中不触发`load`事件",
5039
+ "name": "color",
5040
+ "default": "`#c9c9c9`",
5041
+ "description": "颜色",
5059
5042
  "value": {
5060
- "type": "boolean",
5043
+ "type": "string",
5061
5044
  "kind": "expression"
5062
5045
  }
5063
5046
  },
5064
5047
  {
5065
- "name": "finished",
5066
- "default": "`false`",
5067
- "description": "是否已加载完成,加载完成后不再触发`load`事件",
5048
+ "name": "type",
5049
+ "default": "`circular`",
5050
+ "description": "类型,可选值为 `spinner`",
5068
5051
  "value": {
5069
- "type": "boolean",
5052
+ "type": "string",
5070
5053
  "kind": "expression"
5071
5054
  }
5072
5055
  },
5073
5056
  {
5074
- "name": "error",
5075
- "default": "`false`",
5076
- "description": "是否加载失败,加载失败后点击错误提示可以重新<br>触发`load`事件,必须使用`sync`修饰符",
5057
+ "name": "size",
5058
+ "default": "`30px`",
5059
+ "description": "加载图标大小,默认单位为 `px`",
5077
5060
  "value": {
5078
- "type": "boolean",
5061
+ "type": "number | string",
5079
5062
  "kind": "expression"
5080
5063
  }
5081
5064
  },
5082
5065
  {
5083
- "name": "offset",
5084
- "default": "`300`",
5085
- "description": "滚动条与底部距离小于 offset 时触发`load`事件",
5066
+ "name": "text-size",
5067
+ "default": "`14px`",
5068
+ "description": "文字大小,默认单位为 `px`",
5086
5069
  "value": {
5087
5070
  "type": "number | string",
5088
5071
  "kind": "expression"
5089
5072
  }
5090
5073
  },
5091
5074
  {
5092
- "name": "loading-text",
5093
- "default": "`加载中...`",
5094
- "description": "加载过程中的提示文案",
5075
+ "name": "text-color",
5076
+ "default": "`#c9c9c9`",
5077
+ "description": "文字颜色",
5095
5078
  "value": {
5096
5079
  "type": "string",
5097
5080
  "kind": "expression"
5098
5081
  }
5099
5082
  },
5100
5083
  {
5101
- "name": "finished-text",
5102
- "default": "-",
5103
- "description": "加载完成后的提示文案",
5084
+ "name": "vertical",
5085
+ "default": "`false`",
5086
+ "description": "是否垂直排列图标和文字内容",
5104
5087
  "value": {
5105
- "type": "string",
5088
+ "type": "boolean",
5106
5089
  "kind": "expression"
5107
5090
  }
5091
+ }
5092
+ ]
5093
+ },
5094
+ {
5095
+ "name": "van-list",
5096
+ "slots": [
5097
+ {
5098
+ "name": "default",
5099
+ "description": "列表内容"
5108
5100
  },
5109
5101
  {
5110
- "name": "error-text",
5111
- "default": "-",
5112
- "description": "加载失败后的提示文案",
5102
+ "name": "loading",
5103
+ "description": "自定义底部加载中提示"
5104
+ },
5105
+ {
5106
+ "name": "finished",
5107
+ "description": "自定义加载完成后的提示文案"
5108
+ },
5109
+ {
5110
+ "name": "error",
5111
+ "description": "自定义加载失败后的提示文案"
5112
+ }
5113
+ ],
5114
+ "events": [
5115
+ {
5116
+ "name": "load",
5117
+ "description": "滚动条与底部距离小于 offset 时触发"
5118
+ }
5119
+ ],
5120
+ "attributes": [
5121
+ {
5122
+ "name": "v-model",
5123
+ "default": "`false`",
5124
+ "description": "是否处于加载状态,加载过程中不触发`load`事件",
5113
5125
  "value": {
5114
- "type": "string",
5126
+ "type": "boolean",
5115
5127
  "kind": "expression"
5116
5128
  }
5117
5129
  },
5118
5130
  {
5119
- "name": "immediate-check",
5120
- "default": "`true`",
5121
- "description": "是否在初始化时立即执行滚动位置检查",
5131
+ "name": "finished",
5132
+ "default": "`false`",
5133
+ "description": "是否已加载完成,加载完成后不再触发`load`事件",
5122
5134
  "value": {
5123
5135
  "type": "boolean",
5124
5136
  "kind": "expression"
5125
5137
  }
5126
5138
  },
5127
5139
  {
5128
- "name": "direction",
5129
- "default": "`down`",
5130
- "description": "滚动触发加载的方向,可选值为`up`",
5140
+ "name": "error",
5141
+ "default": "`false`",
5142
+ "description": "是否加载失败,加载失败后点击错误提示可以重新<br>触发`load`事件,必须使用`sync`修饰符",
5131
5143
  "value": {
5132
- "type": "string",
5144
+ "type": "boolean",
5133
5145
  "kind": "expression"
5134
5146
  }
5135
- }
5136
- ]
5137
- },
5138
- {
5139
- "name": "van-loading",
5140
- "slots": [
5141
- {
5142
- "name": "default",
5143
- "description": "加载文案"
5144
- }
5145
- ],
5146
- "events": [],
5147
- "attributes": [
5147
+ },
5148
5148
  {
5149
- "name": "color",
5150
- "default": "`#c9c9c9`",
5151
- "description": "颜色",
5149
+ "name": "offset",
5150
+ "default": "`300`",
5151
+ "description": "滚动条与底部距离小于 offset 时触发`load`事件",
5152
5152
  "value": {
5153
- "type": "string",
5153
+ "type": "number | string",
5154
5154
  "kind": "expression"
5155
5155
  }
5156
5156
  },
5157
5157
  {
5158
- "name": "type",
5159
- "default": "`circular`",
5160
- "description": "类型,可选值为 `spinner`",
5158
+ "name": "loading-text",
5159
+ "default": "`加载中...`",
5160
+ "description": "加载过程中的提示文案",
5161
5161
  "value": {
5162
5162
  "type": "string",
5163
5163
  "kind": "expression"
5164
5164
  }
5165
5165
  },
5166
5166
  {
5167
- "name": "size",
5168
- "default": "`30px`",
5169
- "description": "加载图标大小,默认单位为 `px`",
5167
+ "name": "finished-text",
5168
+ "default": "-",
5169
+ "description": "加载完成后的提示文案",
5170
5170
  "value": {
5171
- "type": "number | string",
5171
+ "type": "string",
5172
5172
  "kind": "expression"
5173
5173
  }
5174
5174
  },
5175
5175
  {
5176
- "name": "text-size",
5177
- "default": "`14px`",
5178
- "description": "文字大小,默认单位为 `px`",
5176
+ "name": "error-text",
5177
+ "default": "-",
5178
+ "description": "加载失败后的提示文案",
5179
5179
  "value": {
5180
- "type": "number | string",
5180
+ "type": "string",
5181
5181
  "kind": "expression"
5182
5182
  }
5183
5183
  },
5184
5184
  {
5185
- "name": "text-color",
5186
- "default": "`#c9c9c9`",
5187
- "description": "文字颜色",
5185
+ "name": "immediate-check",
5186
+ "default": "`true`",
5187
+ "description": "是否在初始化时立即执行滚动位置检查",
5188
5188
  "value": {
5189
- "type": "string",
5189
+ "type": "boolean",
5190
5190
  "kind": "expression"
5191
5191
  }
5192
5192
  },
5193
5193
  {
5194
- "name": "vertical",
5195
- "default": "`false`",
5196
- "description": "是否垂直排列图标和文字内容",
5194
+ "name": "direction",
5195
+ "default": "`down`",
5196
+ "description": "滚动触发加载的方向,可选值为`up`",
5197
5197
  "value": {
5198
- "type": "boolean",
5198
+ "type": "string",
5199
5199
  "kind": "expression"
5200
5200
  }
5201
5201
  }
@@ -8194,290 +8194,135 @@
8194
8194
  "attributes": [
8195
8195
  {
8196
8196
  "name": "active",
8197
- "default": "`0`",
8198
- "description": "当前步骤",
8199
- "value": {
8200
- "type": "number | string",
8201
- "kind": "expression"
8202
- }
8203
- },
8204
- {
8205
- "name": "direction",
8206
- "default": "`horizontal`",
8207
- "description": "显示方向,可选值为 `vertical`",
8208
- "value": {
8209
- "type": "string",
8210
- "kind": "expression"
8211
- }
8212
- },
8213
- {
8214
- "name": "active-color",
8215
- "default": "`#07c160`",
8216
- "description": "激活状态颜色",
8217
- "value": {
8218
- "type": "string",
8219
- "kind": "expression"
8220
- }
8221
- },
8222
- {
8223
- "name": "inactive-color",
8224
- "default": "`#969799`",
8225
- "description": "未激活状态颜色",
8226
- "value": {
8227
- "type": "string",
8228
- "kind": "expression"
8229
- }
8230
- },
8231
- {
8232
- "name": "active-icon",
8233
- "default": "`checked`",
8234
- "description": "激活状态底部图标,可选值见 [Icon 组件](#/zh-CN/icon)",
8235
- "value": {
8236
- "type": "string",
8237
- "kind": "expression"
8238
- }
8239
- },
8240
- {
8241
- "name": "inactive-icon",
8242
- "default": "-",
8243
- "description": "未激活状态底部图标,可选值见 [Icon 组件](#/zh-CN/icon)",
8244
- "value": {
8245
- "type": "string",
8246
- "kind": "expression"
8247
- }
8248
- },
8249
- {
8250
- "name": "finish-icon",
8251
- "default": "-",
8252
- "description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 [Icon 组件](#/zh-CN/icon)",
8253
- "value": {
8254
- "type": "string",
8255
- "kind": "expression"
8256
- }
8257
- },
8258
- {
8259
- "name": "icon-prefix",
8260
- "default": "`van-icon`",
8261
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
8262
- "value": {
8263
- "type": "string",
8264
- "kind": "expression"
8265
- }
8266
- }
8267
- ]
8268
- },
8269
- {
8270
- "name": "van-step",
8271
- "slots": [
8272
- {
8273
- "name": "active-icon",
8274
- "description": "自定义激活状态图标"
8275
- },
8276
- {
8277
- "name": "inactive-icon",
8278
- "description": "自定义未激活状态图标"
8279
- },
8280
- {
8281
- "name": "finish-icon",
8282
- "description": "自定义已完成步骤对应的底部图标,优先级高于 `inactive-icon`"
8283
- }
8284
- ],
8285
- "events": [],
8286
- "attributes": []
8287
- },
8288
- {
8289
- "name": "van-sticky",
8290
- "slots": [],
8291
- "events": [
8292
- {
8293
- "name": "change",
8294
- "description": "当吸顶状态改变时触发"
8295
- },
8296
- {
8297
- "name": "scroll",
8298
- "description": "滚动时触发"
8299
- }
8300
- ],
8301
- "attributes": [
8302
- {
8303
- "name": "offset-top",
8304
- "default": "`0`",
8305
- "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
8306
- "value": {
8307
- "type": "number | string",
8308
- "kind": "expression"
8309
- }
8310
- },
8311
- {
8312
- "name": "z-index",
8313
- "default": "`99`",
8314
- "description": "吸顶时的 z-index",
8315
- "value": {
8316
- "type": "number | string",
8317
- "kind": "expression"
8318
- }
8319
- },
8320
- {
8321
- "name": "container",
8322
- "default": "-",
8323
- "description": "容器对应的 HTML 节点",
8324
- "value": {
8325
- "type": "Element",
8326
- "kind": "expression"
8327
- }
8328
- }
8329
- ]
8330
- },
8331
- {
8332
- "name": "van-submit-bar",
8333
- "slots": [
8334
- {
8335
- "name": "default",
8336
- "description": "自定义订单栏左侧内容"
8337
- },
8338
- {
8339
- "name": "button",
8340
- "description": "自定义按钮"
8341
- },
8342
- {
8343
- "name": "top",
8344
- "description": "自定义订单栏上方内容"
8345
- },
8346
- {
8347
- "name": "tip",
8348
- "description": "提示文案中的额外内容"
8349
- }
8350
- ],
8351
- "events": [
8352
- {
8353
- "name": "submit",
8354
- "description": "按钮点击事件回调"
8355
- }
8356
- ],
8357
- "attributes": [
8358
- {
8359
- "name": "price",
8360
- "default": "-",
8361
- "description": "价格(单位分)",
8362
- "value": {
8363
- "type": "number",
8364
- "kind": "expression"
8365
- }
8366
- },
8367
- {
8368
- "name": "decimal-length",
8369
- "default": "`2`",
8370
- "description": "价格小数点位数",
8371
- "value": {
8372
- "type": "number | string",
8373
- "kind": "expression"
8374
- }
8375
- },
8376
- {
8377
- "name": "label",
8378
- "default": "`合计:`",
8379
- "description": "价格左侧文案",
8380
- "value": {
8381
- "type": "string",
8382
- "kind": "expression"
8383
- }
8384
- },
8385
- {
8386
- "name": "suffix-label",
8387
- "default": "-",
8388
- "description": "价格右侧文案",
8197
+ "default": "`0`",
8198
+ "description": "当前步骤",
8389
8199
  "value": {
8390
- "type": "string",
8200
+ "type": "number | string",
8391
8201
  "kind": "expression"
8392
8202
  }
8393
8203
  },
8394
8204
  {
8395
- "name": "text-align",
8396
- "default": "`right`",
8397
- "description": "价格文案对齐方向,可选值为 `left`",
8205
+ "name": "direction",
8206
+ "default": "`horizontal`",
8207
+ "description": "显示方向,可选值为 `vertical`",
8398
8208
  "value": {
8399
8209
  "type": "string",
8400
8210
  "kind": "expression"
8401
8211
  }
8402
8212
  },
8403
8213
  {
8404
- "name": "button-text",
8405
- "default": "-",
8406
- "description": "按钮文字",
8214
+ "name": "active-color",
8215
+ "default": "`#07c160`",
8216
+ "description": "激活状态颜色",
8407
8217
  "value": {
8408
8218
  "type": "string",
8409
8219
  "kind": "expression"
8410
8220
  }
8411
8221
  },
8412
8222
  {
8413
- "name": "button-type",
8414
- "default": "`danger`",
8415
- "description": "按钮类型",
8223
+ "name": "inactive-color",
8224
+ "default": "`#969799`",
8225
+ "description": "未激活状态颜色",
8416
8226
  "value": {
8417
8227
  "type": "string",
8418
8228
  "kind": "expression"
8419
8229
  }
8420
8230
  },
8421
8231
  {
8422
- "name": "button-color",
8423
- "default": "-",
8424
- "description": "自定义按钮颜色",
8232
+ "name": "active-icon",
8233
+ "default": "`checked`",
8234
+ "description": "激活状态底部图标,可选值见 [Icon 组件](#/zh-CN/icon)",
8425
8235
  "value": {
8426
8236
  "type": "string",
8427
8237
  "kind": "expression"
8428
8238
  }
8429
8239
  },
8430
8240
  {
8431
- "name": "tip",
8241
+ "name": "inactive-icon",
8432
8242
  "default": "-",
8433
- "description": "在订单栏上方的提示文案",
8243
+ "description": "未激活状态底部图标,可选值见 [Icon 组件](#/zh-CN/icon)",
8434
8244
  "value": {
8435
8245
  "type": "string",
8436
8246
  "kind": "expression"
8437
8247
  }
8438
8248
  },
8439
8249
  {
8440
- "name": "tip-icon",
8250
+ "name": "finish-icon",
8441
8251
  "default": "-",
8442
- "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
8252
+ "description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 [Icon 组件](#/zh-CN/icon)",
8443
8253
  "value": {
8444
8254
  "type": "string",
8445
8255
  "kind": "expression"
8446
8256
  }
8447
8257
  },
8448
8258
  {
8449
- "name": "currency",
8450
- "default": "`¥`",
8451
- "description": "货币符号",
8259
+ "name": "icon-prefix",
8260
+ "default": "`van-icon`",
8261
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
8452
8262
  "value": {
8453
8263
  "type": "string",
8454
8264
  "kind": "expression"
8455
8265
  }
8266
+ }
8267
+ ]
8268
+ },
8269
+ {
8270
+ "name": "van-step",
8271
+ "slots": [
8272
+ {
8273
+ "name": "active-icon",
8274
+ "description": "自定义激活状态图标"
8456
8275
  },
8457
8276
  {
8458
- "name": "disabled",
8459
- "default": "`false`",
8460
- "description": "是否禁用按钮",
8277
+ "name": "inactive-icon",
8278
+ "description": "自定义未激活状态图标"
8279
+ },
8280
+ {
8281
+ "name": "finish-icon",
8282
+ "description": "自定义已完成步骤对应的底部图标,优先级高于 `inactive-icon`"
8283
+ }
8284
+ ],
8285
+ "events": [],
8286
+ "attributes": []
8287
+ },
8288
+ {
8289
+ "name": "van-sticky",
8290
+ "slots": [],
8291
+ "events": [
8292
+ {
8293
+ "name": "change",
8294
+ "description": "当吸顶状态改变时触发"
8295
+ },
8296
+ {
8297
+ "name": "scroll",
8298
+ "description": "滚动时触发"
8299
+ }
8300
+ ],
8301
+ "attributes": [
8302
+ {
8303
+ "name": "offset-top",
8304
+ "default": "`0`",
8305
+ "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
8461
8306
  "value": {
8462
- "type": "boolean",
8307
+ "type": "number | string",
8463
8308
  "kind": "expression"
8464
8309
  }
8465
8310
  },
8466
8311
  {
8467
- "name": "loading",
8468
- "default": "`false`",
8469
- "description": "是否显示将按钮显示为加载中状态",
8312
+ "name": "z-index",
8313
+ "default": "`99`",
8314
+ "description": "吸顶时的 z-index",
8470
8315
  "value": {
8471
- "type": "boolean",
8316
+ "type": "number | string",
8472
8317
  "kind": "expression"
8473
8318
  }
8474
8319
  },
8475
8320
  {
8476
- "name": "safe-area-inset-bottom",
8477
- "default": "`true`",
8478
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
8321
+ "name": "container",
8322
+ "default": "-",
8323
+ "description": "容器对应的 HTML 节点",
8479
8324
  "value": {
8480
- "type": "boolean",
8325
+ "type": "Element",
8481
8326
  "kind": "expression"
8482
8327
  }
8483
8328
  }
@@ -8623,6 +8468,161 @@
8623
8468
  ],
8624
8469
  "attributes": []
8625
8470
  },
8471
+ {
8472
+ "name": "van-submit-bar",
8473
+ "slots": [
8474
+ {
8475
+ "name": "default",
8476
+ "description": "自定义订单栏左侧内容"
8477
+ },
8478
+ {
8479
+ "name": "button",
8480
+ "description": "自定义按钮"
8481
+ },
8482
+ {
8483
+ "name": "top",
8484
+ "description": "自定义订单栏上方内容"
8485
+ },
8486
+ {
8487
+ "name": "tip",
8488
+ "description": "提示文案中的额外内容"
8489
+ }
8490
+ ],
8491
+ "events": [
8492
+ {
8493
+ "name": "submit",
8494
+ "description": "按钮点击事件回调"
8495
+ }
8496
+ ],
8497
+ "attributes": [
8498
+ {
8499
+ "name": "price",
8500
+ "default": "-",
8501
+ "description": "价格(单位分)",
8502
+ "value": {
8503
+ "type": "number",
8504
+ "kind": "expression"
8505
+ }
8506
+ },
8507
+ {
8508
+ "name": "decimal-length",
8509
+ "default": "`2`",
8510
+ "description": "价格小数点位数",
8511
+ "value": {
8512
+ "type": "number | string",
8513
+ "kind": "expression"
8514
+ }
8515
+ },
8516
+ {
8517
+ "name": "label",
8518
+ "default": "`合计:`",
8519
+ "description": "价格左侧文案",
8520
+ "value": {
8521
+ "type": "string",
8522
+ "kind": "expression"
8523
+ }
8524
+ },
8525
+ {
8526
+ "name": "suffix-label",
8527
+ "default": "-",
8528
+ "description": "价格右侧文案",
8529
+ "value": {
8530
+ "type": "string",
8531
+ "kind": "expression"
8532
+ }
8533
+ },
8534
+ {
8535
+ "name": "text-align",
8536
+ "default": "`right`",
8537
+ "description": "价格文案对齐方向,可选值为 `left`",
8538
+ "value": {
8539
+ "type": "string",
8540
+ "kind": "expression"
8541
+ }
8542
+ },
8543
+ {
8544
+ "name": "button-text",
8545
+ "default": "-",
8546
+ "description": "按钮文字",
8547
+ "value": {
8548
+ "type": "string",
8549
+ "kind": "expression"
8550
+ }
8551
+ },
8552
+ {
8553
+ "name": "button-type",
8554
+ "default": "`danger`",
8555
+ "description": "按钮类型",
8556
+ "value": {
8557
+ "type": "string",
8558
+ "kind": "expression"
8559
+ }
8560
+ },
8561
+ {
8562
+ "name": "button-color",
8563
+ "default": "-",
8564
+ "description": "自定义按钮颜色",
8565
+ "value": {
8566
+ "type": "string",
8567
+ "kind": "expression"
8568
+ }
8569
+ },
8570
+ {
8571
+ "name": "tip",
8572
+ "default": "-",
8573
+ "description": "在订单栏上方的提示文案",
8574
+ "value": {
8575
+ "type": "string",
8576
+ "kind": "expression"
8577
+ }
8578
+ },
8579
+ {
8580
+ "name": "tip-icon",
8581
+ "default": "-",
8582
+ "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
8583
+ "value": {
8584
+ "type": "string",
8585
+ "kind": "expression"
8586
+ }
8587
+ },
8588
+ {
8589
+ "name": "currency",
8590
+ "default": "`¥`",
8591
+ "description": "货币符号",
8592
+ "value": {
8593
+ "type": "string",
8594
+ "kind": "expression"
8595
+ }
8596
+ },
8597
+ {
8598
+ "name": "disabled",
8599
+ "default": "`false`",
8600
+ "description": "是否禁用按钮",
8601
+ "value": {
8602
+ "type": "boolean",
8603
+ "kind": "expression"
8604
+ }
8605
+ },
8606
+ {
8607
+ "name": "loading",
8608
+ "default": "`false`",
8609
+ "description": "是否显示将按钮显示为加载中状态",
8610
+ "value": {
8611
+ "type": "boolean",
8612
+ "kind": "expression"
8613
+ }
8614
+ },
8615
+ {
8616
+ "name": "safe-area-inset-bottom",
8617
+ "default": "`true`",
8618
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
8619
+ "value": {
8620
+ "type": "boolean",
8621
+ "kind": "expression"
8622
+ }
8623
+ }
8624
+ ]
8625
+ },
8626
8626
  {
8627
8627
  "name": "van-swipe-cell",
8628
8628
  "slots": [