vant 3.2.7 → 3.2.8

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,247 +2,10 @@
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.2.7",
5
+ "version": "3.2.8",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
- {
10
- "name": "van-action-bar",
11
- "slots": [],
12
- "events": [],
13
- "attributes": [
14
- {
15
- "name": "safe-area-inset-bottom",
16
- "default": "`true`",
17
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
18
- "options": [],
19
- "value": {
20
- "type": "boolean",
21
- "kind": "expression"
22
- }
23
- }
24
- ]
25
- },
26
- {
27
- "name": "van-action-bar-icon",
28
- "slots": [
29
- {
30
- "name": "default",
31
- "description": "文本内容"
32
- },
33
- {
34
- "name": "icon",
35
- "description": "自定义图标"
36
- }
37
- ],
38
- "events": [],
39
- "attributes": [
40
- {
41
- "name": "text",
42
- "default": "-",
43
- "description": "按钮文字",
44
- "options": [],
45
- "value": {
46
- "type": "string",
47
- "kind": "expression"
48
- }
49
- },
50
- {
51
- "name": "icon",
52
- "default": "-",
53
- "description": "图标",
54
- "options": [],
55
- "value": {
56
- "type": "string",
57
- "kind": "expression"
58
- }
59
- },
60
- {
61
- "name": "color",
62
- "default": "`#323233`",
63
- "description": "图标颜色",
64
- "options": [],
65
- "value": {
66
- "type": "string",
67
- "kind": "expression"
68
- }
69
- },
70
- {
71
- "name": "icon-class",
72
- "default": "object_",
73
- "description": "图标额外类名",
74
- "options": [
75
- "-"
76
- ],
77
- "value": {
78
- "type": "string | Array \\",
79
- "kind": "expression"
80
- }
81
- },
82
- {
83
- "name": "icon-prefix",
84
- "default": "`van-icon`",
85
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
86
- "options": [],
87
- "value": {
88
- "type": "string",
89
- "kind": "expression"
90
- }
91
- },
92
- {
93
- "name": "dot",
94
- "default": "`false`",
95
- "description": "是否显示图标右上角小红点",
96
- "options": [],
97
- "value": {
98
- "type": "boolean",
99
- "kind": "expression"
100
- }
101
- },
102
- {
103
- "name": "badge",
104
- "default": "-",
105
- "description": "图标右上角徽标的内容",
106
- "options": [],
107
- "value": {
108
- "type": "number | string",
109
- "kind": "expression"
110
- }
111
- },
112
- {
113
- "name": "url",
114
- "default": "-",
115
- "description": "点击后跳转的链接地址",
116
- "options": [],
117
- "value": {
118
- "type": "string",
119
- "kind": "expression"
120
- }
121
- },
122
- {
123
- "name": "to",
124
- "default": "-",
125
- "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
126
- "options": [],
127
- "value": {
128
- "type": "string | object",
129
- "kind": "expression"
130
- }
131
- },
132
- {
133
- "name": "replace",
134
- "default": "`false`",
135
- "description": "是否在跳转时替换当前页面历史",
136
- "options": [],
137
- "value": {
138
- "type": "boolean",
139
- "kind": "expression"
140
- }
141
- }
142
- ]
143
- },
144
- {
145
- "name": "van-action-bar-button",
146
- "slots": [
147
- {
148
- "name": "default",
149
- "description": "按钮显示内容"
150
- }
151
- ],
152
- "events": [],
153
- "attributes": [
154
- {
155
- "name": "text",
156
- "default": "-",
157
- "description": "按钮文字",
158
- "options": [],
159
- "value": {
160
- "type": "string",
161
- "kind": "expression"
162
- }
163
- },
164
- {
165
- "name": "type",
166
- "default": "`default`",
167
- "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
168
- "options": [],
169
- "value": {
170
- "type": "string",
171
- "kind": "expression"
172
- }
173
- },
174
- {
175
- "name": "color",
176
- "default": "-",
177
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
178
- "options": [],
179
- "value": {
180
- "type": "string",
181
- "kind": "expression"
182
- }
183
- },
184
- {
185
- "name": "icon",
186
- "default": "-",
187
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
188
- "options": [],
189
- "value": {
190
- "type": "string",
191
- "kind": "expression"
192
- }
193
- },
194
- {
195
- "name": "disabled",
196
- "default": "`false`",
197
- "description": "是否禁用按钮",
198
- "options": [],
199
- "value": {
200
- "type": "boolean",
201
- "kind": "expression"
202
- }
203
- },
204
- {
205
- "name": "loading",
206
- "default": "`false`",
207
- "description": "是否显示为加载状态",
208
- "options": [],
209
- "value": {
210
- "type": "boolean",
211
- "kind": "expression"
212
- }
213
- },
214
- {
215
- "name": "url",
216
- "default": "-",
217
- "description": "点击后跳转的链接地址",
218
- "options": [],
219
- "value": {
220
- "type": "string",
221
- "kind": "expression"
222
- }
223
- },
224
- {
225
- "name": "to",
226
- "default": "-",
227
- "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
228
- "options": [],
229
- "value": {
230
- "type": "string | object",
231
- "kind": "expression"
232
- }
233
- },
234
- {
235
- "name": "replace",
236
- "default": "`false`",
237
- "description": "是否在跳转时替换当前页面历史",
238
- "options": [],
239
- "value": {
240
- "type": "boolean",
241
- "kind": "expression"
242
- }
243
- }
244
- ]
245
- },
246
9
  {
247
10
  "name": "van-action-sheet",
248
11
  "slots": [
@@ -495,56 +258,154 @@
495
258
  ]
496
259
  },
497
260
  {
498
- "name": "van-address-list",
261
+ "name": "van-action-bar",
262
+ "slots": [],
263
+ "events": [],
264
+ "attributes": [
265
+ {
266
+ "name": "safe-area-inset-bottom",
267
+ "default": "`true`",
268
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
269
+ "options": [],
270
+ "value": {
271
+ "type": "boolean",
272
+ "kind": "expression"
273
+ }
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "name": "van-action-bar-icon",
499
279
  "slots": [
500
280
  {
501
281
  "name": "default",
502
- "description": "在列表下方插入内容"
282
+ "description": "文本内容"
503
283
  },
504
284
  {
505
- "name": "top",
506
- "description": "在顶部插入内容"
285
+ "name": "icon",
286
+ "description": "自定义图标"
287
+ }
288
+ ],
289
+ "events": [],
290
+ "attributes": [
291
+ {
292
+ "name": "text",
293
+ "default": "-",
294
+ "description": "按钮文字",
295
+ "options": [],
296
+ "value": {
297
+ "type": "string",
298
+ "kind": "expression"
299
+ }
507
300
  },
508
301
  {
509
- "name": "item-bottom",
510
- "description": "在列表项底部插入内容"
302
+ "name": "icon",
303
+ "default": "-",
304
+ "description": "图标",
305
+ "options": [],
306
+ "value": {
307
+ "type": "string",
308
+ "kind": "expression"
309
+ }
511
310
  },
512
311
  {
513
- "name": "tag",
514
- "description": "自定义列表项标签内容"
515
- }
516
- ],
517
- "events": [
312
+ "name": "color",
313
+ "default": "`#323233`",
314
+ "description": "图标颜色",
315
+ "options": [],
316
+ "value": {
317
+ "type": "string",
318
+ "kind": "expression"
319
+ }
320
+ },
518
321
  {
519
- "name": "add",
520
- "description": "点击新增按钮时触发"
322
+ "name": "icon-class",
323
+ "default": "object_",
324
+ "description": "图标额外类名",
325
+ "options": [
326
+ "-"
327
+ ],
328
+ "value": {
329
+ "type": "string | Array \\",
330
+ "kind": "expression"
331
+ }
521
332
  },
522
333
  {
523
- "name": "edit",
524
- "description": "点击编辑按钮时触发"
334
+ "name": "icon-prefix",
335
+ "default": "`van-icon`",
336
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
337
+ "options": [],
338
+ "value": {
339
+ "type": "string",
340
+ "kind": "expression"
341
+ }
525
342
  },
526
343
  {
527
- "name": "select",
528
- "description": "切换选中的地址时触发"
344
+ "name": "dot",
345
+ "default": "`false`",
346
+ "description": "是否显示图标右上角小红点",
347
+ "options": [],
348
+ "value": {
349
+ "type": "boolean",
350
+ "kind": "expression"
351
+ }
529
352
  },
530
353
  {
531
- "name": "edit-disabled",
532
- "description": "编辑不可配送的地址时触发"
354
+ "name": "badge",
355
+ "default": "-",
356
+ "description": "图标右上角徽标的内容",
357
+ "options": [],
358
+ "value": {
359
+ "type": "number | string",
360
+ "kind": "expression"
361
+ }
533
362
  },
534
363
  {
535
- "name": "select-disabled",
536
- "description": "选中不可配送的地址时触发"
364
+ "name": "url",
365
+ "default": "-",
366
+ "description": "点击后跳转的链接地址",
367
+ "options": [],
368
+ "value": {
369
+ "type": "string",
370
+ "kind": "expression"
371
+ }
537
372
  },
538
373
  {
539
- "name": "click-item",
540
- "description": "点击任意地址时触发"
374
+ "name": "to",
375
+ "default": "-",
376
+ "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
377
+ "options": [],
378
+ "value": {
379
+ "type": "string | object",
380
+ "kind": "expression"
381
+ }
382
+ },
383
+ {
384
+ "name": "replace",
385
+ "default": "`false`",
386
+ "description": "是否在跳转时替换当前页面历史",
387
+ "options": [],
388
+ "value": {
389
+ "type": "boolean",
390
+ "kind": "expression"
391
+ }
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "name": "van-action-bar-button",
397
+ "slots": [
398
+ {
399
+ "name": "default",
400
+ "description": "按钮显示内容"
541
401
  }
542
402
  ],
403
+ "events": [],
543
404
  "attributes": [
544
405
  {
545
- "name": "v-model",
406
+ "name": "text",
546
407
  "default": "-",
547
- "description": "当前选中地址的 id",
408
+ "description": "按钮文字",
548
409
  "options": [],
549
410
  "value": {
550
411
  "type": "string",
@@ -552,29 +413,29 @@
552
413
  }
553
414
  },
554
415
  {
555
- "name": "list",
556
- "default": "`[]`",
557
- "description": "地址列表",
416
+ "name": "type",
417
+ "default": "`default`",
418
+ "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
558
419
  "options": [],
559
420
  "value": {
560
- "type": "AddressListAddress[]",
421
+ "type": "string",
561
422
  "kind": "expression"
562
423
  }
563
424
  },
564
425
  {
565
- "name": "disabled-list",
566
- "default": "`[]`",
567
- "description": "不可配送地址列表",
426
+ "name": "color",
427
+ "default": "-",
428
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
568
429
  "options": [],
569
430
  "value": {
570
- "type": "AddressListAddress[]",
431
+ "type": "string",
571
432
  "kind": "expression"
572
433
  }
573
434
  },
574
435
  {
575
- "name": "disabled-text",
436
+ "name": "icon",
576
437
  "default": "-",
577
- "description": "不可配送提示文案",
438
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
578
439
  "options": [],
579
440
  "value": {
580
441
  "type": "string",
@@ -582,9 +443,9 @@
582
443
  }
583
444
  },
584
445
  {
585
- "name": "switchable",
586
- "default": "`true`",
587
- "description": "是否允许切换地址",
446
+ "name": "disabled",
447
+ "default": "`false`",
448
+ "description": "是否禁用按钮",
588
449
  "options": [],
589
450
  "value": {
590
451
  "type": "boolean",
@@ -592,24 +453,44 @@
592
453
  }
593
454
  },
594
455
  {
595
- "name": "add-button-text",
596
- "default": "`新增地址`",
597
- "description": "底部按钮文字",
456
+ "name": "loading",
457
+ "default": "`false`",
458
+ "description": "是否显示为加载状态",
598
459
  "options": [],
599
460
  "value": {
600
- "type": "string",
461
+ "type": "boolean",
601
462
  "kind": "expression"
602
463
  }
603
464
  },
604
465
  {
605
- "name": "default-tag-text",
466
+ "name": "url",
606
467
  "default": "-",
607
- "description": "默认地址标签文字",
468
+ "description": "点击后跳转的链接地址",
608
469
  "options": [],
609
470
  "value": {
610
471
  "type": "string",
611
472
  "kind": "expression"
612
473
  }
474
+ },
475
+ {
476
+ "name": "to",
477
+ "default": "-",
478
+ "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
479
+ "options": [],
480
+ "value": {
481
+ "type": "string | object",
482
+ "kind": "expression"
483
+ }
484
+ },
485
+ {
486
+ "name": "replace",
487
+ "default": "`false`",
488
+ "description": "是否在跳转时替换当前页面历史",
489
+ "options": [],
490
+ "value": {
491
+ "type": "boolean",
492
+ "kind": "expression"
493
+ }
613
494
  }
614
495
  ]
615
496
  },
@@ -879,62 +760,33 @@
879
760
  ]
880
761
  },
881
762
  {
882
- "name": "van-area",
763
+ "name": "van-badge",
883
764
  "slots": [
884
765
  {
885
- "name": "toolbar",
886
- "description": "自定义整个顶部栏的内容"
887
- },
888
- {
889
- "name": "title",
890
- "description": "自定义标题内容"
891
- },
892
- {
893
- "name": "confirm",
894
- "description": "自定义确认按钮内容"
895
- },
896
- {
897
- "name": "cancel",
898
- "description": "自定义取消按钮内容"
899
- },
900
- {
901
- "name": "columns-top",
902
- "description": "自定义选项上方内容"
903
- },
904
- {
905
- "name": "columns-bottom",
906
- "description": "自定义选项下方内容"
907
- }
908
- ],
909
- "events": [
910
- {
911
- "name": "confirm",
912
- "description": "点击完成按钮时触发"
913
- },
914
- {
915
- "name": "cancel",
916
- "description": "点击取消按钮时触发"
766
+ "name": "default",
767
+ "description": "徽标包裹的子元素"
917
768
  },
918
769
  {
919
- "name": "change",
920
- "description": "选项改变时触发"
770
+ "name": "content",
771
+ "description": "自定义徽标内容"
921
772
  }
922
773
  ],
774
+ "events": [],
923
775
  "attributes": [
924
776
  {
925
- "name": "value",
777
+ "name": "content",
926
778
  "default": "-",
927
- "description": "当前选中项对应的地区码",
779
+ "description": "徽标内容",
928
780
  "options": [],
929
781
  "value": {
930
- "type": "string",
782
+ "type": "number | string",
931
783
  "kind": "expression"
932
784
  }
933
785
  },
934
786
  {
935
- "name": "title",
936
- "default": "-",
937
- "description": "顶部栏标题",
787
+ "name": "color",
788
+ "default": "`#ee0a24`",
789
+ "description": "徽标背景颜色",
938
790
  "options": [],
939
791
  "value": {
940
792
  "type": "string",
@@ -942,145 +794,225 @@
942
794
  }
943
795
  },
944
796
  {
945
- "name": "confirm-button-text",
946
- "default": "`确认`",
947
- "description": "确认按钮文字",
797
+ "name": "dot",
798
+ "default": "`false`",
799
+ "description": "是否展示为小红点",
948
800
  "options": [],
949
801
  "value": {
950
- "type": "string",
802
+ "type": "boolean",
951
803
  "kind": "expression"
952
804
  }
953
805
  },
954
806
  {
955
- "name": "cancel-button-text",
956
- "default": "`取消`",
957
- "description": "取消按钮文字",
807
+ "name": "max",
808
+ "default": "-",
809
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
958
810
  "options": [],
959
811
  "value": {
960
- "type": "string",
812
+ "type": "number | string",
961
813
  "kind": "expression"
962
814
  }
963
815
  },
964
816
  {
965
- "name": "area-list",
966
- "default": "-",
967
- "description": "省市区数据,格式见下方",
968
- "options": [],
817
+ "name": "offset",
818
+ "default": "string]_",
819
+ "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`",
820
+ "options": [
821
+ "-"
822
+ ],
969
823
  "value": {
970
- "type": "object",
824
+ "type": "[number | string, number \\",
971
825
  "kind": "expression"
972
826
  }
973
827
  },
974
828
  {
975
- "name": "columns-placeholder",
976
- "default": "`[]`",
977
- "description": "列占位提示文字",
829
+ "name": "show-zero",
830
+ "default": "`true`",
831
+ "description": "当 content 为数字 0 时,是否展示徽标",
978
832
  "options": [],
979
833
  "value": {
980
- "type": "string[]",
834
+ "type": "boolean",
981
835
  "kind": "expression"
982
836
  }
837
+ }
838
+ ]
839
+ },
840
+ {
841
+ "name": "van-address-list",
842
+ "slots": [
843
+ {
844
+ "name": "default",
845
+ "description": "在列表下方插入内容"
983
846
  },
984
847
  {
985
- "name": "loading",
986
- "default": "`false`",
987
- "description": "是否显示加载状态",
848
+ "name": "top",
849
+ "description": "在顶部插入内容"
850
+ },
851
+ {
852
+ "name": "item-bottom",
853
+ "description": "在列表项底部插入内容"
854
+ },
855
+ {
856
+ "name": "tag",
857
+ "description": "自定义列表项标签内容"
858
+ }
859
+ ],
860
+ "events": [
861
+ {
862
+ "name": "add",
863
+ "description": "点击新增按钮时触发"
864
+ },
865
+ {
866
+ "name": "edit",
867
+ "description": "点击编辑按钮时触发"
868
+ },
869
+ {
870
+ "name": "select",
871
+ "description": "切换选中的地址时触发"
872
+ },
873
+ {
874
+ "name": "edit-disabled",
875
+ "description": "编辑不可配送的地址时触发"
876
+ },
877
+ {
878
+ "name": "select-disabled",
879
+ "description": "选中不可配送的地址时触发"
880
+ },
881
+ {
882
+ "name": "click-item",
883
+ "description": "点击任意地址时触发"
884
+ }
885
+ ],
886
+ "attributes": [
887
+ {
888
+ "name": "v-model",
889
+ "default": "-",
890
+ "description": "当前选中地址的 id",
988
891
  "options": [],
989
892
  "value": {
990
- "type": "boolean",
893
+ "type": "string",
991
894
  "kind": "expression"
992
895
  }
993
896
  },
994
897
  {
995
- "name": "readonly",
996
- "default": "`false`",
997
- "description": "是否为只读状态,只读状态下无法切换选项",
898
+ "name": "list",
899
+ "default": "`[]`",
900
+ "description": "地址列表",
998
901
  "options": [],
999
902
  "value": {
1000
- "type": "boolean",
903
+ "type": "AddressListAddress[]",
1001
904
  "kind": "expression"
1002
905
  }
1003
906
  },
1004
907
  {
1005
- "name": "item-height",
1006
- "default": "`44`",
1007
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
908
+ "name": "disabled-list",
909
+ "default": "`[]`",
910
+ "description": "不可配送地址列表",
1008
911
  "options": [],
1009
912
  "value": {
1010
- "type": "number | string",
913
+ "type": "AddressListAddress[]",
1011
914
  "kind": "expression"
1012
915
  }
1013
916
  },
1014
917
  {
1015
- "name": "columns-num",
1016
- "default": "`3`",
1017
- "description": "显示列数,3-省市区,2-省市,1-省",
918
+ "name": "disabled-text",
919
+ "default": "-",
920
+ "description": "不可配送提示文案",
1018
921
  "options": [],
1019
922
  "value": {
1020
- "type": "number | string",
923
+ "type": "string",
1021
924
  "kind": "expression"
1022
925
  }
1023
926
  },
1024
927
  {
1025
- "name": "visible-item-count",
1026
- "default": "`6`",
1027
- "description": "可见的选项个数",
928
+ "name": "switchable",
929
+ "default": "`true`",
930
+ "description": "是否允许切换地址",
1028
931
  "options": [],
1029
932
  "value": {
1030
- "type": "number | string",
933
+ "type": "boolean",
1031
934
  "kind": "expression"
1032
935
  }
1033
936
  },
1034
937
  {
1035
- "name": "swipe-duration",
1036
- "default": "`1000`",
1037
- "description": "快速滑动时惯性滚动的时长,单位 `ms`",
938
+ "name": "add-button-text",
939
+ "default": "`新增地址`",
940
+ "description": "底部按钮文字",
1038
941
  "options": [],
1039
942
  "value": {
1040
- "type": "number | string",
943
+ "type": "string",
1041
944
  "kind": "expression"
1042
945
  }
1043
946
  },
1044
947
  {
1045
- "name": "is-oversea-code",
948
+ "name": "default-tag-text",
1046
949
  "default": "-",
1047
- "description": "根据地区码校验海外地址,海外地址会划分至单独的分类",
950
+ "description": "默认地址标签文字",
1048
951
  "options": [],
1049
952
  "value": {
1050
- "type": "() => boolean",
953
+ "type": "string",
1051
954
  "kind": "expression"
1052
955
  }
1053
956
  }
1054
957
  ]
1055
958
  },
1056
959
  {
1057
- "name": "van-badge",
960
+ "name": "van-area",
1058
961
  "slots": [
1059
962
  {
1060
- "name": "default",
1061
- "description": "徽标包裹的子元素"
963
+ "name": "toolbar",
964
+ "description": "自定义整个顶部栏的内容"
1062
965
  },
1063
966
  {
1064
- "name": "content",
1065
- "description": "自定义徽标内容"
967
+ "name": "title",
968
+ "description": "自定义标题内容"
969
+ },
970
+ {
971
+ "name": "confirm",
972
+ "description": "自定义确认按钮内容"
973
+ },
974
+ {
975
+ "name": "cancel",
976
+ "description": "自定义取消按钮内容"
977
+ },
978
+ {
979
+ "name": "columns-top",
980
+ "description": "自定义选项上方内容"
981
+ },
982
+ {
983
+ "name": "columns-bottom",
984
+ "description": "自定义选项下方内容"
985
+ }
986
+ ],
987
+ "events": [
988
+ {
989
+ "name": "confirm",
990
+ "description": "点击完成按钮时触发"
991
+ },
992
+ {
993
+ "name": "cancel",
994
+ "description": "点击取消按钮时触发"
995
+ },
996
+ {
997
+ "name": "change",
998
+ "description": "选项改变时触发"
1066
999
  }
1067
1000
  ],
1068
- "events": [],
1069
1001
  "attributes": [
1070
1002
  {
1071
- "name": "content",
1003
+ "name": "value",
1072
1004
  "default": "-",
1073
- "description": "徽标内容",
1005
+ "description": "当前选中项对应的地区码",
1074
1006
  "options": [],
1075
1007
  "value": {
1076
- "type": "number | string",
1008
+ "type": "string",
1077
1009
  "kind": "expression"
1078
1010
  }
1079
1011
  },
1080
1012
  {
1081
- "name": "color",
1082
- "default": "`#ee0a24`",
1083
- "description": "徽标背景颜色",
1013
+ "name": "title",
1014
+ "default": "-",
1015
+ "description": "顶部栏标题",
1084
1016
  "options": [],
1085
1017
  "value": {
1086
1018
  "type": "string",
@@ -1088,9 +1020,49 @@
1088
1020
  }
1089
1021
  },
1090
1022
  {
1091
- "name": "dot",
1023
+ "name": "confirm-button-text",
1024
+ "default": "`确认`",
1025
+ "description": "确认按钮文字",
1026
+ "options": [],
1027
+ "value": {
1028
+ "type": "string",
1029
+ "kind": "expression"
1030
+ }
1031
+ },
1032
+ {
1033
+ "name": "cancel-button-text",
1034
+ "default": "`取消`",
1035
+ "description": "取消按钮文字",
1036
+ "options": [],
1037
+ "value": {
1038
+ "type": "string",
1039
+ "kind": "expression"
1040
+ }
1041
+ },
1042
+ {
1043
+ "name": "area-list",
1044
+ "default": "-",
1045
+ "description": "省市区数据,格式见下方",
1046
+ "options": [],
1047
+ "value": {
1048
+ "type": "object",
1049
+ "kind": "expression"
1050
+ }
1051
+ },
1052
+ {
1053
+ "name": "columns-placeholder",
1054
+ "default": "`[]`",
1055
+ "description": "列占位提示文字",
1056
+ "options": [],
1057
+ "value": {
1058
+ "type": "string[]",
1059
+ "kind": "expression"
1060
+ }
1061
+ },
1062
+ {
1063
+ "name": "loading",
1092
1064
  "default": "`false`",
1093
- "description": "是否展示为小红点",
1065
+ "description": "是否显示加载状态",
1094
1066
  "options": [],
1095
1067
  "value": {
1096
1068
  "type": "boolean",
@@ -1098,9 +1070,19 @@
1098
1070
  }
1099
1071
  },
1100
1072
  {
1101
- "name": "max",
1102
- "default": "-",
1103
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
1073
+ "name": "readonly",
1074
+ "default": "`false`",
1075
+ "description": "是否为只读状态,只读状态下无法切换选项",
1076
+ "options": [],
1077
+ "value": {
1078
+ "type": "boolean",
1079
+ "kind": "expression"
1080
+ }
1081
+ },
1082
+ {
1083
+ "name": "item-height",
1084
+ "default": "`44`",
1085
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
1104
1086
  "options": [],
1105
1087
  "value": {
1106
1088
  "type": "number | string",
@@ -1108,24 +1090,42 @@
1108
1090
  }
1109
1091
  },
1110
1092
  {
1111
- "name": "offset",
1112
- "default": "string]_",
1113
- "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`",
1114
- "options": [
1115
- "-"
1116
- ],
1093
+ "name": "columns-num",
1094
+ "default": "`3`",
1095
+ "description": "显示列数,3-省市区,2-省市,1-省",
1096
+ "options": [],
1117
1097
  "value": {
1118
- "type": "[number | string, number \\",
1098
+ "type": "number | string",
1119
1099
  "kind": "expression"
1120
1100
  }
1121
1101
  },
1122
1102
  {
1123
- "name": "show-zero",
1124
- "default": "`true`",
1125
- "description": "当 content 为数字 0 时,是否展示徽标",
1103
+ "name": "visible-item-count",
1104
+ "default": "`6`",
1105
+ "description": "可见的选项个数",
1126
1106
  "options": [],
1127
1107
  "value": {
1128
- "type": "boolean",
1108
+ "type": "number | string",
1109
+ "kind": "expression"
1110
+ }
1111
+ },
1112
+ {
1113
+ "name": "swipe-duration",
1114
+ "default": "`1000`",
1115
+ "description": "快速滑动时惯性滚动的时长,单位 `ms`",
1116
+ "options": [],
1117
+ "value": {
1118
+ "type": "number | string",
1119
+ "kind": "expression"
1120
+ }
1121
+ },
1122
+ {
1123
+ "name": "is-oversea-code",
1124
+ "default": "-",
1125
+ "description": "根据地区码校验海外地址,海外地址会划分至单独的分类",
1126
+ "options": [],
1127
+ "value": {
1128
+ "type": "() => boolean",
1129
1129
  "kind": "expression"
1130
1130
  }
1131
1131
  }
@@ -1950,6 +1950,10 @@
1950
1950
  {
1951
1951
  "name": "options-top",
1952
1952
  "description": "自定义选项上方的内容"
1953
+ },
1954
+ {
1955
+ "name": "options-bottom",
1956
+ "description": "自定义选项下方的内容"
1953
1957
  }
1954
1958
  ],
1955
1959
  "events": [
@@ -2260,229 +2264,14 @@
2260
2264
  "description": "是否展示右侧箭头并开启点击反馈",
2261
2265
  "options": [],
2262
2266
  "value": {
2263
- "type": "boolean",
2264
- "kind": "expression"
2265
- }
2266
- },
2267
- {
2268
- "name": "required",
2269
- "default": "`false`",
2270
- "description": "是否显示表单必填星号",
2271
- "options": [],
2272
- "value": {
2273
- "type": "boolean",
2274
- "kind": "expression"
2275
- }
2276
- },
2277
- {
2278
- "name": "center",
2279
- "default": "`false`",
2280
- "description": "是否使内容垂直居中",
2281
- "options": [],
2282
- "value": {
2283
- "type": "boolean",
2284
- "kind": "expression"
2285
- }
2286
- },
2287
- {
2288
- "name": "arrow-direction",
2289
- "default": "`right`",
2290
- "description": "箭头方向,可选值为 `left` `up` `down`",
2291
- "options": [],
2292
- "value": {
2293
- "type": "string",
2294
- "kind": "expression"
2295
- }
2296
- },
2297
- {
2298
- "name": "title-style",
2299
- "default": "object_",
2300
- "description": "左侧标题额外样式",
2301
- "options": [
2302
- "-"
2303
- ],
2304
- "value": {
2305
- "type": "string | Array \\",
2306
- "kind": "expression"
2307
- }
2308
- },
2309
- {
2310
- "name": "title-class",
2311
- "default": "object_",
2312
- "description": "左侧标题额外类名",
2313
- "options": [
2314
- "-"
2315
- ],
2316
- "value": {
2317
- "type": "string | Array \\",
2318
- "kind": "expression"
2319
- }
2320
- },
2321
- {
2322
- "name": "value-class",
2323
- "default": "object_",
2324
- "description": "右侧内容额外类名",
2325
- "options": [
2326
- "-"
2327
- ],
2328
- "value": {
2329
- "type": "string | Array \\",
2330
- "kind": "expression"
2331
- }
2332
- },
2333
- {
2334
- "name": "label-class",
2335
- "default": "object_",
2336
- "description": "描述信息额外类名",
2337
- "options": [
2338
- "-"
2339
- ],
2340
- "value": {
2341
- "type": "string | Array \\",
2342
- "kind": "expression"
2343
- }
2344
- }
2345
- ]
2346
- },
2347
- {
2348
- "name": "van-checkbox",
2349
- "slots": [
2350
- {
2351
- "name": "default",
2352
- "description": "自定义文本"
2353
- },
2354
- {
2355
- "name": "icon",
2356
- "description": "自定义图标"
2357
- }
2358
- ],
2359
- "events": [
2360
- {
2361
- "name": "change",
2362
- "description": "当绑定值变化时触发的事件"
2363
- },
2364
- {
2365
- "name": "click",
2366
- "description": "点击复选框时触发"
2367
- }
2368
- ],
2369
- "attributes": [
2370
- {
2371
- "name": "v-model",
2372
- "default": "`false`",
2373
- "description": "是否为选中状态",
2374
- "options": [],
2375
- "value": {
2376
- "type": "boolean",
2377
- "kind": "expression"
2378
- }
2379
- },
2380
- {
2381
- "name": "name",
2382
- "default": "-",
2383
- "description": "标识符",
2384
- "options": [],
2385
- "value": {
2386
- "type": "any",
2387
- "kind": "expression"
2388
- }
2389
- },
2390
- {
2391
- "name": "shape",
2392
- "default": "`round`",
2393
- "description": "形状,可选值为 `square`",
2394
- "options": [],
2395
- "value": {
2396
- "type": "string",
2397
- "kind": "expression"
2398
- }
2399
- },
2400
- {
2401
- "name": "disabled",
2402
- "default": "`false`",
2403
- "description": "是否禁用复选框",
2404
- "options": [],
2405
- "value": {
2406
- "type": "boolean",
2407
- "kind": "expression"
2408
- }
2409
- },
2410
- {
2411
- "name": "label-disabled",
2412
- "default": "`false`",
2413
- "description": "是否禁用复选框文本点击",
2414
- "options": [],
2415
- "value": {
2416
- "type": "boolean",
2417
- "kind": "expression"
2418
- }
2419
- },
2420
- {
2421
- "name": "label-position",
2422
- "default": "`right`",
2423
- "description": "文本位置,可选值为 `left`",
2424
- "options": [],
2425
- "value": {
2426
- "type": "string",
2427
- "kind": "expression"
2428
- }
2429
- },
2430
- {
2431
- "name": "icon-size",
2432
- "default": "`20px`",
2433
- "description": "图标大小,默认单位为 `px`",
2434
- "options": [],
2435
- "value": {
2436
- "type": "number | string",
2437
- "kind": "expression"
2438
- }
2439
- },
2440
- {
2441
- "name": "checked-color",
2442
- "default": "`#1989fa`",
2443
- "description": "选中状态颜色",
2444
- "options": [],
2445
- "value": {
2446
- "type": "string",
2447
- "kind": "expression"
2448
- }
2449
- },
2450
- {
2451
- "name": "bind-group",
2452
- "default": "`true`",
2453
- "description": "是否与复选框组绑定",
2454
- "options": [],
2455
- "value": {
2456
- "type": "boolean",
2457
- "kind": "expression"
2458
- }
2459
- }
2460
- ]
2461
- },
2462
- {
2463
- "name": "van-checkbox-group",
2464
- "slots": [],
2465
- "events": [
2466
- {
2467
- "name": "change",
2468
- "description": "当绑定值变化时触发的事件"
2469
- }
2470
- ],
2471
- "attributes": [
2472
- {
2473
- "name": "v-model",
2474
- "default": "-",
2475
- "description": "所有选中项的标识符",
2476
- "options": [],
2477
- "value": {
2478
- "type": "any[]",
2267
+ "type": "boolean",
2479
2268
  "kind": "expression"
2480
2269
  }
2481
2270
  },
2482
2271
  {
2483
- "name": "disabled",
2272
+ "name": "required",
2484
2273
  "default": "`false`",
2485
- "description": "是否禁用所有复选框",
2274
+ "description": "是否显示表单必填星号",
2486
2275
  "options": [],
2487
2276
  "value": {
2488
2277
  "type": "boolean",
@@ -2490,19 +2279,19 @@
2490
2279
  }
2491
2280
  },
2492
2281
  {
2493
- "name": "max",
2494
- "default": "`0`",
2495
- "description": "最大可选数,`0` 为无限制",
2282
+ "name": "center",
2283
+ "default": "`false`",
2284
+ "description": "是否使内容垂直居中",
2496
2285
  "options": [],
2497
2286
  "value": {
2498
- "type": "number | string",
2287
+ "type": "boolean",
2499
2288
  "kind": "expression"
2500
2289
  }
2501
2290
  },
2502
2291
  {
2503
- "name": "direction",
2504
- "default": "`vertical`",
2505
- "description": "排列方向,可选值为 `horizontal`",
2292
+ "name": "arrow-direction",
2293
+ "default": "`right`",
2294
+ "description": "箭头方向,可选值为 `left` `up` `down`",
2506
2295
  "options": [],
2507
2296
  "value": {
2508
2297
  "type": "string",
@@ -2510,22 +2299,50 @@
2510
2299
  }
2511
2300
  },
2512
2301
  {
2513
- "name": "icon-size",
2514
- "default": "`20px`",
2515
- "description": "所有复选框的图标大小,默认单位为 `px`",
2516
- "options": [],
2302
+ "name": "title-style",
2303
+ "default": "object_",
2304
+ "description": "左侧标题额外样式",
2305
+ "options": [
2306
+ "-"
2307
+ ],
2517
2308
  "value": {
2518
- "type": "number | string",
2309
+ "type": "string | Array \\",
2519
2310
  "kind": "expression"
2520
2311
  }
2521
2312
  },
2522
2313
  {
2523
- "name": "checked-color",
2524
- "default": "`#1989fa`",
2525
- "description": "所有复选框的选中状态颜色",
2526
- "options": [],
2314
+ "name": "title-class",
2315
+ "default": "object_",
2316
+ "description": "左侧标题额外类名",
2317
+ "options": [
2318
+ "-"
2319
+ ],
2527
2320
  "value": {
2528
- "type": "string",
2321
+ "type": "string | Array \\",
2322
+ "kind": "expression"
2323
+ }
2324
+ },
2325
+ {
2326
+ "name": "value-class",
2327
+ "default": "object_",
2328
+ "description": "右侧内容额外类名",
2329
+ "options": [
2330
+ "-"
2331
+ ],
2332
+ "value": {
2333
+ "type": "string | Array \\",
2334
+ "kind": "expression"
2335
+ }
2336
+ },
2337
+ {
2338
+ "name": "label-class",
2339
+ "default": "object_",
2340
+ "description": "描述信息额外类名",
2341
+ "options": [
2342
+ "-"
2343
+ ],
2344
+ "value": {
2345
+ "type": "string | Array \\",
2529
2346
  "kind": "expression"
2530
2347
  }
2531
2348
  }
@@ -2714,31 +2531,208 @@
2714
2531
  }
2715
2532
  },
2716
2533
  {
2717
- "name": "wrap",
2718
- "default": "`true`",
2719
- "description": "是否自动换行",
2534
+ "name": "wrap",
2535
+ "default": "`true`",
2536
+ "description": "是否自动换行",
2537
+ "options": [],
2538
+ "value": {
2539
+ "type": "boolean",
2540
+ "kind": "expression"
2541
+ }
2542
+ }
2543
+ ]
2544
+ },
2545
+ {
2546
+ "name": "van-col",
2547
+ "slots": [],
2548
+ "events": [
2549
+ {
2550
+ "name": "click",
2551
+ "description": "点击时触发"
2552
+ }
2553
+ ],
2554
+ "attributes": [
2555
+ {
2556
+ "name": "span",
2557
+ "default": "-",
2558
+ "description": "列元素宽度",
2559
+ "options": [],
2560
+ "value": {
2561
+ "type": "number | string",
2562
+ "kind": "expression"
2563
+ }
2564
+ },
2565
+ {
2566
+ "name": "offset",
2567
+ "default": "-",
2568
+ "description": "列元素偏移距离",
2569
+ "options": [],
2570
+ "value": {
2571
+ "type": "number | string",
2572
+ "kind": "expression"
2573
+ }
2574
+ },
2575
+ {
2576
+ "name": "tag",
2577
+ "default": "`div`",
2578
+ "description": "自定义元素标签",
2579
+ "options": [],
2580
+ "value": {
2581
+ "type": "string",
2582
+ "kind": "expression"
2583
+ }
2584
+ }
2585
+ ]
2586
+ },
2587
+ {
2588
+ "name": "van-checkbox",
2589
+ "slots": [
2590
+ {
2591
+ "name": "default",
2592
+ "description": "自定义文本"
2593
+ },
2594
+ {
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": "是否为选中状态",
2614
+ "options": [],
2615
+ "value": {
2616
+ "type": "boolean",
2617
+ "kind": "expression"
2618
+ }
2619
+ },
2620
+ {
2621
+ "name": "name",
2622
+ "default": "-",
2623
+ "description": "标识符",
2624
+ "options": [],
2625
+ "value": {
2626
+ "type": "any",
2627
+ "kind": "expression"
2628
+ }
2629
+ },
2630
+ {
2631
+ "name": "shape",
2632
+ "default": "`round`",
2633
+ "description": "形状,可选值为 `square`",
2634
+ "options": [],
2635
+ "value": {
2636
+ "type": "string",
2637
+ "kind": "expression"
2638
+ }
2639
+ },
2640
+ {
2641
+ "name": "disabled",
2642
+ "default": "`false`",
2643
+ "description": "是否禁用复选框",
2644
+ "options": [],
2645
+ "value": {
2646
+ "type": "boolean",
2647
+ "kind": "expression"
2648
+ }
2649
+ },
2650
+ {
2651
+ "name": "label-disabled",
2652
+ "default": "`false`",
2653
+ "description": "是否禁用复选框文本点击",
2654
+ "options": [],
2655
+ "value": {
2656
+ "type": "boolean",
2657
+ "kind": "expression"
2658
+ }
2659
+ },
2660
+ {
2661
+ "name": "label-position",
2662
+ "default": "`right`",
2663
+ "description": "文本位置,可选值为 `left`",
2664
+ "options": [],
2665
+ "value": {
2666
+ "type": "string",
2667
+ "kind": "expression"
2668
+ }
2669
+ },
2670
+ {
2671
+ "name": "icon-size",
2672
+ "default": "`20px`",
2673
+ "description": "图标大小,默认单位为 `px`",
2674
+ "options": [],
2675
+ "value": {
2676
+ "type": "number | string",
2677
+ "kind": "expression"
2678
+ }
2679
+ },
2680
+ {
2681
+ "name": "checked-color",
2682
+ "default": "`#1989fa`",
2683
+ "description": "选中状态颜色",
2684
+ "options": [],
2685
+ "value": {
2686
+ "type": "string",
2687
+ "kind": "expression"
2688
+ }
2689
+ },
2690
+ {
2691
+ "name": "bind-group",
2692
+ "default": "`true`",
2693
+ "description": "是否与复选框组绑定",
2694
+ "options": [],
2695
+ "value": {
2696
+ "type": "boolean",
2697
+ "kind": "expression"
2698
+ }
2699
+ }
2700
+ ]
2701
+ },
2702
+ {
2703
+ "name": "van-checkbox-group",
2704
+ "slots": [],
2705
+ "events": [
2706
+ {
2707
+ "name": "change",
2708
+ "description": "当绑定值变化时触发的事件"
2709
+ }
2710
+ ],
2711
+ "attributes": [
2712
+ {
2713
+ "name": "v-model",
2714
+ "default": "-",
2715
+ "description": "所有选中项的标识符",
2716
+ "options": [],
2717
+ "value": {
2718
+ "type": "any[]",
2719
+ "kind": "expression"
2720
+ }
2721
+ },
2722
+ {
2723
+ "name": "disabled",
2724
+ "default": "`false`",
2725
+ "description": "是否禁用所有复选框",
2720
2726
  "options": [],
2721
2727
  "value": {
2722
2728
  "type": "boolean",
2723
2729
  "kind": "expression"
2724
2730
  }
2725
- }
2726
- ]
2727
- },
2728
- {
2729
- "name": "van-col",
2730
- "slots": [],
2731
- "events": [
2732
- {
2733
- "name": "click",
2734
- "description": "点击时触发"
2735
- }
2736
- ],
2737
- "attributes": [
2731
+ },
2738
2732
  {
2739
- "name": "span",
2740
- "default": "-",
2741
- "description": "列元素宽度",
2733
+ "name": "max",
2734
+ "default": "`0`",
2735
+ "description": "最大可选数,`0` 为无限制",
2742
2736
  "options": [],
2743
2737
  "value": {
2744
2738
  "type": "number | string",
@@ -2746,9 +2740,19 @@
2746
2740
  }
2747
2741
  },
2748
2742
  {
2749
- "name": "offset",
2750
- "default": "-",
2751
- "description": "列元素偏移距离",
2743
+ "name": "direction",
2744
+ "default": "`vertical`",
2745
+ "description": "排列方向,可选值为 `horizontal`",
2746
+ "options": [],
2747
+ "value": {
2748
+ "type": "string",
2749
+ "kind": "expression"
2750
+ }
2751
+ },
2752
+ {
2753
+ "name": "icon-size",
2754
+ "default": "`20px`",
2755
+ "description": "所有复选框的图标大小,默认单位为 `px`",
2752
2756
  "options": [],
2753
2757
  "value": {
2754
2758
  "type": "number | string",
@@ -2756,9 +2760,9 @@
2756
2760
  }
2757
2761
  },
2758
2762
  {
2759
- "name": "tag",
2760
- "default": "`div`",
2761
- "description": "自定义元素标签",
2763
+ "name": "checked-color",
2764
+ "default": "`#1989fa`",
2765
+ "description": "所有复选框的选中状态颜色",
2762
2766
  "options": [],
2763
2767
  "value": {
2764
2768
  "type": "string",
@@ -4788,157 +4792,6 @@
4788
4792
  }
4789
4793
  ]
4790
4794
  },
4791
- {
4792
- "name": "van-form",
4793
- "slots": [
4794
- {
4795
- "name": "default",
4796
- "description": "表单内容"
4797
- }
4798
- ],
4799
- "events": [
4800
- {
4801
- "name": "submit",
4802
- "description": "提交表单且验证通过后触发"
4803
- },
4804
- {
4805
- "name": "failed",
4806
- "description": "提交表单且验证不通过后触发"
4807
- }
4808
- ],
4809
- "attributes": [
4810
- {
4811
- "name": "label-width",
4812
- "default": "`6.2em`",
4813
- "description": "表单项 label 宽度,默认单位为`px`",
4814
- "options": [],
4815
- "value": {
4816
- "type": "number | string",
4817
- "kind": "expression"
4818
- }
4819
- },
4820
- {
4821
- "name": "label-align",
4822
- "default": "`left`",
4823
- "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
4824
- "options": [],
4825
- "value": {
4826
- "type": "string",
4827
- "kind": "expression"
4828
- }
4829
- },
4830
- {
4831
- "name": "input-align",
4832
- "default": "`left`",
4833
- "description": "输入框对齐方式,可选值为 `center` `right`",
4834
- "options": [],
4835
- "value": {
4836
- "type": "string",
4837
- "kind": "expression"
4838
- }
4839
- },
4840
- {
4841
- "name": "error-message-align",
4842
- "default": "`left`",
4843
- "description": "错误提示文案对齐方式,可选值为 `center` `right`",
4844
- "options": [],
4845
- "value": {
4846
- "type": "string",
4847
- "kind": "expression"
4848
- }
4849
- },
4850
- {
4851
- "name": "validate-trigger",
4852
- "default": "`onBlur`",
4853
- "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
4854
- "options": [],
4855
- "value": {
4856
- "type": "string",
4857
- "kind": "expression"
4858
- }
4859
- },
4860
- {
4861
- "name": "colon",
4862
- "default": "`false`",
4863
- "description": "是否在 label 后面添加冒号",
4864
- "options": [],
4865
- "value": {
4866
- "type": "boolean",
4867
- "kind": "expression"
4868
- }
4869
- },
4870
- {
4871
- "name": "disabled",
4872
- "default": "`false`",
4873
- "description": "是否禁用表单中的所有输入框",
4874
- "options": [],
4875
- "value": {
4876
- "type": "boolean",
4877
- "kind": "expression"
4878
- }
4879
- },
4880
- {
4881
- "name": "readonly",
4882
- "default": "`false`",
4883
- "description": "是否将表单中的所有输入框设置为只读状态",
4884
- "options": [],
4885
- "value": {
4886
- "type": "boolean",
4887
- "kind": "expression"
4888
- }
4889
- },
4890
- {
4891
- "name": "validate-first",
4892
- "default": "`false`",
4893
- "description": "是否在某一项校验不通过时停止校验",
4894
- "options": [],
4895
- "value": {
4896
- "type": "boolean",
4897
- "kind": "expression"
4898
- }
4899
- },
4900
- {
4901
- "name": "scroll-to-error",
4902
- "default": "`false`",
4903
- "description": "是否在提交表单且校验不通过时滚动至错误的表单项",
4904
- "options": [],
4905
- "value": {
4906
- "type": "boolean",
4907
- "kind": "expression"
4908
- }
4909
- },
4910
- {
4911
- "name": "show-error",
4912
- "default": "`false`",
4913
- "description": "是否在校验不通过时标红输入框",
4914
- "options": [],
4915
- "value": {
4916
- "type": "boolean",
4917
- "kind": "expression"
4918
- }
4919
- },
4920
- {
4921
- "name": "show-error-message",
4922
- "default": "`true`",
4923
- "description": "是否在校验不通过时在输入框下方展示错误提示",
4924
- "options": [],
4925
- "value": {
4926
- "type": "boolean",
4927
- "kind": "expression"
4928
- }
4929
- },
4930
- {
4931
- "name": "submit-on-enter",
4932
- "default": "`true`",
4933
- "description": "是否在按下回车键时提交表单",
4934
- "options": [],
4935
- "value": {
4936
- "type": "boolean",
4937
- "kind": "expression"
4938
- }
4939
- }
4940
- ]
4941
- },
4942
4795
  {
4943
4796
  "name": "van-grid",
4944
4797
  "slots": [],
@@ -5234,50 +5087,38 @@
5234
5087
  ]
5235
5088
  },
5236
5089
  {
5237
- "name": "van-image",
5090
+ "name": "van-form",
5238
5091
  "slots": [
5239
5092
  {
5240
5093
  "name": "default",
5241
- "description": "自定义图片下方的内容"
5242
- },
5243
- {
5244
- "name": "loading",
5245
- "description": "自定义加载中的提示内容"
5246
- },
5247
- {
5248
- "name": "error",
5249
- "description": "自定义加载失败时的提示内容"
5094
+ "description": "表单内容"
5250
5095
  }
5251
5096
  ],
5252
5097
  "events": [
5253
5098
  {
5254
- "name": "click",
5255
- "description": "点击图片时触发"
5256
- },
5257
- {
5258
- "name": "load",
5259
- "description": "图片加载完毕时触发"
5099
+ "name": "submit",
5100
+ "description": "提交表单且验证通过后触发"
5260
5101
  },
5261
5102
  {
5262
- "name": "error",
5263
- "description": "图片加载失败时触发"
5103
+ "name": "failed",
5104
+ "description": "提交表单且验证不通过后触发"
5264
5105
  }
5265
5106
  ],
5266
5107
  "attributes": [
5267
5108
  {
5268
- "name": "src",
5269
- "default": "-",
5270
- "description": "图片链接",
5109
+ "name": "label-width",
5110
+ "default": "`6.2em`",
5111
+ "description": "表单项 label 宽度,默认单位为`px`",
5271
5112
  "options": [],
5272
5113
  "value": {
5273
- "type": "string",
5114
+ "type": "number | string",
5274
5115
  "kind": "expression"
5275
5116
  }
5276
5117
  },
5277
5118
  {
5278
- "name": "fit",
5279
- "default": "`fill`",
5280
- "description": "图片填充模式",
5119
+ "name": "label-align",
5120
+ "default": "`left`",
5121
+ "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
5281
5122
  "options": [],
5282
5123
  "value": {
5283
5124
  "type": "string",
@@ -5285,9 +5126,9 @@
5285
5126
  }
5286
5127
  },
5287
5128
  {
5288
- "name": "alt",
5289
- "default": "-",
5290
- "description": "替代文本",
5129
+ "name": "input-align",
5130
+ "default": "`left`",
5131
+ "description": "输入框对齐方式,可选值为 `center` `right`",
5291
5132
  "options": [],
5292
5133
  "value": {
5293
5134
  "type": "string",
@@ -5295,39 +5136,29 @@
5295
5136
  }
5296
5137
  },
5297
5138
  {
5298
- "name": "width",
5299
- "default": "-",
5300
- "description": "宽度,默认单位为 `px`",
5301
- "options": [],
5302
- "value": {
5303
- "type": "number | string",
5304
- "kind": "expression"
5305
- }
5306
- },
5307
- {
5308
- "name": "height",
5309
- "default": "-",
5310
- "description": "高度,默认单位为 `px`",
5139
+ "name": "error-message-align",
5140
+ "default": "`left`",
5141
+ "description": "错误提示文案对齐方式,可选值为 `center` `right`",
5311
5142
  "options": [],
5312
5143
  "value": {
5313
- "type": "number | string",
5144
+ "type": "string",
5314
5145
  "kind": "expression"
5315
5146
  }
5316
5147
  },
5317
5148
  {
5318
- "name": "radius",
5319
- "default": "`0`",
5320
- "description": "圆角大小,默认单位为 `px`",
5149
+ "name": "validate-trigger",
5150
+ "default": "`onBlur`",
5151
+ "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
5321
5152
  "options": [],
5322
5153
  "value": {
5323
- "type": "number | string",
5154
+ "type": "string",
5324
5155
  "kind": "expression"
5325
5156
  }
5326
5157
  },
5327
5158
  {
5328
- "name": "round",
5159
+ "name": "colon",
5329
5160
  "default": "`false`",
5330
- "description": "是否显示为圆形",
5161
+ "description": "是否在 label 后面添加冒号",
5331
5162
  "options": [],
5332
5163
  "value": {
5333
5164
  "type": "boolean",
@@ -5335,9 +5166,9 @@
5335
5166
  }
5336
5167
  },
5337
5168
  {
5338
- "name": "lazy-load",
5169
+ "name": "disabled",
5339
5170
  "default": "`false`",
5340
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
5171
+ "description": "是否禁用表单中的所有输入框",
5341
5172
  "options": [],
5342
5173
  "value": {
5343
5174
  "type": "boolean",
@@ -5345,9 +5176,9 @@
5345
5176
  }
5346
5177
  },
5347
5178
  {
5348
- "name": "show-error",
5349
- "default": "`true`",
5350
- "description": "是否展示图片加载失败提示",
5179
+ "name": "readonly",
5180
+ "default": "`false`",
5181
+ "description": "是否将表单中的所有输入框设置为只读状态",
5351
5182
  "options": [],
5352
5183
  "value": {
5353
5184
  "type": "boolean",
@@ -5355,9 +5186,9 @@
5355
5186
  }
5356
5187
  },
5357
5188
  {
5358
- "name": "show-loading",
5359
- "default": "`true`",
5360
- "description": "是否展示图片加载中提示",
5189
+ "name": "validate-first",
5190
+ "default": "`false`",
5191
+ "description": "是否在某一项校验不通过时停止校验",
5361
5192
  "options": [],
5362
5193
  "value": {
5363
5194
  "type": "boolean",
@@ -5365,42 +5196,42 @@
5365
5196
  }
5366
5197
  },
5367
5198
  {
5368
- "name": "error-icon",
5369
- "default": "`photo-fail`",
5370
- "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接",
5199
+ "name": "scroll-to-error",
5200
+ "default": "`false`",
5201
+ "description": "是否在提交表单且校验不通过时滚动至错误的表单项",
5371
5202
  "options": [],
5372
5203
  "value": {
5373
- "type": "string",
5204
+ "type": "boolean",
5374
5205
  "kind": "expression"
5375
5206
  }
5376
5207
  },
5377
5208
  {
5378
- "name": "loading-icon",
5379
- "default": "`photo`",
5380
- "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接",
5209
+ "name": "show-error",
5210
+ "default": "`false`",
5211
+ "description": "是否在校验不通过时标红输入框",
5381
5212
  "options": [],
5382
5213
  "value": {
5383
- "type": "string",
5214
+ "type": "boolean",
5384
5215
  "kind": "expression"
5385
5216
  }
5386
5217
  },
5387
5218
  {
5388
- "name": "icon-size",
5389
- "default": "`32px`",
5390
- "description": "加载图标和失败图标的大小",
5219
+ "name": "show-error-message",
5220
+ "default": "`true`",
5221
+ "description": "是否在校验不通过时在输入框下方展示错误提示",
5391
5222
  "options": [],
5392
5223
  "value": {
5393
- "type": "number | string",
5224
+ "type": "boolean",
5394
5225
  "kind": "expression"
5395
5226
  }
5396
5227
  },
5397
5228
  {
5398
- "name": "icon-prefix",
5399
- "default": "`van-icon`",
5400
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
5229
+ "name": "submit-on-enter",
5230
+ "default": "`true`",
5231
+ "description": "是否在按下回车键时提交表单",
5401
5232
  "options": [],
5402
5233
  "value": {
5403
- "type": "string",
5234
+ "type": "boolean",
5404
5235
  "kind": "expression"
5405
5236
  }
5406
5237
  }
@@ -5550,29 +5381,230 @@
5550
5381
  }
5551
5382
  },
5552
5383
  {
5553
- "name": "min-zoom",
5554
- "default": "`1/3`",
5555
- "description": "手势缩放时,最小缩放比例",
5384
+ "name": "min-zoom",
5385
+ "default": "`1/3`",
5386
+ "description": "手势缩放时,最小缩放比例",
5387
+ "options": [],
5388
+ "value": {
5389
+ "type": "number | string",
5390
+ "kind": "expression"
5391
+ }
5392
+ },
5393
+ {
5394
+ "name": "closeable",
5395
+ "default": "`false`",
5396
+ "description": "是否显示关闭图标",
5397
+ "options": [],
5398
+ "value": {
5399
+ "type": "boolean",
5400
+ "kind": "expression"
5401
+ }
5402
+ },
5403
+ {
5404
+ "name": "close-icon",
5405
+ "default": "`clear`",
5406
+ "description": "关闭图标名称或图片链接",
5407
+ "options": [],
5408
+ "value": {
5409
+ "type": "string",
5410
+ "kind": "expression"
5411
+ }
5412
+ },
5413
+ {
5414
+ "name": "close-icon-position",
5415
+ "default": "`top-right`",
5416
+ "description": "关闭图标位置,可选值为 `top-left`<br>`bottom-left` `bottom-right`",
5417
+ "options": [],
5418
+ "value": {
5419
+ "type": "string",
5420
+ "kind": "expression"
5421
+ }
5422
+ },
5423
+ {
5424
+ "name": "transition",
5425
+ "default": "`van-fade`",
5426
+ "description": "动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性",
5427
+ "options": [],
5428
+ "value": {
5429
+ "type": "string",
5430
+ "kind": "expression"
5431
+ }
5432
+ },
5433
+ {
5434
+ "name": "overlay-style",
5435
+ "default": "-",
5436
+ "description": "自定义遮罩层样式",
5437
+ "options": [],
5438
+ "value": {
5439
+ "type": "object",
5440
+ "kind": "expression"
5441
+ }
5442
+ },
5443
+ {
5444
+ "name": "teleport",
5445
+ "default": "-",
5446
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
5447
+ "options": [],
5448
+ "value": {
5449
+ "type": "string | Element",
5450
+ "kind": "expression"
5451
+ }
5452
+ }
5453
+ ]
5454
+ },
5455
+ {
5456
+ "name": "van-index-bar",
5457
+ "slots": [],
5458
+ "events": [
5459
+ {
5460
+ "name": "select",
5461
+ "description": "点击索引栏的字符时触发"
5462
+ },
5463
+ {
5464
+ "name": "change",
5465
+ "description": "当前高亮的索引字符变化时触发"
5466
+ }
5467
+ ],
5468
+ "attributes": [
5469
+ {
5470
+ "name": "index-list",
5471
+ "default": "`A-Z`",
5472
+ "description": "索引字符列表",
5473
+ "options": [],
5474
+ "value": {
5475
+ "type": "string[] | number[]",
5476
+ "kind": "expression"
5477
+ }
5478
+ },
5479
+ {
5480
+ "name": "z-index",
5481
+ "default": "`1`",
5482
+ "description": "z-index 层级",
5483
+ "options": [],
5484
+ "value": {
5485
+ "type": "number | string",
5486
+ "kind": "expression"
5487
+ }
5488
+ },
5489
+ {
5490
+ "name": "sticky",
5491
+ "default": "`true`",
5492
+ "description": "是否开启锚点自动吸顶",
5493
+ "options": [],
5494
+ "value": {
5495
+ "type": "boolean",
5496
+ "kind": "expression"
5497
+ }
5498
+ },
5499
+ {
5500
+ "name": "sticky-offset-top",
5501
+ "default": "`0`",
5502
+ "description": "锚点自动吸顶时与顶部的距离",
5503
+ "options": [],
5504
+ "value": {
5505
+ "type": "number",
5506
+ "kind": "expression"
5507
+ }
5508
+ },
5509
+ {
5510
+ "name": "highlight-color",
5511
+ "default": "`#ee0a24`",
5512
+ "description": "索引字符高亮颜色",
5513
+ "options": [],
5514
+ "value": {
5515
+ "type": "string",
5516
+ "kind": "expression"
5517
+ }
5518
+ },
5519
+ {
5520
+ "name": "teleport",
5521
+ "default": "-",
5522
+ "description": "指定索引栏挂载的节点",
5523
+ "options": [],
5524
+ "value": {
5525
+ "type": "string | Element",
5526
+ "kind": "expression"
5527
+ }
5528
+ }
5529
+ ]
5530
+ },
5531
+ {
5532
+ "name": "van-index-anchor",
5533
+ "slots": [
5534
+ {
5535
+ "name": "default",
5536
+ "description": "锚点位置显示内容,默认为索引字符"
5537
+ }
5538
+ ],
5539
+ "events": [],
5540
+ "attributes": [
5541
+ {
5542
+ "name": "index",
5543
+ "default": "-",
5544
+ "description": "索引字符",
5545
+ "options": [],
5546
+ "value": {
5547
+ "type": "number | string",
5548
+ "kind": "expression"
5549
+ }
5550
+ }
5551
+ ]
5552
+ },
5553
+ {
5554
+ "name": "van-image",
5555
+ "slots": [
5556
+ {
5557
+ "name": "default",
5558
+ "description": "自定义图片下方的内容"
5559
+ },
5560
+ {
5561
+ "name": "loading",
5562
+ "description": "自定义加载中的提示内容"
5563
+ },
5564
+ {
5565
+ "name": "error",
5566
+ "description": "自定义加载失败时的提示内容"
5567
+ }
5568
+ ],
5569
+ "events": [
5570
+ {
5571
+ "name": "click",
5572
+ "description": "点击图片时触发"
5573
+ },
5574
+ {
5575
+ "name": "load",
5576
+ "description": "图片加载完毕时触发"
5577
+ },
5578
+ {
5579
+ "name": "error",
5580
+ "description": "图片加载失败时触发"
5581
+ }
5582
+ ],
5583
+ "attributes": [
5584
+ {
5585
+ "name": "src",
5586
+ "default": "-",
5587
+ "description": "图片链接",
5556
5588
  "options": [],
5557
5589
  "value": {
5558
- "type": "number | string",
5590
+ "type": "string",
5559
5591
  "kind": "expression"
5560
5592
  }
5561
5593
  },
5562
5594
  {
5563
- "name": "closeable",
5564
- "default": "`false`",
5565
- "description": "是否显示关闭图标",
5595
+ "name": "fit",
5596
+ "default": "`fill`",
5597
+ "description": "图片填充模式",
5566
5598
  "options": [],
5567
5599
  "value": {
5568
- "type": "boolean",
5600
+ "type": "string",
5569
5601
  "kind": "expression"
5570
5602
  }
5571
5603
  },
5572
5604
  {
5573
- "name": "close-icon",
5574
- "default": "`clear`",
5575
- "description": "关闭图标名称或图片链接",
5605
+ "name": "alt",
5606
+ "default": "-",
5607
+ "description": "替代文本",
5576
5608
  "options": [],
5577
5609
  "value": {
5578
5610
  "type": "string",
@@ -5580,85 +5612,69 @@
5580
5612
  }
5581
5613
  },
5582
5614
  {
5583
- "name": "close-icon-position",
5584
- "default": "`top-right`",
5585
- "description": "关闭图标位置,可选值为 `top-left`<br>`bottom-left` `bottom-right`",
5615
+ "name": "width",
5616
+ "default": "-",
5617
+ "description": "宽度,默认单位为 `px`",
5586
5618
  "options": [],
5587
5619
  "value": {
5588
- "type": "string",
5620
+ "type": "number | string",
5589
5621
  "kind": "expression"
5590
5622
  }
5591
5623
  },
5592
5624
  {
5593
- "name": "transition",
5594
- "default": "`van-fade`",
5595
- "description": "动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性",
5625
+ "name": "height",
5626
+ "default": "-",
5627
+ "description": "高度,默认单位为 `px`",
5596
5628
  "options": [],
5597
5629
  "value": {
5598
- "type": "string",
5630
+ "type": "number | string",
5599
5631
  "kind": "expression"
5600
5632
  }
5601
5633
  },
5602
5634
  {
5603
- "name": "overlay-style",
5604
- "default": "-",
5605
- "description": "自定义遮罩层样式",
5635
+ "name": "radius",
5636
+ "default": "`0`",
5637
+ "description": "圆角大小,默认单位为 `px`",
5606
5638
  "options": [],
5607
5639
  "value": {
5608
- "type": "object",
5640
+ "type": "number | string",
5609
5641
  "kind": "expression"
5610
5642
  }
5611
5643
  },
5612
5644
  {
5613
- "name": "teleport",
5614
- "default": "-",
5615
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
5645
+ "name": "round",
5646
+ "default": "`false`",
5647
+ "description": "是否显示为圆形",
5616
5648
  "options": [],
5617
5649
  "value": {
5618
- "type": "string | Element",
5650
+ "type": "boolean",
5619
5651
  "kind": "expression"
5620
5652
  }
5621
- }
5622
- ]
5623
- },
5624
- {
5625
- "name": "van-index-bar",
5626
- "slots": [],
5627
- "events": [
5628
- {
5629
- "name": "select",
5630
- "description": "点击索引栏的字符时触发"
5631
5653
  },
5632
5654
  {
5633
- "name": "change",
5634
- "description": "当前高亮的索引字符变化时触发"
5635
- }
5636
- ],
5637
- "attributes": [
5638
- {
5639
- "name": "index-list",
5640
- "default": "`A-Z`",
5641
- "description": "索引字符列表",
5655
+ "name": "lazy-load",
5656
+ "default": "`false`",
5657
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
5642
5658
  "options": [],
5643
5659
  "value": {
5644
- "type": "string[] | number[]",
5660
+ "type": "boolean",
5645
5661
  "kind": "expression"
5646
5662
  }
5647
5663
  },
5648
5664
  {
5649
- "name": "z-index",
5650
- "default": "`1`",
5651
- "description": "z-index 层级",
5665
+ "name": "show-error",
5666
+ "default": "`true`",
5667
+ "description": "是否展示图片加载失败提示",
5652
5668
  "options": [],
5653
5669
  "value": {
5654
- "type": "number | string",
5670
+ "type": "boolean",
5655
5671
  "kind": "expression"
5656
5672
  }
5657
5673
  },
5658
5674
  {
5659
- "name": "sticky",
5675
+ "name": "show-loading",
5660
5676
  "default": "`true`",
5661
- "description": "是否开启锚点自动吸顶",
5677
+ "description": "是否展示图片加载中提示",
5662
5678
  "options": [],
5663
5679
  "value": {
5664
5680
  "type": "boolean",
@@ -5666,19 +5682,19 @@
5666
5682
  }
5667
5683
  },
5668
5684
  {
5669
- "name": "sticky-offset-top",
5670
- "default": "`0`",
5671
- "description": "锚点自动吸顶时与顶部的距离",
5685
+ "name": "error-icon",
5686
+ "default": "`photo-fail`",
5687
+ "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接",
5672
5688
  "options": [],
5673
5689
  "value": {
5674
- "type": "number",
5690
+ "type": "string",
5675
5691
  "kind": "expression"
5676
5692
  }
5677
5693
  },
5678
5694
  {
5679
- "name": "highlight-color",
5680
- "default": "`#ee0a24`",
5681
- "description": "索引字符高亮颜色",
5695
+ "name": "loading-icon",
5696
+ "default": "`photo`",
5697
+ "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接",
5682
5698
  "options": [],
5683
5699
  "value": {
5684
5700
  "type": "string",
@@ -5686,34 +5702,22 @@
5686
5702
  }
5687
5703
  },
5688
5704
  {
5689
- "name": "teleport",
5690
- "default": "-",
5691
- "description": "指定索引栏挂载的节点",
5705
+ "name": "icon-size",
5706
+ "default": "`32px`",
5707
+ "description": "加载图标和失败图标的大小",
5692
5708
  "options": [],
5693
5709
  "value": {
5694
- "type": "string | Element",
5710
+ "type": "number | string",
5695
5711
  "kind": "expression"
5696
5712
  }
5697
- }
5698
- ]
5699
- },
5700
- {
5701
- "name": "van-index-anchor",
5702
- "slots": [
5703
- {
5704
- "name": "default",
5705
- "description": "锚点位置显示内容,默认为索引字符"
5706
- }
5707
- ],
5708
- "events": [],
5709
- "attributes": [
5713
+ },
5710
5714
  {
5711
- "name": "index",
5712
- "default": "-",
5713
- "description": "索引字符",
5715
+ "name": "icon-prefix",
5716
+ "default": "`van-icon`",
5717
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
5714
5718
  "options": [],
5715
5719
  "value": {
5716
- "type": "number | string",
5720
+ "type": "string",
5717
5721
  "kind": "expression"
5718
5722
  }
5719
5723
  }
@@ -5839,19 +5843,36 @@
5839
5843
  ]
5840
5844
  },
5841
5845
  {
5842
- "name": "van-loading",
5846
+ "name": "van-nav-bar",
5843
5847
  "slots": [
5844
5848
  {
5845
- "name": "default",
5846
- "description": "加载文案"
5849
+ "name": "title",
5850
+ "description": "自定义标题"
5851
+ },
5852
+ {
5853
+ "name": "left",
5854
+ "description": "自定义左侧区域内容"
5855
+ },
5856
+ {
5857
+ "name": "right",
5858
+ "description": "自定义右侧区域内容"
5859
+ }
5860
+ ],
5861
+ "events": [
5862
+ {
5863
+ "name": "click-left",
5864
+ "description": "点击左侧按钮时触发"
5865
+ },
5866
+ {
5867
+ "name": "click-right",
5868
+ "description": "点击右侧按钮时触发"
5847
5869
  }
5848
5870
  ],
5849
- "events": [],
5850
5871
  "attributes": [
5851
5872
  {
5852
- "name": "color",
5853
- "default": "`#c9c9c9`",
5854
- "description": "颜色",
5873
+ "name": "title",
5874
+ "default": "`''`",
5875
+ "description": "标题",
5855
5876
  "options": [],
5856
5877
  "value": {
5857
5878
  "type": "string",
@@ -5859,9 +5880,9 @@
5859
5880
  }
5860
5881
  },
5861
5882
  {
5862
- "name": "type",
5863
- "default": "`circular`",
5864
- "description": "类型,可选值为 `spinner`",
5883
+ "name": "left-text",
5884
+ "default": "`''`",
5885
+ "description": "左侧文案",
5865
5886
  "options": [],
5866
5887
  "value": {
5867
5888
  "type": "string",
@@ -5869,148 +5890,121 @@
5869
5890
  }
5870
5891
  },
5871
5892
  {
5872
- "name": "size",
5873
- "default": "`30px`",
5874
- "description": "加载图标大小,默认单位为 `px`",
5893
+ "name": "right-text",
5894
+ "default": "`''`",
5895
+ "description": "右侧文案",
5875
5896
  "options": [],
5876
5897
  "value": {
5877
- "type": "number | string",
5898
+ "type": "string",
5878
5899
  "kind": "expression"
5879
5900
  }
5880
5901
  },
5881
5902
  {
5882
- "name": "text-size",
5883
- "default": "`14px`",
5884
- "description": "文字大小,默认单位为 `px`",
5903
+ "name": "left-arrow",
5904
+ "default": "`false`",
5905
+ "description": "是否显示左侧箭头",
5885
5906
  "options": [],
5886
5907
  "value": {
5887
- "type": "number | string",
5908
+ "type": "boolean",
5888
5909
  "kind": "expression"
5889
5910
  }
5890
5911
  },
5891
5912
  {
5892
- "name": "text-color",
5893
- "default": "`#c9c9c9`",
5894
- "description": "文字颜色",
5913
+ "name": "border",
5914
+ "default": "`true`",
5915
+ "description": "是否显示下边框",
5895
5916
  "options": [],
5896
5917
  "value": {
5897
- "type": "string",
5918
+ "type": "boolean",
5898
5919
  "kind": "expression"
5899
5920
  }
5900
5921
  },
5901
5922
  {
5902
- "name": "vertical",
5923
+ "name": "fixed",
5903
5924
  "default": "`false`",
5904
- "description": "是否垂直排列图标和文字内容",
5925
+ "description": "是否固定在顶部",
5905
5926
  "options": [],
5906
5927
  "value": {
5907
5928
  "type": "boolean",
5908
5929
  "kind": "expression"
5909
5930
  }
5910
- }
5911
- ]
5912
- },
5913
- {
5914
- "name": "van-nav-bar",
5915
- "slots": [
5916
- {
5917
- "name": "title",
5918
- "description": "自定义标题"
5919
- },
5920
- {
5921
- "name": "left",
5922
- "description": "自定义左侧区域内容"
5923
- },
5924
- {
5925
- "name": "right",
5926
- "description": "自定义右侧区域内容"
5927
- }
5928
- ],
5929
- "events": [
5930
- {
5931
- "name": "click-left",
5932
- "description": "点击左侧按钮时触发"
5933
- },
5934
- {
5935
- "name": "click-right",
5936
- "description": "点击右侧按钮时触发"
5937
- }
5938
- ],
5939
- "attributes": [
5940
- {
5941
- "name": "title",
5942
- "default": "`''`",
5943
- "description": "标题",
5944
- "options": [],
5945
- "value": {
5946
- "type": "string",
5947
- "kind": "expression"
5948
- }
5949
5931
  },
5950
5932
  {
5951
- "name": "left-text",
5952
- "default": "`''`",
5953
- "description": "左侧文案",
5933
+ "name": "placeholder",
5934
+ "default": "`false`",
5935
+ "description": "固定在顶部时,是否在标签位置生成一个等高的占位元素",
5954
5936
  "options": [],
5955
5937
  "value": {
5956
- "type": "string",
5938
+ "type": "boolean",
5957
5939
  "kind": "expression"
5958
5940
  }
5959
5941
  },
5960
5942
  {
5961
- "name": "right-text",
5962
- "default": "`''`",
5963
- "description": "右侧文案",
5943
+ "name": "z-index",
5944
+ "default": "`1`",
5945
+ "description": "导航栏 z-index",
5964
5946
  "options": [],
5965
5947
  "value": {
5966
- "type": "string",
5948
+ "type": "number | string",
5967
5949
  "kind": "expression"
5968
5950
  }
5969
5951
  },
5970
5952
  {
5971
- "name": "left-arrow",
5953
+ "name": "safe-area-inset-top",
5972
5954
  "default": "`false`",
5973
- "description": "是否显示左侧箭头",
5955
+ "description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
5974
5956
  "options": [],
5975
5957
  "value": {
5976
5958
  "type": "boolean",
5977
5959
  "kind": "expression"
5978
5960
  }
5979
- },
5961
+ }
5962
+ ]
5963
+ },
5964
+ {
5965
+ "name": "van-loading",
5966
+ "slots": [
5980
5967
  {
5981
- "name": "border",
5982
- "default": "`true`",
5983
- "description": "是否显示下边框",
5968
+ "name": "default",
5969
+ "description": "加载文案"
5970
+ }
5971
+ ],
5972
+ "events": [],
5973
+ "attributes": [
5974
+ {
5975
+ "name": "color",
5976
+ "default": "`#c9c9c9`",
5977
+ "description": "颜色",
5984
5978
  "options": [],
5985
5979
  "value": {
5986
- "type": "boolean",
5980
+ "type": "string",
5987
5981
  "kind": "expression"
5988
5982
  }
5989
5983
  },
5990
5984
  {
5991
- "name": "fixed",
5992
- "default": "`false`",
5993
- "description": "是否固定在顶部",
5985
+ "name": "type",
5986
+ "default": "`circular`",
5987
+ "description": "类型,可选值为 `spinner`",
5994
5988
  "options": [],
5995
5989
  "value": {
5996
- "type": "boolean",
5990
+ "type": "string",
5997
5991
  "kind": "expression"
5998
5992
  }
5999
5993
  },
6000
5994
  {
6001
- "name": "placeholder",
6002
- "default": "`false`",
6003
- "description": "固定在顶部时,是否在标签位置生成一个等高的占位元素",
5995
+ "name": "size",
5996
+ "default": "`30px`",
5997
+ "description": "加载图标大小,默认单位为 `px`",
6004
5998
  "options": [],
6005
5999
  "value": {
6006
- "type": "boolean",
6000
+ "type": "number | string",
6007
6001
  "kind": "expression"
6008
6002
  }
6009
6003
  },
6010
6004
  {
6011
- "name": "z-index",
6012
- "default": "`1`",
6013
- "description": "导航栏 z-index",
6005
+ "name": "text-size",
6006
+ "default": "`14px`",
6007
+ "description": "文字大小,默认单位为 `px`",
6014
6008
  "options": [],
6015
6009
  "value": {
6016
6010
  "type": "number | string",
@@ -6018,9 +6012,19 @@
6018
6012
  }
6019
6013
  },
6020
6014
  {
6021
- "name": "safe-area-inset-top",
6015
+ "name": "text-color",
6016
+ "default": "`#c9c9c9`",
6017
+ "description": "文字颜色",
6018
+ "options": [],
6019
+ "value": {
6020
+ "type": "string",
6021
+ "kind": "expression"
6022
+ }
6023
+ },
6024
+ {
6025
+ "name": "vertical",
6022
6026
  "default": "`false`",
6023
- "description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
6027
+ "description": "是否垂直排列图标和文字内容",
6024
6028
  "options": [],
6025
6029
  "value": {
6026
6030
  "type": "boolean",
@@ -6082,7 +6086,7 @@
6082
6086
  },
6083
6087
  {
6084
6088
  "name": "color",
6085
- "default": "`#f60`",
6089
+ "default": "`#ed6a0c`",
6086
6090
  "description": "通知文本颜色",
6087
6091
  "options": [],
6088
6092
  "value": {
@@ -6092,7 +6096,7 @@
6092
6096
  },
6093
6097
  {
6094
6098
  "name": "background",
6095
- "default": "`#fff7cc`",
6099
+ "default": "`#fffbe8`",
6096
6100
  "description": "滚动条背景",
6097
6101
  "options": [],
6098
6102
  "value": {
@@ -9315,6 +9319,99 @@
9315
9319
  }
9316
9320
  ]
9317
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
+ },
9318
9415
  {
9319
9416
  "name": "van-swipe",
9320
9417
  "slots": [
@@ -9467,99 +9564,6 @@
9467
9564
  ],
9468
9565
  "attributes": []
9469
9566
  },
9470
- {
9471
- "name": "van-swipe-cell",
9472
- "slots": [
9473
- {
9474
- "name": "default",
9475
- "description": "默认显示的内容"
9476
- },
9477
- {
9478
- "name": "left",
9479
- "description": "左侧滑动区域的内容"
9480
- },
9481
- {
9482
- "name": "right",
9483
- "description": "右侧滑动区域的内容"
9484
- }
9485
- ],
9486
- "events": [
9487
- {
9488
- "name": "click",
9489
- "description": "点击时触发"
9490
- },
9491
- {
9492
- "name": "open",
9493
- "description": "打开时触发"
9494
- },
9495
- {
9496
- "name": "close",
9497
- "description": "关闭时触发"
9498
- }
9499
- ],
9500
- "attributes": [
9501
- {
9502
- "name": "name",
9503
- "default": "`''`",
9504
- "description": "标识符,可以在事件参数中获取到",
9505
- "options": [],
9506
- "value": {
9507
- "type": "number | string",
9508
- "kind": "expression"
9509
- }
9510
- },
9511
- {
9512
- "name": "left-width",
9513
- "default": "`auto`",
9514
- "description": "指定左侧滑动区域宽度,单位为 `px`",
9515
- "options": [],
9516
- "value": {
9517
- "type": "number | string",
9518
- "kind": "expression"
9519
- }
9520
- },
9521
- {
9522
- "name": "right-width",
9523
- "default": "`auto`",
9524
- "description": "指定右侧滑动区域宽度,单位为 `px`",
9525
- "options": [],
9526
- "value": {
9527
- "type": "number | string",
9528
- "kind": "expression"
9529
- }
9530
- },
9531
- {
9532
- "name": "before-close",
9533
- "default": "-",
9534
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
9535
- "options": [],
9536
- "value": {
9537
- "type": "(args) => boolean | Promise\\<boolean\\>",
9538
- "kind": "expression"
9539
- }
9540
- },
9541
- {
9542
- "name": "disabled",
9543
- "default": "`false`",
9544
- "description": "是否禁用滑动",
9545
- "options": [],
9546
- "value": {
9547
- "type": "boolean",
9548
- "kind": "expression"
9549
- }
9550
- },
9551
- {
9552
- "name": "stop-propagation",
9553
- "default": "`false`",
9554
- "description": "是否阻止滑动事件冒泡",
9555
- "options": [],
9556
- "value": {
9557
- "type": "boolean",
9558
- "kind": "expression"
9559
- }
9560
- }
9561
- ]
9562
- },
9563
9567
  {
9564
9568
  "name": "van-switch",
9565
9569
  "slots": [],