vant 3.3.2 → 3.3.5

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,10 +2,261 @@
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": "3.3.2",
5
+ "version": "3.3.5",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
+ {
10
+ "name": "van-action-sheet",
11
+ "slots": [
12
+ {
13
+ "name": "default",
14
+ "description": "自定义面板的展示内容"
15
+ },
16
+ {
17
+ "name": "description",
18
+ "description": "自定义描述文案"
19
+ },
20
+ {
21
+ "name": "cancel",
22
+ "description": "自定义取消按钮内容"
23
+ }
24
+ ],
25
+ "events": [
26
+ {
27
+ "name": "select",
28
+ "description": "点击选项时触发,禁用或加载状态下不会触发"
29
+ },
30
+ {
31
+ "name": "cancel",
32
+ "description": "点击取消按钮时触发"
33
+ },
34
+ {
35
+ "name": "open",
36
+ "description": "打开面板时触发"
37
+ },
38
+ {
39
+ "name": "close",
40
+ "description": "关闭面板时触发"
41
+ },
42
+ {
43
+ "name": "opened",
44
+ "description": "打开面板且动画结束后触发"
45
+ },
46
+ {
47
+ "name": "closed",
48
+ "description": "关闭面板且动画结束后触发"
49
+ },
50
+ {
51
+ "name": "click-overlay",
52
+ "description": "点击遮罩层时触发"
53
+ }
54
+ ],
55
+ "attributes": [
56
+ {
57
+ "name": "v-model:show",
58
+ "default": "`false`",
59
+ "description": "是否显示动作面板",
60
+ "options": [],
61
+ "value": {
62
+ "type": "boolean",
63
+ "kind": "expression"
64
+ }
65
+ },
66
+ {
67
+ "name": "actions",
68
+ "default": "`[]`",
69
+ "description": "面板选项列表",
70
+ "options": [],
71
+ "value": {
72
+ "type": "ActionSheetAction[]",
73
+ "kind": "expression"
74
+ }
75
+ },
76
+ {
77
+ "name": "title",
78
+ "default": "-",
79
+ "description": "顶部标题",
80
+ "options": [],
81
+ "value": {
82
+ "type": "string",
83
+ "kind": "expression"
84
+ }
85
+ },
86
+ {
87
+ "name": "cancel-text",
88
+ "default": "-",
89
+ "description": "取消按钮文字",
90
+ "options": [],
91
+ "value": {
92
+ "type": "string",
93
+ "kind": "expression"
94
+ }
95
+ },
96
+ {
97
+ "name": "description",
98
+ "default": "-",
99
+ "description": "选项上方的描述信息",
100
+ "options": [],
101
+ "value": {
102
+ "type": "string",
103
+ "kind": "expression"
104
+ }
105
+ },
106
+ {
107
+ "name": "closeable",
108
+ "default": "`true`",
109
+ "description": "是否显示关闭图标",
110
+ "options": [],
111
+ "value": {
112
+ "type": "boolean",
113
+ "kind": "expression"
114
+ }
115
+ },
116
+ {
117
+ "name": "close-icon",
118
+ "default": "`cross`",
119
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
120
+ "options": [],
121
+ "value": {
122
+ "type": "string",
123
+ "kind": "expression"
124
+ }
125
+ },
126
+ {
127
+ "name": "duration",
128
+ "default": "`0.3`",
129
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画",
130
+ "options": [],
131
+ "value": {
132
+ "type": "number | string",
133
+ "kind": "expression"
134
+ }
135
+ },
136
+ {
137
+ "name": "round",
138
+ "default": "`true`",
139
+ "description": "是否显示圆角",
140
+ "options": [],
141
+ "value": {
142
+ "type": "boolean",
143
+ "kind": "expression"
144
+ }
145
+ },
146
+ {
147
+ "name": "overlay",
148
+ "default": "`true`",
149
+ "description": "是否显示遮罩层",
150
+ "options": [],
151
+ "value": {
152
+ "type": "boolean",
153
+ "kind": "expression"
154
+ }
155
+ },
156
+ {
157
+ "name": "overlay-class",
158
+ "default": "object_",
159
+ "description": "自定义遮罩层类名",
160
+ "options": [
161
+ "-"
162
+ ],
163
+ "value": {
164
+ "type": "string | Array \\",
165
+ "kind": "expression"
166
+ }
167
+ },
168
+ {
169
+ "name": "overlay-style",
170
+ "default": "-",
171
+ "description": "自定义遮罩层样式",
172
+ "options": [],
173
+ "value": {
174
+ "type": "object",
175
+ "kind": "expression"
176
+ }
177
+ },
178
+ {
179
+ "name": "lock-scroll",
180
+ "default": "`true`",
181
+ "description": "是否锁定背景滚动",
182
+ "options": [],
183
+ "value": {
184
+ "type": "boolean",
185
+ "kind": "expression"
186
+ }
187
+ },
188
+ {
189
+ "name": "lazy-render",
190
+ "default": "`true`",
191
+ "description": "是否在显示弹层时才渲染节点",
192
+ "options": [],
193
+ "value": {
194
+ "type": "boolean",
195
+ "kind": "expression"
196
+ }
197
+ },
198
+ {
199
+ "name": "close-on-popstate",
200
+ "default": "`true`",
201
+ "description": "是否在页面回退时自动关闭",
202
+ "options": [],
203
+ "value": {
204
+ "type": "boolean",
205
+ "kind": "expression"
206
+ }
207
+ },
208
+ {
209
+ "name": "close-on-click-action",
210
+ "default": "`false`",
211
+ "description": "是否在点击选项后关闭",
212
+ "options": [],
213
+ "value": {
214
+ "type": "boolean",
215
+ "kind": "expression"
216
+ }
217
+ },
218
+ {
219
+ "name": "close-on-click-overlay",
220
+ "default": "`true`",
221
+ "description": "是否在点击遮罩层后关闭",
222
+ "options": [],
223
+ "value": {
224
+ "type": "boolean",
225
+ "kind": "expression"
226
+ }
227
+ },
228
+ {
229
+ "name": "safe-area-inset-bottom",
230
+ "default": "`true`",
231
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
232
+ "options": [],
233
+ "value": {
234
+ "type": "boolean",
235
+ "kind": "expression"
236
+ }
237
+ },
238
+ {
239
+ "name": "teleport",
240
+ "default": "-",
241
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
242
+ "options": [],
243
+ "value": {
244
+ "type": "string | Element",
245
+ "kind": "expression"
246
+ }
247
+ },
248
+ {
249
+ "name": "before-close",
250
+ "default": "-",
251
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
252
+ "options": [],
253
+ "value": {
254
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
255
+ "kind": "expression"
256
+ }
257
+ }
258
+ ]
259
+ },
9
260
  {
10
261
  "name": "van-action-bar",
11
262
  "slots": [],
@@ -244,13 +495,132 @@
244
495
  ]
245
496
  },
246
497
  {
247
- "name": "van-address-edit",
498
+ "name": "van-address-list",
248
499
  "slots": [
249
500
  {
250
501
  "name": "default",
251
- "description": "在邮政编码下方插入内容"
252
- }
253
- ],
502
+ "description": "在列表下方插入内容"
503
+ },
504
+ {
505
+ "name": "top",
506
+ "description": "在顶部插入内容"
507
+ },
508
+ {
509
+ "name": "item-bottom",
510
+ "description": "在列表项底部插入内容"
511
+ },
512
+ {
513
+ "name": "tag",
514
+ "description": "自定义列表项标签内容"
515
+ }
516
+ ],
517
+ "events": [
518
+ {
519
+ "name": "add",
520
+ "description": "点击新增按钮时触发"
521
+ },
522
+ {
523
+ "name": "edit",
524
+ "description": "点击编辑按钮时触发"
525
+ },
526
+ {
527
+ "name": "select",
528
+ "description": "切换选中的地址时触发"
529
+ },
530
+ {
531
+ "name": "edit-disabled",
532
+ "description": "编辑不可配送的地址时触发"
533
+ },
534
+ {
535
+ "name": "select-disabled",
536
+ "description": "选中不可配送的地址时触发"
537
+ },
538
+ {
539
+ "name": "click-item",
540
+ "description": "点击任意地址时触发"
541
+ }
542
+ ],
543
+ "attributes": [
544
+ {
545
+ "name": "v-model",
546
+ "default": "-",
547
+ "description": "当前选中地址的 id",
548
+ "options": [],
549
+ "value": {
550
+ "type": "string",
551
+ "kind": "expression"
552
+ }
553
+ },
554
+ {
555
+ "name": "list",
556
+ "default": "`[]`",
557
+ "description": "地址列表",
558
+ "options": [],
559
+ "value": {
560
+ "type": "AddressListAddress[]",
561
+ "kind": "expression"
562
+ }
563
+ },
564
+ {
565
+ "name": "disabled-list",
566
+ "default": "`[]`",
567
+ "description": "不可配送地址列表",
568
+ "options": [],
569
+ "value": {
570
+ "type": "AddressListAddress[]",
571
+ "kind": "expression"
572
+ }
573
+ },
574
+ {
575
+ "name": "disabled-text",
576
+ "default": "-",
577
+ "description": "不可配送提示文案",
578
+ "options": [],
579
+ "value": {
580
+ "type": "string",
581
+ "kind": "expression"
582
+ }
583
+ },
584
+ {
585
+ "name": "switchable",
586
+ "default": "`true`",
587
+ "description": "是否允许切换地址",
588
+ "options": [],
589
+ "value": {
590
+ "type": "boolean",
591
+ "kind": "expression"
592
+ }
593
+ },
594
+ {
595
+ "name": "add-button-text",
596
+ "default": "`新增地址`",
597
+ "description": "底部按钮文字",
598
+ "options": [],
599
+ "value": {
600
+ "type": "string",
601
+ "kind": "expression"
602
+ }
603
+ },
604
+ {
605
+ "name": "default-tag-text",
606
+ "default": "-",
607
+ "description": "默认地址标签文字",
608
+ "options": [],
609
+ "value": {
610
+ "type": "string",
611
+ "kind": "expression"
612
+ }
613
+ }
614
+ ]
615
+ },
616
+ {
617
+ "name": "van-address-edit",
618
+ "slots": [
619
+ {
620
+ "name": "default",
621
+ "description": "在邮政编码下方插入内容"
622
+ }
623
+ ],
254
624
  "events": [
255
625
  {
256
626
  "name": "save",
@@ -508,125 +878,6 @@
508
878
  }
509
879
  ]
510
880
  },
511
- {
512
- "name": "van-address-list",
513
- "slots": [
514
- {
515
- "name": "default",
516
- "description": "在列表下方插入内容"
517
- },
518
- {
519
- "name": "top",
520
- "description": "在顶部插入内容"
521
- },
522
- {
523
- "name": "item-bottom",
524
- "description": "在列表项底部插入内容"
525
- },
526
- {
527
- "name": "tag",
528
- "description": "自定义列表项标签内容"
529
- }
530
- ],
531
- "events": [
532
- {
533
- "name": "add",
534
- "description": "点击新增按钮时触发"
535
- },
536
- {
537
- "name": "edit",
538
- "description": "点击编辑按钮时触发"
539
- },
540
- {
541
- "name": "select",
542
- "description": "切换选中的地址时触发"
543
- },
544
- {
545
- "name": "edit-disabled",
546
- "description": "编辑不可配送的地址时触发"
547
- },
548
- {
549
- "name": "select-disabled",
550
- "description": "选中不可配送的地址时触发"
551
- },
552
- {
553
- "name": "click-item",
554
- "description": "点击任意地址时触发"
555
- }
556
- ],
557
- "attributes": [
558
- {
559
- "name": "v-model",
560
- "default": "-",
561
- "description": "当前选中地址的 id",
562
- "options": [],
563
- "value": {
564
- "type": "string",
565
- "kind": "expression"
566
- }
567
- },
568
- {
569
- "name": "list",
570
- "default": "`[]`",
571
- "description": "地址列表",
572
- "options": [],
573
- "value": {
574
- "type": "AddressListAddress[]",
575
- "kind": "expression"
576
- }
577
- },
578
- {
579
- "name": "disabled-list",
580
- "default": "`[]`",
581
- "description": "不可配送地址列表",
582
- "options": [],
583
- "value": {
584
- "type": "AddressListAddress[]",
585
- "kind": "expression"
586
- }
587
- },
588
- {
589
- "name": "disabled-text",
590
- "default": "-",
591
- "description": "不可配送提示文案",
592
- "options": [],
593
- "value": {
594
- "type": "string",
595
- "kind": "expression"
596
- }
597
- },
598
- {
599
- "name": "switchable",
600
- "default": "`true`",
601
- "description": "是否允许切换地址",
602
- "options": [],
603
- "value": {
604
- "type": "boolean",
605
- "kind": "expression"
606
- }
607
- },
608
- {
609
- "name": "add-button-text",
610
- "default": "`新增地址`",
611
- "description": "底部按钮文字",
612
- "options": [],
613
- "value": {
614
- "type": "string",
615
- "kind": "expression"
616
- }
617
- },
618
- {
619
- "name": "default-tag-text",
620
- "default": "-",
621
- "description": "默认地址标签文字",
622
- "options": [],
623
- "value": {
624
- "type": "string",
625
- "kind": "expression"
626
- }
627
- }
628
- ]
629
- },
630
881
  {
631
882
  "name": "van-area",
632
883
  "slots": [
@@ -803,270 +1054,19 @@
803
1054
  ]
804
1055
  },
805
1056
  {
806
- "name": "van-action-sheet",
1057
+ "name": "van-badge",
807
1058
  "slots": [
808
1059
  {
809
1060
  "name": "default",
810
- "description": "自定义面板的展示内容"
811
- },
812
- {
813
- "name": "description",
814
- "description": "自定义描述文案"
1061
+ "description": "徽标包裹的子元素"
815
1062
  },
816
1063
  {
817
- "name": "cancel",
818
- "description": "自定义取消按钮内容"
1064
+ "name": "content",
1065
+ "description": "自定义徽标内容"
819
1066
  }
820
1067
  ],
821
- "events": [
822
- {
823
- "name": "select",
824
- "description": "点击选项时触发,禁用或加载状态下不会触发"
825
- },
826
- {
827
- "name": "cancel",
828
- "description": "点击取消按钮时触发"
829
- },
830
- {
831
- "name": "open",
832
- "description": "打开面板时触发"
833
- },
834
- {
835
- "name": "close",
836
- "description": "关闭面板时触发"
837
- },
838
- {
839
- "name": "opened",
840
- "description": "打开面板且动画结束后触发"
841
- },
842
- {
843
- "name": "closed",
844
- "description": "关闭面板且动画结束后触发"
845
- },
846
- {
847
- "name": "click-overlay",
848
- "description": "点击遮罩层时触发"
849
- }
850
- ],
851
- "attributes": [
852
- {
853
- "name": "v-model:show",
854
- "default": "`false`",
855
- "description": "是否显示动作面板",
856
- "options": [],
857
- "value": {
858
- "type": "boolean",
859
- "kind": "expression"
860
- }
861
- },
862
- {
863
- "name": "actions",
864
- "default": "`[]`",
865
- "description": "面板选项列表",
866
- "options": [],
867
- "value": {
868
- "type": "ActionSheetAction[]",
869
- "kind": "expression"
870
- }
871
- },
872
- {
873
- "name": "title",
874
- "default": "-",
875
- "description": "顶部标题",
876
- "options": [],
877
- "value": {
878
- "type": "string",
879
- "kind": "expression"
880
- }
881
- },
882
- {
883
- "name": "cancel-text",
884
- "default": "-",
885
- "description": "取消按钮文字",
886
- "options": [],
887
- "value": {
888
- "type": "string",
889
- "kind": "expression"
890
- }
891
- },
892
- {
893
- "name": "description",
894
- "default": "-",
895
- "description": "选项上方的描述信息",
896
- "options": [],
897
- "value": {
898
- "type": "string",
899
- "kind": "expression"
900
- }
901
- },
902
- {
903
- "name": "closeable",
904
- "default": "`true`",
905
- "description": "是否显示关闭图标",
906
- "options": [],
907
- "value": {
908
- "type": "boolean",
909
- "kind": "expression"
910
- }
911
- },
912
- {
913
- "name": "close-icon",
914
- "default": "`cross`",
915
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
916
- "options": [],
917
- "value": {
918
- "type": "string",
919
- "kind": "expression"
920
- }
921
- },
922
- {
923
- "name": "duration",
924
- "default": "`0.3`",
925
- "description": "动画时长,单位秒,设置为 0 可以禁用动画",
926
- "options": [],
927
- "value": {
928
- "type": "number | string",
929
- "kind": "expression"
930
- }
931
- },
932
- {
933
- "name": "round",
934
- "default": "`true`",
935
- "description": "是否显示圆角",
936
- "options": [],
937
- "value": {
938
- "type": "boolean",
939
- "kind": "expression"
940
- }
941
- },
942
- {
943
- "name": "overlay",
944
- "default": "`true`",
945
- "description": "是否显示遮罩层",
946
- "options": [],
947
- "value": {
948
- "type": "boolean",
949
- "kind": "expression"
950
- }
951
- },
952
- {
953
- "name": "overlay-class",
954
- "default": "object_",
955
- "description": "自定义遮罩层类名",
956
- "options": [
957
- "-"
958
- ],
959
- "value": {
960
- "type": "string | Array \\",
961
- "kind": "expression"
962
- }
963
- },
964
- {
965
- "name": "overlay-style",
966
- "default": "-",
967
- "description": "自定义遮罩层样式",
968
- "options": [],
969
- "value": {
970
- "type": "object",
971
- "kind": "expression"
972
- }
973
- },
974
- {
975
- "name": "lock-scroll",
976
- "default": "`true`",
977
- "description": "是否锁定背景滚动",
978
- "options": [],
979
- "value": {
980
- "type": "boolean",
981
- "kind": "expression"
982
- }
983
- },
984
- {
985
- "name": "lazy-render",
986
- "default": "`true`",
987
- "description": "是否在显示弹层时才渲染节点",
988
- "options": [],
989
- "value": {
990
- "type": "boolean",
991
- "kind": "expression"
992
- }
993
- },
994
- {
995
- "name": "close-on-popstate",
996
- "default": "`true`",
997
- "description": "是否在页面回退时自动关闭",
998
- "options": [],
999
- "value": {
1000
- "type": "boolean",
1001
- "kind": "expression"
1002
- }
1003
- },
1004
- {
1005
- "name": "close-on-click-action",
1006
- "default": "`false`",
1007
- "description": "是否在点击选项后关闭",
1008
- "options": [],
1009
- "value": {
1010
- "type": "boolean",
1011
- "kind": "expression"
1012
- }
1013
- },
1014
- {
1015
- "name": "close-on-click-overlay",
1016
- "default": "`true`",
1017
- "description": "是否在点击遮罩层后关闭",
1018
- "options": [],
1019
- "value": {
1020
- "type": "boolean",
1021
- "kind": "expression"
1022
- }
1023
- },
1024
- {
1025
- "name": "safe-area-inset-bottom",
1026
- "default": "`true`",
1027
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1028
- "options": [],
1029
- "value": {
1030
- "type": "boolean",
1031
- "kind": "expression"
1032
- }
1033
- },
1034
- {
1035
- "name": "teleport",
1036
- "default": "-",
1037
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
1038
- "options": [],
1039
- "value": {
1040
- "type": "string | Element",
1041
- "kind": "expression"
1042
- }
1043
- },
1044
- {
1045
- "name": "before-close",
1046
- "default": "-",
1047
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
1048
- "options": [],
1049
- "value": {
1050
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
1051
- "kind": "expression"
1052
- }
1053
- }
1054
- ]
1055
- },
1056
- {
1057
- "name": "van-badge",
1058
- "slots": [
1059
- {
1060
- "name": "default",
1061
- "description": "徽标包裹的子元素"
1062
- },
1063
- {
1064
- "name": "content",
1065
- "description": "自定义徽标内容"
1066
- }
1067
- ],
1068
- "events": [],
1069
- "attributes": [
1068
+ "events": [],
1069
+ "attributes": [
1070
1070
  {
1071
1071
  "name": "content",
1072
1072
  "default": "-",
@@ -1381,19 +1381,190 @@
1381
1381
  ]
1382
1382
  },
1383
1383
  {
1384
- "name": "van-calendar",
1384
+ "name": "van-card",
1385
1385
  "slots": [
1386
1386
  {
1387
1387
  "name": "title",
1388
1388
  "description": "自定义标题"
1389
1389
  },
1390
1390
  {
1391
- "name": "subtitle",
1392
- "description": "自定义日历副标题"
1391
+ "name": "desc",
1392
+ "description": "自定义描述"
1393
1393
  },
1394
1394
  {
1395
- "name": "footer",
1396
- "description": "自定义底部区域内容"
1395
+ "name": "num",
1396
+ "description": "自定义数量"
1397
+ },
1398
+ {
1399
+ "name": "price",
1400
+ "description": "自定义价格"
1401
+ },
1402
+ {
1403
+ "name": "origin-price",
1404
+ "description": "自定义商品原价"
1405
+ },
1406
+ {
1407
+ "name": "price-top",
1408
+ "description": "自定义价格上方区域"
1409
+ },
1410
+ {
1411
+ "name": "bottom",
1412
+ "description": "自定义价格下方区域"
1413
+ },
1414
+ {
1415
+ "name": "thumb",
1416
+ "description": "自定义图片"
1417
+ },
1418
+ {
1419
+ "name": "tag",
1420
+ "description": "自定义图片角标"
1421
+ },
1422
+ {
1423
+ "name": "tags",
1424
+ "description": "自定义描述下方标签区域"
1425
+ },
1426
+ {
1427
+ "name": "footer",
1428
+ "description": "自定义右下角内容"
1429
+ }
1430
+ ],
1431
+ "events": [
1432
+ {
1433
+ "name": "click",
1434
+ "description": "点击时触发"
1435
+ },
1436
+ {
1437
+ "name": "click-thumb",
1438
+ "description": "点击自定义图片时触发"
1439
+ }
1440
+ ],
1441
+ "attributes": [
1442
+ {
1443
+ "name": "thumb",
1444
+ "default": "-",
1445
+ "description": "左侧图片 URL",
1446
+ "options": [],
1447
+ "value": {
1448
+ "type": "string",
1449
+ "kind": "expression"
1450
+ }
1451
+ },
1452
+ {
1453
+ "name": "title",
1454
+ "default": "-",
1455
+ "description": "标题",
1456
+ "options": [],
1457
+ "value": {
1458
+ "type": "string",
1459
+ "kind": "expression"
1460
+ }
1461
+ },
1462
+ {
1463
+ "name": "desc",
1464
+ "default": "-",
1465
+ "description": "描述",
1466
+ "options": [],
1467
+ "value": {
1468
+ "type": "string",
1469
+ "kind": "expression"
1470
+ }
1471
+ },
1472
+ {
1473
+ "name": "tag",
1474
+ "default": "-",
1475
+ "description": "图片角标",
1476
+ "options": [],
1477
+ "value": {
1478
+ "type": "string",
1479
+ "kind": "expression"
1480
+ }
1481
+ },
1482
+ {
1483
+ "name": "num",
1484
+ "default": "-",
1485
+ "description": "商品数量",
1486
+ "options": [],
1487
+ "value": {
1488
+ "type": "number | string",
1489
+ "kind": "expression"
1490
+ }
1491
+ },
1492
+ {
1493
+ "name": "price",
1494
+ "default": "-",
1495
+ "description": "商品价格",
1496
+ "options": [],
1497
+ "value": {
1498
+ "type": "number | string",
1499
+ "kind": "expression"
1500
+ }
1501
+ },
1502
+ {
1503
+ "name": "origin-price",
1504
+ "default": "-",
1505
+ "description": "商品划线原价",
1506
+ "options": [],
1507
+ "value": {
1508
+ "type": "number | string",
1509
+ "kind": "expression"
1510
+ }
1511
+ },
1512
+ {
1513
+ "name": "centered",
1514
+ "default": "`false`",
1515
+ "description": "内容是否垂直居中",
1516
+ "options": [],
1517
+ "value": {
1518
+ "type": "boolean",
1519
+ "kind": "expression"
1520
+ }
1521
+ },
1522
+ {
1523
+ "name": "currency",
1524
+ "default": "`¥`",
1525
+ "description": "货币符号",
1526
+ "options": [],
1527
+ "value": {
1528
+ "type": "string",
1529
+ "kind": "expression"
1530
+ }
1531
+ },
1532
+ {
1533
+ "name": "thumb-link",
1534
+ "default": "-",
1535
+ "description": "点击左侧图片后跳转的链接地址",
1536
+ "options": [],
1537
+ "value": {
1538
+ "type": "string",
1539
+ "kind": "expression"
1540
+ }
1541
+ },
1542
+ {
1543
+ "name": "lazy-load",
1544
+ "default": "`false`",
1545
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1546
+ "options": [],
1547
+ "value": {
1548
+ "type": "boolean",
1549
+ "kind": "expression"
1550
+ }
1551
+ }
1552
+ ]
1553
+ },
1554
+ {
1555
+ "name": "van-calendar",
1556
+ "slots": [
1557
+ {
1558
+ "name": "title",
1559
+ "description": "自定义标题"
1560
+ },
1561
+ {
1562
+ "name": "subtitle",
1563
+ "description": "自定义日历副标题"
1564
+ },
1565
+ {
1566
+ "name": "footer",
1567
+ "description": "自定义底部区域内容"
1397
1568
  },
1398
1569
  {
1399
1570
  "name": "confirm-text",
@@ -1766,68 +1937,48 @@
1766
1937
  ]
1767
1938
  },
1768
1939
  {
1769
- "name": "van-card",
1940
+ "name": "van-cascader",
1770
1941
  "slots": [
1771
1942
  {
1772
1943
  "name": "title",
1773
- "description": "自定义标题"
1774
- },
1775
- {
1776
- "name": "desc",
1777
- "description": "自定义描述"
1778
- },
1779
- {
1780
- "name": "num",
1781
- "description": "自定义数量"
1782
- },
1783
- {
1784
- "name": "price",
1785
- "description": "自定义价格"
1786
- },
1787
- {
1788
- "name": "origin-price",
1789
- "description": "自定义商品原价"
1944
+ "description": "自定义顶部标题"
1790
1945
  },
1791
1946
  {
1792
- "name": "price-top",
1793
- "description": "自定义价格上方区域"
1947
+ "name": "option",
1948
+ "description": "自定义选项文字"
1794
1949
  },
1795
1950
  {
1796
- "name": "bottom",
1797
- "description": "自定义价格下方区域"
1951
+ "name": "options-top",
1952
+ "description": "自定义选项上方的内容"
1798
1953
  },
1799
1954
  {
1800
- "name": "thumb",
1801
- "description": "自定义图片"
1802
- },
1955
+ "name": "options-bottom",
1956
+ "description": "自定义选项下方的内容"
1957
+ }
1958
+ ],
1959
+ "events": [
1803
1960
  {
1804
- "name": "tag",
1805
- "description": "自定义图片角标"
1961
+ "name": "change",
1962
+ "description": "选中项变化时触发"
1806
1963
  },
1807
1964
  {
1808
- "name": "tags",
1809
- "description": "自定义描述下方标签区域"
1965
+ "name": "finish",
1966
+ "description": "全部选项选择完成后触发"
1810
1967
  },
1811
1968
  {
1812
- "name": "footer",
1813
- "description": "自定义右下角内容"
1814
- }
1815
- ],
1816
- "events": [
1817
- {
1818
- "name": "click",
1819
- "description": "点击时触发"
1969
+ "name": "close",
1970
+ "description": "点击关闭图标时触发"
1820
1971
  },
1821
1972
  {
1822
- "name": "click-thumb",
1823
- "description": "点击自定义图片时触发"
1973
+ "name": "click-tab",
1974
+ "description": "点击标签时触发"
1824
1975
  }
1825
1976
  ],
1826
1977
  "attributes": [
1827
1978
  {
1828
- "name": "thumb",
1979
+ "name": "title",
1829
1980
  "default": "-",
1830
- "description": "左侧图片 URL",
1981
+ "description": "顶部标题",
1831
1982
  "options": [],
1832
1983
  "value": {
1833
1984
  "type": "string",
@@ -1835,180 +1986,29 @@
1835
1986
  }
1836
1987
  },
1837
1988
  {
1838
- "name": "title",
1989
+ "name": "value",
1839
1990
  "default": "-",
1840
- "description": "标题",
1991
+ "description": "选中项的值",
1841
1992
  "options": [],
1842
1993
  "value": {
1843
- "type": "string",
1994
+ "type": "string | number",
1844
1995
  "kind": "expression"
1845
1996
  }
1846
1997
  },
1847
1998
  {
1848
- "name": "desc",
1849
- "default": "-",
1850
- "description": "描述",
1999
+ "name": "options",
2000
+ "default": "`[]`",
2001
+ "description": "可选项数据源",
1851
2002
  "options": [],
1852
2003
  "value": {
1853
- "type": "string",
2004
+ "type": "Option[]",
1854
2005
  "kind": "expression"
1855
2006
  }
1856
2007
  },
1857
2008
  {
1858
- "name": "tag",
1859
- "default": "-",
1860
- "description": "图片角标",
1861
- "options": [],
1862
- "value": {
1863
- "type": "string",
1864
- "kind": "expression"
1865
- }
1866
- },
1867
- {
1868
- "name": "num",
1869
- "default": "-",
1870
- "description": "商品数量",
1871
- "options": [],
1872
- "value": {
1873
- "type": "number | string",
1874
- "kind": "expression"
1875
- }
1876
- },
1877
- {
1878
- "name": "price",
1879
- "default": "-",
1880
- "description": "商品价格",
1881
- "options": [],
1882
- "value": {
1883
- "type": "number | string",
1884
- "kind": "expression"
1885
- }
1886
- },
1887
- {
1888
- "name": "origin-price",
1889
- "default": "-",
1890
- "description": "商品划线原价",
1891
- "options": [],
1892
- "value": {
1893
- "type": "number | string",
1894
- "kind": "expression"
1895
- }
1896
- },
1897
- {
1898
- "name": "centered",
1899
- "default": "`false`",
1900
- "description": "内容是否垂直居中",
1901
- "options": [],
1902
- "value": {
1903
- "type": "boolean",
1904
- "kind": "expression"
1905
- }
1906
- },
1907
- {
1908
- "name": "currency",
1909
- "default": "`¥`",
1910
- "description": "货币符号",
1911
- "options": [],
1912
- "value": {
1913
- "type": "string",
1914
- "kind": "expression"
1915
- }
1916
- },
1917
- {
1918
- "name": "thumb-link",
1919
- "default": "-",
1920
- "description": "点击左侧图片后跳转的链接地址",
1921
- "options": [],
1922
- "value": {
1923
- "type": "string",
1924
- "kind": "expression"
1925
- }
1926
- },
1927
- {
1928
- "name": "lazy-load",
1929
- "default": "`false`",
1930
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1931
- "options": [],
1932
- "value": {
1933
- "type": "boolean",
1934
- "kind": "expression"
1935
- }
1936
- }
1937
- ]
1938
- },
1939
- {
1940
- "name": "van-cascader",
1941
- "slots": [
1942
- {
1943
- "name": "title",
1944
- "description": "自定义顶部标题"
1945
- },
1946
- {
1947
- "name": "option",
1948
- "description": "自定义选项文字"
1949
- },
1950
- {
1951
- "name": "options-top",
1952
- "description": "自定义选项上方的内容"
1953
- },
1954
- {
1955
- "name": "options-bottom",
1956
- "description": "自定义选项下方的内容"
1957
- }
1958
- ],
1959
- "events": [
1960
- {
1961
- "name": "change",
1962
- "description": "选中项变化时触发"
1963
- },
1964
- {
1965
- "name": "finish",
1966
- "description": "全部选项选择完成后触发"
1967
- },
1968
- {
1969
- "name": "close",
1970
- "description": "点击关闭图标时触发"
1971
- },
1972
- {
1973
- "name": "click-tab",
1974
- "description": "点击标签时触发"
1975
- }
1976
- ],
1977
- "attributes": [
1978
- {
1979
- "name": "title",
1980
- "default": "-",
1981
- "description": "顶部标题",
1982
- "options": [],
1983
- "value": {
1984
- "type": "string",
1985
- "kind": "expression"
1986
- }
1987
- },
1988
- {
1989
- "name": "value",
1990
- "default": "-",
1991
- "description": "选中项的值",
1992
- "options": [],
1993
- "value": {
1994
- "type": "string | number",
1995
- "kind": "expression"
1996
- }
1997
- },
1998
- {
1999
- "name": "options",
2000
- "default": "`[]`",
2001
- "description": "可选项数据源",
2002
- "options": [],
2003
- "value": {
2004
- "type": "Option[]",
2005
- "kind": "expression"
2006
- }
2007
- },
2008
- {
2009
- "name": "placeholder",
2010
- "default": "`请选择`",
2011
- "description": "未选中时的提示文案",
2009
+ "name": "placeholder",
2010
+ "default": "`请选择`",
2011
+ "description": "未选中时的提示文案",
2012
2012
  "options": [],
2013
2013
  "value": {
2014
2014
  "type": "string",
@@ -2349,52 +2349,59 @@
2349
2349
  ]
2350
2350
  },
2351
2351
  {
2352
- "name": "van-checkbox",
2352
+ "name": "van-circle",
2353
2353
  "slots": [
2354
2354
  {
2355
2355
  "name": "default",
2356
- "description": "自定义文本"
2357
- },
2358
- {
2359
- "name": "icon",
2360
- "description": "自定义图标"
2356
+ "description": "自定义文字内容"
2361
2357
  }
2362
2358
  ],
2363
- "events": [
2359
+ "events": [],
2360
+ "attributes": [
2364
2361
  {
2365
- "name": "change",
2366
- "description": "当绑定值变化时触发的事件"
2362
+ "name": "v-model:current-rate",
2363
+ "default": "-",
2364
+ "description": "当前进度",
2365
+ "options": [],
2366
+ "value": {
2367
+ "type": "number",
2368
+ "kind": "expression"
2369
+ }
2367
2370
  },
2368
2371
  {
2369
- "name": "click",
2370
- "description": "点击复选框时触发"
2371
- }
2372
- ],
2373
- "attributes": [
2372
+ "name": "rate",
2373
+ "default": "`100`",
2374
+ "description": "目标进度",
2375
+ "options": [],
2376
+ "value": {
2377
+ "type": "number | string",
2378
+ "kind": "expression"
2379
+ }
2380
+ },
2374
2381
  {
2375
- "name": "v-model",
2376
- "default": "`false`",
2377
- "description": "是否为选中状态",
2382
+ "name": "size",
2383
+ "default": "`100px`",
2384
+ "description": "圆环直径,默认单位为 `px`",
2378
2385
  "options": [],
2379
2386
  "value": {
2380
- "type": "boolean",
2387
+ "type": "number | string",
2381
2388
  "kind": "expression"
2382
2389
  }
2383
2390
  },
2384
2391
  {
2385
- "name": "name",
2386
- "default": "-",
2387
- "description": "标识符",
2392
+ "name": "color",
2393
+ "default": "`#1989fa`",
2394
+ "description": "进度条颜色,传入对象格式可以定义渐变色",
2388
2395
  "options": [],
2389
2396
  "value": {
2390
- "type": "any",
2397
+ "type": "string | object",
2391
2398
  "kind": "expression"
2392
2399
  }
2393
2400
  },
2394
2401
  {
2395
- "name": "shape",
2396
- "default": "`round`",
2397
- "description": "形状,可选值为 `square`",
2402
+ "name": "layer-color",
2403
+ "default": "`white`",
2404
+ "description": "轨道颜色",
2398
2405
  "options": [],
2399
2406
  "value": {
2400
2407
  "type": "string",
@@ -2402,29 +2409,29 @@
2402
2409
  }
2403
2410
  },
2404
2411
  {
2405
- "name": "disabled",
2406
- "default": "`false`",
2407
- "description": "是否禁用复选框",
2412
+ "name": "fill",
2413
+ "default": "`none`",
2414
+ "description": "填充颜色",
2408
2415
  "options": [],
2409
2416
  "value": {
2410
- "type": "boolean",
2417
+ "type": "string",
2411
2418
  "kind": "expression"
2412
2419
  }
2413
2420
  },
2414
2421
  {
2415
- "name": "label-disabled",
2416
- "default": "`false`",
2417
- "description": "是否禁用复选框文本点击",
2422
+ "name": "speed",
2423
+ "default": "`0`",
2424
+ "description": "动画速度(单位为 rate/s)",
2418
2425
  "options": [],
2419
2426
  "value": {
2420
- "type": "boolean",
2427
+ "type": "number | string",
2421
2428
  "kind": "expression"
2422
2429
  }
2423
2430
  },
2424
2431
  {
2425
- "name": "label-position",
2426
- "default": "`right`",
2427
- "description": "文本位置,可选值为 `left`",
2432
+ "name": "text",
2433
+ "default": "-",
2434
+ "description": "文字",
2428
2435
  "options": [],
2429
2436
  "value": {
2430
2437
  "type": "string",
@@ -2432,9 +2439,9 @@
2432
2439
  }
2433
2440
  },
2434
2441
  {
2435
- "name": "icon-size",
2436
- "default": "`20px`",
2437
- "description": "图标大小,默认单位为 `px`",
2442
+ "name": "stroke-width",
2443
+ "default": "`40`",
2444
+ "description": "进度条宽度",
2438
2445
  "options": [],
2439
2446
  "value": {
2440
2447
  "type": "number | string",
@@ -2442,9 +2449,9 @@
2442
2449
  }
2443
2450
  },
2444
2451
  {
2445
- "name": "checked-color",
2446
- "default": "`#1989fa`",
2447
- "description": "选中状态颜色",
2452
+ "name": "stroke-linecap",
2453
+ "default": "`round`",
2454
+ "description": "进度条端点的形状,可选值为 `square` `butt`",
2448
2455
  "options": [],
2449
2456
  "value": {
2450
2457
  "type": "string",
@@ -2452,61 +2459,61 @@
2452
2459
  }
2453
2460
  },
2454
2461
  {
2455
- "name": "bind-group",
2462
+ "name": "clockwise",
2456
2463
  "default": "`true`",
2457
- "description": "是否与复选框组绑定",
2464
+ "description": "是否顺时针增加",
2458
2465
  "options": [],
2459
2466
  "value": {
2460
2467
  "type": "boolean",
2461
2468
  "kind": "expression"
2462
2469
  }
2470
+ },
2471
+ {
2472
+ "name": "start-position",
2473
+ "default": "`top`",
2474
+ "description": "进度起始位置,可选值为 `left`、`right`、`bottom`",
2475
+ "options": [],
2476
+ "value": {
2477
+ "type": "CircleStartPosition",
2478
+ "kind": "expression"
2479
+ }
2463
2480
  }
2464
2481
  ]
2465
2482
  },
2466
2483
  {
2467
- "name": "van-checkbox-group",
2484
+ "name": "van-row",
2468
2485
  "slots": [],
2469
2486
  "events": [
2470
2487
  {
2471
- "name": "change",
2472
- "description": "当绑定值变化时触发的事件"
2488
+ "name": "click",
2489
+ "description": "点击时触发"
2473
2490
  }
2474
2491
  ],
2475
2492
  "attributes": [
2476
2493
  {
2477
- "name": "v-model",
2494
+ "name": "gutter",
2478
2495
  "default": "-",
2479
- "description": "所有选中项的标识符",
2480
- "options": [],
2481
- "value": {
2482
- "type": "any[]",
2483
- "kind": "expression"
2484
- }
2485
- },
2486
- {
2487
- "name": "disabled",
2488
- "default": "`false`",
2489
- "description": "是否禁用所有复选框",
2496
+ "description": "列元素之间的间距(单位为 px)",
2490
2497
  "options": [],
2491
2498
  "value": {
2492
- "type": "boolean",
2499
+ "type": "number | string",
2493
2500
  "kind": "expression"
2494
2501
  }
2495
2502
  },
2496
2503
  {
2497
- "name": "max",
2498
- "default": "`0`",
2499
- "description": "最大可选数,`0` 为无限制",
2504
+ "name": "tag",
2505
+ "default": "`div`",
2506
+ "description": "自定义元素标签",
2500
2507
  "options": [],
2501
2508
  "value": {
2502
- "type": "number | string",
2509
+ "type": "string",
2503
2510
  "kind": "expression"
2504
2511
  }
2505
2512
  },
2506
2513
  {
2507
- "name": "direction",
2508
- "default": "`vertical`",
2509
- "description": "排列方向,可选值为 `horizontal`",
2514
+ "name": "justify",
2515
+ "default": "`start`",
2516
+ "description": "主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`",
2510
2517
  "options": [],
2511
2518
  "value": {
2512
2519
  "type": "string",
@@ -2514,51 +2521,51 @@
2514
2521
  }
2515
2522
  },
2516
2523
  {
2517
- "name": "icon-size",
2518
- "default": "`20px`",
2519
- "description": "所有复选框的图标大小,默认单位为 `px`",
2524
+ "name": "align",
2525
+ "default": "`top`",
2526
+ "description": "交叉轴对齐方式,可选值为 `center` `bottom`",
2520
2527
  "options": [],
2521
2528
  "value": {
2522
- "type": "number | string",
2529
+ "type": "string",
2523
2530
  "kind": "expression"
2524
2531
  }
2525
2532
  },
2526
2533
  {
2527
- "name": "checked-color",
2528
- "default": "`#1989fa`",
2529
- "description": "所有复选框的选中状态颜色",
2534
+ "name": "wrap",
2535
+ "default": "`true`",
2536
+ "description": "是否自动换行",
2530
2537
  "options": [],
2531
2538
  "value": {
2532
- "type": "string",
2539
+ "type": "boolean",
2533
2540
  "kind": "expression"
2534
2541
  }
2535
2542
  }
2536
2543
  ]
2537
2544
  },
2538
2545
  {
2539
- "name": "van-circle",
2540
- "slots": [
2546
+ "name": "van-col",
2547
+ "slots": [],
2548
+ "events": [
2541
2549
  {
2542
- "name": "default",
2543
- "description": "自定义文字内容"
2550
+ "name": "click",
2551
+ "description": "点击时触发"
2544
2552
  }
2545
2553
  ],
2546
- "events": [],
2547
2554
  "attributes": [
2548
2555
  {
2549
- "name": "v-model:current-rate",
2556
+ "name": "span",
2550
2557
  "default": "-",
2551
- "description": "当前进度",
2558
+ "description": "列元素宽度",
2552
2559
  "options": [],
2553
2560
  "value": {
2554
- "type": "number",
2561
+ "type": "number | string",
2555
2562
  "kind": "expression"
2556
2563
  }
2557
2564
  },
2558
2565
  {
2559
- "name": "rate",
2560
- "default": "`100`",
2561
- "description": "目标进度",
2566
+ "name": "offset",
2567
+ "default": "-",
2568
+ "description": "列元素偏移距离",
2562
2569
  "options": [],
2563
2570
  "value": {
2564
2571
  "type": "number | string",
@@ -2566,39 +2573,64 @@
2566
2573
  }
2567
2574
  },
2568
2575
  {
2569
- "name": "size",
2570
- "default": "`100px`",
2571
- "description": "圆环直径,默认单位为 `px`",
2576
+ "name": "tag",
2577
+ "default": "`div`",
2578
+ "description": "自定义元素标签",
2572
2579
  "options": [],
2573
2580
  "value": {
2574
- "type": "number | string",
2581
+ "type": "string",
2575
2582
  "kind": "expression"
2576
2583
  }
2584
+ }
2585
+ ]
2586
+ },
2587
+ {
2588
+ "name": "van-checkbox",
2589
+ "slots": [
2590
+ {
2591
+ "name": "default",
2592
+ "description": "自定义文本"
2577
2593
  },
2578
2594
  {
2579
- "name": "color",
2580
- "default": "`#1989fa`",
2581
- "description": "进度条颜色,传入对象格式可以定义渐变色",
2595
+ "name": "icon",
2596
+ "description": "自定义图标"
2597
+ }
2598
+ ],
2599
+ "events": [
2600
+ {
2601
+ "name": "change",
2602
+ "description": "当绑定值变化时触发的事件"
2603
+ },
2604
+ {
2605
+ "name": "click",
2606
+ "description": "点击复选框时触发"
2607
+ }
2608
+ ],
2609
+ "attributes": [
2610
+ {
2611
+ "name": "v-model",
2612
+ "default": "`false`",
2613
+ "description": "是否为选中状态",
2582
2614
  "options": [],
2583
2615
  "value": {
2584
- "type": "string | object",
2616
+ "type": "boolean",
2585
2617
  "kind": "expression"
2586
2618
  }
2587
2619
  },
2588
2620
  {
2589
- "name": "layer-color",
2590
- "default": "`white`",
2591
- "description": "轨道颜色",
2621
+ "name": "name",
2622
+ "default": "-",
2623
+ "description": "标识符",
2592
2624
  "options": [],
2593
2625
  "value": {
2594
- "type": "string",
2626
+ "type": "any",
2595
2627
  "kind": "expression"
2596
2628
  }
2597
2629
  },
2598
2630
  {
2599
- "name": "fill",
2600
- "default": "`none`",
2601
- "description": "填充颜色",
2631
+ "name": "shape",
2632
+ "default": "`round`",
2633
+ "description": "形状,可选值为 `square`",
2602
2634
  "options": [],
2603
2635
  "value": {
2604
2636
  "type": "string",
@@ -2606,111 +2638,111 @@
2606
2638
  }
2607
2639
  },
2608
2640
  {
2609
- "name": "speed",
2610
- "default": "`0`",
2611
- "description": "动画速度(单位为 rate/s)",
2641
+ "name": "disabled",
2642
+ "default": "`false`",
2643
+ "description": "是否禁用复选框",
2612
2644
  "options": [],
2613
2645
  "value": {
2614
- "type": "number | string",
2646
+ "type": "boolean",
2615
2647
  "kind": "expression"
2616
2648
  }
2617
2649
  },
2618
2650
  {
2619
- "name": "text",
2620
- "default": "-",
2621
- "description": "文字",
2651
+ "name": "label-disabled",
2652
+ "default": "`false`",
2653
+ "description": "是否禁用复选框文本点击",
2622
2654
  "options": [],
2623
2655
  "value": {
2624
- "type": "string",
2656
+ "type": "boolean",
2625
2657
  "kind": "expression"
2626
2658
  }
2627
2659
  },
2628
2660
  {
2629
- "name": "stroke-width",
2630
- "default": "`40`",
2631
- "description": "进度条宽度",
2661
+ "name": "label-position",
2662
+ "default": "`right`",
2663
+ "description": "文本位置,可选值为 `left`",
2632
2664
  "options": [],
2633
2665
  "value": {
2634
- "type": "number | string",
2666
+ "type": "string",
2635
2667
  "kind": "expression"
2636
2668
  }
2637
2669
  },
2638
2670
  {
2639
- "name": "stroke-linecap",
2640
- "default": "`round`",
2641
- "description": "进度条端点的形状,可选值为 `square` `butt`",
2671
+ "name": "icon-size",
2672
+ "default": "`20px`",
2673
+ "description": "图标大小,默认单位为 `px`",
2642
2674
  "options": [],
2643
2675
  "value": {
2644
- "type": "string",
2676
+ "type": "number | string",
2645
2677
  "kind": "expression"
2646
2678
  }
2647
2679
  },
2648
2680
  {
2649
- "name": "clockwise",
2650
- "default": "`true`",
2651
- "description": "是否顺时针增加",
2681
+ "name": "checked-color",
2682
+ "default": "`#1989fa`",
2683
+ "description": "选中状态颜色",
2652
2684
  "options": [],
2653
2685
  "value": {
2654
- "type": "boolean",
2686
+ "type": "string",
2655
2687
  "kind": "expression"
2656
2688
  }
2657
2689
  },
2658
2690
  {
2659
- "name": "start-position",
2660
- "default": "`top`",
2661
- "description": "进度起始位置,可选值为 `left`、`right`、`bottom`",
2691
+ "name": "bind-group",
2692
+ "default": "`true`",
2693
+ "description": "是否与复选框组绑定",
2662
2694
  "options": [],
2663
2695
  "value": {
2664
- "type": "CircleStartPosition",
2696
+ "type": "boolean",
2665
2697
  "kind": "expression"
2666
2698
  }
2667
2699
  }
2668
2700
  ]
2669
2701
  },
2670
2702
  {
2671
- "name": "van-row",
2703
+ "name": "van-checkbox-group",
2672
2704
  "slots": [],
2673
2705
  "events": [
2674
2706
  {
2675
- "name": "click",
2676
- "description": "点击时触发"
2707
+ "name": "change",
2708
+ "description": "当绑定值变化时触发的事件"
2677
2709
  }
2678
2710
  ],
2679
2711
  "attributes": [
2680
2712
  {
2681
- "name": "gutter",
2713
+ "name": "v-model",
2682
2714
  "default": "-",
2683
- "description": "列元素之间的间距(单位为 px)",
2715
+ "description": "所有选中项的标识符",
2684
2716
  "options": [],
2685
2717
  "value": {
2686
- "type": "number | string",
2718
+ "type": "any[]",
2687
2719
  "kind": "expression"
2688
2720
  }
2689
2721
  },
2690
2722
  {
2691
- "name": "tag",
2692
- "default": "`div`",
2693
- "description": "自定义元素标签",
2723
+ "name": "disabled",
2724
+ "default": "`false`",
2725
+ "description": "是否禁用所有复选框",
2694
2726
  "options": [],
2695
2727
  "value": {
2696
- "type": "string",
2728
+ "type": "boolean",
2697
2729
  "kind": "expression"
2698
2730
  }
2699
2731
  },
2700
2732
  {
2701
- "name": "justify",
2702
- "default": "`start`",
2703
- "description": "主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`",
2733
+ "name": "max",
2734
+ "default": "`0`",
2735
+ "description": "最大可选数,`0` 为无限制",
2704
2736
  "options": [],
2705
2737
  "value": {
2706
- "type": "string",
2738
+ "type": "number | string",
2707
2739
  "kind": "expression"
2708
2740
  }
2709
2741
  },
2710
2742
  {
2711
- "name": "align",
2712
- "default": "`top`",
2713
- "description": "交叉轴对齐方式,可选值为 `center` `bottom`",
2743
+ "name": "direction",
2744
+ "default": "`vertical`",
2745
+ "description": "排列方向,可选值为 `horizontal`",
2714
2746
  "options": [],
2715
2747
  "value": {
2716
2748
  "type": "string",
@@ -2718,41 +2750,9 @@
2718
2750
  }
2719
2751
  },
2720
2752
  {
2721
- "name": "wrap",
2722
- "default": "`true`",
2723
- "description": "是否自动换行",
2724
- "options": [],
2725
- "value": {
2726
- "type": "boolean",
2727
- "kind": "expression"
2728
- }
2729
- }
2730
- ]
2731
- },
2732
- {
2733
- "name": "van-col",
2734
- "slots": [],
2735
- "events": [
2736
- {
2737
- "name": "click",
2738
- "description": "点击时触发"
2739
- }
2740
- ],
2741
- "attributes": [
2742
- {
2743
- "name": "span",
2744
- "default": "-",
2745
- "description": "列元素宽度",
2746
- "options": [],
2747
- "value": {
2748
- "type": "number | string",
2749
- "kind": "expression"
2750
- }
2751
- },
2752
- {
2753
- "name": "offset",
2754
- "default": "-",
2755
- "description": "列元素偏移距离",
2753
+ "name": "icon-size",
2754
+ "default": "`20px`",
2755
+ "description": "所有复选框的图标大小,默认单位为 `px`",
2756
2756
  "options": [],
2757
2757
  "value": {
2758
2758
  "type": "number | string",
@@ -2760,9 +2760,9 @@
2760
2760
  }
2761
2761
  },
2762
2762
  {
2763
- "name": "tag",
2764
- "default": "`div`",
2765
- "description": "自定义元素标签",
2763
+ "name": "checked-color",
2764
+ "default": "`#1989fa`",
2765
+ "description": "所有复选框的选中状态颜色",
2766
2766
  "options": [],
2767
2767
  "value": {
2768
2768
  "type": "string",
@@ -3015,39 +3015,47 @@
3015
3015
  ]
3016
3016
  },
3017
3017
  {
3018
- "name": "van-contact-card",
3018
+ "name": "van-contact-list",
3019
3019
  "slots": [],
3020
3020
  "events": [
3021
3021
  {
3022
- "name": "click",
3023
- "description": "点击时触发"
3022
+ "name": "add",
3023
+ "description": "点击新增按钮时触发"
3024
+ },
3025
+ {
3026
+ "name": "edit",
3027
+ "description": "点击编辑按钮时触发"
3028
+ },
3029
+ {
3030
+ "name": "select",
3031
+ "description": "切换选中的联系人时触发"
3024
3032
  }
3025
3033
  ],
3026
3034
  "attributes": [
3027
3035
  {
3028
- "name": "type",
3029
- "default": "`add`",
3030
- "description": "卡片类型,可选值为 `edit`",
3036
+ "name": "v-model",
3037
+ "default": "-",
3038
+ "description": "当前选中联系人的 id",
3031
3039
  "options": [],
3032
3040
  "value": {
3033
- "type": "string",
3041
+ "type": "number | string",
3034
3042
  "kind": "expression"
3035
3043
  }
3036
3044
  },
3037
3045
  {
3038
- "name": "name",
3039
- "default": "-",
3040
- "description": "联系人姓名",
3046
+ "name": "list",
3047
+ "default": "`[]`",
3048
+ "description": "联系人列表",
3041
3049
  "options": [],
3042
3050
  "value": {
3043
- "type": "string",
3051
+ "type": "Contact[]",
3044
3052
  "kind": "expression"
3045
3053
  }
3046
3054
  },
3047
3055
  {
3048
- "name": "tel",
3049
- "default": "-",
3050
- "description": "联系人手机号",
3056
+ "name": "add-text",
3057
+ "default": "`新建联系人`",
3058
+ "description": "新建按钮文案",
3051
3059
  "options": [],
3052
3060
  "value": {
3053
3061
  "type": "string",
@@ -3055,9 +3063,9 @@
3055
3063
  }
3056
3064
  },
3057
3065
  {
3058
- "name": "add-text",
3059
- "default": "`添加联系人`",
3060
- "description": "添加时的文案提示",
3066
+ "name": "default-tag-text",
3067
+ "default": "-",
3068
+ "description": "默认联系人标签文案",
3061
3069
  "options": [],
3062
3070
  "value": {
3063
3071
  "type": "string",
@@ -3153,47 +3161,39 @@
3153
3161
  ]
3154
3162
  },
3155
3163
  {
3156
- "name": "van-contact-list",
3164
+ "name": "van-contact-card",
3157
3165
  "slots": [],
3158
3166
  "events": [
3159
3167
  {
3160
- "name": "add",
3161
- "description": "点击新增按钮时触发"
3162
- },
3163
- {
3164
- "name": "edit",
3165
- "description": "点击编辑按钮时触发"
3166
- },
3167
- {
3168
- "name": "select",
3169
- "description": "切换选中的联系人时触发"
3168
+ "name": "click",
3169
+ "description": "点击时触发"
3170
3170
  }
3171
3171
  ],
3172
3172
  "attributes": [
3173
3173
  {
3174
- "name": "v-model",
3175
- "default": "-",
3176
- "description": "当前选中联系人的 id",
3174
+ "name": "type",
3175
+ "default": "`add`",
3176
+ "description": "卡片类型,可选值为 `edit`",
3177
3177
  "options": [],
3178
3178
  "value": {
3179
- "type": "number | string",
3179
+ "type": "string",
3180
3180
  "kind": "expression"
3181
3181
  }
3182
3182
  },
3183
3183
  {
3184
- "name": "list",
3185
- "default": "`[]`",
3186
- "description": "联系人列表",
3184
+ "name": "name",
3185
+ "default": "-",
3186
+ "description": "联系人姓名",
3187
3187
  "options": [],
3188
3188
  "value": {
3189
- "type": "Contact[]",
3189
+ "type": "string",
3190
3190
  "kind": "expression"
3191
3191
  }
3192
3192
  },
3193
3193
  {
3194
- "name": "add-text",
3195
- "default": "`新建联系人`",
3196
- "description": "新建按钮文案",
3194
+ "name": "tel",
3195
+ "default": "-",
3196
+ "description": "联系人手机号",
3197
3197
  "options": [],
3198
3198
  "value": {
3199
3199
  "type": "string",
@@ -3201,9 +3201,9 @@
3201
3201
  }
3202
3202
  },
3203
3203
  {
3204
- "name": "default-tag-text",
3205
- "default": "-",
3206
- "description": "默认联系人标签文案",
3204
+ "name": "add-text",
3205
+ "default": "`添加联系人`",
3206
+ "description": "添加时的文案提示",
3207
3207
  "options": [],
3208
3208
  "value": {
3209
3209
  "type": "string",
@@ -3799,52 +3799,19 @@
3799
3799
  ]
3800
3800
  },
3801
3801
  {
3802
- "name": "van-dialog",
3802
+ "name": "van-divider",
3803
3803
  "slots": [
3804
3804
  {
3805
3805
  "name": "default",
3806
- "description": "自定义内容"
3807
- },
3808
- {
3809
- "name": "title",
3810
- "description": "自定义标题"
3811
- },
3812
- {
3813
- "name": "footer",
3814
- "description": "自定义底部按钮区域"
3815
- }
3816
- ],
3817
- "events": [
3818
- {
3819
- "name": "confirm",
3820
- "description": "点击确认按钮时触发"
3821
- },
3822
- {
3823
- "name": "cancel",
3824
- "description": "点击取消按钮时触发"
3825
- },
3826
- {
3827
- "name": "open",
3828
- "description": "打开弹窗时触发"
3829
- },
3830
- {
3831
- "name": "close",
3832
- "description": "关闭弹窗时触发"
3833
- },
3834
- {
3835
- "name": "opened",
3836
- "description": "打开弹窗且动画结束后触发"
3837
- },
3838
- {
3839
- "name": "closed",
3840
- "description": "关闭弹窗且动画结束后触发"
3806
+ "description": "内容"
3841
3807
  }
3842
3808
  ],
3809
+ "events": [],
3843
3810
  "attributes": [
3844
3811
  {
3845
- "name": "v-model:show",
3846
- "default": "-",
3847
- "description": "是否显示弹窗",
3812
+ "name": "dashed",
3813
+ "default": "`false`",
3814
+ "description": "是否使用虚线",
3848
3815
  "options": [],
3849
3816
  "value": {
3850
3817
  "type": "boolean",
@@ -3852,39 +3819,46 @@
3852
3819
  }
3853
3820
  },
3854
3821
  {
3855
- "name": "title",
3856
- "default": "-",
3857
- "description": "标题",
3822
+ "name": "hairline",
3823
+ "default": "`true`",
3824
+ "description": "是否使用 0.5px 线",
3858
3825
  "options": [],
3859
3826
  "value": {
3860
- "type": "string",
3827
+ "type": "boolean",
3861
3828
  "kind": "expression"
3862
3829
  }
3863
3830
  },
3864
3831
  {
3865
- "name": "width",
3866
- "default": "`320px`",
3867
- "description": "弹窗宽度,默认单位为 `px`",
3832
+ "name": "content-position",
3833
+ "default": "`center`",
3834
+ "description": "内容位置,可选值为 `left` `right`",
3868
3835
  "options": [],
3869
3836
  "value": {
3870
- "type": "number | string",
3837
+ "type": "string",
3871
3838
  "kind": "expression"
3872
3839
  }
3873
- },
3840
+ }
3841
+ ]
3842
+ },
3843
+ {
3844
+ "name": "van-dropdown-menu",
3845
+ "slots": [],
3846
+ "events": [],
3847
+ "attributes": [
3874
3848
  {
3875
- "name": "message",
3876
- "default": "-",
3877
- "description": "文本内容,支持通过 `\\n` 换行",
3849
+ "name": "active-color",
3850
+ "default": "`#ee0a24`",
3851
+ "description": "菜单标题和选项的选中态颜色",
3878
3852
  "options": [],
3879
3853
  "value": {
3880
- "type": "string | () => JSX.ELement",
3854
+ "type": "string",
3881
3855
  "kind": "expression"
3882
3856
  }
3883
3857
  },
3884
3858
  {
3885
- "name": "message-align",
3886
- "default": "`center`",
3887
- "description": "内容水平对齐方式,可选值为 `left` `right`",
3859
+ "name": "direction",
3860
+ "default": "`down`",
3861
+ "description": "菜单展开方向,可选值为`up`",
3888
3862
  "options": [],
3889
3863
  "value": {
3890
3864
  "type": "string",
@@ -3892,29 +3866,29 @@
3892
3866
  }
3893
3867
  },
3894
3868
  {
3895
- "name": "theme",
3896
- "default": "`default`",
3897
- "description": "样式风格,可选值为 `round-button`",
3869
+ "name": "z-index",
3870
+ "default": "`10`",
3871
+ "description": "菜单栏 z-index 层级",
3898
3872
  "options": [],
3899
3873
  "value": {
3900
- "type": "string",
3874
+ "type": "number | string",
3901
3875
  "kind": "expression"
3902
3876
  }
3903
3877
  },
3904
3878
  {
3905
- "name": "show-confirm-button",
3906
- "default": "`true`",
3907
- "description": "是否展示确认按钮",
3879
+ "name": "duration",
3880
+ "default": "`0.2`",
3881
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画",
3908
3882
  "options": [],
3909
3883
  "value": {
3910
- "type": "boolean",
3884
+ "type": "number | string",
3911
3885
  "kind": "expression"
3912
3886
  }
3913
3887
  },
3914
3888
  {
3915
- "name": "show-cancel-button",
3916
- "default": "`false`",
3917
- "description": "是否展示取消按钮",
3889
+ "name": "overlay",
3890
+ "default": "`true`",
3891
+ "description": "是否显示遮罩层",
3918
3892
  "options": [],
3919
3893
  "value": {
3920
3894
  "type": "boolean",
@@ -3922,39 +3896,76 @@
3922
3896
  }
3923
3897
  },
3924
3898
  {
3925
- "name": "confirm-button-text",
3926
- "default": "`确认`",
3927
- "description": "确认按钮文案",
3899
+ "name": "close-on-click-overlay",
3900
+ "default": "`true`",
3901
+ "description": "是否在点击遮罩层后关闭菜单",
3928
3902
  "options": [],
3929
3903
  "value": {
3930
- "type": "string",
3904
+ "type": "boolean",
3931
3905
  "kind": "expression"
3932
3906
  }
3933
3907
  },
3934
3908
  {
3935
- "name": "confirm-button-color",
3936
- "default": "`#ee0a24`",
3937
- "description": "确认按钮颜色",
3909
+ "name": "close-on-click-outside",
3910
+ "default": "`true`",
3911
+ "description": "是否在点击外部元素后关闭菜单",
3938
3912
  "options": [],
3939
3913
  "value": {
3940
- "type": "string",
3914
+ "type": "boolean",
3941
3915
  "kind": "expression"
3942
3916
  }
3917
+ }
3918
+ ]
3919
+ },
3920
+ {
3921
+ "name": "van-dropdown-item",
3922
+ "slots": [
3923
+ {
3924
+ "name": "default",
3925
+ "description": "菜单内容"
3943
3926
  },
3944
3927
  {
3945
- "name": "cancel-button-text",
3946
- "default": "`取消`",
3947
- "description": "取消按钮文案",
3928
+ "name": "title",
3929
+ "description": "自定义菜单项标题"
3930
+ }
3931
+ ],
3932
+ "events": [
3933
+ {
3934
+ "name": "change",
3935
+ "description": "点击选项导致 value 变化时触发"
3936
+ },
3937
+ {
3938
+ "name": "open",
3939
+ "description": "打开菜单栏时触发"
3940
+ },
3941
+ {
3942
+ "name": "close",
3943
+ "description": "关闭菜单栏时触发"
3944
+ },
3945
+ {
3946
+ "name": "opened",
3947
+ "description": "打开菜单栏且动画结束后触发"
3948
+ },
3949
+ {
3950
+ "name": "closed",
3951
+ "description": "关闭菜单栏且动画结束后触发"
3952
+ }
3953
+ ],
3954
+ "attributes": [
3955
+ {
3956
+ "name": "v-model",
3957
+ "default": "-",
3958
+ "description": "当前选中项对应的 value",
3948
3959
  "options": [],
3949
3960
  "value": {
3950
- "type": "string",
3961
+ "type": "number | string",
3951
3962
  "kind": "expression"
3952
3963
  }
3953
3964
  },
3954
3965
  {
3955
- "name": "cancel-button-color",
3956
- "default": "`black`",
3957
- "description": "取消按钮颜色",
3966
+ "name": "title",
3967
+ "default": "当前选中项文字",
3968
+ "description": "菜单项标题",
3958
3969
  "options": [],
3959
3970
  "value": {
3960
3971
  "type": "string",
@@ -3962,59 +3973,106 @@
3962
3973
  }
3963
3974
  },
3964
3975
  {
3965
- "name": "overlay",
3966
- "default": "`true`",
3967
- "description": "是否展示遮罩层",
3976
+ "name": "options",
3977
+ "default": "`[]`",
3978
+ "description": "选项数组",
3968
3979
  "options": [],
3969
3980
  "value": {
3970
- "type": "boolean",
3981
+ "type": "Option[]",
3971
3982
  "kind": "expression"
3972
3983
  }
3973
3984
  },
3974
3985
  {
3975
- "name": "overlay-class",
3976
- "default": "-",
3977
- "description": "自定义遮罩层类名",
3986
+ "name": "disabled",
3987
+ "default": "`false`",
3988
+ "description": "是否禁用菜单",
3978
3989
  "options": [],
3979
3990
  "value": {
3980
- "type": "string",
3991
+ "type": "boolean",
3981
3992
  "kind": "expression"
3982
3993
  }
3983
3994
  },
3984
3995
  {
3985
- "name": "overlay-style",
3986
- "default": "-",
3987
- "description": "自定义遮罩层样式",
3996
+ "name": "lazy-render",
3997
+ "default": "`true`",
3998
+ "description": "是否在首次展开时才渲染菜单内容",
3988
3999
  "options": [],
3989
4000
  "value": {
3990
- "type": "object",
4001
+ "type": "boolean",
3991
4002
  "kind": "expression"
3992
4003
  }
3993
4004
  },
3994
4005
  {
3995
- "name": "close-on-popstate",
3996
- "default": "`true`",
3997
- "description": "是否在页面回退时自动关闭",
3998
- "options": [],
4006
+ "name": "title-class",
4007
+ "default": "object_",
4008
+ "description": "标题额外类名",
4009
+ "options": [
4010
+ "-"
4011
+ ],
3999
4012
  "value": {
4000
- "type": "boolean",
4013
+ "type": "string | Array \\",
4001
4014
  "kind": "expression"
4002
4015
  }
4003
4016
  },
4004
4017
  {
4005
- "name": "close-on-click-overlay",
4006
- "default": "`false`",
4007
- "description": "是否在点击遮罩层后关闭弹窗",
4018
+ "name": "teleport",
4019
+ "default": "-",
4020
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
4008
4021
  "options": [],
4009
4022
  "value": {
4010
- "type": "boolean",
4023
+ "type": "string | Element",
4011
4024
  "kind": "expression"
4012
4025
  }
4026
+ }
4027
+ ]
4028
+ },
4029
+ {
4030
+ "name": "van-dialog",
4031
+ "slots": [
4032
+ {
4033
+ "name": "default",
4034
+ "description": "自定义内容"
4013
4035
  },
4014
4036
  {
4015
- "name": "lazy-render",
4016
- "default": "`true`",
4017
- "description": "是否在显示弹层时才渲染节点",
4037
+ "name": "title",
4038
+ "description": "自定义标题"
4039
+ },
4040
+ {
4041
+ "name": "footer",
4042
+ "description": "自定义底部按钮区域"
4043
+ }
4044
+ ],
4045
+ "events": [
4046
+ {
4047
+ "name": "confirm",
4048
+ "description": "点击确认按钮时触发"
4049
+ },
4050
+ {
4051
+ "name": "cancel",
4052
+ "description": "点击取消按钮时触发"
4053
+ },
4054
+ {
4055
+ "name": "open",
4056
+ "description": "打开弹窗时触发"
4057
+ },
4058
+ {
4059
+ "name": "close",
4060
+ "description": "关闭弹窗时触发"
4061
+ },
4062
+ {
4063
+ "name": "opened",
4064
+ "description": "打开弹窗且动画结束后触发"
4065
+ },
4066
+ {
4067
+ "name": "closed",
4068
+ "description": "关闭弹窗且动画结束后触发"
4069
+ }
4070
+ ],
4071
+ "attributes": [
4072
+ {
4073
+ "name": "v-model:show",
4074
+ "default": "-",
4075
+ "description": "是否显示弹窗",
4018
4076
  "options": [],
4019
4077
  "value": {
4020
4078
  "type": "boolean",
@@ -4022,39 +4080,39 @@
4022
4080
  }
4023
4081
  },
4024
4082
  {
4025
- "name": "lock-scroll",
4026
- "default": "`true`",
4027
- "description": "是否锁定背景滚动",
4083
+ "name": "title",
4084
+ "default": "-",
4085
+ "description": "标题",
4028
4086
  "options": [],
4029
4087
  "value": {
4030
- "type": "boolean",
4088
+ "type": "string",
4031
4089
  "kind": "expression"
4032
4090
  }
4033
4091
  },
4034
4092
  {
4035
- "name": "allow-html",
4036
- "default": "`false`",
4037
- "description": "是否允许 message 内容中渲染 HTML",
4093
+ "name": "width",
4094
+ "default": "`320px`",
4095
+ "description": "弹窗宽度,默认单位为 `px`",
4038
4096
  "options": [],
4039
4097
  "value": {
4040
- "type": "boolean",
4098
+ "type": "number | string",
4041
4099
  "kind": "expression"
4042
4100
  }
4043
4101
  },
4044
4102
  {
4045
- "name": "before-close",
4103
+ "name": "message",
4046
4104
  "default": "-",
4047
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
4105
+ "description": "文本内容,支持通过 `\\n` 换行",
4048
4106
  "options": [],
4049
4107
  "value": {
4050
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
4108
+ "type": "string | () => JSX.ELement",
4051
4109
  "kind": "expression"
4052
4110
  }
4053
4111
  },
4054
4112
  {
4055
- "name": "transition",
4056
- "default": "-",
4057
- "description": "动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) `name` 属性",
4113
+ "name": "message-align",
4114
+ "default": "`center`",
4115
+ "description": "内容水平对齐方式,可选值为 `left` `right`",
4058
4116
  "options": [],
4059
4117
  "value": {
4060
4118
  "type": "string",
@@ -4062,31 +4120,19 @@
4062
4120
  }
4063
4121
  },
4064
4122
  {
4065
- "name": "teleport",
4066
- "default": "-",
4067
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
4123
+ "name": "theme",
4124
+ "default": "`default`",
4125
+ "description": "样式风格,可选值为 `round-button`",
4068
4126
  "options": [],
4069
4127
  "value": {
4070
- "type": "string | Element",
4128
+ "type": "string",
4071
4129
  "kind": "expression"
4072
4130
  }
4073
- }
4074
- ]
4075
- },
4076
- {
4077
- "name": "van-divider",
4078
- "slots": [
4079
- {
4080
- "name": "default",
4081
- "description": "内容"
4082
- }
4083
- ],
4084
- "events": [],
4085
- "attributes": [
4131
+ },
4086
4132
  {
4087
- "name": "dashed",
4088
- "default": "`false`",
4089
- "description": "是否使用虚线",
4133
+ "name": "show-confirm-button",
4134
+ "default": "`true`",
4135
+ "description": "是否展示确认按钮",
4090
4136
  "options": [],
4091
4137
  "value": {
4092
4138
  "type": "boolean",
@@ -4094,9 +4140,9 @@
4094
4140
  }
4095
4141
  },
4096
4142
  {
4097
- "name": "hairline",
4098
- "default": "`true`",
4099
- "description": "是否使用 0.5px 线",
4143
+ "name": "show-cancel-button",
4144
+ "default": "`false`",
4145
+ "description": "是否展示取消按钮",
4100
4146
  "options": [],
4101
4147
  "value": {
4102
4148
  "type": "boolean",
@@ -4104,26 +4150,19 @@
4104
4150
  }
4105
4151
  },
4106
4152
  {
4107
- "name": "content-position",
4108
- "default": "`center`",
4109
- "description": "内容位置,可选值为 `left` `right`",
4153
+ "name": "confirm-button-text",
4154
+ "default": "`确认`",
4155
+ "description": "确认按钮文案",
4110
4156
  "options": [],
4111
4157
  "value": {
4112
4158
  "type": "string",
4113
4159
  "kind": "expression"
4114
4160
  }
4115
- }
4116
- ]
4117
- },
4118
- {
4119
- "name": "van-dropdown-menu",
4120
- "slots": [],
4121
- "events": [],
4122
- "attributes": [
4161
+ },
4123
4162
  {
4124
- "name": "active-color",
4163
+ "name": "confirm-button-color",
4125
4164
  "default": "`#ee0a24`",
4126
- "description": "菜单标题和选项的选中态颜色",
4165
+ "description": "确认按钮颜色",
4127
4166
  "options": [],
4128
4167
  "value": {
4129
4168
  "type": "string",
@@ -4131,9 +4170,9 @@
4131
4170
  }
4132
4171
  },
4133
4172
  {
4134
- "name": "direction",
4135
- "default": "`down`",
4136
- "description": "菜单展开方向,可选值为`up`",
4173
+ "name": "cancel-button-text",
4174
+ "default": "`取消`",
4175
+ "description": "取消按钮文案",
4137
4176
  "options": [],
4138
4177
  "value": {
4139
4178
  "type": "string",
@@ -4141,126 +4180,89 @@
4141
4180
  }
4142
4181
  },
4143
4182
  {
4144
- "name": "z-index",
4145
- "default": "`10`",
4146
- "description": "菜单栏 z-index 层级",
4183
+ "name": "cancel-button-color",
4184
+ "default": "`black`",
4185
+ "description": "取消按钮颜色",
4147
4186
  "options": [],
4148
4187
  "value": {
4149
- "type": "number | string",
4188
+ "type": "string",
4150
4189
  "kind": "expression"
4151
4190
  }
4152
4191
  },
4153
4192
  {
4154
- "name": "duration",
4155
- "default": "`0.2`",
4156
- "description": "动画时长,单位秒,设置为 0 可以禁用动画",
4193
+ "name": "overlay",
4194
+ "default": "`true`",
4195
+ "description": "是否展示遮罩层",
4157
4196
  "options": [],
4158
4197
  "value": {
4159
- "type": "number | string",
4198
+ "type": "boolean",
4160
4199
  "kind": "expression"
4161
4200
  }
4162
4201
  },
4163
4202
  {
4164
- "name": "overlay",
4165
- "default": "`true`",
4166
- "description": "是否显示遮罩层",
4203
+ "name": "overlay-class",
4204
+ "default": "-",
4205
+ "description": "自定义遮罩层类名",
4167
4206
  "options": [],
4168
4207
  "value": {
4169
- "type": "boolean",
4208
+ "type": "string",
4170
4209
  "kind": "expression"
4171
4210
  }
4172
4211
  },
4173
4212
  {
4174
- "name": "close-on-click-overlay",
4175
- "default": "`true`",
4176
- "description": "是否在点击遮罩层后关闭菜单",
4213
+ "name": "overlay-style",
4214
+ "default": "-",
4215
+ "description": "自定义遮罩层样式",
4177
4216
  "options": [],
4178
4217
  "value": {
4179
- "type": "boolean",
4218
+ "type": "object",
4180
4219
  "kind": "expression"
4181
4220
  }
4182
4221
  },
4183
4222
  {
4184
- "name": "close-on-click-outside",
4223
+ "name": "close-on-popstate",
4185
4224
  "default": "`true`",
4186
- "description": "是否在点击外部元素后关闭菜单",
4225
+ "description": "是否在页面回退时自动关闭",
4187
4226
  "options": [],
4188
4227
  "value": {
4189
4228
  "type": "boolean",
4190
4229
  "kind": "expression"
4191
4230
  }
4192
- }
4193
- ]
4194
- },
4195
- {
4196
- "name": "van-dropdown-item",
4197
- "slots": [
4198
- {
4199
- "name": "default",
4200
- "description": "菜单内容"
4201
- },
4202
- {
4203
- "name": "title",
4204
- "description": "自定义菜单项标题"
4205
- }
4206
- ],
4207
- "events": [
4208
- {
4209
- "name": "change",
4210
- "description": "点击选项导致 value 变化时触发"
4211
- },
4212
- {
4213
- "name": "open",
4214
- "description": "打开菜单栏时触发"
4215
4231
  },
4216
4232
  {
4217
- "name": "close",
4218
- "description": "关闭菜单栏时触发"
4219
- },
4220
- {
4221
- "name": "opened",
4222
- "description": "打开菜单栏且动画结束后触发"
4223
- },
4224
- {
4225
- "name": "closed",
4226
- "description": "关闭菜单栏且动画结束后触发"
4227
- }
4228
- ],
4229
- "attributes": [
4230
- {
4231
- "name": "v-model",
4232
- "default": "-",
4233
- "description": "当前选中项对应的 value",
4233
+ "name": "close-on-click-overlay",
4234
+ "default": "`false`",
4235
+ "description": "是否在点击遮罩层后关闭弹窗",
4234
4236
  "options": [],
4235
4237
  "value": {
4236
- "type": "number | string",
4238
+ "type": "boolean",
4237
4239
  "kind": "expression"
4238
4240
  }
4239
4241
  },
4240
4242
  {
4241
- "name": "title",
4242
- "default": "当前选中项文字",
4243
- "description": "菜单项标题",
4243
+ "name": "lazy-render",
4244
+ "default": "`true`",
4245
+ "description": "是否在显示弹层时才渲染节点",
4244
4246
  "options": [],
4245
4247
  "value": {
4246
- "type": "string",
4248
+ "type": "boolean",
4247
4249
  "kind": "expression"
4248
4250
  }
4249
4251
  },
4250
4252
  {
4251
- "name": "options",
4252
- "default": "`[]`",
4253
- "description": "选项数组",
4253
+ "name": "lock-scroll",
4254
+ "default": "`true`",
4255
+ "description": "是否锁定背景滚动",
4254
4256
  "options": [],
4255
4257
  "value": {
4256
- "type": "Option[]",
4258
+ "type": "boolean",
4257
4259
  "kind": "expression"
4258
4260
  }
4259
4261
  },
4260
4262
  {
4261
- "name": "disabled",
4263
+ "name": "allow-html",
4262
4264
  "default": "`false`",
4263
- "description": "是否禁用菜单",
4265
+ "description": "是否允许 message 内容中渲染 HTML",
4264
4266
  "options": [],
4265
4267
  "value": {
4266
4268
  "type": "boolean",
@@ -4268,24 +4270,22 @@
4268
4270
  }
4269
4271
  },
4270
4272
  {
4271
- "name": "lazy-render",
4272
- "default": "`true`",
4273
- "description": "是否在首次展开时才渲染菜单内容",
4273
+ "name": "before-close",
4274
+ "default": "-",
4275
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
4274
4276
  "options": [],
4275
4277
  "value": {
4276
- "type": "boolean",
4278
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
4277
4279
  "kind": "expression"
4278
4280
  }
4279
4281
  },
4280
4282
  {
4281
- "name": "title-class",
4282
- "default": "object_",
4283
- "description": "标题额外类名",
4284
- "options": [
4285
- "-"
4286
- ],
4283
+ "name": "transition",
4284
+ "default": "-",
4285
+ "description": "动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性",
4286
+ "options": [],
4287
4287
  "value": {
4288
- "type": "string | Array \\",
4288
+ "type": "string",
4289
4289
  "kind": "expression"
4290
4290
  }
4291
4291
  },
@@ -5171,67 +5171,165 @@
5171
5171
  "description": "图标名称或图片链接",
5172
5172
  "options": [],
5173
5173
  "value": {
5174
- "type": "string",
5174
+ "type": "string",
5175
+ "kind": "expression"
5176
+ }
5177
+ },
5178
+ {
5179
+ "name": "dot",
5180
+ "default": "`false`",
5181
+ "description": "是否显示图标右上角小红点",
5182
+ "options": [],
5183
+ "value": {
5184
+ "type": "boolean",
5185
+ "kind": "expression"
5186
+ }
5187
+ },
5188
+ {
5189
+ "name": "badge",
5190
+ "default": "-",
5191
+ "description": "图标右上角徽标的内容",
5192
+ "options": [],
5193
+ "value": {
5194
+ "type": "number | string",
5195
+ "kind": "expression"
5196
+ }
5197
+ },
5198
+ {
5199
+ "name": "color",
5200
+ "default": "`inherit`",
5201
+ "description": "图标颜色",
5202
+ "options": [],
5203
+ "value": {
5204
+ "type": "string",
5205
+ "kind": "expression"
5206
+ }
5207
+ },
5208
+ {
5209
+ "name": "size",
5210
+ "default": "`inherit`",
5211
+ "description": "图标大小,如 `20px` `2em`,默认单位为 `px`",
5212
+ "options": [],
5213
+ "value": {
5214
+ "type": "number | string",
5215
+ "kind": "expression"
5216
+ }
5217
+ },
5218
+ {
5219
+ "name": "class-prefix",
5220
+ "default": "`van-icon`",
5221
+ "description": "类名前缀,用于使用自定义图标",
5222
+ "options": [],
5223
+ "value": {
5224
+ "type": "string",
5225
+ "kind": "expression"
5226
+ }
5227
+ },
5228
+ {
5229
+ "name": "tag",
5230
+ "default": "`i`",
5231
+ "description": "根节点对应的 HTML 标签名",
5232
+ "options": [],
5233
+ "value": {
5234
+ "type": "string",
5235
+ "kind": "expression"
5236
+ }
5237
+ }
5238
+ ]
5239
+ },
5240
+ {
5241
+ "name": "van-index-bar",
5242
+ "slots": [],
5243
+ "events": [
5244
+ {
5245
+ "name": "select",
5246
+ "description": "点击索引栏的字符时触发"
5247
+ },
5248
+ {
5249
+ "name": "change",
5250
+ "description": "当前高亮的索引字符变化时触发"
5251
+ }
5252
+ ],
5253
+ "attributes": [
5254
+ {
5255
+ "name": "index-list",
5256
+ "default": "`A-Z`",
5257
+ "description": "索引字符列表",
5258
+ "options": [],
5259
+ "value": {
5260
+ "type": "string[] | number[]",
5175
5261
  "kind": "expression"
5176
5262
  }
5177
5263
  },
5178
5264
  {
5179
- "name": "dot",
5180
- "default": "`false`",
5181
- "description": "是否显示图标右上角小红点",
5265
+ "name": "z-index",
5266
+ "default": "`1`",
5267
+ "description": "z-index 层级",
5182
5268
  "options": [],
5183
5269
  "value": {
5184
- "type": "boolean",
5270
+ "type": "number | string",
5185
5271
  "kind": "expression"
5186
5272
  }
5187
5273
  },
5188
5274
  {
5189
- "name": "badge",
5190
- "default": "-",
5191
- "description": "图标右上角徽标的内容",
5275
+ "name": "sticky",
5276
+ "default": "`true`",
5277
+ "description": "是否开启锚点自动吸顶",
5192
5278
  "options": [],
5193
5279
  "value": {
5194
- "type": "number | string",
5280
+ "type": "boolean",
5195
5281
  "kind": "expression"
5196
5282
  }
5197
5283
  },
5198
5284
  {
5199
- "name": "color",
5200
- "default": "`inherit`",
5201
- "description": "图标颜色",
5285
+ "name": "sticky-offset-top",
5286
+ "default": "`0`",
5287
+ "description": "锚点自动吸顶时与顶部的距离",
5202
5288
  "options": [],
5203
5289
  "value": {
5204
- "type": "string",
5290
+ "type": "number",
5205
5291
  "kind": "expression"
5206
5292
  }
5207
5293
  },
5208
5294
  {
5209
- "name": "size",
5210
- "default": "`inherit`",
5211
- "description": "图标大小,如 `20px` `2em`,默认单位为 `px`",
5295
+ "name": "highlight-color",
5296
+ "default": "`#ee0a24`",
5297
+ "description": "索引字符高亮颜色",
5212
5298
  "options": [],
5213
5299
  "value": {
5214
- "type": "number | string",
5300
+ "type": "string",
5215
5301
  "kind": "expression"
5216
5302
  }
5217
5303
  },
5218
5304
  {
5219
- "name": "class-prefix",
5220
- "default": "`van-icon`",
5221
- "description": "类名前缀,用于使用自定义图标",
5305
+ "name": "teleport",
5306
+ "default": "-",
5307
+ "description": "指定索引栏挂载的节点",
5222
5308
  "options": [],
5223
5309
  "value": {
5224
- "type": "string",
5310
+ "type": "string | Element",
5225
5311
  "kind": "expression"
5226
5312
  }
5227
- },
5313
+ }
5314
+ ]
5315
+ },
5316
+ {
5317
+ "name": "van-index-anchor",
5318
+ "slots": [
5228
5319
  {
5229
- "name": "tag",
5230
- "default": "`i`",
5231
- "description": "根节点对应的 HTML 标签名",
5320
+ "name": "default",
5321
+ "description": "锚点位置显示内容,默认为索引字符"
5322
+ }
5323
+ ],
5324
+ "events": [],
5325
+ "attributes": [
5326
+ {
5327
+ "name": "index",
5328
+ "default": "-",
5329
+ "description": "索引字符",
5232
5330
  "options": [],
5233
5331
  "value": {
5234
- "type": "string",
5332
+ "type": "number | string",
5235
5333
  "kind": "expression"
5236
5334
  }
5237
5335
  }
@@ -5625,104 +5723,6 @@
5625
5723
  }
5626
5724
  ]
5627
5725
  },
5628
- {
5629
- "name": "van-index-bar",
5630
- "slots": [],
5631
- "events": [
5632
- {
5633
- "name": "select",
5634
- "description": "点击索引栏的字符时触发"
5635
- },
5636
- {
5637
- "name": "change",
5638
- "description": "当前高亮的索引字符变化时触发"
5639
- }
5640
- ],
5641
- "attributes": [
5642
- {
5643
- "name": "index-list",
5644
- "default": "`A-Z`",
5645
- "description": "索引字符列表",
5646
- "options": [],
5647
- "value": {
5648
- "type": "string[] | number[]",
5649
- "kind": "expression"
5650
- }
5651
- },
5652
- {
5653
- "name": "z-index",
5654
- "default": "`1`",
5655
- "description": "z-index 层级",
5656
- "options": [],
5657
- "value": {
5658
- "type": "number | string",
5659
- "kind": "expression"
5660
- }
5661
- },
5662
- {
5663
- "name": "sticky",
5664
- "default": "`true`",
5665
- "description": "是否开启锚点自动吸顶",
5666
- "options": [],
5667
- "value": {
5668
- "type": "boolean",
5669
- "kind": "expression"
5670
- }
5671
- },
5672
- {
5673
- "name": "sticky-offset-top",
5674
- "default": "`0`",
5675
- "description": "锚点自动吸顶时与顶部的距离",
5676
- "options": [],
5677
- "value": {
5678
- "type": "number",
5679
- "kind": "expression"
5680
- }
5681
- },
5682
- {
5683
- "name": "highlight-color",
5684
- "default": "`#ee0a24`",
5685
- "description": "索引字符高亮颜色",
5686
- "options": [],
5687
- "value": {
5688
- "type": "string",
5689
- "kind": "expression"
5690
- }
5691
- },
5692
- {
5693
- "name": "teleport",
5694
- "default": "-",
5695
- "description": "指定索引栏挂载的节点",
5696
- "options": [],
5697
- "value": {
5698
- "type": "string | Element",
5699
- "kind": "expression"
5700
- }
5701
- }
5702
- ]
5703
- },
5704
- {
5705
- "name": "van-index-anchor",
5706
- "slots": [
5707
- {
5708
- "name": "default",
5709
- "description": "锚点位置显示内容,默认为索引字符"
5710
- }
5711
- ],
5712
- "events": [],
5713
- "attributes": [
5714
- {
5715
- "name": "index",
5716
- "default": "-",
5717
- "description": "索引字符",
5718
- "options": [],
5719
- "value": {
5720
- "type": "number | string",
5721
- "kind": "expression"
5722
- }
5723
- }
5724
- ]
5725
- },
5726
5726
  {
5727
5727
  "name": "van-list",
5728
5728
  "slots": [
@@ -6934,94 +6934,191 @@
6934
6934
  }
6935
6935
  },
6936
6936
  {
6937
- "name": "overlay",
6938
- "default": "`false`",
6939
- "description": "是否显示遮罩层",
6937
+ "name": "overlay",
6938
+ "default": "`false`",
6939
+ "description": "是否显示遮罩层",
6940
+ "options": [],
6941
+ "value": {
6942
+ "type": "boolean",
6943
+ "kind": "expression"
6944
+ }
6945
+ },
6946
+ {
6947
+ "name": "overlay-class",
6948
+ "default": "object_",
6949
+ "description": "自定义遮罩层类名",
6950
+ "options": [
6951
+ "-"
6952
+ ],
6953
+ "value": {
6954
+ "type": "string | Array \\",
6955
+ "kind": "expression"
6956
+ }
6957
+ },
6958
+ {
6959
+ "name": "overlay-style",
6960
+ "default": "-",
6961
+ "description": "自定义遮罩层样式",
6962
+ "options": [],
6963
+ "value": {
6964
+ "type": "object",
6965
+ "kind": "expression"
6966
+ }
6967
+ },
6968
+ {
6969
+ "name": "show-arrow",
6970
+ "default": "`true`",
6971
+ "description": "是否展示小箭头",
6972
+ "options": [],
6973
+ "value": {
6974
+ "type": "boolean",
6975
+ "kind": "expression"
6976
+ }
6977
+ },
6978
+ {
6979
+ "name": "close-on-click-action",
6980
+ "default": "`true`",
6981
+ "description": "是否在点击选项后关闭",
6982
+ "options": [],
6983
+ "value": {
6984
+ "type": "boolean",
6985
+ "kind": "expression"
6986
+ }
6987
+ },
6988
+ {
6989
+ "name": "close-on-click-outside",
6990
+ "default": "`true`",
6991
+ "description": "是否在点击外部元素后关闭菜单",
6992
+ "options": [],
6993
+ "value": {
6994
+ "type": "boolean",
6995
+ "kind": "expression"
6996
+ }
6997
+ },
6998
+ {
6999
+ "name": "close-on-click-overlay",
7000
+ "default": "`true`",
7001
+ "description": "是否在点击遮罩层后关闭菜单",
7002
+ "options": [],
7003
+ "value": {
7004
+ "type": "boolean",
7005
+ "kind": "expression"
7006
+ }
7007
+ },
7008
+ {
7009
+ "name": "teleport",
7010
+ "default": "`body`",
7011
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
7012
+ "options": [],
7013
+ "value": {
7014
+ "type": "string | Element",
7015
+ "kind": "expression"
7016
+ }
7017
+ },
7018
+ {
7019
+ "name": "icon-prefix",
7020
+ "default": "`van-icon`",
7021
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
7022
+ "options": [],
7023
+ "value": {
7024
+ "type": "string",
7025
+ "kind": "expression"
7026
+ }
7027
+ }
7028
+ ]
7029
+ },
7030
+ {
7031
+ "name": "van-progress",
7032
+ "slots": [],
7033
+ "events": [],
7034
+ "attributes": [
7035
+ {
7036
+ "name": "percentage",
7037
+ "default": "`0`",
7038
+ "description": "进度百分比",
6940
7039
  "options": [],
6941
7040
  "value": {
6942
- "type": "boolean",
7041
+ "type": "number | string",
6943
7042
  "kind": "expression"
6944
7043
  }
6945
7044
  },
6946
7045
  {
6947
- "name": "overlay-class",
6948
- "default": "object_",
6949
- "description": "自定义遮罩层类名",
6950
- "options": [
6951
- "-"
6952
- ],
7046
+ "name": "stroke-width",
7047
+ "default": "`4px`",
7048
+ "description": "进度条粗细,默认单位为`px`",
7049
+ "options": [],
6953
7050
  "value": {
6954
- "type": "string | Array \\",
7051
+ "type": "number | string",
6955
7052
  "kind": "expression"
6956
7053
  }
6957
7054
  },
6958
7055
  {
6959
- "name": "overlay-style",
6960
- "default": "-",
6961
- "description": "自定义遮罩层样式",
7056
+ "name": "color",
7057
+ "default": "`#1989fa`",
7058
+ "description": "进度条颜色",
6962
7059
  "options": [],
6963
7060
  "value": {
6964
- "type": "object",
7061
+ "type": "string",
6965
7062
  "kind": "expression"
6966
7063
  }
6967
7064
  },
6968
7065
  {
6969
- "name": "show-arrow",
6970
- "default": "`true`",
6971
- "description": "是否展示小箭头",
7066
+ "name": "track-color",
7067
+ "default": "`#e5e5e5`",
7068
+ "description": "轨道颜色",
6972
7069
  "options": [],
6973
7070
  "value": {
6974
- "type": "boolean",
7071
+ "type": "string",
6975
7072
  "kind": "expression"
6976
7073
  }
6977
7074
  },
6978
7075
  {
6979
- "name": "close-on-click-action",
6980
- "default": "`true`",
6981
- "description": "是否在点击选项后关闭",
7076
+ "name": "pivot-text",
7077
+ "default": "百分比",
7078
+ "description": "进度文字内容",
6982
7079
  "options": [],
6983
7080
  "value": {
6984
- "type": "boolean",
7081
+ "type": "string",
6985
7082
  "kind": "expression"
6986
7083
  }
6987
7084
  },
6988
7085
  {
6989
- "name": "close-on-click-outside",
6990
- "default": "`true`",
6991
- "description": "是否在点击外部元素后关闭菜单",
7086
+ "name": "pivot-color",
7087
+ "default": "同进度条颜色",
7088
+ "description": "进度文字背景色",
6992
7089
  "options": [],
6993
7090
  "value": {
6994
- "type": "boolean",
7091
+ "type": "string",
6995
7092
  "kind": "expression"
6996
7093
  }
6997
7094
  },
6998
7095
  {
6999
- "name": "close-on-click-overlay",
7000
- "default": "`true`",
7001
- "description": "是否在点击遮罩层后关闭菜单",
7096
+ "name": "text-color",
7097
+ "default": "`white`",
7098
+ "description": "进度文字颜色",
7002
7099
  "options": [],
7003
7100
  "value": {
7004
- "type": "boolean",
7101
+ "type": "string",
7005
7102
  "kind": "expression"
7006
7103
  }
7007
7104
  },
7008
7105
  {
7009
- "name": "teleport",
7010
- "default": "`body`",
7011
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
7106
+ "name": "inactive",
7107
+ "default": "`false`",
7108
+ "description": "是否置灰",
7012
7109
  "options": [],
7013
7110
  "value": {
7014
- "type": "string | Element",
7111
+ "type": "boolean",
7015
7112
  "kind": "expression"
7016
7113
  }
7017
7114
  },
7018
7115
  {
7019
- "name": "icon-prefix",
7020
- "default": "`van-icon`",
7021
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
7116
+ "name": "show-pivot",
7117
+ "default": "`true`",
7118
+ "description": "是否显示进度文字",
7022
7119
  "options": [],
7023
7120
  "value": {
7024
- "type": "string",
7121
+ "type": "boolean",
7025
7122
  "kind": "expression"
7026
7123
  }
7027
7124
  }
@@ -7274,103 +7371,6 @@
7274
7371
  }
7275
7372
  ]
7276
7373
  },
7277
- {
7278
- "name": "van-progress",
7279
- "slots": [],
7280
- "events": [],
7281
- "attributes": [
7282
- {
7283
- "name": "percentage",
7284
- "default": "`0`",
7285
- "description": "进度百分比",
7286
- "options": [],
7287
- "value": {
7288
- "type": "number | string",
7289
- "kind": "expression"
7290
- }
7291
- },
7292
- {
7293
- "name": "stroke-width",
7294
- "default": "`4px`",
7295
- "description": "进度条粗细,默认单位为`px`",
7296
- "options": [],
7297
- "value": {
7298
- "type": "number | string",
7299
- "kind": "expression"
7300
- }
7301
- },
7302
- {
7303
- "name": "color",
7304
- "default": "`#1989fa`",
7305
- "description": "进度条颜色",
7306
- "options": [],
7307
- "value": {
7308
- "type": "string",
7309
- "kind": "expression"
7310
- }
7311
- },
7312
- {
7313
- "name": "track-color",
7314
- "default": "`#e5e5e5`",
7315
- "description": "轨道颜色",
7316
- "options": [],
7317
- "value": {
7318
- "type": "string",
7319
- "kind": "expression"
7320
- }
7321
- },
7322
- {
7323
- "name": "pivot-text",
7324
- "default": "百分比",
7325
- "description": "进度文字内容",
7326
- "options": [],
7327
- "value": {
7328
- "type": "string",
7329
- "kind": "expression"
7330
- }
7331
- },
7332
- {
7333
- "name": "pivot-color",
7334
- "default": "同进度条颜色",
7335
- "description": "进度文字背景色",
7336
- "options": [],
7337
- "value": {
7338
- "type": "string",
7339
- "kind": "expression"
7340
- }
7341
- },
7342
- {
7343
- "name": "text-color",
7344
- "default": "`white`",
7345
- "description": "进度文字颜色",
7346
- "options": [],
7347
- "value": {
7348
- "type": "string",
7349
- "kind": "expression"
7350
- }
7351
- },
7352
- {
7353
- "name": "inactive",
7354
- "default": "`false`",
7355
- "description": "是否置灰",
7356
- "options": [],
7357
- "value": {
7358
- "type": "boolean",
7359
- "kind": "expression"
7360
- }
7361
- },
7362
- {
7363
- "name": "show-pivot",
7364
- "default": "`true`",
7365
- "description": "是否显示进度文字",
7366
- "options": [],
7367
- "value": {
7368
- "type": "boolean",
7369
- "kind": "expression"
7370
- }
7371
- }
7372
- ]
7373
- },
7374
7374
  {
7375
7375
  "name": "van-pull-refresh",
7376
7376
  "slots": [
@@ -7662,39 +7662,106 @@
7662
7662
  ]
7663
7663
  },
7664
7664
  {
7665
- "name": "van-rate",
7666
- "slots": [],
7665
+ "name": "van-share-sheet",
7666
+ "slots": [
7667
+ {
7668
+ "name": "title",
7669
+ "description": "自定义顶部标题"
7670
+ },
7671
+ {
7672
+ "name": "description",
7673
+ "description": "自定义描述文字"
7674
+ },
7675
+ {
7676
+ "name": "cancel",
7677
+ "description": "自定义取消按钮内容"
7678
+ }
7679
+ ],
7667
7680
  "events": [
7668
7681
  {
7669
- "name": "change",
7670
- "description": "当前分值变化时触发的事件"
7682
+ "name": "select",
7683
+ "description": "点击分享选项时触发"
7684
+ },
7685
+ {
7686
+ "name": "cancel",
7687
+ "description": "点击取消按钮时触发"
7688
+ },
7689
+ {
7690
+ "name": "open",
7691
+ "description": "打开面板时触发"
7692
+ },
7693
+ {
7694
+ "name": "close",
7695
+ "description": "关闭面板时触发"
7696
+ },
7697
+ {
7698
+ "name": "opened",
7699
+ "description": "打开面板且动画结束后触发"
7700
+ },
7701
+ {
7702
+ "name": "closed",
7703
+ "description": "关闭面板且动画结束后触发"
7704
+ },
7705
+ {
7706
+ "name": "click-overlay",
7707
+ "description": "点击遮罩层时触发"
7671
7708
  }
7672
7709
  ],
7673
7710
  "attributes": [
7674
7711
  {
7675
- "name": "v-model",
7712
+ "name": "v-model:show",
7713
+ "default": "`false`",
7714
+ "description": "是否显示分享面板",
7715
+ "options": [],
7716
+ "value": {
7717
+ "type": "boolean",
7718
+ "kind": "expression"
7719
+ }
7720
+ },
7721
+ {
7722
+ "name": "options",
7723
+ "default": "`[]`",
7724
+ "description": "分享选项",
7725
+ "options": [],
7726
+ "value": {
7727
+ "type": "Option[]",
7728
+ "kind": "expression"
7729
+ }
7730
+ },
7731
+ {
7732
+ "name": "title",
7676
7733
  "default": "-",
7677
- "description": "当前分值",
7734
+ "description": "顶部标题",
7735
+ "options": [],
7736
+ "value": {
7737
+ "type": "string",
7738
+ "kind": "expression"
7739
+ }
7740
+ },
7741
+ {
7742
+ "name": "cancel-text",
7743
+ "default": "`'取消'`",
7744
+ "description": "取消按钮文字,传入空字符串可以隐藏按钮",
7678
7745
  "options": [],
7679
7746
  "value": {
7680
- "type": "number",
7747
+ "type": "string",
7681
7748
  "kind": "expression"
7682
7749
  }
7683
7750
  },
7684
7751
  {
7685
- "name": "count",
7686
- "default": "`5`",
7687
- "description": "图标总数",
7752
+ "name": "description",
7753
+ "default": "-",
7754
+ "description": "标题下方的辅助描述文字",
7688
7755
  "options": [],
7689
7756
  "value": {
7690
- "type": "number | string",
7757
+ "type": "string",
7691
7758
  "kind": "expression"
7692
7759
  }
7693
7760
  },
7694
7761
  {
7695
- "name": "size",
7696
- "default": "`20px`",
7697
- "description": "图标大小,默认单位为`px`",
7762
+ "name": "duration",
7763
+ "default": "`0.3`",
7764
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画",
7698
7765
  "options": [],
7699
7766
  "value": {
7700
7767
  "type": "number | string",
@@ -7702,79 +7769,81 @@
7702
7769
  }
7703
7770
  },
7704
7771
  {
7705
- "name": "gutter",
7706
- "default": "`4px`",
7707
- "description": "图标间距,默认单位为`px`",
7772
+ "name": "round",
7773
+ "default": "`true`",
7774
+ "description": "是否显示圆角",
7708
7775
  "options": [],
7709
7776
  "value": {
7710
- "type": "number | string",
7777
+ "type": "boolean",
7711
7778
  "kind": "expression"
7712
7779
  }
7713
7780
  },
7714
7781
  {
7715
- "name": "color",
7716
- "default": "`#ee0a24`",
7717
- "description": "选中时的颜色",
7782
+ "name": "overlay",
7783
+ "default": "`true`",
7784
+ "description": "是否显示遮罩层",
7718
7785
  "options": [],
7719
7786
  "value": {
7720
- "type": "string",
7787
+ "type": "boolean",
7721
7788
  "kind": "expression"
7722
7789
  }
7723
7790
  },
7724
7791
  {
7725
- "name": "void-color",
7726
- "default": "`#c8c9cc`",
7727
- "description": "未选中时的颜色",
7728
- "options": [],
7792
+ "name": "overlay-class",
7793
+ "default": "object_",
7794
+ "description": "自定义遮罩层类名",
7795
+ "options": [
7796
+ "-"
7797
+ ],
7729
7798
  "value": {
7730
- "type": "string",
7799
+ "type": "string | Array \\",
7731
7800
  "kind": "expression"
7732
7801
  }
7733
7802
  },
7734
7803
  {
7735
- "name": "disabled-color",
7736
- "default": "`#c8c9cc`",
7737
- "description": "禁用时的颜色",
7804
+ "name": "overlay-style",
7805
+ "default": "-",
7806
+ "description": "自定义遮罩层样式",
7738
7807
  "options": [],
7739
7808
  "value": {
7740
- "type": "string",
7809
+ "type": "object",
7741
7810
  "kind": "expression"
7742
7811
  }
7743
7812
  },
7744
7813
  {
7745
- "name": "icon",
7746
- "default": "`star`",
7747
- "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接",
7814
+ "name": "lock-scroll",
7815
+ "default": "`true`",
7816
+ "description": "是否锁定背景滚动",
7748
7817
  "options": [],
7749
7818
  "value": {
7750
- "type": "string",
7819
+ "type": "boolean",
7751
7820
  "kind": "expression"
7752
7821
  }
7753
7822
  },
7754
7823
  {
7755
- "name": "void-icon",
7756
- "default": "`star-o`",
7757
- "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接",
7824
+ "name": "lazy-render",
7825
+ "default": "`true`",
7826
+ "description": "是否在显示弹层时才渲染内容",
7758
7827
  "options": [],
7759
7828
  "value": {
7760
- "type": "string",
7829
+ "type": "boolean",
7761
7830
  "kind": "expression"
7762
7831
  }
7763
7832
  },
7764
7833
  {
7765
- "name": "icon-prefix",
7766
- "default": "`van-icon`",
7767
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
7834
+ "name": "close-on-popstate",
7835
+ "default": "`true`",
7836
+ "description": "是否在页面回退时自动关闭",
7768
7837
  "options": [],
7769
7838
  "value": {
7770
- "type": "string",
7839
+ "type": "boolean",
7771
7840
  "kind": "expression"
7772
7841
  }
7773
7842
  },
7774
7843
  {
7775
- "name": "allow-half",
7776
- "default": "`false`",
7777
- "description": "是否允许半选",
7844
+ "name": "close-on-click-overlay",
7845
+ "default": "`true`",
7846
+ "description": "是否在点击遮罩层后关闭",
7778
7847
  "options": [],
7779
7848
  "value": {
7780
7849
  "type": "boolean",
@@ -7782,9 +7851,9 @@
7782
7851
  }
7783
7852
  },
7784
7853
  {
7785
- "name": "readonly",
7786
- "default": "`false`",
7787
- "description": "是否为只读状态,只读状态下无法修改评分",
7854
+ "name": "safe-area-inset-bottom",
7855
+ "default": "`true`",
7856
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
7788
7857
  "options": [],
7789
7858
  "value": {
7790
7859
  "type": "boolean",
@@ -7792,22 +7861,22 @@
7792
7861
  }
7793
7862
  },
7794
7863
  {
7795
- "name": "disabled",
7796
- "default": "`false`",
7797
- "description": "是否禁用评分",
7864
+ "name": "teleport",
7865
+ "default": "-",
7866
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
7798
7867
  "options": [],
7799
7868
  "value": {
7800
- "type": "boolean",
7869
+ "type": "string | Element",
7801
7870
  "kind": "expression"
7802
7871
  }
7803
7872
  },
7804
7873
  {
7805
- "name": "touchable",
7806
- "default": "`true`",
7807
- "description": "是否可以通过滑动手势选择评分",
7874
+ "name": "before-close",
7875
+ "default": "-",
7876
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
7808
7877
  "options": [],
7809
7878
  "value": {
7810
- "type": "boolean",
7879
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
7811
7880
  "kind": "expression"
7812
7881
  }
7813
7882
  }
@@ -7979,69 +8048,221 @@
7979
8048
  }
7980
8049
  },
7981
8050
  {
7982
- "name": "autofocus",
7983
- "default": "`false`",
7984
- "description": "是否自动聚焦,iOS 系统不支持该属性",
8051
+ "name": "autofocus",
8052
+ "default": "`false`",
8053
+ "description": "是否自动聚焦,iOS 系统不支持该属性",
8054
+ "options": [],
8055
+ "value": {
8056
+ "type": "boolean",
8057
+ "kind": "expression"
8058
+ }
8059
+ },
8060
+ {
8061
+ "name": "show-action",
8062
+ "default": "`false`",
8063
+ "description": "是否在搜索框右侧显示取消按钮",
8064
+ "options": [],
8065
+ "value": {
8066
+ "type": "boolean",
8067
+ "kind": "expression"
8068
+ }
8069
+ },
8070
+ {
8071
+ "name": "action-text",
8072
+ "default": "`取消`",
8073
+ "description": "取消按钮文字",
8074
+ "options": [],
8075
+ "value": {
8076
+ "type": "boolean",
8077
+ "kind": "expression"
8078
+ }
8079
+ },
8080
+ {
8081
+ "name": "disabled",
8082
+ "default": "`false`",
8083
+ "description": "是否禁用输入框",
8084
+ "options": [],
8085
+ "value": {
8086
+ "type": "boolean",
8087
+ "kind": "expression"
8088
+ }
8089
+ },
8090
+ {
8091
+ "name": "readonly",
8092
+ "default": "`false`",
8093
+ "description": "是否将输入框设为只读状态,只读状态下无法输入内容",
8094
+ "options": [],
8095
+ "value": {
8096
+ "type": "boolean",
8097
+ "kind": "expression"
8098
+ }
8099
+ },
8100
+ {
8101
+ "name": "error",
8102
+ "default": "`false`",
8103
+ "description": "是否将输入内容标红",
8104
+ "options": [],
8105
+ "value": {
8106
+ "type": "boolean",
8107
+ "kind": "expression"
8108
+ }
8109
+ },
8110
+ {
8111
+ "name": "error-message",
8112
+ "default": "-",
8113
+ "description": "底部错误提示文案,为空时不展示",
8114
+ "options": [],
8115
+ "value": {
8116
+ "type": "string",
8117
+ "kind": "expression"
8118
+ }
8119
+ },
8120
+ {
8121
+ "name": "formatter",
8122
+ "default": "-",
8123
+ "description": "输入内容格式化函数",
8124
+ "options": [],
8125
+ "value": {
8126
+ "type": "(val: string) => string",
8127
+ "kind": "expression"
8128
+ }
8129
+ },
8130
+ {
8131
+ "name": "format-trigger",
8132
+ "default": "`onChange`",
8133
+ "description": "格式化函数触发的时机,可选值为 `onBlur`",
8134
+ "options": [],
8135
+ "value": {
8136
+ "type": "string",
8137
+ "kind": "expression"
8138
+ }
8139
+ },
8140
+ {
8141
+ "name": "input-align",
8142
+ "default": "`left`",
8143
+ "description": "输入框内容对齐方式,可选值为 `center` `right`",
8144
+ "options": [],
8145
+ "value": {
8146
+ "type": "string",
8147
+ "kind": "expression"
8148
+ }
8149
+ },
8150
+ {
8151
+ "name": "left-icon",
8152
+ "default": "`search`",
8153
+ "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接",
8154
+ "options": [],
8155
+ "value": {
8156
+ "type": "string",
8157
+ "kind": "expression"
8158
+ }
8159
+ },
8160
+ {
8161
+ "name": "right-icon",
8162
+ "default": "-",
8163
+ "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接",
8164
+ "options": [],
8165
+ "value": {
8166
+ "type": "string",
8167
+ "kind": "expression"
8168
+ }
8169
+ },
8170
+ {
8171
+ "name": "autocomplete",
8172
+ "default": "-",
8173
+ "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
8174
+ "options": [],
8175
+ "value": {
8176
+ "type": "string",
8177
+ "kind": "expression"
8178
+ }
8179
+ }
8180
+ ]
8181
+ },
8182
+ {
8183
+ "name": "van-rate",
8184
+ "slots": [],
8185
+ "events": [
8186
+ {
8187
+ "name": "change",
8188
+ "description": "当前分值变化时触发的事件"
8189
+ }
8190
+ ],
8191
+ "attributes": [
8192
+ {
8193
+ "name": "v-model",
8194
+ "default": "-",
8195
+ "description": "当前分值",
8196
+ "options": [],
8197
+ "value": {
8198
+ "type": "number",
8199
+ "kind": "expression"
8200
+ }
8201
+ },
8202
+ {
8203
+ "name": "count",
8204
+ "default": "`5`",
8205
+ "description": "图标总数",
7985
8206
  "options": [],
7986
8207
  "value": {
7987
- "type": "boolean",
8208
+ "type": "number | string",
7988
8209
  "kind": "expression"
7989
8210
  }
7990
8211
  },
7991
8212
  {
7992
- "name": "show-action",
7993
- "default": "`false`",
7994
- "description": "是否在搜索框右侧显示取消按钮",
8213
+ "name": "size",
8214
+ "default": "`20px`",
8215
+ "description": "图标大小,默认单位为`px`",
7995
8216
  "options": [],
7996
8217
  "value": {
7997
- "type": "boolean",
8218
+ "type": "number | string",
7998
8219
  "kind": "expression"
7999
8220
  }
8000
8221
  },
8001
8222
  {
8002
- "name": "action-text",
8003
- "default": "`取消`",
8004
- "description": "取消按钮文字",
8223
+ "name": "gutter",
8224
+ "default": "`4px`",
8225
+ "description": "图标间距,默认单位为`px`",
8005
8226
  "options": [],
8006
8227
  "value": {
8007
- "type": "boolean",
8228
+ "type": "number | string",
8008
8229
  "kind": "expression"
8009
8230
  }
8010
8231
  },
8011
8232
  {
8012
- "name": "disabled",
8013
- "default": "`false`",
8014
- "description": "是否禁用输入框",
8233
+ "name": "color",
8234
+ "default": "`#ee0a24`",
8235
+ "description": "选中时的颜色",
8015
8236
  "options": [],
8016
8237
  "value": {
8017
- "type": "boolean",
8238
+ "type": "string",
8018
8239
  "kind": "expression"
8019
8240
  }
8020
8241
  },
8021
8242
  {
8022
- "name": "readonly",
8023
- "default": "`false`",
8024
- "description": "是否将输入框设为只读状态,只读状态下无法输入内容",
8243
+ "name": "void-color",
8244
+ "default": "`#c8c9cc`",
8245
+ "description": "未选中时的颜色",
8025
8246
  "options": [],
8026
8247
  "value": {
8027
- "type": "boolean",
8248
+ "type": "string",
8028
8249
  "kind": "expression"
8029
8250
  }
8030
8251
  },
8031
8252
  {
8032
- "name": "error",
8033
- "default": "`false`",
8034
- "description": "是否将输入内容标红",
8253
+ "name": "disabled-color",
8254
+ "default": "`#c8c9cc`",
8255
+ "description": "禁用时的颜色",
8035
8256
  "options": [],
8036
8257
  "value": {
8037
- "type": "boolean",
8258
+ "type": "string",
8038
8259
  "kind": "expression"
8039
8260
  }
8040
8261
  },
8041
8262
  {
8042
- "name": "error-message",
8043
- "default": "-",
8044
- "description": "底部错误提示文案,为空时不展示",
8263
+ "name": "icon",
8264
+ "default": "`star`",
8265
+ "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接",
8045
8266
  "options": [],
8046
8267
  "value": {
8047
8268
  "type": "string",
@@ -8049,19 +8270,19 @@
8049
8270
  }
8050
8271
  },
8051
8272
  {
8052
- "name": "formatter",
8053
- "default": "-",
8054
- "description": "输入内容格式化函数",
8273
+ "name": "void-icon",
8274
+ "default": "`star-o`",
8275
+ "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接",
8055
8276
  "options": [],
8056
8277
  "value": {
8057
- "type": "(val: string) => string",
8278
+ "type": "string",
8058
8279
  "kind": "expression"
8059
8280
  }
8060
8281
  },
8061
8282
  {
8062
- "name": "format-trigger",
8063
- "default": "`onChange`",
8064
- "description": "格式化函数触发的时机,可选值为 `onBlur`",
8283
+ "name": "icon-prefix",
8284
+ "default": "`van-icon`",
8285
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
8065
8286
  "options": [],
8066
8287
  "value": {
8067
8288
  "type": "string",
@@ -8069,148 +8290,106 @@
8069
8290
  }
8070
8291
  },
8071
8292
  {
8072
- "name": "input-align",
8073
- "default": "`left`",
8074
- "description": "输入框内容对齐方式,可选值为 `center` `right`",
8293
+ "name": "allow-half",
8294
+ "default": "`false`",
8295
+ "description": "是否允许半选",
8075
8296
  "options": [],
8076
8297
  "value": {
8077
- "type": "string",
8298
+ "type": "boolean",
8078
8299
  "kind": "expression"
8079
8300
  }
8080
8301
  },
8081
8302
  {
8082
- "name": "left-icon",
8083
- "default": "`search`",
8084
- "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接",
8303
+ "name": "readonly",
8304
+ "default": "`false`",
8305
+ "description": "是否为只读状态,只读状态下无法修改评分",
8085
8306
  "options": [],
8086
8307
  "value": {
8087
- "type": "string",
8308
+ "type": "boolean",
8088
8309
  "kind": "expression"
8089
8310
  }
8090
8311
  },
8091
8312
  {
8092
- "name": "right-icon",
8093
- "default": "-",
8094
- "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接",
8313
+ "name": "disabled",
8314
+ "default": "`false`",
8315
+ "description": "是否禁用评分",
8095
8316
  "options": [],
8096
8317
  "value": {
8097
- "type": "string",
8318
+ "type": "boolean",
8098
8319
  "kind": "expression"
8099
8320
  }
8100
8321
  },
8101
8322
  {
8102
- "name": "autocomplete",
8103
- "default": "-",
8104
- "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
8323
+ "name": "touchable",
8324
+ "default": "`true`",
8325
+ "description": "是否可以通过滑动手势选择评分",
8105
8326
  "options": [],
8106
8327
  "value": {
8107
- "type": "string",
8328
+ "type": "boolean",
8108
8329
  "kind": "expression"
8109
8330
  }
8110
8331
  }
8111
8332
  ]
8112
8333
  },
8113
8334
  {
8114
- "name": "van-share-sheet",
8335
+ "name": "van-slider",
8115
8336
  "slots": [
8116
8337
  {
8117
- "name": "title",
8118
- "description": "自定义顶部标题"
8338
+ "name": "button",
8339
+ "description": "自定义滑块按钮"
8119
8340
  },
8120
8341
  {
8121
- "name": "description",
8122
- "description": "自定义描述文字"
8342
+ "name": "left-button",
8343
+ "description": "自定义左侧滑块按钮(双滑块模式下)"
8123
8344
  },
8124
8345
  {
8125
- "name": "cancel",
8126
- "description": "自定义取消按钮内容"
8346
+ "name": "right-button",
8347
+ "description": "自定义右侧滑块按钮(双滑块模式下)"
8127
8348
  }
8128
8349
  ],
8129
8350
  "events": [
8130
8351
  {
8131
- "name": "select",
8132
- "description": "点击分享选项时触发"
8133
- },
8134
- {
8135
- "name": "cancel",
8136
- "description": "点击取消按钮时触发"
8137
- },
8138
- {
8139
- "name": "open",
8140
- "description": "打开面板时触发"
8141
- },
8142
- {
8143
- "name": "close",
8144
- "description": "关闭面板时触发"
8352
+ "name": "update:model-value",
8353
+ "description": "进度变化时实时触发"
8145
8354
  },
8146
8355
  {
8147
- "name": "opened",
8148
- "description": "打开面板且动画结束后触发"
8356
+ "name": "change",
8357
+ "description": "进度变化且结束拖动后触发"
8149
8358
  },
8150
8359
  {
8151
- "name": "closed",
8152
- "description": "关闭面板且动画结束后触发"
8360
+ "name": "drag-start",
8361
+ "description": "开始拖动时触发"
8153
8362
  },
8154
8363
  {
8155
- "name": "click-overlay",
8156
- "description": "点击遮罩层时触发"
8364
+ "name": "drag-end",
8365
+ "description": "结束拖动时触发"
8157
8366
  }
8158
8367
  ],
8159
8368
  "attributes": [
8160
8369
  {
8161
- "name": "v-model:show",
8162
- "default": "`false`",
8163
- "description": "是否显示分享面板",
8164
- "options": [],
8165
- "value": {
8166
- "type": "boolean",
8167
- "kind": "expression"
8168
- }
8169
- },
8170
- {
8171
- "name": "options",
8172
- "default": "`[]`",
8173
- "description": "分享选项",
8174
- "options": [],
8175
- "value": {
8176
- "type": "Option[]",
8177
- "kind": "expression"
8178
- }
8179
- },
8180
- {
8181
- "name": "title",
8182
- "default": "-",
8183
- "description": "顶部标题",
8184
- "options": [],
8185
- "value": {
8186
- "type": "string",
8187
- "kind": "expression"
8188
- }
8189
- },
8190
- {
8191
- "name": "cancel-text",
8192
- "default": "`'取消'`",
8193
- "description": "取消按钮文字,传入空字符串可以隐藏按钮",
8370
+ "name": "v-model",
8371
+ "default": "`0`",
8372
+ "description": "当前进度百分比,在双滑块模式下为数组格式",
8194
8373
  "options": [],
8195
8374
  "value": {
8196
- "type": "string",
8375
+ "type": "number | [number, number]",
8197
8376
  "kind": "expression"
8198
8377
  }
8199
8378
  },
8200
8379
  {
8201
- "name": "description",
8202
- "default": "-",
8203
- "description": "标题下方的辅助描述文字",
8380
+ "name": "max",
8381
+ "default": "`100`",
8382
+ "description": "最大值",
8204
8383
  "options": [],
8205
8384
  "value": {
8206
- "type": "string",
8385
+ "type": "number | string",
8207
8386
  "kind": "expression"
8208
8387
  }
8209
8388
  },
8210
8389
  {
8211
- "name": "duration",
8212
- "default": "`0.3`",
8213
- "description": "动画时长,单位秒,设置为 0 可以禁用动画",
8390
+ "name": "min",
8391
+ "default": "`0`",
8392
+ "description": "最小值",
8214
8393
  "options": [],
8215
8394
  "value": {
8216
8395
  "type": "number | string",
@@ -8218,71 +8397,59 @@
8218
8397
  }
8219
8398
  },
8220
8399
  {
8221
- "name": "round",
8222
- "default": "`true`",
8223
- "description": "是否显示圆角",
8400
+ "name": "step",
8401
+ "default": "`1`",
8402
+ "description": "步长",
8224
8403
  "options": [],
8225
8404
  "value": {
8226
- "type": "boolean",
8405
+ "type": "number | string",
8227
8406
  "kind": "expression"
8228
8407
  }
8229
8408
  },
8230
8409
  {
8231
- "name": "overlay",
8232
- "default": "`true`",
8233
- "description": "是否显示遮罩层",
8410
+ "name": "bar-height",
8411
+ "default": "`2px`",
8412
+ "description": "进度条高度,默认单位为 `px`",
8234
8413
  "options": [],
8235
8414
  "value": {
8236
- "type": "boolean",
8237
- "kind": "expression"
8238
- }
8239
- },
8240
- {
8241
- "name": "overlay-class",
8242
- "default": "object_",
8243
- "description": "自定义遮罩层类名",
8244
- "options": [
8245
- "-"
8246
- ],
8247
- "value": {
8248
- "type": "string | Array \\",
8415
+ "type": "number | string",
8249
8416
  "kind": "expression"
8250
8417
  }
8251
8418
  },
8252
8419
  {
8253
- "name": "overlay-style",
8254
- "default": "-",
8255
- "description": "自定义遮罩层样式",
8420
+ "name": "button-size",
8421
+ "default": "`24px`",
8422
+ "description": "滑块按钮大小,默认单位为 `px`",
8256
8423
  "options": [],
8257
8424
  "value": {
8258
- "type": "object",
8425
+ "type": "number | string",
8259
8426
  "kind": "expression"
8260
8427
  }
8261
8428
  },
8262
8429
  {
8263
- "name": "lock-scroll",
8264
- "default": "`true`",
8265
- "description": "是否锁定背景滚动",
8430
+ "name": "active-color",
8431
+ "default": "`#1989fa`",
8432
+ "description": "进度条激活态颜色",
8266
8433
  "options": [],
8267
8434
  "value": {
8268
- "type": "boolean",
8435
+ "type": "string",
8269
8436
  "kind": "expression"
8270
8437
  }
8271
8438
  },
8272
8439
  {
8273
- "name": "lazy-render",
8274
- "default": "`true`",
8275
- "description": "是否在显示弹层时才渲染内容",
8440
+ "name": "inactive-color",
8441
+ "default": "`#e5e5e5`",
8442
+ "description": "进度条非激活态颜色",
8276
8443
  "options": [],
8277
8444
  "value": {
8278
- "type": "boolean",
8445
+ "type": "string",
8279
8446
  "kind": "expression"
8280
8447
  }
8281
8448
  },
8282
8449
  {
8283
- "name": "close-on-popstate",
8284
- "default": "`true`",
8285
- "description": "是否在页面回退时自动关闭",
8450
+ "name": "range",
8451
+ "default": "`false`",
8452
+ "description": "是否开启双滑块模式",
8286
8453
  "options": [],
8287
8454
  "value": {
8288
8455
  "type": "boolean",
@@ -8290,19 +8457,18 @@
8290
8457
  }
8291
8458
  },
8292
8459
  {
8293
- "name": "close-on-click-overlay",
8294
- "default": "`true`",
8295
- "description": "是否在点击遮罩层后关闭",
8460
+ "name": "reverse",
8461
+ "description": "是否将进度条反转",
8296
8462
  "options": [],
8297
8463
  "value": {
8298
- "type": "boolean",
8464
+ "type": "`false`",
8299
8465
  "kind": "expression"
8300
8466
  }
8301
8467
  },
8302
8468
  {
8303
- "name": "safe-area-inset-bottom",
8304
- "default": "`true`",
8305
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
8469
+ "name": "disabled",
8470
+ "default": "`false`",
8471
+ "description": "是否禁用滑块",
8306
8472
  "options": [],
8307
8473
  "value": {
8308
8474
  "type": "boolean",
@@ -8310,22 +8476,22 @@
8310
8476
  }
8311
8477
  },
8312
8478
  {
8313
- "name": "teleport",
8314
- "default": "-",
8315
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
8479
+ "name": "readonly",
8480
+ "default": "`false`",
8481
+ "description": "是否为只读状态,只读状态下无法修改滑块的值",
8316
8482
  "options": [],
8317
8483
  "value": {
8318
- "type": "string | Element",
8484
+ "type": "boolean",
8319
8485
  "kind": "expression"
8320
8486
  }
8321
8487
  },
8322
8488
  {
8323
- "name": "before-close",
8324
- "default": "-",
8325
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
8489
+ "name": "vertical",
8490
+ "default": "`false`",
8491
+ "description": "是否垂直展示",
8326
8492
  "options": [],
8327
8493
  "value": {
8328
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
8494
+ "type": "boolean",
8329
8495
  "kind": "expression"
8330
8496
  }
8331
8497
  }
@@ -8549,172 +8715,6 @@
8549
8715
  }
8550
8716
  ]
8551
8717
  },
8552
- {
8553
- "name": "van-slider",
8554
- "slots": [
8555
- {
8556
- "name": "button",
8557
- "description": "自定义滑块按钮"
8558
- },
8559
- {
8560
- "name": "left-button",
8561
- "description": "自定义左侧滑块按钮(双滑块模式下)"
8562
- },
8563
- {
8564
- "name": "right-button",
8565
- "description": "自定义右侧滑块按钮(双滑块模式下)"
8566
- }
8567
- ],
8568
- "events": [
8569
- {
8570
- "name": "update:model-value",
8571
- "description": "进度变化时实时触发"
8572
- },
8573
- {
8574
- "name": "change",
8575
- "description": "进度变化且结束拖动后触发"
8576
- },
8577
- {
8578
- "name": "drag-start",
8579
- "description": "开始拖动时触发"
8580
- },
8581
- {
8582
- "name": "drag-end",
8583
- "description": "结束拖动时触发"
8584
- }
8585
- ],
8586
- "attributes": [
8587
- {
8588
- "name": "v-model",
8589
- "default": "`0`",
8590
- "description": "当前进度百分比,在双滑块模式下为数组格式",
8591
- "options": [],
8592
- "value": {
8593
- "type": "number | [number, number]",
8594
- "kind": "expression"
8595
- }
8596
- },
8597
- {
8598
- "name": "max",
8599
- "default": "`100`",
8600
- "description": "最大值",
8601
- "options": [],
8602
- "value": {
8603
- "type": "number | string",
8604
- "kind": "expression"
8605
- }
8606
- },
8607
- {
8608
- "name": "min",
8609
- "default": "`0`",
8610
- "description": "最小值",
8611
- "options": [],
8612
- "value": {
8613
- "type": "number | string",
8614
- "kind": "expression"
8615
- }
8616
- },
8617
- {
8618
- "name": "step",
8619
- "default": "`1`",
8620
- "description": "步长",
8621
- "options": [],
8622
- "value": {
8623
- "type": "number | string",
8624
- "kind": "expression"
8625
- }
8626
- },
8627
- {
8628
- "name": "bar-height",
8629
- "default": "`2px`",
8630
- "description": "进度条高度,默认单位为 `px`",
8631
- "options": [],
8632
- "value": {
8633
- "type": "number | string",
8634
- "kind": "expression"
8635
- }
8636
- },
8637
- {
8638
- "name": "button-size",
8639
- "default": "`24px`",
8640
- "description": "滑块按钮大小,默认单位为 `px`",
8641
- "options": [],
8642
- "value": {
8643
- "type": "number | string",
8644
- "kind": "expression"
8645
- }
8646
- },
8647
- {
8648
- "name": "active-color",
8649
- "default": "`#1989fa`",
8650
- "description": "进度条激活态颜色",
8651
- "options": [],
8652
- "value": {
8653
- "type": "string",
8654
- "kind": "expression"
8655
- }
8656
- },
8657
- {
8658
- "name": "inactive-color",
8659
- "default": "`#e5e5e5`",
8660
- "description": "进度条非激活态颜色",
8661
- "options": [],
8662
- "value": {
8663
- "type": "string",
8664
- "kind": "expression"
8665
- }
8666
- },
8667
- {
8668
- "name": "range",
8669
- "default": "`false`",
8670
- "description": "是否开启双滑块模式",
8671
- "options": [],
8672
- "value": {
8673
- "type": "boolean",
8674
- "kind": "expression"
8675
- }
8676
- },
8677
- {
8678
- "name": "reverse",
8679
- "description": "是否将进度条反转",
8680
- "options": [],
8681
- "value": {
8682
- "type": "`false`",
8683
- "kind": "expression"
8684
- }
8685
- },
8686
- {
8687
- "name": "disabled",
8688
- "default": "`false`",
8689
- "description": "是否禁用滑块",
8690
- "options": [],
8691
- "value": {
8692
- "type": "boolean",
8693
- "kind": "expression"
8694
- }
8695
- },
8696
- {
8697
- "name": "readonly",
8698
- "default": "`false`",
8699
- "description": "是否为只读状态,只读状态下无法修改滑块的值",
8700
- "options": [],
8701
- "value": {
8702
- "type": "boolean",
8703
- "kind": "expression"
8704
- }
8705
- },
8706
- {
8707
- "name": "vertical",
8708
- "default": "`false`",
8709
- "description": "是否垂直展示",
8710
- "options": [],
8711
- "value": {
8712
- "type": "boolean",
8713
- "kind": "expression"
8714
- }
8715
- }
8716
- ]
8717
- },
8718
8718
  {
8719
8719
  "name": "van-stepper",
8720
8720
  "slots": [],
@@ -8963,7 +8963,73 @@
8963
8963
  "description": "是否允许输入的值为空",
8964
8964
  "options": [],
8965
8965
  "value": {
8966
- "type": "boolean",
8966
+ "type": "boolean",
8967
+ "kind": "expression"
8968
+ }
8969
+ }
8970
+ ]
8971
+ },
8972
+ {
8973
+ "name": "van-sticky",
8974
+ "slots": [],
8975
+ "events": [
8976
+ {
8977
+ "name": "change",
8978
+ "description": "当吸顶状态改变时触发"
8979
+ },
8980
+ {
8981
+ "name": "scroll",
8982
+ "description": "滚动时触发"
8983
+ }
8984
+ ],
8985
+ "attributes": [
8986
+ {
8987
+ "name": "position",
8988
+ "default": "`top`",
8989
+ "description": "吸附位置,可选值为 `bottom`",
8990
+ "options": [],
8991
+ "value": {
8992
+ "type": "string",
8993
+ "kind": "expression"
8994
+ }
8995
+ },
8996
+ {
8997
+ "name": "offset-top",
8998
+ "default": "`0`",
8999
+ "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9000
+ "options": [],
9001
+ "value": {
9002
+ "type": "number | string",
9003
+ "kind": "expression"
9004
+ }
9005
+ },
9006
+ {
9007
+ "name": "offset-bottom",
9008
+ "default": "`0`",
9009
+ "description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9010
+ "options": [],
9011
+ "value": {
9012
+ "type": "number | string",
9013
+ "kind": "expression"
9014
+ }
9015
+ },
9016
+ {
9017
+ "name": "z-index",
9018
+ "default": "`99`",
9019
+ "description": "吸顶时的 z-index",
9020
+ "options": [],
9021
+ "value": {
9022
+ "type": "number | string",
9023
+ "kind": "expression"
9024
+ }
9025
+ },
9026
+ {
9027
+ "name": "container",
9028
+ "default": "-",
9029
+ "description": "容器对应的 HTML 节点",
9030
+ "options": [],
9031
+ "value": {
9032
+ "type": "Element",
8967
9033
  "kind": "expression"
8968
9034
  }
8969
9035
  }
@@ -9084,72 +9150,6 @@
9084
9150
  "events": [],
9085
9151
  "attributes": []
9086
9152
  },
9087
- {
9088
- "name": "van-sticky",
9089
- "slots": [],
9090
- "events": [
9091
- {
9092
- "name": "change",
9093
- "description": "当吸顶状态改变时触发"
9094
- },
9095
- {
9096
- "name": "scroll",
9097
- "description": "滚动时触发"
9098
- }
9099
- ],
9100
- "attributes": [
9101
- {
9102
- "name": "position",
9103
- "default": "`top`",
9104
- "description": "吸附位置,可选值为 `bottom`",
9105
- "options": [],
9106
- "value": {
9107
- "type": "string",
9108
- "kind": "expression"
9109
- }
9110
- },
9111
- {
9112
- "name": "offset-top",
9113
- "default": "`0`",
9114
- "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9115
- "options": [],
9116
- "value": {
9117
- "type": "number | string",
9118
- "kind": "expression"
9119
- }
9120
- },
9121
- {
9122
- "name": "offset-bottom",
9123
- "default": "`0`",
9124
- "description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9125
- "options": [],
9126
- "value": {
9127
- "type": "number | string",
9128
- "kind": "expression"
9129
- }
9130
- },
9131
- {
9132
- "name": "z-index",
9133
- "default": "`99`",
9134
- "description": "吸顶时的 z-index",
9135
- "options": [],
9136
- "value": {
9137
- "type": "number | string",
9138
- "kind": "expression"
9139
- }
9140
- },
9141
- {
9142
- "name": "container",
9143
- "default": "-",
9144
- "description": "容器对应的 HTML 节点",
9145
- "options": [],
9146
- "value": {
9147
- "type": "Element",
9148
- "kind": "expression"
9149
- }
9150
- }
9151
- ]
9152
- },
9153
9153
  {
9154
9154
  "name": "van-submit-bar",
9155
9155
  "slots": [
@@ -9319,6 +9319,99 @@
9319
9319
  }
9320
9320
  ]
9321
9321
  },
9322
+ {
9323
+ "name": "van-swipe-cell",
9324
+ "slots": [
9325
+ {
9326
+ "name": "default",
9327
+ "description": "默认显示的内容"
9328
+ },
9329
+ {
9330
+ "name": "left",
9331
+ "description": "左侧滑动区域的内容"
9332
+ },
9333
+ {
9334
+ "name": "right",
9335
+ "description": "右侧滑动区域的内容"
9336
+ }
9337
+ ],
9338
+ "events": [
9339
+ {
9340
+ "name": "click",
9341
+ "description": "点击时触发"
9342
+ },
9343
+ {
9344
+ "name": "open",
9345
+ "description": "打开时触发"
9346
+ },
9347
+ {
9348
+ "name": "close",
9349
+ "description": "关闭时触发"
9350
+ }
9351
+ ],
9352
+ "attributes": [
9353
+ {
9354
+ "name": "name",
9355
+ "default": "`''`",
9356
+ "description": "标识符,可以在事件参数中获取到",
9357
+ "options": [],
9358
+ "value": {
9359
+ "type": "number | string",
9360
+ "kind": "expression"
9361
+ }
9362
+ },
9363
+ {
9364
+ "name": "left-width",
9365
+ "default": "`auto`",
9366
+ "description": "指定左侧滑动区域宽度,单位为 `px`",
9367
+ "options": [],
9368
+ "value": {
9369
+ "type": "number | string",
9370
+ "kind": "expression"
9371
+ }
9372
+ },
9373
+ {
9374
+ "name": "right-width",
9375
+ "default": "`auto`",
9376
+ "description": "指定右侧滑动区域宽度,单位为 `px`",
9377
+ "options": [],
9378
+ "value": {
9379
+ "type": "number | string",
9380
+ "kind": "expression"
9381
+ }
9382
+ },
9383
+ {
9384
+ "name": "before-close",
9385
+ "default": "-",
9386
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
9387
+ "options": [],
9388
+ "value": {
9389
+ "type": "(args) => boolean | Promise\\<boolean\\>",
9390
+ "kind": "expression"
9391
+ }
9392
+ },
9393
+ {
9394
+ "name": "disabled",
9395
+ "default": "`false`",
9396
+ "description": "是否禁用滑动",
9397
+ "options": [],
9398
+ "value": {
9399
+ "type": "boolean",
9400
+ "kind": "expression"
9401
+ }
9402
+ },
9403
+ {
9404
+ "name": "stop-propagation",
9405
+ "default": "`false`",
9406
+ "description": "是否阻止滑动事件冒泡",
9407
+ "options": [],
9408
+ "value": {
9409
+ "type": "boolean",
9410
+ "kind": "expression"
9411
+ }
9412
+ }
9413
+ ]
9414
+ },
9322
9415
  {
9323
9416
  "name": "van-swipe",
9324
9417
  "slots": [
@@ -9471,99 +9564,6 @@
9471
9564
  ],
9472
9565
  "attributes": []
9473
9566
  },
9474
- {
9475
- "name": "van-swipe-cell",
9476
- "slots": [
9477
- {
9478
- "name": "default",
9479
- "description": "默认显示的内容"
9480
- },
9481
- {
9482
- "name": "left",
9483
- "description": "左侧滑动区域的内容"
9484
- },
9485
- {
9486
- "name": "right",
9487
- "description": "右侧滑动区域的内容"
9488
- }
9489
- ],
9490
- "events": [
9491
- {
9492
- "name": "click",
9493
- "description": "点击时触发"
9494
- },
9495
- {
9496
- "name": "open",
9497
- "description": "打开时触发"
9498
- },
9499
- {
9500
- "name": "close",
9501
- "description": "关闭时触发"
9502
- }
9503
- ],
9504
- "attributes": [
9505
- {
9506
- "name": "name",
9507
- "default": "`''`",
9508
- "description": "标识符,可以在事件参数中获取到",
9509
- "options": [],
9510
- "value": {
9511
- "type": "number | string",
9512
- "kind": "expression"
9513
- }
9514
- },
9515
- {
9516
- "name": "left-width",
9517
- "default": "`auto`",
9518
- "description": "指定左侧滑动区域宽度,单位为 `px`",
9519
- "options": [],
9520
- "value": {
9521
- "type": "number | string",
9522
- "kind": "expression"
9523
- }
9524
- },
9525
- {
9526
- "name": "right-width",
9527
- "default": "`auto`",
9528
- "description": "指定右侧滑动区域宽度,单位为 `px`",
9529
- "options": [],
9530
- "value": {
9531
- "type": "number | string",
9532
- "kind": "expression"
9533
- }
9534
- },
9535
- {
9536
- "name": "before-close",
9537
- "default": "-",
9538
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
9539
- "options": [],
9540
- "value": {
9541
- "type": "(args) => boolean | Promise\\<boolean\\>",
9542
- "kind": "expression"
9543
- }
9544
- },
9545
- {
9546
- "name": "disabled",
9547
- "default": "`false`",
9548
- "description": "是否禁用滑动",
9549
- "options": [],
9550
- "value": {
9551
- "type": "boolean",
9552
- "kind": "expression"
9553
- }
9554
- },
9555
- {
9556
- "name": "stop-propagation",
9557
- "default": "`false`",
9558
- "description": "是否阻止滑动事件冒泡",
9559
- "options": [],
9560
- "value": {
9561
- "type": "boolean",
9562
- "kind": "expression"
9563
- }
9564
- }
9565
- ]
9566
- },
9567
9567
  {
9568
9568
  "name": "van-switch",
9569
9569
  "slots": [],