vant 2.13.6 → 2.13.7

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.
@@ -1,4 +1,32 @@
1
1
  {
2
+ "van-address-list/v-model": {
3
+ "type": "string",
4
+ "description": "当前选中地址的 id, 默认值: -"
5
+ },
6
+ "van-address-list/list": {
7
+ "type": "Address[]",
8
+ "description": "地址列表, 默认值: `[]`"
9
+ },
10
+ "van-address-list/disabled-list": {
11
+ "type": "Address[]",
12
+ "description": "不可配送地址列表, 默认值: `[]`"
13
+ },
14
+ "van-address-list/disabled-text": {
15
+ "type": "string",
16
+ "description": "不可配送提示文案, 默认值: -"
17
+ },
18
+ "van-address-list/switchable": {
19
+ "type": "boolean",
20
+ "description": "是否允许切换地址, 默认值: `true`"
21
+ },
22
+ "van-address-list/add-button-text": {
23
+ "type": "string",
24
+ "description": "底部按钮文字, 默认值: `新增地址`"
25
+ },
26
+ "van-address-list/default-tag-text": {
27
+ "type": "string",
28
+ "description": "默认地址标签文字, 默认值: -"
29
+ },
2
30
  "van-address-edit/area-list": {
3
31
  "type": "object",
4
32
  "description": "地区列表, 默认值: -"
@@ -87,33 +115,57 @@
87
115
  "type": "(key, val) => string",
88
116
  "description": "自定义校验函数, 默认值: -"
89
117
  },
90
- "van-address-list/v-model": {
118
+ "van-area/value": {
91
119
  "type": "string",
92
- "description": "当前选中地址的 id, 默认值: -"
120
+ "description": "当前选中的省市区`code`, 默认值: -"
93
121
  },
94
- "van-address-list/list": {
95
- "type": "Address[]",
96
- "description": "地址列表, 默认值: `[]`"
122
+ "van-area/title": {
123
+ "type": "string",
124
+ "description": "顶部栏标题, 默认值: -"
97
125
  },
98
- "van-address-list/disabled-list": {
99
- "type": "Address[]",
100
- "description": "不可配送地址列表, 默认值: `[]`"
126
+ "van-area/confirm-button-text": {
127
+ "type": "string",
128
+ "description": "确认按钮文字, 默认值: `确认`"
101
129
  },
102
- "van-address-list/disabled-text": {
130
+ "van-area/cancel-button-text": {
103
131
  "type": "string",
104
- "description": "不可配送提示文案, 默认值: -"
132
+ "description": "取消按钮文字, 默认值: `取消`"
105
133
  },
106
- "van-address-list/switchable": {
134
+ "van-area/area-list": {
135
+ "type": "object",
136
+ "description": "省市区数据,格式见下方, 默认值: -"
137
+ },
138
+ "van-area/columns-placeholder": {
139
+ "type": "string[]",
140
+ "description": "列占位提示文字, 默认值: `[]`"
141
+ },
142
+ "van-area/loading": {
107
143
  "type": "boolean",
108
- "description": "是否允许切换地址, 默认值: `true`"
144
+ "description": "是否显示加载状态, 默认值: `false`"
109
145
  },
110
- "van-address-list/add-button-text": {
111
- "type": "string",
112
- "description": "底部按钮文字, 默认值: `新增地址`"
146
+ "van-area/readonly": {
147
+ "type": "boolean",
148
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
113
149
  },
114
- "van-address-list/default-tag-text": {
115
- "type": "string",
116
- "description": "默认地址标签文字, 默认值: -"
150
+ "van-area/item-height": {
151
+ "type": "number | string",
152
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
153
+ },
154
+ "van-area/columns-num": {
155
+ "type": "number | string",
156
+ "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
157
+ },
158
+ "van-area/visible-item-count": {
159
+ "type": "number | string",
160
+ "description": "可见的选项个数, 默认值: `6`"
161
+ },
162
+ "van-area/swipe-duration": {
163
+ "type": "number | string",
164
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
165
+ },
166
+ "van-area/is-oversea-code": {
167
+ "type": "() => boolean",
168
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
117
169
  },
118
170
  "van-action-sheet/v-model (value)": {
119
171
  "type": "boolean",
@@ -183,58 +235,6 @@
183
235
  "type": "string | () => Element",
184
236
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
185
237
  },
186
- "van-area/value": {
187
- "type": "string",
188
- "description": "当前选中的省市区`code`, 默认值: -"
189
- },
190
- "van-area/title": {
191
- "type": "string",
192
- "description": "顶部栏标题, 默认值: -"
193
- },
194
- "van-area/confirm-button-text": {
195
- "type": "string",
196
- "description": "确认按钮文字, 默认值: `确认`"
197
- },
198
- "van-area/cancel-button-text": {
199
- "type": "string",
200
- "description": "取消按钮文字, 默认值: `取消`"
201
- },
202
- "van-area/area-list": {
203
- "type": "object",
204
- "description": "省市区数据,格式见下方, 默认值: -"
205
- },
206
- "van-area/columns-placeholder": {
207
- "type": "string[]",
208
- "description": "列占位提示文字, 默认值: `[]`"
209
- },
210
- "van-area/loading": {
211
- "type": "boolean",
212
- "description": "是否显示加载状态, 默认值: `false`"
213
- },
214
- "van-area/readonly": {
215
- "type": "boolean",
216
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
217
- },
218
- "van-area/item-height": {
219
- "type": "number | string",
220
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
221
- },
222
- "van-area/columns-num": {
223
- "type": "number | string",
224
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
225
- },
226
- "van-area/visible-item-count": {
227
- "type": "number | string",
228
- "description": "可见的选项个数, 默认值: `6`"
229
- },
230
- "van-area/swipe-duration": {
231
- "type": "number | string",
232
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
233
- },
234
- "van-area/is-oversea-code": {
235
- "type": "() => boolean",
236
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
237
- },
238
238
  "van-badge/content": {
239
239
  "type": "number | string",
240
240
  "description": "徽标内容, 默认值: -"
@@ -535,66 +535,6 @@
535
535
  "type": "object",
536
536
  "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
537
537
  },
538
- "van-checkbox/v-model (value)": {
539
- "type": "boolean",
540
- "description": "是否为选中状态, 默认值: `false`"
541
- },
542
- "van-checkbox/name": {
543
- "type": "any",
544
- "description": "标识符, 默认值: -"
545
- },
546
- "van-checkbox/shape": {
547
- "type": "string",
548
- "description": "形状,可选值为 `square`, 默认值: `round`"
549
- },
550
- "van-checkbox/disabled": {
551
- "type": "boolean",
552
- "description": "是否禁用复选框, 默认值: `false`"
553
- },
554
- "van-checkbox/label-disabled": {
555
- "type": "boolean",
556
- "description": "是否禁用复选框文本点击, 默认值: `false`"
557
- },
558
- "van-checkbox/label-position": {
559
- "type": "string",
560
- "description": "文本位置,可选值为 `left`, 默认值: `right`"
561
- },
562
- "van-checkbox/icon-size": {
563
- "type": "number | string",
564
- "description": "图标大小,默认单位为 `px`, 默认值: `20px`"
565
- },
566
- "van-checkbox/checked-color": {
567
- "type": "string",
568
- "description": "选中状态颜色, 默认值: `#1989fa`"
569
- },
570
- "van-checkbox/bind-group": {
571
- "type": "boolean",
572
- "description": "是否与复选框组绑定, 默认值: `true`"
573
- },
574
- "van-checkbox-group/v-model (value)": {
575
- "type": "any[]",
576
- "description": "所有选中项的标识符, 默认值: -"
577
- },
578
- "van-checkbox-group/disabled": {
579
- "type": "boolean",
580
- "description": "是否禁用所有复选框, 默认值: `false`"
581
- },
582
- "van-checkbox-group/max": {
583
- "type": "number | string",
584
- "description": "最大可选数,`0`为无限制, 默认值: `0`"
585
- },
586
- "van-checkbox-group/direction": {
587
- "type": "string",
588
- "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
589
- },
590
- "van-checkbox-group/icon-size": {
591
- "type": "number | string",
592
- "description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
593
- },
594
- "van-checkbox-group/checked-color": {
595
- "type": "string",
596
- "description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
597
- },
598
538
  "van-cell-group/title": {
599
539
  "type": "string",
600
540
  "description": "分组标题, 默认值: `-`"
@@ -679,6 +619,66 @@
679
619
  "type": "any",
680
620
  "description": "描述信息额外类名, 默认值: -"
681
621
  },
622
+ "van-checkbox/v-model (value)": {
623
+ "type": "boolean",
624
+ "description": "是否为选中状态, 默认值: `false`"
625
+ },
626
+ "van-checkbox/name": {
627
+ "type": "any",
628
+ "description": "标识符, 默认值: -"
629
+ },
630
+ "van-checkbox/shape": {
631
+ "type": "string",
632
+ "description": "形状,可选值为 `square`, 默认值: `round`"
633
+ },
634
+ "van-checkbox/disabled": {
635
+ "type": "boolean",
636
+ "description": "是否禁用复选框, 默认值: `false`"
637
+ },
638
+ "van-checkbox/label-disabled": {
639
+ "type": "boolean",
640
+ "description": "是否禁用复选框文本点击, 默认值: `false`"
641
+ },
642
+ "van-checkbox/label-position": {
643
+ "type": "string",
644
+ "description": "文本位置,可选值为 `left`, 默认值: `right`"
645
+ },
646
+ "van-checkbox/icon-size": {
647
+ "type": "number | string",
648
+ "description": "图标大小,默认单位为 `px`, 默认值: `20px`"
649
+ },
650
+ "van-checkbox/checked-color": {
651
+ "type": "string",
652
+ "description": "选中状态颜色, 默认值: `#1989fa`"
653
+ },
654
+ "van-checkbox/bind-group": {
655
+ "type": "boolean",
656
+ "description": "是否与复选框组绑定, 默认值: `true`"
657
+ },
658
+ "van-checkbox-group/v-model (value)": {
659
+ "type": "any[]",
660
+ "description": "所有选中项的标识符, 默认值: -"
661
+ },
662
+ "van-checkbox-group/disabled": {
663
+ "type": "boolean",
664
+ "description": "是否禁用所有复选框, 默认值: `false`"
665
+ },
666
+ "van-checkbox-group/max": {
667
+ "type": "number | string",
668
+ "description": "最大可选数,`0`为无限制, 默认值: `0`"
669
+ },
670
+ "van-checkbox-group/direction": {
671
+ "type": "string",
672
+ "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
673
+ },
674
+ "van-checkbox-group/icon-size": {
675
+ "type": "number | string",
676
+ "description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
677
+ },
678
+ "van-checkbox-group/checked-color": {
679
+ "type": "string",
680
+ "description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
681
+ },
682
682
  "van-circle/v-model": {
683
683
  "type": "number",
684
684
  "description": "当前进度, 默认值: -"
@@ -819,6 +819,22 @@
819
819
  "type": "string",
820
820
  "description": "描述信息额外类名, 默认值: -"
821
821
  },
822
+ "van-contact-card/type": {
823
+ "type": "string",
824
+ "description": "卡片类型,可选值为 `edit`, 默认值: `add`"
825
+ },
826
+ "van-contact-card/name": {
827
+ "type": "string",
828
+ "description": "联系人姓名, 默认值: -"
829
+ },
830
+ "van-contact-card/tel": {
831
+ "type": "string",
832
+ "description": "联系人手机号, 默认值: -"
833
+ },
834
+ "van-contact-card/add-text": {
835
+ "type": "string",
836
+ "description": "添加时的文案提示, 默认值: `添加联系人`"
837
+ },
822
838
  "van-contact-edit/contact-info": {
823
839
  "type": "Contact",
824
840
  "description": "联系人信息, 默认值: `{}`"
@@ -863,22 +879,6 @@
863
879
  "type": "string",
864
880
  "description": "默认联系人标签文案, 默认值: -"
865
881
  },
866
- "van-contact-card/type": {
867
- "type": "string",
868
- "description": "卡片类型,可选值为 `edit`, 默认值: `add`"
869
- },
870
- "van-contact-card/name": {
871
- "type": "string",
872
- "description": "联系人姓名, 默认值: -"
873
- },
874
- "van-contact-card/tel": {
875
- "type": "string",
876
- "description": "联系人手机号, 默认值: -"
877
- },
878
- "van-contact-card/add-text": {
879
- "type": "string",
880
- "description": "添加时的文案提示, 默认值: `添加联系人`"
881
- },
882
882
  "van-count-down/time": {
883
883
  "type": "number | string",
884
884
  "description": "倒计时时长,单位毫秒, 默认值: `0`"
@@ -1067,6 +1067,18 @@
1067
1067
  "type": "number | string",
1068
1068
  "description": "可选的最大分钟, 默认值: `59`"
1069
1069
  },
1070
+ "van-divider/dashed": {
1071
+ "type": "boolean",
1072
+ "description": "是否使用虚线, 默认值: `false`"
1073
+ },
1074
+ "van-divider/hairline": {
1075
+ "type": "boolean",
1076
+ "description": "是否使用 0.5px 线, 默认值: `true`"
1077
+ },
1078
+ "van-divider/content-position": {
1079
+ "type": "string",
1080
+ "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
1081
+ },
1070
1082
  "van-dialog/v-model": {
1071
1083
  "type": "boolean",
1072
1084
  "description": "是否显示弹窗, 默认值: -"
@@ -1159,18 +1171,6 @@
1159
1171
  "type": "string | () => Element",
1160
1172
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1161
1173
  },
1162
- "van-divider/dashed": {
1163
- "type": "boolean",
1164
- "description": "是否使用虚线, 默认值: `false`"
1165
- },
1166
- "van-divider/hairline": {
1167
- "type": "boolean",
1168
- "description": "是否使用 0.5px 线, 默认值: `true`"
1169
- },
1170
- "van-divider/content-position": {
1171
- "type": "string",
1172
- "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
1173
- },
1174
1174
  "van-empty/image": {
1175
1175
  "type": "string",
1176
1176
  "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
@@ -1611,6 +1611,58 @@
1611
1611
  "type": "string",
1612
1612
  "description": "HTML 标签, 默认值: `i`"
1613
1613
  },
1614
+ "van-image/src": {
1615
+ "type": "string",
1616
+ "description": "图片链接, 默认值: -"
1617
+ },
1618
+ "van-image/fit": {
1619
+ "type": "string",
1620
+ "description": "图片填充模式, 默认值: `fill`"
1621
+ },
1622
+ "van-image/alt": {
1623
+ "type": "string",
1624
+ "description": "替代文本, 默认值: -"
1625
+ },
1626
+ "van-image/width": {
1627
+ "type": "number | string",
1628
+ "description": "宽度,默认单位为`px`, 默认值: -"
1629
+ },
1630
+ "van-image/height": {
1631
+ "type": "number | string",
1632
+ "description": "高度,默认单位为`px`, 默认值: -"
1633
+ },
1634
+ "van-image/radius": {
1635
+ "type": "number | string",
1636
+ "description": "圆角大小,默认单位为`px`, 默认值: `0`"
1637
+ },
1638
+ "van-image/round": {
1639
+ "type": "boolean",
1640
+ "description": "是否显示为圆形, 默认值: `false`"
1641
+ },
1642
+ "van-image/lazy-load": {
1643
+ "type": "boolean",
1644
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
1645
+ },
1646
+ "van-image/show-error": {
1647
+ "type": "boolean",
1648
+ "description": "是否展示图片加载失败提示, 默认值: `true`"
1649
+ },
1650
+ "van-image/show-loading": {
1651
+ "type": "boolean",
1652
+ "description": "是否展示图片加载中提示, 默认值: `true`"
1653
+ },
1654
+ "van-image/error-icon": {
1655
+ "type": "string",
1656
+ "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
1657
+ },
1658
+ "van-image/loading-icon": {
1659
+ "type": "string",
1660
+ "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
1661
+ },
1662
+ "van-image/icon-prefix": {
1663
+ "type": "string",
1664
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1665
+ },
1614
1666
  "van-image-preview/images": {
1615
1667
  "type": "string[]",
1616
1668
  "description": "需要预览的图片 URL 数组, 默认值: `[]`"
@@ -1675,62 +1727,10 @@
1675
1727
  "type": "object",
1676
1728
  "description": "自定义遮罩层样式, 默认值: -"
1677
1729
  },
1678
- "van-image-preview/get-container": {
1679
- "type": "string | () => Element",
1680
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1681
- },
1682
- "van-image/src": {
1683
- "type": "string",
1684
- "description": "图片链接, 默认值: -"
1685
- },
1686
- "van-image/fit": {
1687
- "type": "string",
1688
- "description": "图片填充模式, 默认值: `fill`"
1689
- },
1690
- "van-image/alt": {
1691
- "type": "string",
1692
- "description": "替代文本, 默认值: -"
1693
- },
1694
- "van-image/width": {
1695
- "type": "number | string",
1696
- "description": "宽度,默认单位为`px`, 默认值: -"
1697
- },
1698
- "van-image/height": {
1699
- "type": "number | string",
1700
- "description": "高度,默认单位为`px`, 默认值: -"
1701
- },
1702
- "van-image/radius": {
1703
- "type": "number | string",
1704
- "description": "圆角大小,默认单位为`px`, 默认值: `0`"
1705
- },
1706
- "van-image/round": {
1707
- "type": "boolean",
1708
- "description": "是否显示为圆形, 默认值: `false`"
1709
- },
1710
- "van-image/lazy-load": {
1711
- "type": "boolean",
1712
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
1713
- },
1714
- "van-image/show-error": {
1715
- "type": "boolean",
1716
- "description": "是否展示图片加载失败提示, 默认值: `true`"
1717
- },
1718
- "van-image/show-loading": {
1719
- "type": "boolean",
1720
- "description": "是否展示图片加载中提示, 默认值: `true`"
1721
- },
1722
- "van-image/error-icon": {
1723
- "type": "string",
1724
- "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
1725
- },
1726
- "van-image/loading-icon": {
1727
- "type": "string",
1728
- "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
1729
- },
1730
- "van-image/icon-prefix": {
1731
- "type": "string",
1732
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1733
- },
1730
+ "van-image-preview/get-container": {
1731
+ "type": "string | () => Element",
1732
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1733
+ },
1734
1734
  "van-index-bar/index-list": {
1735
1735
  "type": "string[] | number[]",
1736
1736
  "description": "索引字符列表, 默认值: `A-Z`"
@@ -1887,42 +1887,6 @@
1887
1887
  "type": "boolean",
1888
1888
  "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
1889
1889
  },
1890
- "van-pagination/v-model": {
1891
- "type": "number",
1892
- "description": "当前页码, 默认值: -"
1893
- },
1894
- "van-pagination/mode": {
1895
- "type": "string",
1896
- "description": "显示模式,可选值为 `simple`, 默认值: `multi`"
1897
- },
1898
- "van-pagination/prev-text": {
1899
- "type": "string",
1900
- "description": "上一页按钮文字, 默认值: `上一页`"
1901
- },
1902
- "van-pagination/next-text": {
1903
- "type": "string",
1904
- "description": "下一页按钮文字, 默认值: `下一页`"
1905
- },
1906
- "van-pagination/page-count": {
1907
- "type": "number | string",
1908
- "description": "总页数, 默认值: 根据页数计算"
1909
- },
1910
- "van-pagination/total-items": {
1911
- "type": "number | string",
1912
- "description": "总记录数, 默认值: `0`"
1913
- },
1914
- "van-pagination/items-per-page": {
1915
- "type": "number | string",
1916
- "description": "每页记录数, 默认值: `10`"
1917
- },
1918
- "van-pagination/show-page-size": {
1919
- "type": "number | string",
1920
- "description": "显示的页码个数, 默认值: `5`"
1921
- },
1922
- "van-pagination/force-ellipses": {
1923
- "type": "boolean",
1924
- "description": "是否显示省略号, 默认值: `false`"
1925
- },
1926
1890
  "van-number-keyboard/v-model (value)": {
1927
1891
  "type": "string",
1928
1892
  "description": "当前输入值, 默认值: -"
@@ -2011,6 +1975,42 @@
2011
1975
  "type": "boolean",
2012
1976
  "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
2013
1977
  },
1978
+ "van-pagination/v-model": {
1979
+ "type": "number",
1980
+ "description": "当前页码, 默认值: -"
1981
+ },
1982
+ "van-pagination/mode": {
1983
+ "type": "string",
1984
+ "description": "显示模式,可选值为 `simple`, 默认值: `multi`"
1985
+ },
1986
+ "van-pagination/prev-text": {
1987
+ "type": "string",
1988
+ "description": "上一页按钮文字, 默认值: `上一页`"
1989
+ },
1990
+ "van-pagination/next-text": {
1991
+ "type": "string",
1992
+ "description": "下一页按钮文字, 默认值: `下一页`"
1993
+ },
1994
+ "van-pagination/page-count": {
1995
+ "type": "number | string",
1996
+ "description": "总页数, 默认值: 根据页数计算"
1997
+ },
1998
+ "van-pagination/total-items": {
1999
+ "type": "number | string",
2000
+ "description": "总记录数, 默认值: `0`"
2001
+ },
2002
+ "van-pagination/items-per-page": {
2003
+ "type": "number | string",
2004
+ "description": "每页记录数, 默认值: `10`"
2005
+ },
2006
+ "van-pagination/show-page-size": {
2007
+ "type": "number | string",
2008
+ "description": "显示的页码个数, 默认值: `5`"
2009
+ },
2010
+ "van-pagination/force-ellipses": {
2011
+ "type": "boolean",
2012
+ "description": "是否显示省略号, 默认值: `false`"
2013
+ },
2014
2014
  "van-panel/title": {
2015
2015
  "type": "string",
2016
2016
  "description": "标题, 默认值: -"
@@ -2151,6 +2151,42 @@
2151
2151
  "type": "string | () => Element",
2152
2152
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: `body`"
2153
2153
  },
2154
+ "van-progress/percentage": {
2155
+ "type": "number | string",
2156
+ "description": "进度百分比, 默认值: `0`"
2157
+ },
2158
+ "van-progress/stroke-width": {
2159
+ "type": "number | string",
2160
+ "description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
2161
+ },
2162
+ "van-progress/color": {
2163
+ "type": "string",
2164
+ "description": "进度条颜色, 默认值: `#1989fa`"
2165
+ },
2166
+ "van-progress/track-color": {
2167
+ "type": "string",
2168
+ "description": "轨道颜色, 默认值: `#e5e5e5`"
2169
+ },
2170
+ "van-progress/pivot-text": {
2171
+ "type": "string",
2172
+ "description": "进度文字内容, 默认值: 百分比"
2173
+ },
2174
+ "van-progress/pivot-color": {
2175
+ "type": "string",
2176
+ "description": "进度文字背景色, 默认值: 同进度条颜色"
2177
+ },
2178
+ "van-progress/text-color": {
2179
+ "type": "string",
2180
+ "description": "进度文字颜色, 默认值: `white`"
2181
+ },
2182
+ "van-progress/inactive": {
2183
+ "type": "boolean",
2184
+ "description": "是否置灰, 默认值: `false`"
2185
+ },
2186
+ "van-progress/show-pivot": {
2187
+ "type": "boolean",
2188
+ "description": "是否显示进度文字, 默认值: `true`"
2189
+ },
2154
2190
  "van-popup/v-model (value)": {
2155
2191
  "type": "boolean",
2156
2192
  "description": "是否显示弹出层, 默认值: `false`"
@@ -2223,42 +2259,6 @@
2223
2259
  "type": "boolean",
2224
2260
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
2225
2261
  },
2226
- "van-progress/percentage": {
2227
- "type": "number | string",
2228
- "description": "进度百分比, 默认值: `0`"
2229
- },
2230
- "van-progress/stroke-width": {
2231
- "type": "number | string",
2232
- "description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
2233
- },
2234
- "van-progress/color": {
2235
- "type": "string",
2236
- "description": "进度条颜色, 默认值: `#1989fa`"
2237
- },
2238
- "van-progress/track-color": {
2239
- "type": "string",
2240
- "description": "轨道颜色, 默认值: `#e5e5e5`"
2241
- },
2242
- "van-progress/pivot-text": {
2243
- "type": "string",
2244
- "description": "进度文字内容, 默认值: 百分比"
2245
- },
2246
- "van-progress/pivot-color": {
2247
- "type": "string",
2248
- "description": "进度文字背景色, 默认值: 同进度条颜色"
2249
- },
2250
- "van-progress/text-color": {
2251
- "type": "string",
2252
- "description": "进度文字颜色, 默认值: `white`"
2253
- },
2254
- "van-progress/inactive": {
2255
- "type": "boolean",
2256
- "description": "是否置灰, 默认值: `false`"
2257
- },
2258
- "van-progress/show-pivot": {
2259
- "type": "boolean",
2260
- "description": "是否显示进度文字, 默认值: `true`"
2261
- },
2262
2262
  "van-pull-refresh/v-model": {
2263
2263
  "type": "boolean",
2264
2264
  "description": "是否处于加载中状态, 默认值: -"
@@ -2347,70 +2347,6 @@
2347
2347
  "type": "string",
2348
2348
  "description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
2349
2349
  },
2350
- "van-search/label": {
2351
- "type": "string",
2352
- "description": "搜索框左侧文本, 默认值: -"
2353
- },
2354
- "van-search/shape": {
2355
- "type": "string",
2356
- "description": "搜索框形状,可选值为 `round`, 默认值: `square`"
2357
- },
2358
- "van-search/background": {
2359
- "type": "string",
2360
- "description": "搜索框外部背景色, 默认值: `#f2f2f2`"
2361
- },
2362
- "van-search/maxlength": {
2363
- "type": "number | string",
2364
- "description": "输入的最大字符数, 默认值: -"
2365
- },
2366
- "van-search/placeholder": {
2367
- "type": "string",
2368
- "description": "占位提示文字, 默认值: -"
2369
- },
2370
- "van-search/clearable": {
2371
- "type": "boolean",
2372
- "description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
2373
- },
2374
- "van-search/clear-trigger": {
2375
- "type": "string",
2376
- "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
2377
- },
2378
- "van-search/autofocus": {
2379
- "type": "boolean",
2380
- "description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
2381
- },
2382
- "van-search/show-action": {
2383
- "type": "boolean",
2384
- "description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
2385
- },
2386
- "van-search/action-text": {
2387
- "type": "boolean",
2388
- "description": "取消按钮文字, 默认值: `取消`"
2389
- },
2390
- "van-search/disabled": {
2391
- "type": "boolean",
2392
- "description": "是否禁用输入框, 默认值: `false`"
2393
- },
2394
- "van-search/readonly": {
2395
- "type": "boolean",
2396
- "description": "是否将输入框设为只读, 默认值: `false`"
2397
- },
2398
- "van-search/error": {
2399
- "type": "boolean",
2400
- "description": "是否将输入内容标红, 默认值: `false`"
2401
- },
2402
- "van-search/input-align": {
2403
- "type": "string",
2404
- "description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
2405
- },
2406
- "van-search/left-icon": {
2407
- "type": "string",
2408
- "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
2409
- },
2410
- "van-search/right-icon": {
2411
- "type": "string",
2412
- "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
2413
- },
2414
2350
  "van-rate/v-model": {
2415
2351
  "type": "number",
2416
2352
  "description": "当前分值, 默认值: -"
@@ -2447,25 +2383,89 @@
2447
2383
  "type": "string",
2448
2384
  "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
2449
2385
  },
2450
- "van-rate/icon-prefix": {
2386
+ "van-rate/icon-prefix": {
2387
+ "type": "string",
2388
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
2389
+ },
2390
+ "van-rate/allow-half": {
2391
+ "type": "boolean",
2392
+ "description": "是否允许半选, 默认值: `false`"
2393
+ },
2394
+ "van-rate/readonly": {
2395
+ "type": "boolean",
2396
+ "description": "是否为只读状态, 默认值: `false`"
2397
+ },
2398
+ "van-rate/disabled": {
2399
+ "type": "boolean",
2400
+ "description": "是否禁用评分, 默认值: `false`"
2401
+ },
2402
+ "van-rate/touchable": {
2403
+ "type": "boolean",
2404
+ "description": "是否可以通过滑动手势选择评分, 默认值: `true`"
2405
+ },
2406
+ "van-search/label": {
2407
+ "type": "string",
2408
+ "description": "搜索框左侧文本, 默认值: -"
2409
+ },
2410
+ "van-search/shape": {
2411
+ "type": "string",
2412
+ "description": "搜索框形状,可选值为 `round`, 默认值: `square`"
2413
+ },
2414
+ "van-search/background": {
2415
+ "type": "string",
2416
+ "description": "搜索框外部背景色, 默认值: `#f2f2f2`"
2417
+ },
2418
+ "van-search/maxlength": {
2419
+ "type": "number | string",
2420
+ "description": "输入的最大字符数, 默认值: -"
2421
+ },
2422
+ "van-search/placeholder": {
2423
+ "type": "string",
2424
+ "description": "占位提示文字, 默认值: -"
2425
+ },
2426
+ "van-search/clearable": {
2427
+ "type": "boolean",
2428
+ "description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
2429
+ },
2430
+ "van-search/clear-trigger": {
2451
2431
  "type": "string",
2452
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
2432
+ "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
2453
2433
  },
2454
- "van-rate/allow-half": {
2434
+ "van-search/autofocus": {
2455
2435
  "type": "boolean",
2456
- "description": "是否允许半选, 默认值: `false`"
2436
+ "description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
2457
2437
  },
2458
- "van-rate/readonly": {
2438
+ "van-search/show-action": {
2459
2439
  "type": "boolean",
2460
- "description": "是否为只读状态, 默认值: `false`"
2440
+ "description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
2461
2441
  },
2462
- "van-rate/disabled": {
2442
+ "van-search/action-text": {
2463
2443
  "type": "boolean",
2464
- "description": "是否禁用评分, 默认值: `false`"
2444
+ "description": "取消按钮文字, 默认值: `取消`"
2465
2445
  },
2466
- "van-rate/touchable": {
2446
+ "van-search/disabled": {
2467
2447
  "type": "boolean",
2468
- "description": "是否可以通过滑动手势选择评分, 默认值: `true`"
2448
+ "description": "是否禁用输入框, 默认值: `false`"
2449
+ },
2450
+ "van-search/readonly": {
2451
+ "type": "boolean",
2452
+ "description": "是否将输入框设为只读, 默认值: `false`"
2453
+ },
2454
+ "van-search/error": {
2455
+ "type": "boolean",
2456
+ "description": "是否将输入内容标红, 默认值: `false`"
2457
+ },
2458
+ "van-search/input-align": {
2459
+ "type": "string",
2460
+ "description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
2461
+ },
2462
+ "van-search/left-icon": {
2463
+ "type": "string",
2464
+ "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
2465
+ },
2466
+ "van-search/right-icon": {
2467
+ "type": "string",
2468
+ "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
2469
2469
  },
2470
2470
  "van-share-sheet/options": {
2471
2471
  "type": "Option[]",
@@ -2591,6 +2591,50 @@
2591
2591
  "type": "string",
2592
2592
  "description": "头像占位图形状,可选值为`square`, 默认值: `round`"
2593
2593
  },
2594
+ "van-slider/value": {
2595
+ "type": "number | array",
2596
+ "description": "当前进度百分比, 默认值: `0`"
2597
+ },
2598
+ "van-slider/max": {
2599
+ "type": "number | string",
2600
+ "description": "最大值, 默认值: `100`"
2601
+ },
2602
+ "van-slider/min": {
2603
+ "type": "number | string",
2604
+ "description": "最小值, 默认值: `0`"
2605
+ },
2606
+ "van-slider/step": {
2607
+ "type": "number | string",
2608
+ "description": "步长, 默认值: `1`"
2609
+ },
2610
+ "van-slider/bar-height": {
2611
+ "type": "number | string",
2612
+ "description": "进度条高度,默认单位为`px`, 默认值: `2px`"
2613
+ },
2614
+ "van-slider/button-size": {
2615
+ "type": "number | string",
2616
+ "description": "滑块按钮大小,默认单位为`px`, 默认值: `24px`"
2617
+ },
2618
+ "van-slider/active-color": {
2619
+ "type": "string",
2620
+ "description": "进度条激活态颜色, 默认值: `#1989fa`"
2621
+ },
2622
+ "van-slider/inactive-color": {
2623
+ "type": "string",
2624
+ "description": "进度条非激活态颜色, 默认值: `#e5e5e5`"
2625
+ },
2626
+ "van-slider/range": {
2627
+ "type": "boolean",
2628
+ "description": "是否开启双滑块模式, 默认值: `false`"
2629
+ },
2630
+ "van-slider/disabled": {
2631
+ "type": "boolean",
2632
+ "description": "是否禁用滑块, 默认值: `false`"
2633
+ },
2634
+ "van-slider/vertical": {
2635
+ "type": "boolean",
2636
+ "description": "是否垂直展示, 默认值: `false`"
2637
+ },
2594
2638
  "van-sku/v-model": {
2595
2639
  "type": "boolean",
2596
2640
  "description": "是否显示商品规格弹窗, 默认值: `false`"
@@ -2715,50 +2759,6 @@
2715
2759
  "type": "boolean",
2716
2760
  "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
2717
2761
  },
2718
- "van-slider/value": {
2719
- "type": "number | array",
2720
- "description": "当前进度百分比, 默认值: `0`"
2721
- },
2722
- "van-slider/max": {
2723
- "type": "number | string",
2724
- "description": "最大值, 默认值: `100`"
2725
- },
2726
- "van-slider/min": {
2727
- "type": "number | string",
2728
- "description": "最小值, 默认值: `0`"
2729
- },
2730
- "van-slider/step": {
2731
- "type": "number | string",
2732
- "description": "步长, 默认值: `1`"
2733
- },
2734
- "van-slider/bar-height": {
2735
- "type": "number | string",
2736
- "description": "进度条高度,默认单位为`px`, 默认值: `2px`"
2737
- },
2738
- "van-slider/button-size": {
2739
- "type": "number | string",
2740
- "description": "滑块按钮大小,默认单位为`px`, 默认值: `24px`"
2741
- },
2742
- "van-slider/active-color": {
2743
- "type": "string",
2744
- "description": "进度条激活态颜色, 默认值: `#1989fa`"
2745
- },
2746
- "van-slider/inactive-color": {
2747
- "type": "string",
2748
- "description": "进度条非激活态颜色, 默认值: `#e5e5e5`"
2749
- },
2750
- "van-slider/range": {
2751
- "type": "boolean",
2752
- "description": "是否开启双滑块模式, 默认值: `false`"
2753
- },
2754
- "van-slider/disabled": {
2755
- "type": "boolean",
2756
- "description": "是否禁用滑块, 默认值: `false`"
2757
- },
2758
- "van-slider/vertical": {
2759
- "type": "boolean",
2760
- "description": "是否垂直展示, 默认值: `false`"
2761
- },
2762
2762
  "van-stepper/v-model": {
2763
2763
  "type": "number | string",
2764
2764
  "description": "当前输入的值, 默认值: -"
@@ -3023,6 +3023,38 @@
3023
3023
  "type": "boolean",
3024
3024
  "description": "是否阻止滑动事件冒泡, 默认值: `false`"
3025
3025
  },
3026
+ "van-switch/v-model": {
3027
+ "type": "any",
3028
+ "description": "开关选中状态, 默认值: `false`"
3029
+ },
3030
+ "van-switch/loading": {
3031
+ "type": "boolean",
3032
+ "description": "是否为加载状态, 默认值: `false`"
3033
+ },
3034
+ "van-switch/disabled": {
3035
+ "type": "boolean",
3036
+ "description": "是否为禁用状态, 默认值: `false`"
3037
+ },
3038
+ "van-switch/size": {
3039
+ "type": "number | string",
3040
+ "description": "开关尺寸,默认单位为`px`, 默认值: `30px`"
3041
+ },
3042
+ "van-switch/active-color": {
3043
+ "type": "string",
3044
+ "description": "打开时的背景色, 默认值: `#1989fa`"
3045
+ },
3046
+ "van-switch/inactive-color": {
3047
+ "type": "string",
3048
+ "description": "关闭时的背景色, 默认值: `white`"
3049
+ },
3050
+ "van-switch/active-value": {
3051
+ "type": "any",
3052
+ "description": "打开时对应的值, 默认值: `true`"
3053
+ },
3054
+ "van-switch/inactive-value": {
3055
+ "type": "any",
3056
+ "description": "关闭时对应的值, 默认值: `false`"
3057
+ },
3026
3058
  "van-switch-cell/v-model": {
3027
3059
  "type": "any",
3028
3060
  "description": "开关状态, 默认值: `false`"
@@ -3067,38 +3099,6 @@
3067
3099
  "type": "any",
3068
3100
  "description": "关闭时的值, 默认值: `false`"
3069
3101
  },
3070
- "van-switch/v-model": {
3071
- "type": "any",
3072
- "description": "开关选中状态, 默认值: `false`"
3073
- },
3074
- "van-switch/loading": {
3075
- "type": "boolean",
3076
- "description": "是否为加载状态, 默认值: `false`"
3077
- },
3078
- "van-switch/disabled": {
3079
- "type": "boolean",
3080
- "description": "是否为禁用状态, 默认值: `false`"
3081
- },
3082
- "van-switch/size": {
3083
- "type": "number | string",
3084
- "description": "开关尺寸,默认单位为`px`, 默认值: `30px`"
3085
- },
3086
- "van-switch/active-color": {
3087
- "type": "string",
3088
- "description": "打开时的背景色, 默认值: `#1989fa`"
3089
- },
3090
- "van-switch/inactive-color": {
3091
- "type": "string",
3092
- "description": "关闭时的背景色, 默认值: `white`"
3093
- },
3094
- "van-switch/active-value": {
3095
- "type": "any",
3096
- "description": "打开时对应的值, 默认值: `true`"
3097
- },
3098
- "van-switch/inactive-value": {
3099
- "type": "any",
3100
- "description": "关闭时对应的值, 默认值: `false`"
3101
- },
3102
3102
  "van-tabs/v-model": {
3103
3103
  "type": "number | string",
3104
3104
  "description": "绑定当前选中标签的标识符, 默认值: `0`"
@@ -3295,6 +3295,38 @@
3295
3295
  "type": "boolean",
3296
3296
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
3297
3297
  },
3298
+ "van-tag/type": {
3299
+ "type": "string",
3300
+ "description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
3301
+ },
3302
+ "van-tag/size": {
3303
+ "type": "string",
3304
+ "description": "大小, 可选值为`large` `medium`, 默认值: -"
3305
+ },
3306
+ "van-tag/color": {
3307
+ "type": "string",
3308
+ "description": "标签颜色, 默认值: -"
3309
+ },
3310
+ "van-tag/plain": {
3311
+ "type": "boolean",
3312
+ "description": "是否为空心样式, 默认值: `false`"
3313
+ },
3314
+ "van-tag/round": {
3315
+ "type": "boolean",
3316
+ "description": "是否为圆角样式, 默认值: `false`"
3317
+ },
3318
+ "van-tag/mark": {
3319
+ "type": "boolean",
3320
+ "description": "是否为标记样式, 默认值: `false`"
3321
+ },
3322
+ "van-tag/text-color": {
3323
+ "type": "string",
3324
+ "description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
3325
+ },
3326
+ "van-tag/closeable": {
3327
+ "type": "boolean",
3328
+ "description": "是否为可关闭标签, 默认值: `false`"
3329
+ },
3298
3330
  "van-tree-select/items": {
3299
3331
  "type": "Item[]",
3300
3332
  "description": "分类显示所需的数据, 默认值: `[]`"
@@ -3410,37 +3442,5 @@
3410
3442
  "van-uploader/upload-icon": {
3411
3443
  "type": "string",
3412
3444
  "description": "上传区域[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photograph`"
3413
- },
3414
- "van-tag/type": {
3415
- "type": "string",
3416
- "description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
3417
- },
3418
- "van-tag/size": {
3419
- "type": "string",
3420
- "description": "大小, 可选值为`large` `medium`, 默认值: -"
3421
- },
3422
- "van-tag/color": {
3423
- "type": "string",
3424
- "description": "标签颜色, 默认值: -"
3425
- },
3426
- "van-tag/plain": {
3427
- "type": "boolean",
3428
- "description": "是否为空心样式, 默认值: `false`"
3429
- },
3430
- "van-tag/round": {
3431
- "type": "boolean",
3432
- "description": "是否为圆角样式, 默认值: `false`"
3433
- },
3434
- "van-tag/mark": {
3435
- "type": "boolean",
3436
- "description": "是否为标记样式, 默认值: `false`"
3437
- },
3438
- "van-tag/text-color": {
3439
- "type": "string",
3440
- "description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
3441
- },
3442
- "van-tag/closeable": {
3443
- "type": "boolean",
3444
- "description": "是否为可关闭标签, 默认值: `false`"
3445
3445
  }
3446
3446
  }