vant 3.3.5 → 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.
@@ -1,87 +1,4 @@
1
1
  {
2
- "van-action-sheet/v-model:show": {
3
- "type": "boolean",
4
- "description": "是否显示动作面板, 默认值: `false`"
5
- },
6
- "van-action-sheet/actions": {
7
- "type": "ActionSheetAction[]",
8
- "description": "面板选项列表, 默认值: `[]`"
9
- },
10
- "van-action-sheet/title": {
11
- "type": "string",
12
- "description": "顶部标题, 默认值: -"
13
- },
14
- "van-action-sheet/cancel-text": {
15
- "type": "string",
16
- "description": "取消按钮文字, 默认值: -"
17
- },
18
- "van-action-sheet/description": {
19
- "type": "string",
20
- "description": "选项上方的描述信息, 默认值: -"
21
- },
22
- "van-action-sheet/closeable": {
23
- "type": "boolean",
24
- "description": "是否显示关闭图标, 默认值: `true`"
25
- },
26
- "van-action-sheet/close-icon": {
27
- "type": "string",
28
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
29
- },
30
- "van-action-sheet/duration": {
31
- "type": "number | string",
32
- "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
33
- },
34
- "van-action-sheet/round": {
35
- "type": "boolean",
36
- "description": "是否显示圆角, 默认值: `true`"
37
- },
38
- "van-action-sheet/overlay": {
39
- "type": "boolean",
40
- "description": "是否显示遮罩层, 默认值: `true`"
41
- },
42
- "van-action-sheet/overlay-class": {
43
- "type": "string | Array \\",
44
- "description": "自定义遮罩层类名, 默认值: object_",
45
- "options": [
46
- "-"
47
- ]
48
- },
49
- "van-action-sheet/overlay-style": {
50
- "type": "object",
51
- "description": "自定义遮罩层样式, 默认值: -"
52
- },
53
- "van-action-sheet/lock-scroll": {
54
- "type": "boolean",
55
- "description": "是否锁定背景滚动, 默认值: `true`"
56
- },
57
- "van-action-sheet/lazy-render": {
58
- "type": "boolean",
59
- "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
60
- },
61
- "van-action-sheet/close-on-popstate": {
62
- "type": "boolean",
63
- "description": "是否在页面回退时自动关闭, 默认值: `true`"
64
- },
65
- "van-action-sheet/close-on-click-action": {
66
- "type": "boolean",
67
- "description": "是否在点击选项后关闭, 默认值: `false`"
68
- },
69
- "van-action-sheet/close-on-click-overlay": {
70
- "type": "boolean",
71
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
72
- },
73
- "van-action-sheet/safe-area-inset-bottom": {
74
- "type": "boolean",
75
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
76
- },
77
- "van-action-sheet/teleport": {
78
- "type": "string | Element",
79
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
80
- },
81
- "van-action-sheet/before-close": {
82
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
83
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
84
- },
85
2
  "van-action-bar/safe-area-inset-bottom": {
86
3
  "type": "boolean",
87
4
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
@@ -165,33 +82,88 @@
165
82
  "type": "boolean",
166
83
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
167
84
  },
168
- "van-address-list/v-model": {
169
- "type": "string",
170
- "description": "当前选中地址的 id, 默认值: -"
85
+ "van-action-sheet/v-model:show": {
86
+ "type": "boolean",
87
+ "description": "是否显示动作面板, 默认值: `false`"
171
88
  },
172
- "van-address-list/list": {
173
- "type": "AddressListAddress[]",
174
- "description": "地址列表, 默认值: `[]`"
89
+ "van-action-sheet/actions": {
90
+ "type": "ActionSheetAction[]",
91
+ "description": "面板选项列表, 默认值: `[]`"
175
92
  },
176
- "van-address-list/disabled-list": {
177
- "type": "AddressListAddress[]",
178
- "description": "不可配送地址列表, 默认值: `[]`"
93
+ "van-action-sheet/title": {
94
+ "type": "string",
95
+ "description": "顶部标题, 默认值: -"
179
96
  },
180
- "van-address-list/disabled-text": {
97
+ "van-action-sheet/cancel-text": {
181
98
  "type": "string",
182
- "description": "不可配送提示文案, 默认值: -"
99
+ "description": "取消按钮文字, 默认值: -"
183
100
  },
184
- "van-address-list/switchable": {
101
+ "van-action-sheet/description": {
102
+ "type": "string",
103
+ "description": "选项上方的描述信息, 默认值: -"
104
+ },
105
+ "van-action-sheet/closeable": {
185
106
  "type": "boolean",
186
- "description": "是否允许切换地址, 默认值: `true`"
107
+ "description": "是否显示关闭图标, 默认值: `true`"
187
108
  },
188
- "van-address-list/add-button-text": {
109
+ "van-action-sheet/close-icon": {
189
110
  "type": "string",
190
- "description": "底部按钮文字, 默认值: `新增地址`"
111
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
191
112
  },
192
- "van-address-list/default-tag-text": {
193
- "type": "string",
194
- "description": "默认地址标签文字, 默认值: -"
113
+ "van-action-sheet/duration": {
114
+ "type": "number | string",
115
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
116
+ },
117
+ "van-action-sheet/round": {
118
+ "type": "boolean",
119
+ "description": "是否显示圆角, 默认值: `true`"
120
+ },
121
+ "van-action-sheet/overlay": {
122
+ "type": "boolean",
123
+ "description": "是否显示遮罩层, 默认值: `true`"
124
+ },
125
+ "van-action-sheet/overlay-class": {
126
+ "type": "string | Array \\",
127
+ "description": "自定义遮罩层类名, 默认值: object_",
128
+ "options": [
129
+ "-"
130
+ ]
131
+ },
132
+ "van-action-sheet/overlay-style": {
133
+ "type": "object",
134
+ "description": "自定义遮罩层样式, 默认值: -"
135
+ },
136
+ "van-action-sheet/lock-scroll": {
137
+ "type": "boolean",
138
+ "description": "是否锁定背景滚动, 默认值: `true`"
139
+ },
140
+ "van-action-sheet/lazy-render": {
141
+ "type": "boolean",
142
+ "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
143
+ },
144
+ "van-action-sheet/close-on-popstate": {
145
+ "type": "boolean",
146
+ "description": "是否在页面回退时自动关闭, 默认值: `true`"
147
+ },
148
+ "van-action-sheet/close-on-click-action": {
149
+ "type": "boolean",
150
+ "description": "是否在点击选项后关闭, 默认值: `false`"
151
+ },
152
+ "van-action-sheet/close-on-click-overlay": {
153
+ "type": "boolean",
154
+ "description": "是否在点击遮罩层后关闭, 默认值: `true`"
155
+ },
156
+ "van-action-sheet/safe-area-inset-bottom": {
157
+ "type": "boolean",
158
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
159
+ },
160
+ "van-action-sheet/teleport": {
161
+ "type": "string | Element",
162
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
163
+ },
164
+ "van-action-sheet/before-close": {
165
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
166
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
195
167
  },
196
168
  "van-address-edit/area-list": {
197
169
  "type": "object",
@@ -281,6 +253,34 @@
281
253
  "type": "(key, val) => string",
282
254
  "description": "自定义校验函数, 默认值: -"
283
255
  },
256
+ "van-address-list/v-model": {
257
+ "type": "string",
258
+ "description": "当前选中地址的 id, 默认值: -"
259
+ },
260
+ "van-address-list/list": {
261
+ "type": "AddressListAddress[]",
262
+ "description": "地址列表, 默认值: `[]`"
263
+ },
264
+ "van-address-list/disabled-list": {
265
+ "type": "AddressListAddress[]",
266
+ "description": "不可配送地址列表, 默认值: `[]`"
267
+ },
268
+ "van-address-list/disabled-text": {
269
+ "type": "string",
270
+ "description": "不可配送提示文案, 默认值: -"
271
+ },
272
+ "van-address-list/switchable": {
273
+ "type": "boolean",
274
+ "description": "是否允许切换地址, 默认值: `true`"
275
+ },
276
+ "van-address-list/add-button-text": {
277
+ "type": "string",
278
+ "description": "底部按钮文字, 默认值: `新增地址`"
279
+ },
280
+ "van-address-list/default-tag-text": {
281
+ "type": "string",
282
+ "description": "默认地址标签文字, 默认值: -"
283
+ },
284
284
  "van-area/value": {
285
285
  "type": "string",
286
286
  "description": "当前选中项对应的地区码, 默认值: -"
@@ -448,50 +448,6 @@
448
448
  "type": "boolean",
449
449
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
450
450
  },
451
- "van-card/thumb": {
452
- "type": "string",
453
- "description": "左侧图片 URL, 默认值: -"
454
- },
455
- "van-card/title": {
456
- "type": "string",
457
- "description": "标题, 默认值: -"
458
- },
459
- "van-card/desc": {
460
- "type": "string",
461
- "description": "描述, 默认值: -"
462
- },
463
- "van-card/tag": {
464
- "type": "string",
465
- "description": "图片角标, 默认值: -"
466
- },
467
- "van-card/num": {
468
- "type": "number | string",
469
- "description": "商品数量, 默认值: -"
470
- },
471
- "van-card/price": {
472
- "type": "number | string",
473
- "description": "商品价格, 默认值: -"
474
- },
475
- "van-card/origin-price": {
476
- "type": "number | string",
477
- "description": "商品划线原价, 默认值: -"
478
- },
479
- "van-card/centered": {
480
- "type": "boolean",
481
- "description": "内容是否垂直居中, 默认值: `false`"
482
- },
483
- "van-card/currency": {
484
- "type": "string",
485
- "description": "货币符号, 默认值: `¥`"
486
- },
487
- "van-card/thumb-link": {
488
- "type": "string",
489
- "description": "点击左侧图片后跳转的链接地址, 默认值: -"
490
- },
491
- "van-card/lazy-load": {
492
- "type": "boolean",
493
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
494
- },
495
451
  "van-calendar/type": {
496
452
  "type": "string",
497
453
  "description": "选择类型:<br>`single` 表示选择单个日期,<br>`multiple` 表示选择多个日期,<br>`range` 表示选择日期区间, 默认值: `single`"
@@ -611,13 +567,57 @@
611
567
  "type": "boolean",
612
568
  "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
613
569
  },
614
- "van-cascader/title": {
570
+ "van-card/thumb": {
615
571
  "type": "string",
616
- "description": "顶部标题, 默认值: -"
572
+ "description": "左侧图片 URL, 默认值: -"
617
573
  },
618
- "van-cascader/value": {
619
- "type": "string | number",
620
- "description": "选中项的值, 默认值: -"
574
+ "van-card/title": {
575
+ "type": "string",
576
+ "description": "标题, 默认值: -"
577
+ },
578
+ "van-card/desc": {
579
+ "type": "string",
580
+ "description": "描述, 默认值: -"
581
+ },
582
+ "van-card/tag": {
583
+ "type": "string",
584
+ "description": "图片角标, 默认值: -"
585
+ },
586
+ "van-card/num": {
587
+ "type": "number | string",
588
+ "description": "商品数量, 默认值: -"
589
+ },
590
+ "van-card/price": {
591
+ "type": "number | string",
592
+ "description": "商品价格, 默认值: -"
593
+ },
594
+ "van-card/origin-price": {
595
+ "type": "number | string",
596
+ "description": "商品划线原价, 默认值: -"
597
+ },
598
+ "van-card/centered": {
599
+ "type": "boolean",
600
+ "description": "内容是否垂直居中, 默认值: `false`"
601
+ },
602
+ "van-card/currency": {
603
+ "type": "string",
604
+ "description": "货币符号, 默认值: `¥`"
605
+ },
606
+ "van-card/thumb-link": {
607
+ "type": "string",
608
+ "description": "点击左侧图片后跳转的链接地址, 默认值: -"
609
+ },
610
+ "van-card/lazy-load": {
611
+ "type": "boolean",
612
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
613
+ },
614
+ "van-cascader/title": {
615
+ "type": "string",
616
+ "description": "顶部标题, 默认值: -"
617
+ },
618
+ "van-cascader/value": {
619
+ "type": "string | number",
620
+ "description": "选中项的值, 默认值: -"
621
621
  },
622
622
  "van-cascader/options": {
623
623
  "type": "Option[]",
@@ -747,6 +747,66 @@
747
747
  "-"
748
748
  ]
749
749
  },
750
+ "van-checkbox/v-model": {
751
+ "type": "boolean",
752
+ "description": "是否为选中状态, 默认值: `false`"
753
+ },
754
+ "van-checkbox/name": {
755
+ "type": "any",
756
+ "description": "标识符, 默认值: -"
757
+ },
758
+ "van-checkbox/shape": {
759
+ "type": "string",
760
+ "description": "形状,可选值为 `square`, 默认值: `round`"
761
+ },
762
+ "van-checkbox/disabled": {
763
+ "type": "boolean",
764
+ "description": "是否禁用复选框, 默认值: `false`"
765
+ },
766
+ "van-checkbox/label-disabled": {
767
+ "type": "boolean",
768
+ "description": "是否禁用复选框文本点击, 默认值: `false`"
769
+ },
770
+ "van-checkbox/label-position": {
771
+ "type": "string",
772
+ "description": "文本位置,可选值为 `left`, 默认值: `right`"
773
+ },
774
+ "van-checkbox/icon-size": {
775
+ "type": "number | string",
776
+ "description": "图标大小,默认单位为 `px`, 默认值: `20px`"
777
+ },
778
+ "van-checkbox/checked-color": {
779
+ "type": "string",
780
+ "description": "选中状态颜色, 默认值: `#1989fa`"
781
+ },
782
+ "van-checkbox/bind-group": {
783
+ "type": "boolean",
784
+ "description": "是否与复选框组绑定, 默认值: `true`"
785
+ },
786
+ "van-checkbox-group/v-model": {
787
+ "type": "any[]",
788
+ "description": "所有选中项的标识符, 默认值: -"
789
+ },
790
+ "van-checkbox-group/disabled": {
791
+ "type": "boolean",
792
+ "description": "是否禁用所有复选框, 默认值: `false`"
793
+ },
794
+ "van-checkbox-group/max": {
795
+ "type": "number | string",
796
+ "description": "最大可选数,`0` 为无限制, 默认值: `0`"
797
+ },
798
+ "van-checkbox-group/direction": {
799
+ "type": "string",
800
+ "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
801
+ },
802
+ "van-checkbox-group/icon-size": {
803
+ "type": "number | string",
804
+ "description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
805
+ },
806
+ "van-checkbox-group/checked-color": {
807
+ "type": "string",
808
+ "description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
809
+ },
750
810
  "van-circle/v-model:current-rate": {
751
811
  "type": "number",
752
812
  "description": "当前进度, 默认值: -"
@@ -827,66 +887,6 @@
827
887
  "type": "string",
828
888
  "description": "自定义元素标签, 默认值: `div`"
829
889
  },
830
- "van-checkbox/v-model": {
831
- "type": "boolean",
832
- "description": "是否为选中状态, 默认值: `false`"
833
- },
834
- "van-checkbox/name": {
835
- "type": "any",
836
- "description": "标识符, 默认值: -"
837
- },
838
- "van-checkbox/shape": {
839
- "type": "string",
840
- "description": "形状,可选值为 `square`, 默认值: `round`"
841
- },
842
- "van-checkbox/disabled": {
843
- "type": "boolean",
844
- "description": "是否禁用复选框, 默认值: `false`"
845
- },
846
- "van-checkbox/label-disabled": {
847
- "type": "boolean",
848
- "description": "是否禁用复选框文本点击, 默认值: `false`"
849
- },
850
- "van-checkbox/label-position": {
851
- "type": "string",
852
- "description": "文本位置,可选值为 `left`, 默认值: `right`"
853
- },
854
- "van-checkbox/icon-size": {
855
- "type": "number | string",
856
- "description": "图标大小,默认单位为 `px`, 默认值: `20px`"
857
- },
858
- "van-checkbox/checked-color": {
859
- "type": "string",
860
- "description": "选中状态颜色, 默认值: `#1989fa`"
861
- },
862
- "van-checkbox/bind-group": {
863
- "type": "boolean",
864
- "description": "是否与复选框组绑定, 默认值: `true`"
865
- },
866
- "van-checkbox-group/v-model": {
867
- "type": "any[]",
868
- "description": "所有选中项的标识符, 默认值: -"
869
- },
870
- "van-checkbox-group/disabled": {
871
- "type": "boolean",
872
- "description": "是否禁用所有复选框, 默认值: `false`"
873
- },
874
- "van-checkbox-group/max": {
875
- "type": "number | string",
876
- "description": "最大可选数,`0` 为无限制, 默认值: `0`"
877
- },
878
- "van-checkbox-group/direction": {
879
- "type": "string",
880
- "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
881
- },
882
- "van-checkbox-group/icon-size": {
883
- "type": "number | string",
884
- "description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
885
- },
886
- "van-checkbox-group/checked-color": {
887
- "type": "string",
888
- "description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
889
- },
890
890
  "van-collapse/v-model": {
891
891
  "type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
892
892
  "description": "当前展开面板的 name, 默认值: string)[]_",
@@ -966,21 +966,21 @@
966
966
  "type": "string",
967
967
  "description": "所有图标的类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
968
968
  },
969
- "van-contact-list/v-model": {
970
- "type": "number | string",
971
- "description": "当前选中联系人的 id, 默认值: -"
969
+ "van-contact-card/type": {
970
+ "type": "string",
971
+ "description": "卡片类型,可选值为 `edit`, 默认值: `add`"
972
972
  },
973
- "van-contact-list/list": {
974
- "type": "Contact[]",
975
- "description": "联系人列表, 默认值: `[]`"
973
+ "van-contact-card/name": {
974
+ "type": "string",
975
+ "description": "联系人姓名, 默认值: -"
976
976
  },
977
- "van-contact-list/add-text": {
977
+ "van-contact-card/tel": {
978
978
  "type": "string",
979
- "description": "新建按钮文案, 默认值: `新建联系人`"
979
+ "description": "联系人手机号, 默认值: -"
980
980
  },
981
- "van-contact-list/default-tag-text": {
981
+ "van-contact-card/add-text": {
982
982
  "type": "string",
983
- "description": "默认联系人标签文案, 默认值: -"
983
+ "description": "添加时的文案提示, 默认值: `添加联系人`"
984
984
  },
985
985
  "van-contact-edit/contact-info": {
986
986
  "type": "Contact",
@@ -1010,21 +1010,21 @@
1010
1010
  "type": "string",
1011
1011
  "description": "默认联系人栏文案, 默认值: -"
1012
1012
  },
1013
- "van-contact-card/type": {
1014
- "type": "string",
1015
- "description": "卡片类型,可选值为 `edit`, 默认值: `add`"
1013
+ "van-contact-list/v-model": {
1014
+ "type": "number | string",
1015
+ "description": "当前选中联系人的 id, 默认值: -"
1016
1016
  },
1017
- "van-contact-card/name": {
1018
- "type": "string",
1019
- "description": "联系人姓名, 默认值: -"
1017
+ "van-contact-list/list": {
1018
+ "type": "Contact[]",
1019
+ "description": "联系人列表, 默认值: `[]`"
1020
1020
  },
1021
- "van-contact-card/tel": {
1021
+ "van-contact-list/add-text": {
1022
1022
  "type": "string",
1023
- "description": "联系人手机号, 默认值: -"
1023
+ "description": "新建按钮文案, 默认值: `新建联系人`"
1024
1024
  },
1025
- "van-contact-card/add-text": {
1025
+ "van-contact-list/default-tag-text": {
1026
1026
  "type": "string",
1027
- "description": "添加时的文案提示, 默认值: `添加联系人`"
1027
+ "description": "默认联系人标签文案, 默认值: -"
1028
1028
  },
1029
1029
  "van-count-down/time": {
1030
1030
  "type": "number | string",
@@ -1214,112 +1214,41 @@
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": {
1217
+ "van-dialog/v-model:show": {
1222
1218
  "type": "boolean",
1223
- "description": "是否使用 0.5px 线, 默认值: `true`"
1219
+ "description": "是否显示弹窗, 默认值: -"
1224
1220
  },
1225
- "van-divider/content-position": {
1221
+ "van-dialog/title": {
1226
1222
  "type": "string",
1227
- "description": "内容位置,可选值为 `left` `right`, 默认值: `center`"
1223
+ "description": "标题, 默认值: -"
1228
1224
  },
1229
- "van-dropdown-menu/active-color": {
1230
- "type": "string",
1231
- "description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
1225
+ "van-dialog/width": {
1226
+ "type": "number | string",
1227
+ "description": "弹窗宽度,默认单位为 `px`, 默认值: `320px`"
1232
1228
  },
1233
- "van-dropdown-menu/direction": {
1234
- "type": "string",
1235
- "description": "菜单展开方向,可选值为`up`, 默认值: `down`"
1229
+ "van-dialog/message": {
1230
+ "type": "string | () => JSX.ELement",
1231
+ "description": "文本内容,支持通过 `\\n` 换行, 默认值: -"
1236
1232
  },
1237
- "van-dropdown-menu/z-index": {
1238
- "type": "number | string",
1239
- "description": "菜单栏 z-index 层级, 默认值: `10`"
1233
+ "van-dialog/message-align": {
1234
+ "type": "string",
1235
+ "description": "内容水平对齐方式,可选值为 `left` `right`, 默认值: `center`"
1240
1236
  },
1241
- "van-dropdown-menu/duration": {
1242
- "type": "number | string",
1243
- "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.2`"
1237
+ "van-dialog/theme": {
1238
+ "type": "string",
1239
+ "description": "样式风格,可选值为 `round-button`, 默认值: `default`"
1244
1240
  },
1245
- "van-dropdown-menu/overlay": {
1241
+ "van-dialog/show-confirm-button": {
1246
1242
  "type": "boolean",
1247
- "description": "是否显示遮罩层, 默认值: `true`"
1243
+ "description": "是否展示确认按钮, 默认值: `true`"
1248
1244
  },
1249
- "van-dropdown-menu/close-on-click-overlay": {
1245
+ "van-dialog/show-cancel-button": {
1250
1246
  "type": "boolean",
1251
- "description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
1247
+ "description": "是否展示取消按钮, 默认值: `false`"
1252
1248
  },
1253
- "van-dropdown-menu/close-on-click-outside": {
1254
- "type": "boolean",
1255
- "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
1256
- },
1257
- "van-dropdown-item/v-model": {
1258
- "type": "number | string",
1259
- "description": "当前选中项对应的 value, 默认值: -"
1260
- },
1261
- "van-dropdown-item/title": {
1262
- "type": "string",
1263
- "description": "菜单项标题, 默认值: 当前选中项文字"
1264
- },
1265
- "van-dropdown-item/options": {
1266
- "type": "Option[]",
1267
- "description": "选项数组, 默认值: `[]`"
1268
- },
1269
- "van-dropdown-item/disabled": {
1270
- "type": "boolean",
1271
- "description": "是否禁用菜单, 默认值: `false`"
1272
- },
1273
- "van-dropdown-item/lazy-render": {
1274
- "type": "boolean",
1275
- "description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
1276
- },
1277
- "van-dropdown-item/title-class": {
1278
- "type": "string | Array \\",
1279
- "description": "标题额外类名, 默认值: object_",
1280
- "options": [
1281
- "-"
1282
- ]
1283
- },
1284
- "van-dropdown-item/teleport": {
1285
- "type": "string | Element",
1286
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
1287
- },
1288
- "van-dialog/v-model:show": {
1289
- "type": "boolean",
1290
- "description": "是否显示弹窗, 默认值: -"
1291
- },
1292
- "van-dialog/title": {
1293
- "type": "string",
1294
- "description": "标题, 默认值: -"
1295
- },
1296
- "van-dialog/width": {
1297
- "type": "number | string",
1298
- "description": "弹窗宽度,默认单位为 `px`, 默认值: `320px`"
1299
- },
1300
- "van-dialog/message": {
1301
- "type": "string | () => JSX.ELement",
1302
- "description": "文本内容,支持通过 `\\n` 换行, 默认值: -"
1303
- },
1304
- "van-dialog/message-align": {
1305
- "type": "string",
1306
- "description": "内容水平对齐方式,可选值为 `left` `right`, 默认值: `center`"
1307
- },
1308
- "van-dialog/theme": {
1309
- "type": "string",
1310
- "description": "样式风格,可选值为 `round-button`, 默认值: `default`"
1311
- },
1312
- "van-dialog/show-confirm-button": {
1313
- "type": "boolean",
1314
- "description": "是否展示确认按钮, 默认值: `true`"
1315
- },
1316
- "van-dialog/show-cancel-button": {
1317
- "type": "boolean",
1318
- "description": "是否展示取消按钮, 默认值: `false`"
1319
- },
1320
- "van-dialog/confirm-button-text": {
1321
- "type": "string",
1322
- "description": "确认按钮文案, 默认值: `确认`"
1249
+ "van-dialog/confirm-button-text": {
1250
+ "type": "string",
1251
+ "description": "确认按钮文案, 默认值: `确认`"
1323
1252
  },
1324
1253
  "van-dialog/confirm-button-color": {
1325
1254
  "type": "string",
@@ -1377,6 +1306,77 @@
1377
1306
  "type": "string | Element",
1378
1307
  "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
1379
1308
  },
1309
+ "van-divider/dashed": {
1310
+ "type": "boolean",
1311
+ "description": "是否使用虚线, 默认值: `false`"
1312
+ },
1313
+ "van-divider/hairline": {
1314
+ "type": "boolean",
1315
+ "description": "是否使用 0.5px 线, 默认值: `true`"
1316
+ },
1317
+ "van-divider/content-position": {
1318
+ "type": "string",
1319
+ "description": "内容位置,可选值为 `left` `right`, 默认值: `center`"
1320
+ },
1321
+ "van-dropdown-menu/active-color": {
1322
+ "type": "string",
1323
+ "description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
1324
+ },
1325
+ "van-dropdown-menu/direction": {
1326
+ "type": "string",
1327
+ "description": "菜单展开方向,可选值为`up`, 默认值: `down`"
1328
+ },
1329
+ "van-dropdown-menu/z-index": {
1330
+ "type": "number | string",
1331
+ "description": "菜单栏 z-index 层级, 默认值: `10`"
1332
+ },
1333
+ "van-dropdown-menu/duration": {
1334
+ "type": "number | string",
1335
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.2`"
1336
+ },
1337
+ "van-dropdown-menu/overlay": {
1338
+ "type": "boolean",
1339
+ "description": "是否显示遮罩层, 默认值: `true`"
1340
+ },
1341
+ "van-dropdown-menu/close-on-click-overlay": {
1342
+ "type": "boolean",
1343
+ "description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
1344
+ },
1345
+ "van-dropdown-menu/close-on-click-outside": {
1346
+ "type": "boolean",
1347
+ "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
1348
+ },
1349
+ "van-dropdown-item/v-model": {
1350
+ "type": "number | string",
1351
+ "description": "当前选中项对应的 value, 默认值: -"
1352
+ },
1353
+ "van-dropdown-item/title": {
1354
+ "type": "string",
1355
+ "description": "菜单项标题, 默认值: 当前选中项文字"
1356
+ },
1357
+ "van-dropdown-item/options": {
1358
+ "type": "Option[]",
1359
+ "description": "选项数组, 默认值: `[]`"
1360
+ },
1361
+ "van-dropdown-item/disabled": {
1362
+ "type": "boolean",
1363
+ "description": "是否禁用菜单, 默认值: `false`"
1364
+ },
1365
+ "van-dropdown-item/lazy-render": {
1366
+ "type": "boolean",
1367
+ "description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
1368
+ },
1369
+ "van-dropdown-item/title-class": {
1370
+ "type": "string | Array \\",
1371
+ "description": "标题额外类名, 默认值: object_",
1372
+ "options": [
1373
+ "-"
1374
+ ]
1375
+ },
1376
+ "van-dropdown-item/teleport": {
1377
+ "type": "string | Element",
1378
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
1379
+ },
1380
1380
  "van-empty/image": {
1381
1381
  "type": "string",
1382
1382
  "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
@@ -1692,34 +1692,6 @@
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`"
1698
- },
1699
- "van-index-bar/z-index": {
1700
- "type": "number | string",
1701
- "description": "z-index 层级, 默认值: `1`"
1702
- },
1703
- "van-index-bar/sticky": {
1704
- "type": "boolean",
1705
- "description": "是否开启锚点自动吸顶, 默认值: `true`"
1706
- },
1707
- "van-index-bar/sticky-offset-top": {
1708
- "type": "number",
1709
- "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
1710
- },
1711
- "van-index-bar/highlight-color": {
1712
- "type": "string",
1713
- "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
1714
- },
1715
- "van-index-bar/teleport": {
1716
- "type": "string | Element",
1717
- "description": "指定索引栏挂载的节点, 默认值: -"
1718
- },
1719
- "van-index-anchor/index": {
1720
- "type": "number | string",
1721
- "description": "索引字符, 默认值: -"
1722
- },
1723
1695
  "van-image/src": {
1724
1696
  "type": "string",
1725
1697
  "description": "图片链接, 默认值: -"
@@ -1851,6 +1823,34 @@
1851
1823
  "type": "string | Element",
1852
1824
  "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
1853
1825
  },
1826
+ "van-index-bar/index-list": {
1827
+ "type": "string[] | number[]",
1828
+ "description": "索引字符列表, 默认值: `A-Z`"
1829
+ },
1830
+ "van-index-bar/z-index": {
1831
+ "type": "number | string",
1832
+ "description": "z-index 层级, 默认值: `1`"
1833
+ },
1834
+ "van-index-bar/sticky": {
1835
+ "type": "boolean",
1836
+ "description": "是否开启锚点自动吸顶, 默认值: `true`"
1837
+ },
1838
+ "van-index-bar/sticky-offset-top": {
1839
+ "type": "number",
1840
+ "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
1841
+ },
1842
+ "van-index-bar/highlight-color": {
1843
+ "type": "string",
1844
+ "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
1845
+ },
1846
+ "van-index-bar/teleport": {
1847
+ "type": "string | Element",
1848
+ "description": "指定索引栏挂载的节点, 默认值: -"
1849
+ },
1850
+ "van-index-anchor/index": {
1851
+ "type": "number | string",
1852
+ "description": "索引字符, 默认值: -"
1853
+ },
1854
1854
  "van-list/v-model:loading": {
1855
1855
  "type": "boolean",
1856
1856
  "description": "是否处于加载状态,加载过程中不触发 `load` 事件, 默认值: `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,28 +2341,64 @@
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": "是否处于加载中状态, 默认值: -"
2344
+ "van-progress/percentage": {
2345
+ "type": "number | string",
2346
+ "description": "进度百分比, 默认值: `0`"
2383
2347
  },
2384
- "van-pull-refresh/pulling-text": {
2348
+ "van-progress/stroke-width": {
2349
+ "type": "number | string",
2350
+ "description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
2351
+ },
2352
+ "van-progress/color": {
2385
2353
  "type": "string",
2386
- "description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
2354
+ "description": "进度条颜色, 默认值: `#1989fa`"
2387
2355
  },
2388
- "van-pull-refresh/loosing-text": {
2356
+ "van-progress/track-color": {
2389
2357
  "type": "string",
2390
- "description": "释放过程提示文案, 默认值: `释放即可刷新...`"
2358
+ "description": "轨道颜色, 默认值: `#e5e5e5`"
2391
2359
  },
2392
- "van-pull-refresh/loading-text": {
2360
+ "van-progress/pivot-text": {
2393
2361
  "type": "string",
2394
- "description": "加载过程提示文案, 默认值: `加载中...`"
2362
+ "description": "进度文字内容, 默认值: 百分比"
2395
2363
  },
2396
- "van-pull-refresh/success-text": {
2364
+ "van-progress/pivot-color": {
2397
2365
  "type": "string",
2398
- "description": "刷新成功提示文案, 默认值: -"
2366
+ "description": "进度文字背景色, 默认值: 同进度条颜色"
2399
2367
  },
2400
- "van-pull-refresh/success-duration": {
2401
- "type": "number | string",
2368
+ "van-progress/text-color": {
2369
+ "type": "string",
2370
+ "description": "进度文字颜色, 默认值: `white`"
2371
+ },
2372
+ "van-progress/inactive": {
2373
+ "type": "boolean",
2374
+ "description": "是否置灰, 默认值: `false`"
2375
+ },
2376
+ "van-progress/show-pivot": {
2377
+ "type": "boolean",
2378
+ "description": "是否显示进度文字, 默认值: `true`"
2379
+ },
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
2402
  "description": "刷新成功提示展示时长(ms), 默认值: `500`"
2403
2403
  },
2404
2404
  "van-pull-refresh/animation-duration": {
@@ -2465,76 +2465,61 @@
2465
2465
  "type": "string",
2466
2466
  "description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
2467
2467
  },
2468
- "van-share-sheet/v-model:show": {
2469
- "type": "boolean",
2470
- "description": "是否显示分享面板, 默认值: `false`"
2468
+ "van-rate/v-model": {
2469
+ "type": "number",
2470
+ "description": "当前分值, 默认值: -"
2471
2471
  },
2472
- "van-share-sheet/options": {
2473
- "type": "Option[]",
2474
- "description": "分享选项, 默认值: `[]`"
2472
+ "van-rate/count": {
2473
+ "type": "number | string",
2474
+ "description": "图标总数, 默认值: `5`"
2475
2475
  },
2476
- "van-share-sheet/title": {
2477
- "type": "string",
2478
- "description": "顶部标题, 默认值: -"
2476
+ "van-rate/size": {
2477
+ "type": "number | string",
2478
+ "description": "图标大小,默认单位为`px`, 默认值: `20px`"
2479
2479
  },
2480
- "van-share-sheet/cancel-text": {
2481
- "type": "string",
2482
- "description": "取消按钮文字,传入空字符串可以隐藏按钮, 默认值: `'取消'`"
2480
+ "van-rate/gutter": {
2481
+ "type": "number | string",
2482
+ "description": "图标间距,默认单位为`px`, 默认值: `4px`"
2483
2483
  },
2484
- "van-share-sheet/description": {
2484
+ "van-rate/color": {
2485
2485
  "type": "string",
2486
- "description": "标题下方的辅助描述文字, 默认值: -"
2487
- },
2488
- "van-share-sheet/duration": {
2489
- "type": "number | string",
2490
- "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
2486
+ "description": "选中时的颜色, 默认值: `#ee0a24`"
2491
2487
  },
2492
- "van-share-sheet/round": {
2493
- "type": "boolean",
2494
- "description": "是否显示圆角, 默认值: `true`"
2488
+ "van-rate/void-color": {
2489
+ "type": "string",
2490
+ "description": "未选中时的颜色, 默认值: `#c8c9cc`"
2495
2491
  },
2496
- "van-share-sheet/overlay": {
2497
- "type": "boolean",
2498
- "description": "是否显示遮罩层, 默认值: `true`"
2492
+ "van-rate/disabled-color": {
2493
+ "type": "string",
2494
+ "description": "禁用时的颜色, 默认值: `#c8c9cc`"
2499
2495
  },
2500
- "van-share-sheet/overlay-class": {
2501
- "type": "string | Array \\",
2502
- "description": "自定义遮罩层类名, 默认值: object_",
2503
- "options": [
2504
- "-"
2505
- ]
2496
+ "van-rate/icon": {
2497
+ "type": "string",
2498
+ "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
2506
2499
  },
2507
- "van-share-sheet/overlay-style": {
2508
- "type": "object",
2509
- "description": "自定义遮罩层样式, 默认值: -"
2500
+ "van-rate/void-icon": {
2501
+ "type": "string",
2502
+ "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
2510
2503
  },
2511
- "van-share-sheet/lock-scroll": {
2512
- "type": "boolean",
2513
- "description": "是否锁定背景滚动, 默认值: `true`"
2504
+ "van-rate/icon-prefix": {
2505
+ "type": "string",
2506
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
2514
2507
  },
2515
- "van-share-sheet/lazy-render": {
2508
+ "van-rate/allow-half": {
2516
2509
  "type": "boolean",
2517
- "description": "是否在显示弹层时才渲染内容, 默认值: `true`"
2510
+ "description": "是否允许半选, 默认值: `false`"
2518
2511
  },
2519
- "van-share-sheet/close-on-popstate": {
2512
+ "van-rate/readonly": {
2520
2513
  "type": "boolean",
2521
- "description": "是否在页面回退时自动关闭, 默认值: `true`"
2514
+ "description": "是否为只读状态,只读状态下无法修改评分, 默认值: `false`"
2522
2515
  },
2523
- "van-share-sheet/close-on-click-overlay": {
2516
+ "van-rate/disabled": {
2524
2517
  "type": "boolean",
2525
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
2518
+ "description": "是否禁用评分, 默认值: `false`"
2526
2519
  },
2527
- "van-share-sheet/safe-area-inset-bottom": {
2520
+ "van-rate/touchable": {
2528
2521
  "type": "boolean",
2529
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
2530
- },
2531
- "van-share-sheet/teleport": {
2532
- "type": "string | Element",
2533
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
2534
- },
2535
- "van-share-sheet/before-close": {
2536
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
2537
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
2522
+ "description": "是否可以通过滑动手势选择评分, 默认值: `true`"
2538
2523
  },
2539
2524
  "van-search/v-model": {
2540
2525
  "type": "number | string",
@@ -2632,113 +2617,76 @@
2632
2617
  "type": "string",
2633
2618
  "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
2634
2619
  },
2635
- "van-rate/v-model": {
2636
- "type": "number",
2637
- "description": "当前分值, 默认值: -"
2638
- },
2639
- "van-rate/count": {
2640
- "type": "number | string",
2641
- "description": "图标总数, 默认值: `5`"
2642
- },
2643
- "van-rate/size": {
2644
- "type": "number | string",
2645
- "description": "图标大小,默认单位为`px`, 默认值: `20px`"
2646
- },
2647
- "van-rate/gutter": {
2648
- "type": "number | string",
2649
- "description": "图标间距,默认单位为`px`, 默认值: `4px`"
2650
- },
2651
- "van-rate/color": {
2652
- "type": "string",
2653
- "description": "选中时的颜色, 默认值: `#ee0a24`"
2654
- },
2655
- "van-rate/void-color": {
2656
- "type": "string",
2657
- "description": "未选中时的颜色, 默认值: `#c8c9cc`"
2620
+ "van-share-sheet/v-model:show": {
2621
+ "type": "boolean",
2622
+ "description": "是否显示分享面板, 默认值: `false`"
2658
2623
  },
2659
- "van-rate/disabled-color": {
2660
- "type": "string",
2661
- "description": "禁用时的颜色, 默认值: `#c8c9cc`"
2624
+ "van-share-sheet/options": {
2625
+ "type": "Option[]",
2626
+ "description": "分享选项, 默认值: `[]`"
2662
2627
  },
2663
- "van-rate/icon": {
2628
+ "van-share-sheet/title": {
2664
2629
  "type": "string",
2665
- "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
2630
+ "description": "顶部标题, 默认值: -"
2666
2631
  },
2667
- "van-rate/void-icon": {
2632
+ "van-share-sheet/cancel-text": {
2668
2633
  "type": "string",
2669
- "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
2634
+ "description": "取消按钮文字,传入空字符串可以隐藏按钮, 默认值: `'取消'`"
2670
2635
  },
2671
- "van-rate/icon-prefix": {
2636
+ "van-share-sheet/description": {
2672
2637
  "type": "string",
2673
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
2674
- },
2675
- "van-rate/allow-half": {
2676
- "type": "boolean",
2677
- "description": "是否允许半选, 默认值: `false`"
2638
+ "description": "标题下方的辅助描述文字, 默认值: -"
2678
2639
  },
2679
- "van-rate/readonly": {
2680
- "type": "boolean",
2681
- "description": "是否为只读状态,只读状态下无法修改评分, 默认值: `false`"
2640
+ "van-share-sheet/duration": {
2641
+ "type": "number | string",
2642
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
2682
2643
  },
2683
- "van-rate/disabled": {
2644
+ "van-share-sheet/round": {
2684
2645
  "type": "boolean",
2685
- "description": "是否禁用评分, 默认值: `false`"
2646
+ "description": "是否显示圆角, 默认值: `true`"
2686
2647
  },
2687
- "van-rate/touchable": {
2648
+ "van-share-sheet/overlay": {
2688
2649
  "type": "boolean",
2689
- "description": "是否可以通过滑动手势选择评分, 默认值: `true`"
2690
- },
2691
- "van-slider/v-model": {
2692
- "type": "number | [number, number]",
2693
- "description": "当前进度百分比,在双滑块模式下为数组格式, 默认值: `0`"
2694
- },
2695
- "van-slider/max": {
2696
- "type": "number | string",
2697
- "description": "最大值, 默认值: `100`"
2698
- },
2699
- "van-slider/min": {
2700
- "type": "number | string",
2701
- "description": "最小值, 默认值: `0`"
2702
- },
2703
- "van-slider/step": {
2704
- "type": "number | string",
2705
- "description": "步长, 默认值: `1`"
2706
- },
2707
- "van-slider/bar-height": {
2708
- "type": "number | string",
2709
- "description": "进度条高度,默认单位为 `px`, 默认值: `2px`"
2710
- },
2711
- "van-slider/button-size": {
2712
- "type": "number | string",
2713
- "description": "滑块按钮大小,默认单位为 `px`, 默认值: `24px`"
2650
+ "description": "是否显示遮罩层, 默认值: `true`"
2714
2651
  },
2715
- "van-slider/active-color": {
2716
- "type": "string",
2717
- "description": "进度条激活态颜色, 默认值: `#1989fa`"
2652
+ "van-share-sheet/overlay-class": {
2653
+ "type": "string | Array \\",
2654
+ "description": "自定义遮罩层类名, 默认值: object_",
2655
+ "options": [
2656
+ "-"
2657
+ ]
2718
2658
  },
2719
- "van-slider/inactive-color": {
2720
- "type": "string",
2721
- "description": "进度条非激活态颜色, 默认值: `#e5e5e5`"
2659
+ "van-share-sheet/overlay-style": {
2660
+ "type": "object",
2661
+ "description": "自定义遮罩层样式, 默认值: -"
2722
2662
  },
2723
- "van-slider/range": {
2663
+ "van-share-sheet/lock-scroll": {
2724
2664
  "type": "boolean",
2725
- "description": "是否开启双滑块模式, 默认值: `false`"
2665
+ "description": "是否锁定背景滚动, 默认值: `true`"
2726
2666
  },
2727
- "van-slider/reverse": {
2728
- "type": "`false`",
2729
- "description": "是否将进度条反转, 默认值: undefined"
2667
+ "van-share-sheet/lazy-render": {
2668
+ "type": "boolean",
2669
+ "description": "是否在显示弹层时才渲染内容, 默认值: `true`"
2730
2670
  },
2731
- "van-slider/disabled": {
2671
+ "van-share-sheet/close-on-popstate": {
2732
2672
  "type": "boolean",
2733
- "description": "是否禁用滑块, 默认值: `false`"
2673
+ "description": "是否在页面回退时自动关闭, 默认值: `true`"
2734
2674
  },
2735
- "van-slider/readonly": {
2675
+ "van-share-sheet/close-on-click-overlay": {
2736
2676
  "type": "boolean",
2737
- "description": "是否为只读状态,只读状态下无法修改滑块的值, 默认值: `false`"
2677
+ "description": "是否在点击遮罩层后关闭, 默认值: `true`"
2738
2678
  },
2739
- "van-slider/vertical": {
2679
+ "van-share-sheet/safe-area-inset-bottom": {
2740
2680
  "type": "boolean",
2741
- "description": "是否垂直展示, 默认值: `false`"
2681
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
2682
+ },
2683
+ "van-share-sheet/teleport": {
2684
+ "type": "string | Element",
2685
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
2686
+ },
2687
+ "van-share-sheet/before-close": {
2688
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
2689
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
2742
2690
  },
2743
2691
  "van-sidebar/v-model": {
2744
2692
  "type": "number | string",
@@ -2815,6 +2763,58 @@
2815
2763
  "type": "string",
2816
2764
  "description": "头像占位图形状,可选值为 `square`, 默认值: `round`"
2817
2765
  },
2766
+ "van-slider/v-model": {
2767
+ "type": "number | [number, number]",
2768
+ "description": "当前进度百分比,在双滑块模式下为数组格式, 默认值: `0`"
2769
+ },
2770
+ "van-slider/max": {
2771
+ "type": "number | string",
2772
+ "description": "最大值, 默认值: `100`"
2773
+ },
2774
+ "van-slider/min": {
2775
+ "type": "number | string",
2776
+ "description": "最小值, 默认值: `0`"
2777
+ },
2778
+ "van-slider/step": {
2779
+ "type": "number | string",
2780
+ "description": "步长, 默认值: `1`"
2781
+ },
2782
+ "van-slider/bar-height": {
2783
+ "type": "number | string",
2784
+ "description": "进度条高度,默认单位为 `px`, 默认值: `2px`"
2785
+ },
2786
+ "van-slider/button-size": {
2787
+ "type": "number | string",
2788
+ "description": "滑块按钮大小,默认单位为 `px`, 默认值: `24px`"
2789
+ },
2790
+ "van-slider/active-color": {
2791
+ "type": "string",
2792
+ "description": "进度条激活态颜色, 默认值: `#1989fa`"
2793
+ },
2794
+ "van-slider/inactive-color": {
2795
+ "type": "string",
2796
+ "description": "进度条非激活态颜色, 默认值: `#e5e5e5`"
2797
+ },
2798
+ "van-slider/range": {
2799
+ "type": "boolean",
2800
+ "description": "是否开启双滑块模式, 默认值: `false`"
2801
+ },
2802
+ "van-slider/reverse": {
2803
+ "type": "`false`",
2804
+ "description": "是否将进度条反转, 默认值: undefined"
2805
+ },
2806
+ "van-slider/disabled": {
2807
+ "type": "boolean",
2808
+ "description": "是否禁用滑块, 默认值: `false`"
2809
+ },
2810
+ "van-slider/readonly": {
2811
+ "type": "boolean",
2812
+ "description": "是否为只读状态,只读状态下无法修改滑块的值, 默认值: `false`"
2813
+ },
2814
+ "van-slider/vertical": {
2815
+ "type": "boolean",
2816
+ "description": "是否垂直展示, 默认值: `false`"
2817
+ },
2818
2818
  "van-stepper/v-model": {
2819
2819
  "type": "number | string",
2820
2820
  "description": "当前输入的值, 默认值: -"
@@ -2906,26 +2906,6 @@
2906
2906
  "type": "boolean",
2907
2907
  "description": "是否允许输入的值为空, 默认值: `false`"
2908
2908
  },
2909
- "van-sticky/position": {
2910
- "type": "string",
2911
- "description": "吸附位置,可选值为 `bottom`, 默认值: `top`"
2912
- },
2913
- "van-sticky/offset-top": {
2914
- "type": "number | string",
2915
- "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2916
- },
2917
- "van-sticky/offset-bottom": {
2918
- "type": "number | string",
2919
- "description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2920
- },
2921
- "van-sticky/z-index": {
2922
- "type": "number | string",
2923
- "description": "吸顶时的 z-index, 默认值: `99`"
2924
- },
2925
- "van-sticky/container": {
2926
- "type": "Element",
2927
- "description": "容器对应的 HTML 节点, 默认值: -"
2928
- },
2929
2909
  "van-steps/active": {
2930
2910
  "type": "number | string",
2931
2911
  "description": "当前步骤对应的索引值, 默认值: `0`"
@@ -2958,6 +2938,26 @@
2958
2938
  "type": "string",
2959
2939
  "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
2960
2940
  },
2941
+ "van-sticky/position": {
2942
+ "type": "string",
2943
+ "description": "吸附位置,可选值为 `bottom`, 默认值: `top`"
2944
+ },
2945
+ "van-sticky/offset-top": {
2946
+ "type": "number | string",
2947
+ "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2948
+ },
2949
+ "van-sticky/offset-bottom": {
2950
+ "type": "number | string",
2951
+ "description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2952
+ },
2953
+ "van-sticky/z-index": {
2954
+ "type": "number | string",
2955
+ "description": "吸顶时的 z-index, 默认值: `99`"
2956
+ },
2957
+ "van-sticky/container": {
2958
+ "type": "Element",
2959
+ "description": "容器对应的 HTML 节点, 默认值: -"
2960
+ },
2961
2961
  "van-submit-bar/price": {
2962
2962
  "type": "number",
2963
2963
  "description": "金额(单位分), 默认值: -"
@@ -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`"