vant 2.13.6 → 2.13.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,10 +2,122 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "2.13.2",
5
+ "version": "2.13.7",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
+ {
10
+ "name": "van-address-list",
11
+ "slots": [
12
+ {
13
+ "name": "default",
14
+ "description": "在列表下方插入内容"
15
+ },
16
+ {
17
+ "name": "top",
18
+ "description": "在顶部插入内容"
19
+ },
20
+ {
21
+ "name": "item-bottom",
22
+ "description": "在列表项底部插入内容"
23
+ },
24
+ {
25
+ "name": "tag",
26
+ "description": "列表项标签内容自定义"
27
+ }
28
+ ],
29
+ "events": [
30
+ {
31
+ "name": "add",
32
+ "description": "点击新增按钮时触发"
33
+ },
34
+ {
35
+ "name": "edit",
36
+ "description": "点击编辑按钮时触发"
37
+ },
38
+ {
39
+ "name": "select",
40
+ "description": "切换选中的地址时触发"
41
+ },
42
+ {
43
+ "name": "edit-disabled",
44
+ "description": "编辑不可配送的地址时触发"
45
+ },
46
+ {
47
+ "name": "select-disabled",
48
+ "description": "选中不可配送的地址时触发"
49
+ },
50
+ {
51
+ "name": "click-item",
52
+ "description": "点击任意地址时触发"
53
+ }
54
+ ],
55
+ "attributes": [
56
+ {
57
+ "name": "v-model",
58
+ "default": "-",
59
+ "description": "当前选中地址的 id",
60
+ "value": {
61
+ "type": "string",
62
+ "kind": "expression"
63
+ }
64
+ },
65
+ {
66
+ "name": "list",
67
+ "default": "`[]`",
68
+ "description": "地址列表",
69
+ "value": {
70
+ "type": "Address[]",
71
+ "kind": "expression"
72
+ }
73
+ },
74
+ {
75
+ "name": "disabled-list",
76
+ "default": "`[]`",
77
+ "description": "不可配送地址列表",
78
+ "value": {
79
+ "type": "Address[]",
80
+ "kind": "expression"
81
+ }
82
+ },
83
+ {
84
+ "name": "disabled-text",
85
+ "default": "-",
86
+ "description": "不可配送提示文案",
87
+ "value": {
88
+ "type": "string",
89
+ "kind": "expression"
90
+ }
91
+ },
92
+ {
93
+ "name": "switchable",
94
+ "default": "`true`",
95
+ "description": "是否允许切换地址",
96
+ "value": {
97
+ "type": "boolean",
98
+ "kind": "expression"
99
+ }
100
+ },
101
+ {
102
+ "name": "add-button-text",
103
+ "default": "`新增地址`",
104
+ "description": "底部按钮文字",
105
+ "value": {
106
+ "type": "string",
107
+ "kind": "expression"
108
+ }
109
+ },
110
+ {
111
+ "name": "default-tag-text",
112
+ "default": "-",
113
+ "description": "默认地址标签文字",
114
+ "value": {
115
+ "type": "string",
116
+ "kind": "expression"
117
+ }
118
+ }
119
+ ]
120
+ },
9
121
  {
10
122
  "name": "van-address-edit",
11
123
  "slots": [
@@ -254,112 +366,150 @@
254
366
  ]
255
367
  },
256
368
  {
257
- "name": "van-address-list",
369
+ "name": "van-area",
258
370
  "slots": [
259
371
  {
260
- "name": "default",
261
- "description": "在列表下方插入内容"
262
- },
263
- {
264
- "name": "top",
265
- "description": "在顶部插入内容"
372
+ "name": "title",
373
+ "description": "自定义标题内容"
266
374
  },
267
375
  {
268
- "name": "item-bottom",
269
- "description": "在列表项底部插入内容"
376
+ "name": "columns-top",
377
+ "description": "自定义选项上方内容"
270
378
  },
271
379
  {
272
- "name": "tag",
273
- "description": "列表项标签内容自定义"
380
+ "name": "columns-bottom",
381
+ "description": "自定义选项下方内容"
274
382
  }
275
383
  ],
276
384
  "events": [
277
385
  {
278
- "name": "add",
279
- "description": "点击新增按钮时触发"
386
+ "name": "confirm",
387
+ "description": "点击右上方完成按钮"
280
388
  },
281
389
  {
282
- "name": "edit",
283
- "description": "点击编辑按钮时触发"
390
+ "name": "cancel",
391
+ "description": "点击取消按钮时"
284
392
  },
285
393
  {
286
- "name": "select",
287
- "description": "切换选中的地址时触发"
288
- },
394
+ "name": "change",
395
+ "description": "选项改变时触发"
396
+ }
397
+ ],
398
+ "attributes": [
289
399
  {
290
- "name": "edit-disabled",
291
- "description": "编辑不可配送的地址时触发"
400
+ "name": "value",
401
+ "default": "-",
402
+ "description": "当前选中的省市区`code`",
403
+ "value": {
404
+ "type": "string",
405
+ "kind": "expression"
406
+ }
292
407
  },
293
408
  {
294
- "name": "select-disabled",
295
- "description": "选中不可配送的地址时触发"
409
+ "name": "title",
410
+ "default": "-",
411
+ "description": "顶部栏标题",
412
+ "value": {
413
+ "type": "string",
414
+ "kind": "expression"
415
+ }
296
416
  },
297
417
  {
298
- "name": "click-item",
299
- "description": "点击任意地址时触发"
300
- }
301
- ],
302
- "attributes": [
418
+ "name": "confirm-button-text",
419
+ "default": "`确认`",
420
+ "description": "确认按钮文字",
421
+ "value": {
422
+ "type": "string",
423
+ "kind": "expression"
424
+ }
425
+ },
303
426
  {
304
- "name": "v-model",
305
- "default": "-",
306
- "description": "当前选中地址的 id",
427
+ "name": "cancel-button-text",
428
+ "default": "`取消`",
429
+ "description": "取消按钮文字",
307
430
  "value": {
308
431
  "type": "string",
309
432
  "kind": "expression"
310
433
  }
311
434
  },
312
435
  {
313
- "name": "list",
314
- "default": "`[]`",
315
- "description": "地址列表",
436
+ "name": "area-list",
437
+ "default": "-",
438
+ "description": "省市区数据,格式见下方",
316
439
  "value": {
317
- "type": "Address[]",
440
+ "type": "object",
318
441
  "kind": "expression"
319
442
  }
320
443
  },
321
444
  {
322
- "name": "disabled-list",
445
+ "name": "columns-placeholder",
323
446
  "default": "`[]`",
324
- "description": "不可配送地址列表",
447
+ "description": "列占位提示文字",
325
448
  "value": {
326
- "type": "Address[]",
449
+ "type": "string[]",
327
450
  "kind": "expression"
328
451
  }
329
452
  },
330
453
  {
331
- "name": "disabled-text",
332
- "default": "-",
333
- "description": "不可配送提示文案",
454
+ "name": "loading",
455
+ "default": "`false`",
456
+ "description": "是否显示加载状态",
334
457
  "value": {
335
- "type": "string",
458
+ "type": "boolean",
336
459
  "kind": "expression"
337
460
  }
338
461
  },
339
462
  {
340
- "name": "switchable",
341
- "default": "`true`",
342
- "description": "是否允许切换地址",
463
+ "name": "readonly",
464
+ "default": "`false`",
465
+ "description": "是否为只读状态,只读状态下无法切换选项",
343
466
  "value": {
344
467
  "type": "boolean",
345
468
  "kind": "expression"
346
469
  }
347
470
  },
348
471
  {
349
- "name": "add-button-text",
350
- "default": "`新增地址`",
351
- "description": "底部按钮文字",
472
+ "name": "item-height",
473
+ "default": "`44`",
474
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
352
475
  "value": {
353
- "type": "string",
476
+ "type": "number | string",
354
477
  "kind": "expression"
355
478
  }
356
479
  },
357
480
  {
358
- "name": "default-tag-text",
481
+ "name": "columns-num",
482
+ "default": "`3`",
483
+ "description": "显示列数,3-省市区,2-省市,1-省",
484
+ "value": {
485
+ "type": "number | string",
486
+ "kind": "expression"
487
+ }
488
+ },
489
+ {
490
+ "name": "visible-item-count",
491
+ "default": "`6`",
492
+ "description": "可见的选项个数",
493
+ "value": {
494
+ "type": "number | string",
495
+ "kind": "expression"
496
+ }
497
+ },
498
+ {
499
+ "name": "swipe-duration",
500
+ "default": "`1000`",
501
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
502
+ "value": {
503
+ "type": "number | string",
504
+ "kind": "expression"
505
+ }
506
+ },
507
+ {
508
+ "name": "is-oversea-code",
359
509
  "default": "-",
360
- "description": "默认地址标签文字",
510
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
361
511
  "value": {
362
- "type": "string",
512
+ "type": "() => boolean",
363
513
  "kind": "expression"
364
514
  }
365
515
  }
@@ -564,157 +714,7 @@
564
714
  ]
565
715
  },
566
716
  {
567
- "name": "van-area",
568
- "slots": [
569
- {
570
- "name": "title",
571
- "description": "自定义标题内容"
572
- },
573
- {
574
- "name": "columns-top",
575
- "description": "自定义选项上方内容"
576
- },
577
- {
578
- "name": "columns-bottom",
579
- "description": "自定义选项下方内容"
580
- }
581
- ],
582
- "events": [
583
- {
584
- "name": "confirm",
585
- "description": "点击右上方完成按钮"
586
- },
587
- {
588
- "name": "cancel",
589
- "description": "点击取消按钮时"
590
- },
591
- {
592
- "name": "change",
593
- "description": "选项改变时触发"
594
- }
595
- ],
596
- "attributes": [
597
- {
598
- "name": "value",
599
- "default": "-",
600
- "description": "当前选中的省市区`code`",
601
- "value": {
602
- "type": "string",
603
- "kind": "expression"
604
- }
605
- },
606
- {
607
- "name": "title",
608
- "default": "-",
609
- "description": "顶部栏标题",
610
- "value": {
611
- "type": "string",
612
- "kind": "expression"
613
- }
614
- },
615
- {
616
- "name": "confirm-button-text",
617
- "default": "`确认`",
618
- "description": "确认按钮文字",
619
- "value": {
620
- "type": "string",
621
- "kind": "expression"
622
- }
623
- },
624
- {
625
- "name": "cancel-button-text",
626
- "default": "`取消`",
627
- "description": "取消按钮文字",
628
- "value": {
629
- "type": "string",
630
- "kind": "expression"
631
- }
632
- },
633
- {
634
- "name": "area-list",
635
- "default": "-",
636
- "description": "省市区数据,格式见下方",
637
- "value": {
638
- "type": "object",
639
- "kind": "expression"
640
- }
641
- },
642
- {
643
- "name": "columns-placeholder",
644
- "default": "`[]`",
645
- "description": "列占位提示文字",
646
- "value": {
647
- "type": "string[]",
648
- "kind": "expression"
649
- }
650
- },
651
- {
652
- "name": "loading",
653
- "default": "`false`",
654
- "description": "是否显示加载状态",
655
- "value": {
656
- "type": "boolean",
657
- "kind": "expression"
658
- }
659
- },
660
- {
661
- "name": "readonly",
662
- "default": "`false`",
663
- "description": "是否为只读状态,只读状态下无法切换选项",
664
- "value": {
665
- "type": "boolean",
666
- "kind": "expression"
667
- }
668
- },
669
- {
670
- "name": "item-height",
671
- "default": "`44`",
672
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
673
- "value": {
674
- "type": "number | string",
675
- "kind": "expression"
676
- }
677
- },
678
- {
679
- "name": "columns-num",
680
- "default": "`3`",
681
- "description": "显示列数,3-省市区,2-省市,1-省",
682
- "value": {
683
- "type": "number | string",
684
- "kind": "expression"
685
- }
686
- },
687
- {
688
- "name": "visible-item-count",
689
- "default": "`6`",
690
- "description": "可见的选项个数",
691
- "value": {
692
- "type": "number | string",
693
- "kind": "expression"
694
- }
695
- },
696
- {
697
- "name": "swipe-duration",
698
- "default": "`1000`",
699
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
700
- "value": {
701
- "type": "number | string",
702
- "kind": "expression"
703
- }
704
- },
705
- {
706
- "name": "is-oversea-code",
707
- "default": "-",
708
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
709
- "value": {
710
- "type": "() => boolean",
711
- "kind": "expression"
712
- }
713
- }
714
- ]
715
- },
716
- {
717
- "name": "van-badge",
717
+ "name": "van-badge",
718
718
  "slots": [
719
719
  {
720
720
  "name": "default",
@@ -1602,414 +1602,414 @@
1602
1602
  ]
1603
1603
  },
1604
1604
  {
1605
- "name": "van-checkbox",
1605
+ "name": "van-cell-group",
1606
1606
  "slots": [
1607
1607
  {
1608
1608
  "name": "default",
1609
- "description": "自定义文本"
1609
+ "description": "默认插槽"
1610
1610
  },
1611
1611
  {
1612
- "name": "icon",
1613
- "description": "自定义图标"
1612
+ "name": "title",
1613
+ "description": "自定义分组标题"
1614
1614
  }
1615
1615
  ],
1616
- "events": [
1616
+ "events": [],
1617
+ "attributes": [
1617
1618
  {
1618
- "name": "change",
1619
- "description": "当绑定值变化时触发的事件"
1619
+ "name": "title",
1620
+ "default": "`-`",
1621
+ "description": "分组标题",
1622
+ "value": {
1623
+ "type": "string",
1624
+ "kind": "expression"
1625
+ }
1626
+ },
1627
+ {
1628
+ "name": "border",
1629
+ "default": "`true`",
1630
+ "description": "是否显示外边框",
1631
+ "value": {
1632
+ "type": "boolean",
1633
+ "kind": "expression"
1634
+ }
1635
+ }
1636
+ ]
1637
+ },
1638
+ {
1639
+ "name": "van-cell",
1640
+ "slots": [
1641
+ {
1642
+ "name": "default",
1643
+ "description": "自定义右侧 value 的内容"
1644
+ },
1645
+ {
1646
+ "name": "title",
1647
+ "description": "自定义左侧 title 的内容"
1648
+ },
1649
+ {
1650
+ "name": "label",
1651
+ "description": "自定义标题下方 label 的内容"
1652
+ },
1653
+ {
1654
+ "name": "icon",
1655
+ "description": "自定义左侧图标"
1656
+ },
1657
+ {
1658
+ "name": "right-icon",
1659
+ "description": "自定义右侧按钮,默认为`arrow`"
1620
1660
  },
1661
+ {
1662
+ "name": "extra",
1663
+ "description": "自定义单元格最右侧的额外内容"
1664
+ }
1665
+ ],
1666
+ "events": [
1621
1667
  {
1622
1668
  "name": "click",
1623
- "description": "点击复选框时触发"
1669
+ "description": "点击单元格时触发"
1624
1670
  }
1625
1671
  ],
1626
1672
  "attributes": [
1627
1673
  {
1628
- "name": "v-model (value)",
1629
- "default": "`false`",
1630
- "description": "是否为选中状态",
1674
+ "name": "title",
1675
+ "default": "-",
1676
+ "description": "左侧标题",
1631
1677
  "value": {
1632
- "type": "boolean",
1678
+ "type": "number | string",
1633
1679
  "kind": "expression"
1634
1680
  }
1635
1681
  },
1636
1682
  {
1637
- "name": "name",
1683
+ "name": "value",
1638
1684
  "default": "-",
1639
- "description": "标识符",
1685
+ "description": "右侧内容",
1640
1686
  "value": {
1641
- "type": "any",
1687
+ "type": "number | string",
1642
1688
  "kind": "expression"
1643
1689
  }
1644
1690
  },
1645
1691
  {
1646
- "name": "shape",
1647
- "default": "`round`",
1648
- "description": "形状,可选值为 `square`",
1692
+ "name": "label",
1693
+ "default": "-",
1694
+ "description": "标题下方的描述信息",
1649
1695
  "value": {
1650
1696
  "type": "string",
1651
1697
  "kind": "expression"
1652
1698
  }
1653
1699
  },
1654
1700
  {
1655
- "name": "disabled",
1656
- "default": "`false`",
1657
- "description": "是否禁用复选框",
1701
+ "name": "size",
1702
+ "default": "-",
1703
+ "description": "单元格大小,可选值为 `large`",
1658
1704
  "value": {
1659
- "type": "boolean",
1705
+ "type": "string",
1660
1706
  "kind": "expression"
1661
1707
  }
1662
1708
  },
1663
1709
  {
1664
- "name": "label-disabled",
1665
- "default": "`false`",
1666
- "description": "是否禁用复选框文本点击",
1710
+ "name": "icon",
1711
+ "default": "-",
1712
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
1667
1713
  "value": {
1668
- "type": "boolean",
1714
+ "type": "string",
1669
1715
  "kind": "expression"
1670
1716
  }
1671
1717
  },
1672
1718
  {
1673
- "name": "label-position",
1674
- "default": "`right`",
1675
- "description": "文本位置,可选值为 `left`",
1719
+ "name": "icon-prefix",
1720
+ "default": "`van-icon`",
1721
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
1676
1722
  "value": {
1677
1723
  "type": "string",
1678
1724
  "kind": "expression"
1679
1725
  }
1680
1726
  },
1681
1727
  {
1682
- "name": "icon-size",
1683
- "default": "`20px`",
1684
- "description": "图标大小,默认单位为 `px`",
1685
- "value": {
1686
- "type": "number | string",
1728
+ "name": "url",
1729
+ "default": "-",
1730
+ "description": "点击后跳转的链接地址",
1731
+ "value": {
1732
+ "type": "string",
1687
1733
  "kind": "expression"
1688
1734
  }
1689
1735
  },
1690
1736
  {
1691
- "name": "checked-color",
1692
- "default": "`#1989fa`",
1693
- "description": "选中状态颜色",
1737
+ "name": "to",
1738
+ "default": "-",
1739
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1694
1740
  "value": {
1695
- "type": "string",
1741
+ "type": "string | object",
1696
1742
  "kind": "expression"
1697
1743
  }
1698
1744
  },
1699
1745
  {
1700
- "name": "bind-group",
1746
+ "name": "border",
1701
1747
  "default": "`true`",
1702
- "description": "是否与复选框组绑定",
1748
+ "description": "是否显示内边框",
1703
1749
  "value": {
1704
1750
  "type": "boolean",
1705
1751
  "kind": "expression"
1706
1752
  }
1707
- }
1708
- ]
1709
- },
1710
- {
1711
- "name": "van-checkbox-group",
1712
- "slots": [],
1713
- "events": [
1714
- {
1715
- "name": "change",
1716
- "description": "当绑定值变化时触发的事件"
1717
- }
1718
- ],
1719
- "attributes": [
1753
+ },
1720
1754
  {
1721
- "name": "v-model (value)",
1722
- "default": "-",
1723
- "description": "所有选中项的标识符",
1755
+ "name": "replace",
1756
+ "default": "`false`",
1757
+ "description": "是否在跳转时替换当前页面历史",
1724
1758
  "value": {
1725
- "type": "any[]",
1759
+ "type": "boolean",
1726
1760
  "kind": "expression"
1727
1761
  }
1728
1762
  },
1729
1763
  {
1730
- "name": "disabled",
1731
- "default": "`false`",
1732
- "description": "是否禁用所有复选框",
1764
+ "name": "clickable",
1765
+ "default": "`null`",
1766
+ "description": "是否开启点击反馈",
1733
1767
  "value": {
1734
1768
  "type": "boolean",
1735
1769
  "kind": "expression"
1736
1770
  }
1737
1771
  },
1738
1772
  {
1739
- "name": "max",
1740
- "default": "`0`",
1741
- "description": "最大可选数,`0`为无限制",
1773
+ "name": "is-link",
1774
+ "default": "`false`",
1775
+ "description": "是否展示右侧箭头并开启点击反馈",
1742
1776
  "value": {
1743
- "type": "number | string",
1777
+ "type": "boolean",
1744
1778
  "kind": "expression"
1745
1779
  }
1746
1780
  },
1747
1781
  {
1748
- "name": "direction",
1749
- "default": "`vertical`",
1750
- "description": "排列方向,可选值为 `horizontal`",
1782
+ "name": "required",
1783
+ "default": "`false`",
1784
+ "description": "是否显示表单必填星号",
1751
1785
  "value": {
1752
- "type": "string",
1786
+ "type": "boolean",
1753
1787
  "kind": "expression"
1754
1788
  }
1755
1789
  },
1756
1790
  {
1757
- "name": "icon-size",
1758
- "default": "`20px`",
1759
- "description": "所有复选框的图标大小,默认单位为 `px`",
1791
+ "name": "center",
1792
+ "default": "`false`",
1793
+ "description": "是否使内容垂直居中",
1760
1794
  "value": {
1761
- "type": "number | string",
1795
+ "type": "boolean",
1762
1796
  "kind": "expression"
1763
1797
  }
1764
1798
  },
1765
1799
  {
1766
- "name": "checked-color",
1767
- "default": "`#1989fa`",
1768
- "description": "所有复选框的选中状态颜色",
1800
+ "name": "arrow-direction",
1801
+ "default": "`right`",
1802
+ "description": "箭头方向,可选值为 `left` `up` `down`",
1769
1803
  "value": {
1770
1804
  "type": "string",
1771
1805
  "kind": "expression"
1772
1806
  }
1773
- }
1774
- ]
1775
- },
1776
- {
1777
- "name": "van-cell-group",
1778
- "slots": [
1807
+ },
1779
1808
  {
1780
- "name": "default",
1781
- "description": "默认插槽"
1809
+ "name": "title-style",
1810
+ "default": "-",
1811
+ "description": "左侧标题额外样式",
1812
+ "value": {
1813
+ "type": "any",
1814
+ "kind": "expression"
1815
+ }
1782
1816
  },
1783
1817
  {
1784
- "name": "title",
1785
- "description": "自定义分组标题"
1786
- }
1787
- ],
1788
- "events": [],
1789
- "attributes": [
1818
+ "name": "title-class",
1819
+ "default": "-",
1820
+ "description": "左侧标题额外类名",
1821
+ "value": {
1822
+ "type": "any",
1823
+ "kind": "expression"
1824
+ }
1825
+ },
1790
1826
  {
1791
- "name": "title",
1792
- "default": "`-`",
1793
- "description": "分组标题",
1827
+ "name": "value-class",
1828
+ "default": "-",
1829
+ "description": "右侧内容额外类名",
1794
1830
  "value": {
1795
- "type": "string",
1831
+ "type": "any",
1796
1832
  "kind": "expression"
1797
1833
  }
1798
1834
  },
1799
1835
  {
1800
- "name": "border",
1801
- "default": "`true`",
1802
- "description": "是否显示外边框",
1836
+ "name": "label-class",
1837
+ "default": "-",
1838
+ "description": "描述信息额外类名",
1803
1839
  "value": {
1804
- "type": "boolean",
1840
+ "type": "any",
1805
1841
  "kind": "expression"
1806
1842
  }
1807
1843
  }
1808
1844
  ]
1809
1845
  },
1810
1846
  {
1811
- "name": "van-cell",
1847
+ "name": "van-checkbox",
1812
1848
  "slots": [
1813
1849
  {
1814
1850
  "name": "default",
1815
- "description": "自定义右侧 value 的内容"
1816
- },
1817
- {
1818
- "name": "title",
1819
- "description": "自定义左侧 title 的内容"
1820
- },
1821
- {
1822
- "name": "label",
1823
- "description": "自定义标题下方 label 的内容"
1851
+ "description": "自定义文本"
1824
1852
  },
1825
1853
  {
1826
1854
  "name": "icon",
1827
- "description": "自定义左侧图标"
1828
- },
1829
- {
1830
- "name": "right-icon",
1831
- "description": "自定义右侧按钮,默认为`arrow`"
1832
- },
1833
- {
1834
- "name": "extra",
1835
- "description": "自定义单元格最右侧的额外内容"
1855
+ "description": "自定义图标"
1836
1856
  }
1837
1857
  ],
1838
1858
  "events": [
1859
+ {
1860
+ "name": "change",
1861
+ "description": "当绑定值变化时触发的事件"
1862
+ },
1839
1863
  {
1840
1864
  "name": "click",
1841
- "description": "点击单元格时触发"
1865
+ "description": "点击复选框时触发"
1842
1866
  }
1843
1867
  ],
1844
1868
  "attributes": [
1845
1869
  {
1846
- "name": "title",
1847
- "default": "-",
1848
- "description": "左侧标题",
1870
+ "name": "v-model (value)",
1871
+ "default": "`false`",
1872
+ "description": "是否为选中状态",
1849
1873
  "value": {
1850
- "type": "number | string",
1874
+ "type": "boolean",
1851
1875
  "kind": "expression"
1852
1876
  }
1853
1877
  },
1854
1878
  {
1855
- "name": "value",
1879
+ "name": "name",
1856
1880
  "default": "-",
1857
- "description": "右侧内容",
1881
+ "description": "标识符",
1858
1882
  "value": {
1859
- "type": "number | string",
1883
+ "type": "any",
1860
1884
  "kind": "expression"
1861
1885
  }
1862
1886
  },
1863
1887
  {
1864
- "name": "label",
1865
- "default": "-",
1866
- "description": "标题下方的描述信息",
1888
+ "name": "shape",
1889
+ "default": "`round`",
1890
+ "description": "形状,可选值为 `square`",
1867
1891
  "value": {
1868
1892
  "type": "string",
1869
1893
  "kind": "expression"
1870
1894
  }
1871
1895
  },
1872
1896
  {
1873
- "name": "size",
1874
- "default": "-",
1875
- "description": "单元格大小,可选值为 `large`",
1897
+ "name": "disabled",
1898
+ "default": "`false`",
1899
+ "description": "是否禁用复选框",
1876
1900
  "value": {
1877
- "type": "string",
1901
+ "type": "boolean",
1878
1902
  "kind": "expression"
1879
1903
  }
1880
1904
  },
1881
1905
  {
1882
- "name": "icon",
1883
- "default": "-",
1884
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
1906
+ "name": "label-disabled",
1907
+ "default": "`false`",
1908
+ "description": "是否禁用复选框文本点击",
1885
1909
  "value": {
1886
- "type": "string",
1910
+ "type": "boolean",
1887
1911
  "kind": "expression"
1888
1912
  }
1889
1913
  },
1890
1914
  {
1891
- "name": "icon-prefix",
1892
- "default": "`van-icon`",
1893
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
1915
+ "name": "label-position",
1916
+ "default": "`right`",
1917
+ "description": "文本位置,可选值为 `left`",
1894
1918
  "value": {
1895
1919
  "type": "string",
1896
1920
  "kind": "expression"
1897
1921
  }
1898
1922
  },
1899
1923
  {
1900
- "name": "url",
1901
- "default": "-",
1902
- "description": "点击后跳转的链接地址",
1924
+ "name": "icon-size",
1925
+ "default": "`20px`",
1926
+ "description": "图标大小,默认单位为 `px`",
1903
1927
  "value": {
1904
- "type": "string",
1928
+ "type": "number | string",
1905
1929
  "kind": "expression"
1906
1930
  }
1907
1931
  },
1908
1932
  {
1909
- "name": "to",
1910
- "default": "-",
1911
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1933
+ "name": "checked-color",
1934
+ "default": "`#1989fa`",
1935
+ "description": "选中状态颜色",
1912
1936
  "value": {
1913
- "type": "string | object",
1937
+ "type": "string",
1914
1938
  "kind": "expression"
1915
1939
  }
1916
1940
  },
1917
1941
  {
1918
- "name": "border",
1942
+ "name": "bind-group",
1919
1943
  "default": "`true`",
1920
- "description": "是否显示内边框",
1921
- "value": {
1922
- "type": "boolean",
1923
- "kind": "expression"
1924
- }
1925
- },
1926
- {
1927
- "name": "replace",
1928
- "default": "`false`",
1929
- "description": "是否在跳转时替换当前页面历史",
1944
+ "description": "是否与复选框组绑定",
1930
1945
  "value": {
1931
1946
  "type": "boolean",
1932
1947
  "kind": "expression"
1933
1948
  }
1934
- },
1949
+ }
1950
+ ]
1951
+ },
1952
+ {
1953
+ "name": "van-checkbox-group",
1954
+ "slots": [],
1955
+ "events": [
1935
1956
  {
1936
- "name": "clickable",
1937
- "default": "`null`",
1938
- "description": "是否开启点击反馈",
1939
- "value": {
1940
- "type": "boolean",
1941
- "kind": "expression"
1942
- }
1943
- },
1957
+ "name": "change",
1958
+ "description": "当绑定值变化时触发的事件"
1959
+ }
1960
+ ],
1961
+ "attributes": [
1944
1962
  {
1945
- "name": "is-link",
1946
- "default": "`false`",
1947
- "description": "是否展示右侧箭头并开启点击反馈",
1963
+ "name": "v-model (value)",
1964
+ "default": "-",
1965
+ "description": "所有选中项的标识符",
1948
1966
  "value": {
1949
- "type": "boolean",
1967
+ "type": "any[]",
1950
1968
  "kind": "expression"
1951
1969
  }
1952
1970
  },
1953
1971
  {
1954
- "name": "required",
1972
+ "name": "disabled",
1955
1973
  "default": "`false`",
1956
- "description": "是否显示表单必填星号",
1974
+ "description": "是否禁用所有复选框",
1957
1975
  "value": {
1958
1976
  "type": "boolean",
1959
1977
  "kind": "expression"
1960
1978
  }
1961
1979
  },
1962
1980
  {
1963
- "name": "center",
1964
- "default": "`false`",
1965
- "description": "是否使内容垂直居中",
1981
+ "name": "max",
1982
+ "default": "`0`",
1983
+ "description": "最大可选数,`0`为无限制",
1966
1984
  "value": {
1967
- "type": "boolean",
1985
+ "type": "number | string",
1968
1986
  "kind": "expression"
1969
1987
  }
1970
1988
  },
1971
1989
  {
1972
- "name": "arrow-direction",
1973
- "default": "`right`",
1974
- "description": "箭头方向,可选值为 `left` `up` `down`",
1990
+ "name": "direction",
1991
+ "default": "`vertical`",
1992
+ "description": "排列方向,可选值为 `horizontal`",
1975
1993
  "value": {
1976
1994
  "type": "string",
1977
1995
  "kind": "expression"
1978
1996
  }
1979
1997
  },
1980
1998
  {
1981
- "name": "title-style",
1982
- "default": "-",
1983
- "description": "左侧标题额外样式",
1984
- "value": {
1985
- "type": "any",
1986
- "kind": "expression"
1987
- }
1988
- },
1989
- {
1990
- "name": "title-class",
1991
- "default": "-",
1992
- "description": "左侧标题额外类名",
1993
- "value": {
1994
- "type": "any",
1995
- "kind": "expression"
1996
- }
1997
- },
1998
- {
1999
- "name": "value-class",
2000
- "default": "-",
2001
- "description": "右侧内容额外类名",
1999
+ "name": "icon-size",
2000
+ "default": "`20px`",
2001
+ "description": "所有复选框的图标大小,默认单位为 `px`",
2002
2002
  "value": {
2003
- "type": "any",
2003
+ "type": "number | string",
2004
2004
  "kind": "expression"
2005
2005
  }
2006
2006
  },
2007
2007
  {
2008
- "name": "label-class",
2009
- "default": "-",
2010
- "description": "描述信息额外类名",
2008
+ "name": "checked-color",
2009
+ "default": "`#1989fa`",
2010
+ "description": "所有复选框的选中状态颜色",
2011
2011
  "value": {
2012
- "type": "any",
2012
+ "type": "string",
2013
2013
  "kind": "expression"
2014
2014
  }
2015
2015
  }
@@ -2406,6 +2406,54 @@
2406
2406
  }
2407
2407
  ]
2408
2408
  },
2409
+ {
2410
+ "name": "van-contact-card",
2411
+ "slots": [],
2412
+ "events": [
2413
+ {
2414
+ "name": "click",
2415
+ "description": "点击时触发"
2416
+ }
2417
+ ],
2418
+ "attributes": [
2419
+ {
2420
+ "name": "type",
2421
+ "default": "`add`",
2422
+ "description": "卡片类型,可选值为 `edit`",
2423
+ "value": {
2424
+ "type": "string",
2425
+ "kind": "expression"
2426
+ }
2427
+ },
2428
+ {
2429
+ "name": "name",
2430
+ "default": "-",
2431
+ "description": "联系人姓名",
2432
+ "value": {
2433
+ "type": "string",
2434
+ "kind": "expression"
2435
+ }
2436
+ },
2437
+ {
2438
+ "name": "tel",
2439
+ "default": "-",
2440
+ "description": "联系人手机号",
2441
+ "value": {
2442
+ "type": "string",
2443
+ "kind": "expression"
2444
+ }
2445
+ },
2446
+ {
2447
+ "name": "add-text",
2448
+ "default": "`添加联系人`",
2449
+ "description": "添加时的文案提示",
2450
+ "value": {
2451
+ "type": "string",
2452
+ "kind": "expression"
2453
+ }
2454
+ }
2455
+ ]
2456
+ },
2409
2457
  {
2410
2458
  "name": "van-contact-edit",
2411
2459
  "slots": [],
@@ -2514,74 +2562,26 @@
2514
2562
  },
2515
2563
  {
2516
2564
  "name": "list",
2517
- "default": "`[]`",
2518
- "description": "联系人列表",
2519
- "value": {
2520
- "type": "Contact[]",
2521
- "kind": "expression"
2522
- }
2523
- },
2524
- {
2525
- "name": "add-text",
2526
- "default": "`新建联系人`",
2527
- "description": "新建按钮文案",
2528
- "value": {
2529
- "type": "string",
2530
- "kind": "expression"
2531
- }
2532
- },
2533
- {
2534
- "name": "default-tag-text",
2535
- "default": "-",
2536
- "description": "默认联系人标签文案",
2537
- "value": {
2538
- "type": "string",
2539
- "kind": "expression"
2540
- }
2541
- }
2542
- ]
2543
- },
2544
- {
2545
- "name": "van-contact-card",
2546
- "slots": [],
2547
- "events": [
2548
- {
2549
- "name": "click",
2550
- "description": "点击时触发"
2551
- }
2552
- ],
2553
- "attributes": [
2554
- {
2555
- "name": "type",
2556
- "default": "`add`",
2557
- "description": "卡片类型,可选值为 `edit`",
2558
- "value": {
2559
- "type": "string",
2560
- "kind": "expression"
2561
- }
2562
- },
2563
- {
2564
- "name": "name",
2565
- "default": "-",
2566
- "description": "联系人姓名",
2565
+ "default": "`[]`",
2566
+ "description": "联系人列表",
2567
2567
  "value": {
2568
- "type": "string",
2568
+ "type": "Contact[]",
2569
2569
  "kind": "expression"
2570
2570
  }
2571
2571
  },
2572
2572
  {
2573
- "name": "tel",
2574
- "default": "-",
2575
- "description": "联系人手机号",
2573
+ "name": "add-text",
2574
+ "default": "`新建联系人`",
2575
+ "description": "新建按钮文案",
2576
2576
  "value": {
2577
2577
  "type": "string",
2578
2578
  "kind": "expression"
2579
2579
  }
2580
2580
  },
2581
2581
  {
2582
- "name": "add-text",
2583
- "default": "`添加联系人`",
2584
- "description": "添加时的文案提示",
2582
+ "name": "default-tag-text",
2583
+ "default": "-",
2584
+ "description": "默认联系人标签文案",
2585
2585
  "value": {
2586
2586
  "type": "string",
2587
2587
  "kind": "expression"
@@ -3128,6 +3128,45 @@
3128
3128
  }
3129
3129
  ]
3130
3130
  },
3131
+ {
3132
+ "name": "van-divider",
3133
+ "slots": [
3134
+ {
3135
+ "name": "default",
3136
+ "description": "内容"
3137
+ }
3138
+ ],
3139
+ "events": [],
3140
+ "attributes": [
3141
+ {
3142
+ "name": "dashed",
3143
+ "default": "`false`",
3144
+ "description": "是否使用虚线",
3145
+ "value": {
3146
+ "type": "boolean",
3147
+ "kind": "expression"
3148
+ }
3149
+ },
3150
+ {
3151
+ "name": "hairline",
3152
+ "default": "`true`",
3153
+ "description": "是否使用 0.5px 线",
3154
+ "value": {
3155
+ "type": "boolean",
3156
+ "kind": "expression"
3157
+ }
3158
+ },
3159
+ {
3160
+ "name": "content-position",
3161
+ "default": "`center`",
3162
+ "description": "内容位置,可选值为`left` `right`",
3163
+ "value": {
3164
+ "type": "string",
3165
+ "kind": "expression"
3166
+ }
3167
+ }
3168
+ ]
3169
+ },
3131
3170
  {
3132
3171
  "name": "van-dialog",
3133
3172
  "slots": [
@@ -3376,45 +3415,6 @@
3376
3415
  }
3377
3416
  ]
3378
3417
  },
3379
- {
3380
- "name": "van-divider",
3381
- "slots": [
3382
- {
3383
- "name": "default",
3384
- "description": "内容"
3385
- }
3386
- ],
3387
- "events": [],
3388
- "attributes": [
3389
- {
3390
- "name": "dashed",
3391
- "default": "`false`",
3392
- "description": "是否使用虚线",
3393
- "value": {
3394
- "type": "boolean",
3395
- "kind": "expression"
3396
- }
3397
- },
3398
- {
3399
- "name": "hairline",
3400
- "default": "`true`",
3401
- "description": "是否使用 0.5px 线",
3402
- "value": {
3403
- "type": "boolean",
3404
- "kind": "expression"
3405
- }
3406
- },
3407
- {
3408
- "name": "content-position",
3409
- "default": "`center`",
3410
- "description": "内容位置,可选值为`left` `right`",
3411
- "value": {
3412
- "type": "string",
3413
- "kind": "expression"
3414
- }
3415
- }
3416
- ]
3417
- },
3418
3418
  {
3419
3419
  "name": "van-empty",
3420
3420
  "slots": [
@@ -4504,129 +4504,279 @@
4504
4504
  }
4505
4505
  },
4506
4506
  {
4507
- "name": "badge",
4507
+ "name": "badge",
4508
+ "default": "-",
4509
+ "description": "图标右上角徽标的内容",
4510
+ "value": {
4511
+ "type": "number | string",
4512
+ "kind": "expression"
4513
+ }
4514
+ },
4515
+ {
4516
+ "name": "info",
4517
+ "default": "-",
4518
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4519
+ "value": {
4520
+ "type": "number | string",
4521
+ "kind": "expression"
4522
+ }
4523
+ },
4524
+ {
4525
+ "name": "url",
4526
+ "default": "-",
4527
+ "description": "点击后跳转的链接地址",
4528
+ "value": {
4529
+ "type": "string",
4530
+ "kind": "expression"
4531
+ }
4532
+ },
4533
+ {
4534
+ "name": "to",
4535
+ "default": "-",
4536
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
4537
+ "value": {
4538
+ "type": "string | object",
4539
+ "kind": "expression"
4540
+ }
4541
+ },
4542
+ {
4543
+ "name": "replace",
4544
+ "default": "`false`",
4545
+ "description": "是否在跳转时替换当前页面历史",
4546
+ "value": {
4547
+ "type": "boolean",
4548
+ "kind": "expression"
4549
+ }
4550
+ }
4551
+ ]
4552
+ },
4553
+ {
4554
+ "name": "van-icon",
4555
+ "slots": [],
4556
+ "events": [
4557
+ {
4558
+ "name": "click",
4559
+ "description": "点击图标时触发"
4560
+ }
4561
+ ],
4562
+ "attributes": [
4563
+ {
4564
+ "name": "name",
4565
+ "default": "-",
4566
+ "description": "图标名称或图片链接",
4567
+ "value": {
4568
+ "type": "string",
4569
+ "kind": "expression"
4570
+ }
4571
+ },
4572
+ {
4573
+ "name": "dot",
4574
+ "default": "`false`",
4575
+ "description": "是否显示图标右上角小红点",
4576
+ "value": {
4577
+ "type": "boolean",
4578
+ "kind": "expression"
4579
+ }
4580
+ },
4581
+ {
4582
+ "name": "badge",
4583
+ "default": "-",
4584
+ "description": "图标右上角徽标的内容",
4585
+ "value": {
4586
+ "type": "number | string",
4587
+ "kind": "expression"
4588
+ }
4589
+ },
4590
+ {
4591
+ "name": "info",
4592
+ "default": "-",
4593
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4594
+ "value": {
4595
+ "type": "number | string",
4596
+ "kind": "expression"
4597
+ }
4598
+ },
4599
+ {
4600
+ "name": "color",
4601
+ "default": "`inherit`",
4602
+ "description": "图标颜色",
4603
+ "value": {
4604
+ "type": "string",
4605
+ "kind": "expression"
4606
+ }
4607
+ },
4608
+ {
4609
+ "name": "size",
4610
+ "default": "`inherit`",
4611
+ "description": "图标大小,如 `20px` `2em`,默认单位为`px`",
4612
+ "value": {
4613
+ "type": "number | string",
4614
+ "kind": "expression"
4615
+ }
4616
+ },
4617
+ {
4618
+ "name": "class-prefix",
4619
+ "default": "`van-icon`",
4620
+ "description": "类名前缀,用于使用自定义图标",
4621
+ "value": {
4622
+ "type": "string",
4623
+ "kind": "expression"
4624
+ }
4625
+ },
4626
+ {
4627
+ "name": "tag",
4628
+ "default": "`i`",
4629
+ "description": "HTML 标签",
4630
+ "value": {
4631
+ "type": "string",
4632
+ "kind": "expression"
4633
+ }
4634
+ }
4635
+ ]
4636
+ },
4637
+ {
4638
+ "name": "van-image",
4639
+ "slots": [
4640
+ {
4641
+ "name": "default",
4642
+ "description": "自定义图片下方的内容"
4643
+ },
4644
+ {
4645
+ "name": "loading",
4646
+ "description": "自定义加载中的提示内容"
4647
+ },
4648
+ {
4649
+ "name": "error",
4650
+ "description": "自定义加载失败时的提示内容"
4651
+ }
4652
+ ],
4653
+ "events": [
4654
+ {
4655
+ "name": "click",
4656
+ "description": "点击图片时触发"
4657
+ },
4658
+ {
4659
+ "name": "load",
4660
+ "description": "图片加载完毕时触发"
4661
+ },
4662
+ {
4663
+ "name": "error",
4664
+ "description": "图片加载失败时触发"
4665
+ }
4666
+ ],
4667
+ "attributes": [
4668
+ {
4669
+ "name": "src",
4508
4670
  "default": "-",
4509
- "description": "图标右上角徽标的内容",
4671
+ "description": "图片链接",
4510
4672
  "value": {
4511
- "type": "number | string",
4673
+ "type": "string",
4512
4674
  "kind": "expression"
4513
4675
  }
4514
4676
  },
4515
4677
  {
4516
- "name": "info",
4517
- "default": "-",
4518
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4678
+ "name": "fit",
4679
+ "default": "`fill`",
4680
+ "description": "图片填充模式",
4519
4681
  "value": {
4520
- "type": "number | string",
4682
+ "type": "string",
4521
4683
  "kind": "expression"
4522
4684
  }
4523
4685
  },
4524
4686
  {
4525
- "name": "url",
4687
+ "name": "alt",
4526
4688
  "default": "-",
4527
- "description": "点击后跳转的链接地址",
4689
+ "description": "替代文本",
4528
4690
  "value": {
4529
4691
  "type": "string",
4530
4692
  "kind": "expression"
4531
4693
  }
4532
4694
  },
4533
4695
  {
4534
- "name": "to",
4696
+ "name": "width",
4535
4697
  "default": "-",
4536
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
4698
+ "description": "宽度,默认单位为`px`",
4537
4699
  "value": {
4538
- "type": "string | object",
4700
+ "type": "number | string",
4539
4701
  "kind": "expression"
4540
4702
  }
4541
4703
  },
4542
4704
  {
4543
- "name": "replace",
4544
- "default": "`false`",
4545
- "description": "是否在跳转时替换当前页面历史",
4705
+ "name": "height",
4706
+ "default": "-",
4707
+ "description": "高度,默认单位为`px`",
4546
4708
  "value": {
4547
- "type": "boolean",
4709
+ "type": "number | string",
4548
4710
  "kind": "expression"
4549
4711
  }
4550
- }
4551
- ]
4552
- },
4553
- {
4554
- "name": "van-icon",
4555
- "slots": [],
4556
- "events": [
4557
- {
4558
- "name": "click",
4559
- "description": "点击图标时触发"
4560
- }
4561
- ],
4562
- "attributes": [
4712
+ },
4563
4713
  {
4564
- "name": "name",
4565
- "default": "-",
4566
- "description": "图标名称或图片链接",
4714
+ "name": "radius",
4715
+ "default": "`0`",
4716
+ "description": "圆角大小,默认单位为`px`",
4567
4717
  "value": {
4568
- "type": "string",
4718
+ "type": "number | string",
4569
4719
  "kind": "expression"
4570
4720
  }
4571
4721
  },
4572
4722
  {
4573
- "name": "dot",
4723
+ "name": "round",
4574
4724
  "default": "`false`",
4575
- "description": "是否显示图标右上角小红点",
4725
+ "description": "是否显示为圆形",
4576
4726
  "value": {
4577
4727
  "type": "boolean",
4578
4728
  "kind": "expression"
4579
4729
  }
4580
4730
  },
4581
4731
  {
4582
- "name": "badge",
4583
- "default": "-",
4584
- "description": "图标右上角徽标的内容",
4732
+ "name": "lazy-load",
4733
+ "default": "`false`",
4734
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
4585
4735
  "value": {
4586
- "type": "number | string",
4736
+ "type": "boolean",
4587
4737
  "kind": "expression"
4588
4738
  }
4589
4739
  },
4590
4740
  {
4591
- "name": "info",
4592
- "default": "-",
4593
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4741
+ "name": "show-error",
4742
+ "default": "`true`",
4743
+ "description": "是否展示图片加载失败提示",
4594
4744
  "value": {
4595
- "type": "number | string",
4745
+ "type": "boolean",
4596
4746
  "kind": "expression"
4597
4747
  }
4598
4748
  },
4599
4749
  {
4600
- "name": "color",
4601
- "default": "`inherit`",
4602
- "description": "图标颜色",
4750
+ "name": "show-loading",
4751
+ "default": "`true`",
4752
+ "description": "是否展示图片加载中提示",
4603
4753
  "value": {
4604
- "type": "string",
4754
+ "type": "boolean",
4605
4755
  "kind": "expression"
4606
4756
  }
4607
4757
  },
4608
4758
  {
4609
- "name": "size",
4610
- "default": "`inherit`",
4611
- "description": "图标大小,如 `20px` `2em`,默认单位为`px`",
4759
+ "name": "error-icon",
4760
+ "default": "`photo-fail`",
4761
+ "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接",
4612
4762
  "value": {
4613
- "type": "number | string",
4763
+ "type": "string",
4614
4764
  "kind": "expression"
4615
4765
  }
4616
4766
  },
4617
4767
  {
4618
- "name": "class-prefix",
4619
- "default": "`van-icon`",
4620
- "description": "类名前缀,用于使用自定义图标",
4768
+ "name": "loading-icon",
4769
+ "default": "`photo`",
4770
+ "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接",
4621
4771
  "value": {
4622
4772
  "type": "string",
4623
4773
  "kind": "expression"
4624
4774
  }
4625
4775
  },
4626
4776
  {
4627
- "name": "tag",
4628
- "default": "`i`",
4629
- "description": "HTML 标签",
4777
+ "name": "icon-prefix",
4778
+ "default": "`van-icon`",
4779
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4630
4780
  "value": {
4631
4781
  "type": "string",
4632
4782
  "kind": "expression"
@@ -4782,189 +4932,39 @@
4782
4932
  "kind": "expression"
4783
4933
  }
4784
4934
  },
4785
- {
4786
- "name": "close-icon-position",
4787
- "default": "`top-right`",
4788
- "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
4789
- "value": {
4790
- "type": "string",
4791
- "kind": "expression"
4792
- }
4793
- },
4794
- {
4795
- "name": "transition",
4796
- "default": "`van-fade`",
4797
- "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
4798
- "value": {
4799
- "type": "string",
4800
- "kind": "expression"
4801
- }
4802
- },
4803
- {
4804
- "name": "overlay-style",
4805
- "default": "-",
4806
- "description": "自定义遮罩层样式",
4807
- "value": {
4808
- "type": "object",
4809
- "kind": "expression"
4810
- }
4811
- },
4812
- {
4813
- "name": "get-container",
4814
- "default": "-",
4815
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
4816
- "value": {
4817
- "type": "string | () => Element",
4818
- "kind": "expression"
4819
- }
4820
- }
4821
- ]
4822
- },
4823
- {
4824
- "name": "van-image",
4825
- "slots": [
4826
- {
4827
- "name": "default",
4828
- "description": "自定义图片下方的内容"
4829
- },
4830
- {
4831
- "name": "loading",
4832
- "description": "自定义加载中的提示内容"
4833
- },
4834
- {
4835
- "name": "error",
4836
- "description": "自定义加载失败时的提示内容"
4837
- }
4838
- ],
4839
- "events": [
4840
- {
4841
- "name": "click",
4842
- "description": "点击图片时触发"
4843
- },
4844
- {
4845
- "name": "load",
4846
- "description": "图片加载完毕时触发"
4847
- },
4848
- {
4849
- "name": "error",
4850
- "description": "图片加载失败时触发"
4851
- }
4852
- ],
4853
- "attributes": [
4854
- {
4855
- "name": "src",
4856
- "default": "-",
4857
- "description": "图片链接",
4858
- "value": {
4859
- "type": "string",
4860
- "kind": "expression"
4861
- }
4862
- },
4863
- {
4864
- "name": "fit",
4865
- "default": "`fill`",
4866
- "description": "图片填充模式",
4867
- "value": {
4868
- "type": "string",
4869
- "kind": "expression"
4870
- }
4871
- },
4872
- {
4873
- "name": "alt",
4874
- "default": "-",
4875
- "description": "替代文本",
4876
- "value": {
4877
- "type": "string",
4878
- "kind": "expression"
4879
- }
4880
- },
4881
- {
4882
- "name": "width",
4883
- "default": "-",
4884
- "description": "宽度,默认单位为`px`",
4885
- "value": {
4886
- "type": "number | string",
4887
- "kind": "expression"
4888
- }
4889
- },
4890
- {
4891
- "name": "height",
4892
- "default": "-",
4893
- "description": "高度,默认单位为`px`",
4894
- "value": {
4895
- "type": "number | string",
4896
- "kind": "expression"
4897
- }
4898
- },
4899
- {
4900
- "name": "radius",
4901
- "default": "`0`",
4902
- "description": "圆角大小,默认单位为`px`",
4903
- "value": {
4904
- "type": "number | string",
4905
- "kind": "expression"
4906
- }
4907
- },
4908
- {
4909
- "name": "round",
4910
- "default": "`false`",
4911
- "description": "是否显示为圆形",
4912
- "value": {
4913
- "type": "boolean",
4914
- "kind": "expression"
4915
- }
4916
- },
4917
- {
4918
- "name": "lazy-load",
4919
- "default": "`false`",
4920
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
4921
- "value": {
4922
- "type": "boolean",
4923
- "kind": "expression"
4924
- }
4925
- },
4926
- {
4927
- "name": "show-error",
4928
- "default": "`true`",
4929
- "description": "是否展示图片加载失败提示",
4930
- "value": {
4931
- "type": "boolean",
4932
- "kind": "expression"
4933
- }
4934
- },
4935
- {
4936
- "name": "show-loading",
4937
- "default": "`true`",
4938
- "description": "是否展示图片加载中提示",
4935
+ {
4936
+ "name": "close-icon-position",
4937
+ "default": "`top-right`",
4938
+ "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
4939
4939
  "value": {
4940
- "type": "boolean",
4940
+ "type": "string",
4941
4941
  "kind": "expression"
4942
4942
  }
4943
4943
  },
4944
4944
  {
4945
- "name": "error-icon",
4946
- "default": "`photo-fail`",
4947
- "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接",
4945
+ "name": "transition",
4946
+ "default": "`van-fade`",
4947
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
4948
4948
  "value": {
4949
4949
  "type": "string",
4950
4950
  "kind": "expression"
4951
4951
  }
4952
4952
  },
4953
4953
  {
4954
- "name": "loading-icon",
4955
- "default": "`photo`",
4956
- "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接",
4954
+ "name": "overlay-style",
4955
+ "default": "-",
4956
+ "description": "自定义遮罩层样式",
4957
4957
  "value": {
4958
- "type": "string",
4958
+ "type": "object",
4959
4959
  "kind": "expression"
4960
4960
  }
4961
4961
  },
4962
4962
  {
4963
- "name": "icon-prefix",
4964
- "default": "`van-icon`",
4965
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4963
+ "name": "get-container",
4964
+ "default": "-",
4965
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
4966
4966
  "value": {
4967
- "type": "string",
4967
+ "type": "string | () => Element",
4968
4968
  "kind": "expression"
4969
4969
  }
4970
4970
  }
@@ -5452,112 +5452,6 @@
5452
5452
  }
5453
5453
  ]
5454
5454
  },
5455
- {
5456
- "name": "van-pagination",
5457
- "slots": [
5458
- {
5459
- "name": "page",
5460
- "description": "自定义页码"
5461
- },
5462
- {
5463
- "name": "prev-text",
5464
- "description": "自定义上一页按钮文字"
5465
- },
5466
- {
5467
- "name": "next-text",
5468
- "description": "自定义下一页按钮文字"
5469
- }
5470
- ],
5471
- "events": [
5472
- {
5473
- "name": "change",
5474
- "description": "页码改变时触发"
5475
- }
5476
- ],
5477
- "attributes": [
5478
- {
5479
- "name": "v-model",
5480
- "default": "-",
5481
- "description": "当前页码",
5482
- "value": {
5483
- "type": "number",
5484
- "kind": "expression"
5485
- }
5486
- },
5487
- {
5488
- "name": "mode",
5489
- "default": "`multi`",
5490
- "description": "显示模式,可选值为 `simple`",
5491
- "value": {
5492
- "type": "string",
5493
- "kind": "expression"
5494
- }
5495
- },
5496
- {
5497
- "name": "prev-text",
5498
- "default": "`上一页`",
5499
- "description": "上一页按钮文字",
5500
- "value": {
5501
- "type": "string",
5502
- "kind": "expression"
5503
- }
5504
- },
5505
- {
5506
- "name": "next-text",
5507
- "default": "`下一页`",
5508
- "description": "下一页按钮文字",
5509
- "value": {
5510
- "type": "string",
5511
- "kind": "expression"
5512
- }
5513
- },
5514
- {
5515
- "name": "page-count",
5516
- "default": "根据页数计算",
5517
- "description": "总页数",
5518
- "value": {
5519
- "type": "number | string",
5520
- "kind": "expression"
5521
- }
5522
- },
5523
- {
5524
- "name": "total-items",
5525
- "default": "`0`",
5526
- "description": "总记录数",
5527
- "value": {
5528
- "type": "number | string",
5529
- "kind": "expression"
5530
- }
5531
- },
5532
- {
5533
- "name": "items-per-page",
5534
- "default": "`10`",
5535
- "description": "每页记录数",
5536
- "value": {
5537
- "type": "number | string",
5538
- "kind": "expression"
5539
- }
5540
- },
5541
- {
5542
- "name": "show-page-size",
5543
- "default": "`5`",
5544
- "description": "显示的页码个数",
5545
- "value": {
5546
- "type": "number | string",
5547
- "kind": "expression"
5548
- }
5549
- },
5550
- {
5551
- "name": "force-ellipses",
5552
- "default": "`false`",
5553
- "description": "是否显示省略号",
5554
- "value": {
5555
- "type": "boolean",
5556
- "kind": "expression"
5557
- }
5558
- }
5559
- ]
5560
- },
5561
5455
  {
5562
5456
  "name": "van-number-keyboard",
5563
5457
  "slots": [
@@ -5728,89 +5622,195 @@
5728
5622
  }
5729
5623
  },
5730
5624
  {
5731
- "name": "safe-area-inset-bottom",
5732
- "default": "`true`",
5733
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
5625
+ "name": "safe-area-inset-bottom",
5626
+ "default": "`true`",
5627
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
5628
+ "value": {
5629
+ "type": "boolean",
5630
+ "kind": "expression"
5631
+ }
5632
+ },
5633
+ {
5634
+ "name": "random-key-order",
5635
+ "default": "`false`",
5636
+ "description": "是否将通过随机顺序展示按键",
5637
+ "value": {
5638
+ "type": "boolean",
5639
+ "kind": "expression"
5640
+ }
5641
+ }
5642
+ ]
5643
+ },
5644
+ {
5645
+ "name": "van-overlay",
5646
+ "slots": [
5647
+ {
5648
+ "name": "default",
5649
+ "description": "默认插槽,用于在遮罩层上方嵌入内容"
5650
+ }
5651
+ ],
5652
+ "events": [
5653
+ {
5654
+ "name": "click",
5655
+ "description": "点击时触发"
5656
+ }
5657
+ ],
5658
+ "attributes": [
5659
+ {
5660
+ "name": "show",
5661
+ "default": "`false`",
5662
+ "description": "是否展示遮罩层",
5663
+ "value": {
5664
+ "type": "boolean",
5665
+ "kind": "expression"
5666
+ }
5667
+ },
5668
+ {
5669
+ "name": "z-index",
5670
+ "default": "`1`",
5671
+ "description": "z-index 层级",
5672
+ "value": {
5673
+ "type": "number | string",
5674
+ "kind": "expression"
5675
+ }
5676
+ },
5677
+ {
5678
+ "name": "duration",
5679
+ "default": "`0.3`",
5680
+ "description": "动画时长,单位秒",
5681
+ "value": {
5682
+ "type": "number | string",
5683
+ "kind": "expression"
5684
+ }
5685
+ },
5686
+ {
5687
+ "name": "class-name",
5688
+ "default": "-",
5689
+ "description": "自定义类名",
5690
+ "value": {
5691
+ "type": "string",
5692
+ "kind": "expression"
5693
+ }
5694
+ },
5695
+ {
5696
+ "name": "custom-style",
5697
+ "default": "-",
5698
+ "description": "自定义样式",
5699
+ "value": {
5700
+ "type": "object",
5701
+ "kind": "expression"
5702
+ }
5703
+ },
5704
+ {
5705
+ "name": "lock-scroll",
5706
+ "default": "`true`",
5707
+ "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
5708
+ "value": {
5709
+ "type": "boolean",
5710
+ "kind": "expression"
5711
+ }
5712
+ }
5713
+ ]
5714
+ },
5715
+ {
5716
+ "name": "van-pagination",
5717
+ "slots": [
5718
+ {
5719
+ "name": "page",
5720
+ "description": "自定义页码"
5721
+ },
5722
+ {
5723
+ "name": "prev-text",
5724
+ "description": "自定义上一页按钮文字"
5725
+ },
5726
+ {
5727
+ "name": "next-text",
5728
+ "description": "自定义下一页按钮文字"
5729
+ }
5730
+ ],
5731
+ "events": [
5732
+ {
5733
+ "name": "change",
5734
+ "description": "页码改变时触发"
5735
+ }
5736
+ ],
5737
+ "attributes": [
5738
+ {
5739
+ "name": "v-model",
5740
+ "default": "-",
5741
+ "description": "当前页码",
5742
+ "value": {
5743
+ "type": "number",
5744
+ "kind": "expression"
5745
+ }
5746
+ },
5747
+ {
5748
+ "name": "mode",
5749
+ "default": "`multi`",
5750
+ "description": "显示模式,可选值为 `simple`",
5734
5751
  "value": {
5735
- "type": "boolean",
5752
+ "type": "string",
5736
5753
  "kind": "expression"
5737
5754
  }
5738
5755
  },
5739
5756
  {
5740
- "name": "random-key-order",
5741
- "default": "`false`",
5742
- "description": "是否将通过随机顺序展示按键",
5757
+ "name": "prev-text",
5758
+ "default": "`上一页`",
5759
+ "description": "上一页按钮文字",
5743
5760
  "value": {
5744
- "type": "boolean",
5761
+ "type": "string",
5745
5762
  "kind": "expression"
5746
5763
  }
5747
- }
5748
- ]
5749
- },
5750
- {
5751
- "name": "van-overlay",
5752
- "slots": [
5753
- {
5754
- "name": "default",
5755
- "description": "默认插槽,用于在遮罩层上方嵌入内容"
5756
- }
5757
- ],
5758
- "events": [
5759
- {
5760
- "name": "click",
5761
- "description": "点击时触发"
5762
- }
5763
- ],
5764
- "attributes": [
5764
+ },
5765
5765
  {
5766
- "name": "show",
5767
- "default": "`false`",
5768
- "description": "是否展示遮罩层",
5766
+ "name": "next-text",
5767
+ "default": "`下一页`",
5768
+ "description": "下一页按钮文字",
5769
5769
  "value": {
5770
- "type": "boolean",
5770
+ "type": "string",
5771
5771
  "kind": "expression"
5772
5772
  }
5773
5773
  },
5774
5774
  {
5775
- "name": "z-index",
5776
- "default": "`1`",
5777
- "description": "z-index 层级",
5775
+ "name": "page-count",
5776
+ "default": "根据页数计算",
5777
+ "description": "总页数",
5778
5778
  "value": {
5779
5779
  "type": "number | string",
5780
5780
  "kind": "expression"
5781
5781
  }
5782
5782
  },
5783
5783
  {
5784
- "name": "duration",
5785
- "default": "`0.3`",
5786
- "description": "动画时长,单位秒",
5784
+ "name": "total-items",
5785
+ "default": "`0`",
5786
+ "description": "总记录数",
5787
5787
  "value": {
5788
5788
  "type": "number | string",
5789
5789
  "kind": "expression"
5790
5790
  }
5791
5791
  },
5792
5792
  {
5793
- "name": "class-name",
5794
- "default": "-",
5795
- "description": "自定义类名",
5793
+ "name": "items-per-page",
5794
+ "default": "`10`",
5795
+ "description": "每页记录数",
5796
5796
  "value": {
5797
- "type": "string",
5797
+ "type": "number | string",
5798
5798
  "kind": "expression"
5799
5799
  }
5800
5800
  },
5801
5801
  {
5802
- "name": "custom-style",
5803
- "default": "-",
5804
- "description": "自定义样式",
5802
+ "name": "show-page-size",
5803
+ "default": "`5`",
5804
+ "description": "显示的页码个数",
5805
5805
  "value": {
5806
- "type": "object",
5806
+ "type": "number | string",
5807
5807
  "kind": "expression"
5808
5808
  }
5809
5809
  },
5810
5810
  {
5811
- "name": "lock-scroll",
5812
- "default": "`true`",
5813
- "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
5811
+ "name": "force-ellipses",
5812
+ "default": "`false`",
5813
+ "description": "是否显示省略号",
5814
5814
  "value": {
5815
5815
  "type": "boolean",
5816
5816
  "kind": "expression"
@@ -6250,6 +6250,94 @@
6250
6250
  }
6251
6251
  ]
6252
6252
  },
6253
+ {
6254
+ "name": "van-progress",
6255
+ "slots": [],
6256
+ "events": [],
6257
+ "attributes": [
6258
+ {
6259
+ "name": "percentage",
6260
+ "default": "`0`",
6261
+ "description": "进度百分比",
6262
+ "value": {
6263
+ "type": "number | string",
6264
+ "kind": "expression"
6265
+ }
6266
+ },
6267
+ {
6268
+ "name": "stroke-width",
6269
+ "default": "`4px`",
6270
+ "description": "进度条粗细,默认单位为`px`",
6271
+ "value": {
6272
+ "type": "number | string",
6273
+ "kind": "expression"
6274
+ }
6275
+ },
6276
+ {
6277
+ "name": "color",
6278
+ "default": "`#1989fa`",
6279
+ "description": "进度条颜色",
6280
+ "value": {
6281
+ "type": "string",
6282
+ "kind": "expression"
6283
+ }
6284
+ },
6285
+ {
6286
+ "name": "track-color",
6287
+ "default": "`#e5e5e5`",
6288
+ "description": "轨道颜色",
6289
+ "value": {
6290
+ "type": "string",
6291
+ "kind": "expression"
6292
+ }
6293
+ },
6294
+ {
6295
+ "name": "pivot-text",
6296
+ "default": "百分比",
6297
+ "description": "进度文字内容",
6298
+ "value": {
6299
+ "type": "string",
6300
+ "kind": "expression"
6301
+ }
6302
+ },
6303
+ {
6304
+ "name": "pivot-color",
6305
+ "default": "同进度条颜色",
6306
+ "description": "进度文字背景色",
6307
+ "value": {
6308
+ "type": "string",
6309
+ "kind": "expression"
6310
+ }
6311
+ },
6312
+ {
6313
+ "name": "text-color",
6314
+ "default": "`white`",
6315
+ "description": "进度文字颜色",
6316
+ "value": {
6317
+ "type": "string",
6318
+ "kind": "expression"
6319
+ }
6320
+ },
6321
+ {
6322
+ "name": "inactive",
6323
+ "default": "`false`",
6324
+ "description": "是否置灰",
6325
+ "value": {
6326
+ "type": "boolean",
6327
+ "kind": "expression"
6328
+ }
6329
+ },
6330
+ {
6331
+ "name": "show-pivot",
6332
+ "default": "`true`",
6333
+ "description": "是否显示进度文字",
6334
+ "value": {
6335
+ "type": "boolean",
6336
+ "kind": "expression"
6337
+ }
6338
+ }
6339
+ ]
6340
+ },
6253
6341
  {
6254
6342
  "name": "van-popup",
6255
6343
  "slots": [],
@@ -6376,159 +6464,71 @@
6376
6464
  },
6377
6465
  {
6378
6466
  "name": "close-on-click-overlay",
6379
- "default": "`true`",
6380
- "description": "是否在点击遮罩层后关闭",
6381
- "value": {
6382
- "type": "boolean",
6383
- "kind": "expression"
6384
- }
6385
- },
6386
- {
6387
- "name": "closeable",
6388
- "default": "`false`",
6389
- "description": "是否显示关闭图标",
6390
- "value": {
6391
- "type": "boolean",
6392
- "kind": "expression"
6393
- }
6394
- },
6395
- {
6396
- "name": "close-icon",
6397
- "default": "`cross`",
6398
- "description": "关闭图标名称或图片链接",
6399
- "value": {
6400
- "type": "string",
6401
- "kind": "expression"
6402
- }
6403
- },
6404
- {
6405
- "name": "close-icon-position",
6406
- "default": "`top-right`",
6407
- "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
6408
- "value": {
6409
- "type": "string",
6410
- "kind": "expression"
6411
- }
6412
- },
6413
- {
6414
- "name": "transition",
6415
- "default": "-",
6416
- "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6417
- "value": {
6418
- "type": "string",
6419
- "kind": "expression"
6420
- }
6421
- },
6422
- {
6423
- "name": "transition-appear",
6424
- "default": "`false`",
6425
- "description": "是否在初始渲染时启用过渡动画",
6426
- "value": {
6427
- "type": "boolean",
6428
- "kind": "expression"
6429
- }
6430
- },
6431
- {
6432
- "name": "get-container",
6433
- "default": "-",
6434
- "description": "指定挂载的节点",
6435
- "value": {
6436
- "type": "string | () => Element",
6437
- "kind": "expression"
6438
- }
6439
- },
6440
- {
6441
- "name": "safe-area-inset-bottom",
6442
- "default": "`false`",
6443
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
6444
- "value": {
6445
- "type": "boolean",
6446
- "kind": "expression"
6447
- }
6448
- }
6449
- ]
6450
- },
6451
- {
6452
- "name": "van-progress",
6453
- "slots": [],
6454
- "events": [],
6455
- "attributes": [
6456
- {
6457
- "name": "percentage",
6458
- "default": "`0`",
6459
- "description": "进度百分比",
6460
- "value": {
6461
- "type": "number | string",
6462
- "kind": "expression"
6463
- }
6464
- },
6465
- {
6466
- "name": "stroke-width",
6467
- "default": "`4px`",
6468
- "description": "进度条粗细,默认单位为`px`",
6467
+ "default": "`true`",
6468
+ "description": "是否在点击遮罩层后关闭",
6469
6469
  "value": {
6470
- "type": "number | string",
6470
+ "type": "boolean",
6471
6471
  "kind": "expression"
6472
6472
  }
6473
6473
  },
6474
6474
  {
6475
- "name": "color",
6476
- "default": "`#1989fa`",
6477
- "description": "进度条颜色",
6475
+ "name": "closeable",
6476
+ "default": "`false`",
6477
+ "description": "是否显示关闭图标",
6478
6478
  "value": {
6479
- "type": "string",
6479
+ "type": "boolean",
6480
6480
  "kind": "expression"
6481
6481
  }
6482
6482
  },
6483
6483
  {
6484
- "name": "track-color",
6485
- "default": "`#e5e5e5`",
6486
- "description": "轨道颜色",
6484
+ "name": "close-icon",
6485
+ "default": "`cross`",
6486
+ "description": "关闭图标名称或图片链接",
6487
6487
  "value": {
6488
6488
  "type": "string",
6489
6489
  "kind": "expression"
6490
6490
  }
6491
6491
  },
6492
6492
  {
6493
- "name": "pivot-text",
6494
- "default": "百分比",
6495
- "description": "进度文字内容",
6493
+ "name": "close-icon-position",
6494
+ "default": "`top-right`",
6495
+ "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
6496
6496
  "value": {
6497
6497
  "type": "string",
6498
6498
  "kind": "expression"
6499
6499
  }
6500
6500
  },
6501
6501
  {
6502
- "name": "pivot-color",
6503
- "default": "同进度条颜色",
6504
- "description": "进度文字背景色",
6502
+ "name": "transition",
6503
+ "default": "-",
6504
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6505
6505
  "value": {
6506
6506
  "type": "string",
6507
6507
  "kind": "expression"
6508
6508
  }
6509
6509
  },
6510
6510
  {
6511
- "name": "text-color",
6512
- "default": "`white`",
6513
- "description": "进度文字颜色",
6511
+ "name": "transition-appear",
6512
+ "default": "`false`",
6513
+ "description": "是否在初始渲染时启用过渡动画",
6514
6514
  "value": {
6515
- "type": "string",
6515
+ "type": "boolean",
6516
6516
  "kind": "expression"
6517
6517
  }
6518
6518
  },
6519
6519
  {
6520
- "name": "inactive",
6521
- "default": "`false`",
6522
- "description": "是否置灰",
6520
+ "name": "get-container",
6521
+ "default": "-",
6522
+ "description": "指定挂载的节点",
6523
6523
  "value": {
6524
- "type": "boolean",
6524
+ "type": "string | () => Element",
6525
6525
  "kind": "expression"
6526
6526
  }
6527
6527
  },
6528
6528
  {
6529
- "name": "show-pivot",
6530
- "default": "`true`",
6531
- "description": "是否显示进度文字",
6529
+ "name": "safe-area-inset-bottom",
6530
+ "default": "`false`",
6531
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
6532
6532
  "value": {
6533
6533
  "type": "boolean",
6534
6534
  "kind": "expression"
@@ -6805,150 +6805,109 @@
6805
6805
  ]
6806
6806
  },
6807
6807
  {
6808
- "name": "van-search",
6809
- "slots": [
6810
- {
6811
- "name": "left",
6812
- "description": "自定义左侧内容(搜索框外)"
6813
- },
6814
- {
6815
- "name": "action",
6816
- "description": "自定义右侧内容(搜索框外),设置`show-action`属性后展示"
6817
- },
6818
- {
6819
- "name": "label",
6820
- "description": "自定义左侧文本(搜索框内)"
6821
- },
6822
- {
6823
- "name": "left-icon",
6824
- "description": "自定义左侧图标(搜索框内)"
6825
- },
6826
- {
6827
- "name": "right-icon",
6828
- "description": "自定义右侧图标(搜索框内)"
6829
- }
6830
- ],
6808
+ "name": "van-rate",
6809
+ "slots": [],
6831
6810
  "events": [
6832
6811
  {
6833
- "name": "search",
6834
- "description": "确定搜索时触发"
6835
- },
6836
- {
6837
- "name": "input",
6838
- "description": "输入框内容变化时触发"
6839
- },
6840
- {
6841
- "name": "focus",
6842
- "description": "输入框获得焦点时触发"
6843
- },
6844
- {
6845
- "name": "blur",
6846
- "description": "输入框失去焦点时触发"
6847
- },
6848
- {
6849
- "name": "clear",
6850
- "description": "点击清除按钮后触发"
6851
- },
6852
- {
6853
- "name": "cancel",
6854
- "description": "点击取消按钮时触发"
6812
+ "name": "change",
6813
+ "description": "当前分值变化时触发的事件"
6855
6814
  }
6856
6815
  ],
6857
6816
  "attributes": [
6858
6817
  {
6859
- "name": "label",
6818
+ "name": "v-model",
6860
6819
  "default": "-",
6861
- "description": "搜索框左侧文本",
6820
+ "description": "当前分值",
6862
6821
  "value": {
6863
- "type": "string",
6822
+ "type": "number",
6864
6823
  "kind": "expression"
6865
6824
  }
6866
6825
  },
6867
6826
  {
6868
- "name": "shape",
6869
- "default": "`square`",
6870
- "description": "搜索框形状,可选值为 `round`",
6827
+ "name": "count",
6828
+ "default": "`5`",
6829
+ "description": "图标总数",
6871
6830
  "value": {
6872
- "type": "string",
6831
+ "type": "number | string",
6873
6832
  "kind": "expression"
6874
6833
  }
6875
6834
  },
6876
6835
  {
6877
- "name": "background",
6878
- "default": "`#f2f2f2`",
6879
- "description": "搜索框外部背景色",
6836
+ "name": "size",
6837
+ "default": "`20px`",
6838
+ "description": "图标大小,默认单位为`px`",
6880
6839
  "value": {
6881
- "type": "string",
6840
+ "type": "number | string",
6882
6841
  "kind": "expression"
6883
6842
  }
6884
6843
  },
6885
6844
  {
6886
- "name": "maxlength",
6887
- "default": "-",
6888
- "description": "输入的最大字符数",
6845
+ "name": "gutter",
6846
+ "default": "`4px`",
6847
+ "description": "图标间距,默认单位为`px`",
6889
6848
  "value": {
6890
6849
  "type": "number | string",
6891
6850
  "kind": "expression"
6892
6851
  }
6893
6852
  },
6894
6853
  {
6895
- "name": "placeholder",
6896
- "default": "-",
6897
- "description": "占位提示文字",
6854
+ "name": "color",
6855
+ "default": "`#ee0a24`",
6856
+ "description": "选中时的颜色",
6898
6857
  "value": {
6899
6858
  "type": "string",
6900
6859
  "kind": "expression"
6901
6860
  }
6902
6861
  },
6903
6862
  {
6904
- "name": "clearable",
6905
- "default": "`true`",
6906
- "description": "是否启用清除图标,点击清除图标后会清空输入框",
6863
+ "name": "void-color",
6864
+ "default": "`#c8c9cc`",
6865
+ "description": "未选中时的颜色",
6907
6866
  "value": {
6908
- "type": "boolean",
6867
+ "type": "string",
6909
6868
  "kind": "expression"
6910
6869
  }
6911
6870
  },
6912
6871
  {
6913
- "name": "clear-trigger",
6914
- "default": "`focus`",
6915
- "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
6872
+ "name": "disabled-color",
6873
+ "default": "`#c8c9cc`",
6874
+ "description": "禁用时的颜色",
6916
6875
  "value": {
6917
6876
  "type": "string",
6918
6877
  "kind": "expression"
6919
6878
  }
6920
6879
  },
6921
6880
  {
6922
- "name": "autofocus",
6923
- "default": "`false`",
6924
- "description": "是否自动聚焦,iOS 系统不支持该属性",
6881
+ "name": "icon",
6882
+ "default": "`star`",
6883
+ "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接",
6925
6884
  "value": {
6926
- "type": "boolean",
6885
+ "type": "string",
6927
6886
  "kind": "expression"
6928
6887
  }
6929
6888
  },
6930
6889
  {
6931
- "name": "show-action",
6932
- "default": "`false`",
6933
- "description": "是否在搜索框右侧显示取消按钮",
6890
+ "name": "void-icon",
6891
+ "default": "`star-o`",
6892
+ "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接",
6934
6893
  "value": {
6935
- "type": "boolean",
6894
+ "type": "string",
6936
6895
  "kind": "expression"
6937
6896
  }
6938
6897
  },
6939
6898
  {
6940
- "name": "action-text",
6941
- "default": "`取消`",
6942
- "description": "取消按钮文字",
6899
+ "name": "icon-prefix",
6900
+ "default": "`van-icon`",
6901
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
6943
6902
  "value": {
6944
- "type": "boolean",
6903
+ "type": "string",
6945
6904
  "kind": "expression"
6946
6905
  }
6947
6906
  },
6948
6907
  {
6949
- "name": "disabled",
6908
+ "name": "allow-half",
6950
6909
  "default": "`false`",
6951
- "description": "是否禁用输入框",
6910
+ "description": "是否允许半选",
6952
6911
  "value": {
6953
6912
  "type": "boolean",
6954
6913
  "kind": "expression"
@@ -6957,154 +6916,177 @@
6957
6916
  {
6958
6917
  "name": "readonly",
6959
6918
  "default": "`false`",
6960
- "description": "是否将输入框设为只读",
6919
+ "description": "是否为只读状态",
6961
6920
  "value": {
6962
6921
  "type": "boolean",
6963
6922
  "kind": "expression"
6964
6923
  }
6965
6924
  },
6966
6925
  {
6967
- "name": "error",
6926
+ "name": "disabled",
6968
6927
  "default": "`false`",
6969
- "description": "是否将输入内容标红",
6928
+ "description": "是否禁用评分",
6970
6929
  "value": {
6971
6930
  "type": "boolean",
6972
6931
  "kind": "expression"
6973
6932
  }
6974
6933
  },
6975
6934
  {
6976
- "name": "input-align",
6977
- "default": "`left`",
6978
- "description": "输入框内容对齐方式,可选值为 `center` `right`",
6935
+ "name": "touchable",
6936
+ "default": "`true`",
6937
+ "description": "是否可以通过滑动手势选择评分",
6979
6938
  "value": {
6980
- "type": "string",
6939
+ "type": "boolean",
6981
6940
  "kind": "expression"
6982
6941
  }
6942
+ }
6943
+ ]
6944
+ },
6945
+ {
6946
+ "name": "van-search",
6947
+ "slots": [
6948
+ {
6949
+ "name": "left",
6950
+ "description": "自定义左侧内容(搜索框外)"
6951
+ },
6952
+ {
6953
+ "name": "action",
6954
+ "description": "自定义右侧内容(搜索框外),设置`show-action`属性后展示"
6955
+ },
6956
+ {
6957
+ "name": "label",
6958
+ "description": "自定义左侧文本(搜索框内)"
6983
6959
  },
6984
6960
  {
6985
6961
  "name": "left-icon",
6986
- "default": "`search`",
6987
- "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接",
6988
- "value": {
6989
- "type": "string",
6990
- "kind": "expression"
6991
- }
6962
+ "description": "自定义左侧图标(搜索框内)"
6992
6963
  },
6993
6964
  {
6994
6965
  "name": "right-icon",
6995
- "default": "-",
6996
- "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接",
6997
- "value": {
6998
- "type": "string",
6999
- "kind": "expression"
7000
- }
6966
+ "description": "自定义右侧图标(搜索框内)"
7001
6967
  }
7002
- ]
7003
- },
7004
- {
7005
- "name": "van-rate",
7006
- "slots": [],
6968
+ ],
7007
6969
  "events": [
7008
6970
  {
7009
- "name": "change",
7010
- "description": "当前分值变化时触发的事件"
6971
+ "name": "search",
6972
+ "description": "确定搜索时触发"
6973
+ },
6974
+ {
6975
+ "name": "input",
6976
+ "description": "输入框内容变化时触发"
6977
+ },
6978
+ {
6979
+ "name": "focus",
6980
+ "description": "输入框获得焦点时触发"
6981
+ },
6982
+ {
6983
+ "name": "blur",
6984
+ "description": "输入框失去焦点时触发"
6985
+ },
6986
+ {
6987
+ "name": "clear",
6988
+ "description": "点击清除按钮后触发"
6989
+ },
6990
+ {
6991
+ "name": "cancel",
6992
+ "description": "点击取消按钮时触发"
7011
6993
  }
7012
6994
  ],
7013
6995
  "attributes": [
7014
6996
  {
7015
- "name": "v-model",
6997
+ "name": "label",
7016
6998
  "default": "-",
7017
- "description": "当前分值",
6999
+ "description": "搜索框左侧文本",
7018
7000
  "value": {
7019
- "type": "number",
7001
+ "type": "string",
7020
7002
  "kind": "expression"
7021
7003
  }
7022
7004
  },
7023
7005
  {
7024
- "name": "count",
7025
- "default": "`5`",
7026
- "description": "图标总数",
7006
+ "name": "shape",
7007
+ "default": "`square`",
7008
+ "description": "搜索框形状,可选值为 `round`",
7027
7009
  "value": {
7028
- "type": "number | string",
7010
+ "type": "string",
7029
7011
  "kind": "expression"
7030
7012
  }
7031
7013
  },
7032
7014
  {
7033
- "name": "size",
7034
- "default": "`20px`",
7035
- "description": "图标大小,默认单位为`px`",
7015
+ "name": "background",
7016
+ "default": "`#f2f2f2`",
7017
+ "description": "搜索框外部背景色",
7036
7018
  "value": {
7037
- "type": "number | string",
7019
+ "type": "string",
7038
7020
  "kind": "expression"
7039
7021
  }
7040
7022
  },
7041
7023
  {
7042
- "name": "gutter",
7043
- "default": "`4px`",
7044
- "description": "图标间距,默认单位为`px`",
7024
+ "name": "maxlength",
7025
+ "default": "-",
7026
+ "description": "输入的最大字符数",
7045
7027
  "value": {
7046
7028
  "type": "number | string",
7047
7029
  "kind": "expression"
7048
7030
  }
7049
7031
  },
7050
7032
  {
7051
- "name": "color",
7052
- "default": "`#ee0a24`",
7053
- "description": "选中时的颜色",
7033
+ "name": "placeholder",
7034
+ "default": "-",
7035
+ "description": "占位提示文字",
7054
7036
  "value": {
7055
7037
  "type": "string",
7056
7038
  "kind": "expression"
7057
7039
  }
7058
7040
  },
7059
7041
  {
7060
- "name": "void-color",
7061
- "default": "`#c8c9cc`",
7062
- "description": "未选中时的颜色",
7042
+ "name": "clearable",
7043
+ "default": "`true`",
7044
+ "description": "是否启用清除图标,点击清除图标后会清空输入框",
7063
7045
  "value": {
7064
- "type": "string",
7046
+ "type": "boolean",
7065
7047
  "kind": "expression"
7066
7048
  }
7067
7049
  },
7068
7050
  {
7069
- "name": "disabled-color",
7070
- "default": "`#c8c9cc`",
7071
- "description": "禁用时的颜色",
7051
+ "name": "clear-trigger",
7052
+ "default": "`focus`",
7053
+ "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
7072
7054
  "value": {
7073
7055
  "type": "string",
7074
7056
  "kind": "expression"
7075
7057
  }
7076
7058
  },
7077
7059
  {
7078
- "name": "icon",
7079
- "default": "`star`",
7080
- "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接",
7060
+ "name": "autofocus",
7061
+ "default": "`false`",
7062
+ "description": "是否自动聚焦,iOS 系统不支持该属性",
7081
7063
  "value": {
7082
- "type": "string",
7064
+ "type": "boolean",
7083
7065
  "kind": "expression"
7084
7066
  }
7085
7067
  },
7086
7068
  {
7087
- "name": "void-icon",
7088
- "default": "`star-o`",
7089
- "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接",
7069
+ "name": "show-action",
7070
+ "default": "`false`",
7071
+ "description": "是否在搜索框右侧显示取消按钮",
7090
7072
  "value": {
7091
- "type": "string",
7073
+ "type": "boolean",
7092
7074
  "kind": "expression"
7093
7075
  }
7094
7076
  },
7095
7077
  {
7096
- "name": "icon-prefix",
7097
- "default": "`van-icon`",
7098
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
7078
+ "name": "action-text",
7079
+ "default": "`取消`",
7080
+ "description": "取消按钮文字",
7099
7081
  "value": {
7100
- "type": "string",
7082
+ "type": "boolean",
7101
7083
  "kind": "expression"
7102
7084
  }
7103
7085
  },
7104
7086
  {
7105
- "name": "allow-half",
7087
+ "name": "disabled",
7106
7088
  "default": "`false`",
7107
- "description": "是否允许半选",
7089
+ "description": "是否禁用输入框",
7108
7090
  "value": {
7109
7091
  "type": "boolean",
7110
7092
  "kind": "expression"
@@ -7113,27 +7095,45 @@
7113
7095
  {
7114
7096
  "name": "readonly",
7115
7097
  "default": "`false`",
7116
- "description": "是否为只读状态",
7098
+ "description": "是否将输入框设为只读",
7117
7099
  "value": {
7118
7100
  "type": "boolean",
7119
7101
  "kind": "expression"
7120
7102
  }
7121
7103
  },
7122
7104
  {
7123
- "name": "disabled",
7105
+ "name": "error",
7124
7106
  "default": "`false`",
7125
- "description": "是否禁用评分",
7107
+ "description": "是否将输入内容标红",
7126
7108
  "value": {
7127
7109
  "type": "boolean",
7128
7110
  "kind": "expression"
7129
7111
  }
7130
7112
  },
7131
7113
  {
7132
- "name": "touchable",
7133
- "default": "`true`",
7134
- "description": "是否可以通过滑动手势选择评分",
7114
+ "name": "input-align",
7115
+ "default": "`left`",
7116
+ "description": "输入框内容对齐方式,可选值为 `center` `right`",
7135
7117
  "value": {
7136
- "type": "boolean",
7118
+ "type": "string",
7119
+ "kind": "expression"
7120
+ }
7121
+ },
7122
+ {
7123
+ "name": "left-icon",
7124
+ "default": "`search`",
7125
+ "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接",
7126
+ "value": {
7127
+ "type": "string",
7128
+ "kind": "expression"
7129
+ }
7130
+ },
7131
+ {
7132
+ "name": "right-icon",
7133
+ "default": "-",
7134
+ "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接",
7135
+ "value": {
7136
+ "type": "string",
7137
7137
  "kind": "expression"
7138
7138
  }
7139
7139
  }
@@ -7380,104 +7380,240 @@
7380
7380
  "default": "`false`",
7381
7381
  "description": "是否在跳转时替换当前页面历史",
7382
7382
  "value": {
7383
- "type": "boolean",
7383
+ "type": "boolean",
7384
+ "kind": "expression"
7385
+ }
7386
+ }
7387
+ ]
7388
+ },
7389
+ {
7390
+ "name": "van-skeleton",
7391
+ "slots": [],
7392
+ "events": [],
7393
+ "attributes": [
7394
+ {
7395
+ "name": "row",
7396
+ "default": "`0`",
7397
+ "description": "段落占位图行数",
7398
+ "value": {
7399
+ "type": "number | string",
7400
+ "kind": "expression"
7401
+ }
7402
+ },
7403
+ {
7404
+ "name": "row-width",
7405
+ "default": "<br>(number \\",
7406
+ "description": "段落占位图宽度,可传数组来设置每一行的宽度",
7407
+ "value": {
7408
+ "type": "number | string \\",
7409
+ "kind": "expression"
7410
+ }
7411
+ },
7412
+ {
7413
+ "name": "title",
7414
+ "default": "`false`",
7415
+ "description": "是否显示标题占位图",
7416
+ "value": {
7417
+ "type": "boolean",
7418
+ "kind": "expression"
7419
+ }
7420
+ },
7421
+ {
7422
+ "name": "avatar",
7423
+ "default": "`false`",
7424
+ "description": "是否显示头像占位图",
7425
+ "value": {
7426
+ "type": "boolean",
7427
+ "kind": "expression"
7428
+ }
7429
+ },
7430
+ {
7431
+ "name": "loading",
7432
+ "default": "`true`",
7433
+ "description": "是否显示骨架屏,传 `false` 时会展示子组件内容",
7434
+ "value": {
7435
+ "type": "boolean",
7436
+ "kind": "expression"
7437
+ }
7438
+ },
7439
+ {
7440
+ "name": "animate",
7441
+ "default": "`true`",
7442
+ "description": "是否开启动画",
7443
+ "value": {
7444
+ "type": "boolean",
7445
+ "kind": "expression"
7446
+ }
7447
+ },
7448
+ {
7449
+ "name": "round",
7450
+ "default": "`false`",
7451
+ "description": "是否将标题和段落显示为圆角风格",
7452
+ "value": {
7453
+ "type": "boolean",
7454
+ "kind": "expression"
7455
+ }
7456
+ },
7457
+ {
7458
+ "name": "title-width",
7459
+ "default": "`40%`",
7460
+ "description": "标题占位图宽度",
7461
+ "value": {
7462
+ "type": "number | string",
7463
+ "kind": "expression"
7464
+ }
7465
+ },
7466
+ {
7467
+ "name": "avatar-size",
7468
+ "default": "`32px`",
7469
+ "description": "头像占位图大小",
7470
+ "value": {
7471
+ "type": "number | string",
7472
+ "kind": "expression"
7473
+ }
7474
+ },
7475
+ {
7476
+ "name": "avatar-shape",
7477
+ "default": "`round`",
7478
+ "description": "头像占位图形状,可选值为`square`",
7479
+ "value": {
7480
+ "type": "string",
7481
+ "kind": "expression"
7482
+ }
7483
+ }
7484
+ ]
7485
+ },
7486
+ {
7487
+ "name": "van-slider",
7488
+ "slots": [
7489
+ {
7490
+ "name": "button",
7491
+ "description": "自定义滑动按钮"
7492
+ },
7493
+ {
7494
+ "name": "left-button",
7495
+ "description": "自定义左侧滑块按钮(双滑块模式下)"
7496
+ },
7497
+ {
7498
+ "name": "right-button",
7499
+ "description": "自定义右侧滑块按钮(双滑块模式下)"
7500
+ }
7501
+ ],
7502
+ "events": [
7503
+ {
7504
+ "name": "input",
7505
+ "description": "进度变化时实时触发"
7506
+ },
7507
+ {
7508
+ "name": "change",
7509
+ "description": "进度变化且结束拖动后触发"
7510
+ },
7511
+ {
7512
+ "name": "drag-start",
7513
+ "description": "开始拖动时触发"
7514
+ },
7515
+ {
7516
+ "name": "drag-end",
7517
+ "description": "结束拖动时触发"
7518
+ }
7519
+ ],
7520
+ "attributes": [
7521
+ {
7522
+ "name": "value",
7523
+ "default": "`0`",
7524
+ "description": "当前进度百分比",
7525
+ "value": {
7526
+ "type": "number | array",
7527
+ "kind": "expression"
7528
+ }
7529
+ },
7530
+ {
7531
+ "name": "max",
7532
+ "default": "`100`",
7533
+ "description": "最大值",
7534
+ "value": {
7535
+ "type": "number | string",
7384
7536
  "kind": "expression"
7385
7537
  }
7386
- }
7387
- ]
7388
- },
7389
- {
7390
- "name": "van-skeleton",
7391
- "slots": [],
7392
- "events": [],
7393
- "attributes": [
7538
+ },
7394
7539
  {
7395
- "name": "row",
7540
+ "name": "min",
7396
7541
  "default": "`0`",
7397
- "description": "段落占位图行数",
7542
+ "description": "最小值",
7398
7543
  "value": {
7399
7544
  "type": "number | string",
7400
7545
  "kind": "expression"
7401
7546
  }
7402
7547
  },
7403
7548
  {
7404
- "name": "row-width",
7405
- "default": "<br>(number \\",
7406
- "description": "段落占位图宽度,可传数组来设置每一行的宽度",
7549
+ "name": "step",
7550
+ "default": "`1`",
7551
+ "description": "步长",
7407
7552
  "value": {
7408
- "type": "number | string \\",
7553
+ "type": "number | string",
7409
7554
  "kind": "expression"
7410
7555
  }
7411
7556
  },
7412
7557
  {
7413
- "name": "title",
7414
- "default": "`false`",
7415
- "description": "是否显示标题占位图",
7558
+ "name": "bar-height",
7559
+ "default": "`2px`",
7560
+ "description": "进度条高度,默认单位为`px`",
7416
7561
  "value": {
7417
- "type": "boolean",
7562
+ "type": "number | string",
7418
7563
  "kind": "expression"
7419
7564
  }
7420
7565
  },
7421
7566
  {
7422
- "name": "avatar",
7423
- "default": "`false`",
7424
- "description": "是否显示头像占位图",
7567
+ "name": "button-size",
7568
+ "default": "`24px`",
7569
+ "description": "滑块按钮大小,默认单位为`px`",
7425
7570
  "value": {
7426
- "type": "boolean",
7571
+ "type": "number | string",
7427
7572
  "kind": "expression"
7428
7573
  }
7429
7574
  },
7430
7575
  {
7431
- "name": "loading",
7432
- "default": "`true`",
7433
- "description": "是否显示骨架屏,传 `false` 时会展示子组件内容",
7576
+ "name": "active-color",
7577
+ "default": "`#1989fa`",
7578
+ "description": "进度条激活态颜色",
7434
7579
  "value": {
7435
- "type": "boolean",
7580
+ "type": "string",
7436
7581
  "kind": "expression"
7437
7582
  }
7438
7583
  },
7439
7584
  {
7440
- "name": "animate",
7441
- "default": "`true`",
7442
- "description": "是否开启动画",
7585
+ "name": "inactive-color",
7586
+ "default": "`#e5e5e5`",
7587
+ "description": "进度条非激活态颜色",
7443
7588
  "value": {
7444
- "type": "boolean",
7589
+ "type": "string",
7445
7590
  "kind": "expression"
7446
7591
  }
7447
7592
  },
7448
7593
  {
7449
- "name": "round",
7594
+ "name": "range",
7450
7595
  "default": "`false`",
7451
- "description": "是否将标题和段落显示为圆角风格",
7596
+ "description": "是否开启双滑块模式",
7452
7597
  "value": {
7453
7598
  "type": "boolean",
7454
7599
  "kind": "expression"
7455
7600
  }
7456
7601
  },
7457
7602
  {
7458
- "name": "title-width",
7459
- "default": "`40%`",
7460
- "description": "标题占位图宽度",
7461
- "value": {
7462
- "type": "number | string",
7463
- "kind": "expression"
7464
- }
7465
- },
7466
- {
7467
- "name": "avatar-size",
7468
- "default": "`32px`",
7469
- "description": "头像占位图大小",
7603
+ "name": "disabled",
7604
+ "default": "`false`",
7605
+ "description": "是否禁用滑块",
7470
7606
  "value": {
7471
- "type": "number | string",
7607
+ "type": "boolean",
7472
7608
  "kind": "expression"
7473
7609
  }
7474
7610
  },
7475
7611
  {
7476
- "name": "avatar-shape",
7477
- "default": "`round`",
7478
- "description": "头像占位图形状,可选值为`square`",
7612
+ "name": "vertical",
7613
+ "default": "`false`",
7614
+ "description": "是否垂直展示",
7479
7615
  "value": {
7480
- "type": "string",
7616
+ "type": "boolean",
7481
7617
  "kind": "expression"
7482
7618
  }
7483
7619
  }
@@ -7859,142 +7995,6 @@
7859
7995
  }
7860
7996
  ]
7861
7997
  },
7862
- {
7863
- "name": "van-slider",
7864
- "slots": [
7865
- {
7866
- "name": "button",
7867
- "description": "自定义滑动按钮"
7868
- },
7869
- {
7870
- "name": "left-button",
7871
- "description": "自定义左侧滑块按钮(双滑块模式下)"
7872
- },
7873
- {
7874
- "name": "right-button",
7875
- "description": "自定义右侧滑块按钮(双滑块模式下)"
7876
- }
7877
- ],
7878
- "events": [
7879
- {
7880
- "name": "input",
7881
- "description": "进度变化时实时触发"
7882
- },
7883
- {
7884
- "name": "change",
7885
- "description": "进度变化且结束拖动后触发"
7886
- },
7887
- {
7888
- "name": "drag-start",
7889
- "description": "开始拖动时触发"
7890
- },
7891
- {
7892
- "name": "drag-end",
7893
- "description": "结束拖动时触发"
7894
- }
7895
- ],
7896
- "attributes": [
7897
- {
7898
- "name": "value",
7899
- "default": "`0`",
7900
- "description": "当前进度百分比",
7901
- "value": {
7902
- "type": "number | array",
7903
- "kind": "expression"
7904
- }
7905
- },
7906
- {
7907
- "name": "max",
7908
- "default": "`100`",
7909
- "description": "最大值",
7910
- "value": {
7911
- "type": "number | string",
7912
- "kind": "expression"
7913
- }
7914
- },
7915
- {
7916
- "name": "min",
7917
- "default": "`0`",
7918
- "description": "最小值",
7919
- "value": {
7920
- "type": "number | string",
7921
- "kind": "expression"
7922
- }
7923
- },
7924
- {
7925
- "name": "step",
7926
- "default": "`1`",
7927
- "description": "步长",
7928
- "value": {
7929
- "type": "number | string",
7930
- "kind": "expression"
7931
- }
7932
- },
7933
- {
7934
- "name": "bar-height",
7935
- "default": "`2px`",
7936
- "description": "进度条高度,默认单位为`px`",
7937
- "value": {
7938
- "type": "number | string",
7939
- "kind": "expression"
7940
- }
7941
- },
7942
- {
7943
- "name": "button-size",
7944
- "default": "`24px`",
7945
- "description": "滑块按钮大小,默认单位为`px`",
7946
- "value": {
7947
- "type": "number | string",
7948
- "kind": "expression"
7949
- }
7950
- },
7951
- {
7952
- "name": "active-color",
7953
- "default": "`#1989fa`",
7954
- "description": "进度条激活态颜色",
7955
- "value": {
7956
- "type": "string",
7957
- "kind": "expression"
7958
- }
7959
- },
7960
- {
7961
- "name": "inactive-color",
7962
- "default": "`#e5e5e5`",
7963
- "description": "进度条非激活态颜色",
7964
- "value": {
7965
- "type": "string",
7966
- "kind": "expression"
7967
- }
7968
- },
7969
- {
7970
- "name": "range",
7971
- "default": "`false`",
7972
- "description": "是否开启双滑块模式",
7973
- "value": {
7974
- "type": "boolean",
7975
- "kind": "expression"
7976
- }
7977
- },
7978
- {
7979
- "name": "disabled",
7980
- "default": "`false`",
7981
- "description": "是否禁用滑块",
7982
- "value": {
7983
- "type": "boolean",
7984
- "kind": "expression"
7985
- }
7986
- },
7987
- {
7988
- "name": "vertical",
7989
- "default": "`false`",
7990
- "description": "是否垂直展示",
7991
- "value": {
7992
- "type": "boolean",
7993
- "kind": "expression"
7994
- }
7995
- }
7996
- ]
7997
- },
7998
7998
  {
7999
7999
  "name": "van-stepper",
8000
8000
  "slots": [],
@@ -8763,48 +8763,25 @@
8763
8763
  ]
8764
8764
  },
8765
8765
  {
8766
- "name": "van-switch-cell",
8766
+ "name": "van-switch",
8767
8767
  "slots": [],
8768
8768
  "events": [
8769
8769
  {
8770
8770
  "name": "change",
8771
- "description": "开关状态切换回调"
8772
- }
8773
- ],
8774
- "attributes": [
8775
- {
8776
- "name": "v-model",
8777
- "default": "`false`",
8778
- "description": "开关状态",
8779
- "value": {
8780
- "type": "any",
8781
- "kind": "expression"
8782
- }
8783
- },
8784
- {
8785
- "name": "title",
8786
- "default": "`''`",
8787
- "description": "左侧标题",
8788
- "value": {
8789
- "type": "string",
8790
- "kind": "expression"
8791
- }
8771
+ "description": "开关状态切换时触发"
8792
8772
  },
8793
8773
  {
8794
- "name": "border",
8795
- "default": "`true`",
8796
- "description": "是否展示单元格内边框",
8797
- "value": {
8798
- "type": "boolean",
8799
- "kind": "expression"
8800
- }
8801
- },
8774
+ "name": "click",
8775
+ "description": "点击时触发"
8776
+ }
8777
+ ],
8778
+ "attributes": [
8802
8779
  {
8803
- "name": "cell-size",
8804
- "default": "-",
8805
- "description": "单元格大小,可选值为 `large`",
8780
+ "name": "v-model",
8781
+ "default": "`false`",
8782
+ "description": "开关选中状态",
8806
8783
  "value": {
8807
- "type": "string",
8784
+ "type": "any",
8808
8785
  "kind": "expression"
8809
8786
  }
8810
8787
  },
@@ -8828,8 +8805,8 @@
8828
8805
  },
8829
8806
  {
8830
8807
  "name": "size",
8831
- "default": "`24px`",
8832
- "description": "开关尺寸",
8808
+ "default": "`30px`",
8809
+ "description": "开关尺寸,默认单位为`px`",
8833
8810
  "value": {
8834
8811
  "type": "number | string",
8835
8812
  "kind": "expression"
@@ -8838,7 +8815,7 @@
8838
8815
  {
8839
8816
  "name": "active-color",
8840
8817
  "default": "`#1989fa`",
8841
- "description": "开关时的背景色",
8818
+ "description": "打开时的背景色",
8842
8819
  "value": {
8843
8820
  "type": "string",
8844
8821
  "kind": "expression"
@@ -8847,7 +8824,7 @@
8847
8824
  {
8848
8825
  "name": "inactive-color",
8849
8826
  "default": "`white`",
8850
- "description": "开关时的背景色",
8827
+ "description": "关闭时的背景色",
8851
8828
  "value": {
8852
8829
  "type": "string",
8853
8830
  "kind": "expression"
@@ -8856,7 +8833,7 @@
8856
8833
  {
8857
8834
  "name": "active-value",
8858
8835
  "default": "`true`",
8859
- "description": "打开时的值",
8836
+ "description": "打开时对应的值",
8860
8837
  "value": {
8861
8838
  "type": "any",
8862
8839
  "kind": "expression"
@@ -8865,7 +8842,7 @@
8865
8842
  {
8866
8843
  "name": "inactive-value",
8867
8844
  "default": "`false`",
8868
- "description": "关闭时的值",
8845
+ "description": "关闭时对应的值",
8869
8846
  "value": {
8870
8847
  "type": "any",
8871
8848
  "kind": "expression"
@@ -8874,28 +8851,51 @@
8874
8851
  ]
8875
8852
  },
8876
8853
  {
8877
- "name": "van-switch",
8854
+ "name": "van-switch-cell",
8878
8855
  "slots": [],
8879
8856
  "events": [
8880
8857
  {
8881
8858
  "name": "change",
8882
- "description": "开关状态切换时触发"
8883
- },
8884
- {
8885
- "name": "click",
8886
- "description": "点击时触发"
8859
+ "description": "开关状态切换回调"
8887
8860
  }
8888
8861
  ],
8889
8862
  "attributes": [
8890
8863
  {
8891
8864
  "name": "v-model",
8892
8865
  "default": "`false`",
8893
- "description": "开关选中状态",
8866
+ "description": "开关状态",
8894
8867
  "value": {
8895
8868
  "type": "any",
8896
8869
  "kind": "expression"
8897
8870
  }
8898
8871
  },
8872
+ {
8873
+ "name": "title",
8874
+ "default": "`''`",
8875
+ "description": "左侧标题",
8876
+ "value": {
8877
+ "type": "string",
8878
+ "kind": "expression"
8879
+ }
8880
+ },
8881
+ {
8882
+ "name": "border",
8883
+ "default": "`true`",
8884
+ "description": "是否展示单元格内边框",
8885
+ "value": {
8886
+ "type": "boolean",
8887
+ "kind": "expression"
8888
+ }
8889
+ },
8890
+ {
8891
+ "name": "cell-size",
8892
+ "default": "-",
8893
+ "description": "单元格大小,可选值为 `large`",
8894
+ "value": {
8895
+ "type": "string",
8896
+ "kind": "expression"
8897
+ }
8898
+ },
8899
8899
  {
8900
8900
  "name": "loading",
8901
8901
  "default": "`false`",
@@ -8916,8 +8916,8 @@
8916
8916
  },
8917
8917
  {
8918
8918
  "name": "size",
8919
- "default": "`30px`",
8920
- "description": "开关尺寸,默认单位为`px`",
8919
+ "default": "`24px`",
8920
+ "description": "开关尺寸",
8921
8921
  "value": {
8922
8922
  "type": "number | string",
8923
8923
  "kind": "expression"
@@ -8926,7 +8926,7 @@
8926
8926
  {
8927
8927
  "name": "active-color",
8928
8928
  "default": "`#1989fa`",
8929
- "description": "打开时的背景色",
8929
+ "description": "开关时的背景色",
8930
8930
  "value": {
8931
8931
  "type": "string",
8932
8932
  "kind": "expression"
@@ -8935,7 +8935,7 @@
8935
8935
  {
8936
8936
  "name": "inactive-color",
8937
8937
  "default": "`white`",
8938
- "description": "关闭时的背景色",
8938
+ "description": "开关时的背景色",
8939
8939
  "value": {
8940
8940
  "type": "string",
8941
8941
  "kind": "expression"
@@ -8944,7 +8944,7 @@
8944
8944
  {
8945
8945
  "name": "active-value",
8946
8946
  "default": "`true`",
8947
- "description": "打开时对应的值",
8947
+ "description": "打开时的值",
8948
8948
  "value": {
8949
8949
  "type": "any",
8950
8950
  "kind": "expression"
@@ -8953,7 +8953,7 @@
8953
8953
  {
8954
8954
  "name": "inactive-value",
8955
8955
  "default": "`false`",
8956
- "description": "关闭时对应的值",
8956
+ "description": "关闭时的值",
8957
8957
  "value": {
8958
8958
  "type": "any",
8959
8959
  "kind": "expression"
@@ -9479,6 +9479,99 @@
9479
9479
  }
9480
9480
  ]
9481
9481
  },
9482
+ {
9483
+ "name": "van-tag",
9484
+ "slots": [
9485
+ {
9486
+ "name": "default",
9487
+ "description": "标签显示内容"
9488
+ }
9489
+ ],
9490
+ "events": [
9491
+ {
9492
+ "name": "click",
9493
+ "description": "点击时触发"
9494
+ },
9495
+ {
9496
+ "name": "close",
9497
+ "description": "关闭标签时触发"
9498
+ }
9499
+ ],
9500
+ "attributes": [
9501
+ {
9502
+ "name": "type",
9503
+ "default": "`default`",
9504
+ "description": "类型,可选值为`primary` `success` `danger` `warning`",
9505
+ "value": {
9506
+ "type": "string",
9507
+ "kind": "expression"
9508
+ }
9509
+ },
9510
+ {
9511
+ "name": "size",
9512
+ "default": "-",
9513
+ "description": "大小, 可选值为`large` `medium`",
9514
+ "value": {
9515
+ "type": "string",
9516
+ "kind": "expression"
9517
+ }
9518
+ },
9519
+ {
9520
+ "name": "color",
9521
+ "default": "-",
9522
+ "description": "标签颜色",
9523
+ "value": {
9524
+ "type": "string",
9525
+ "kind": "expression"
9526
+ }
9527
+ },
9528
+ {
9529
+ "name": "plain",
9530
+ "default": "`false`",
9531
+ "description": "是否为空心样式",
9532
+ "value": {
9533
+ "type": "boolean",
9534
+ "kind": "expression"
9535
+ }
9536
+ },
9537
+ {
9538
+ "name": "round",
9539
+ "default": "`false`",
9540
+ "description": "是否为圆角样式",
9541
+ "value": {
9542
+ "type": "boolean",
9543
+ "kind": "expression"
9544
+ }
9545
+ },
9546
+ {
9547
+ "name": "mark",
9548
+ "default": "`false`",
9549
+ "description": "是否为标记样式",
9550
+ "value": {
9551
+ "type": "boolean",
9552
+ "kind": "expression"
9553
+ }
9554
+ },
9555
+ {
9556
+ "name": "text-color",
9557
+ "default": "`white`",
9558
+ "description": "文本颜色,优先级高于`color`属性",
9559
+ "value": {
9560
+ "type": "string",
9561
+ "kind": "expression"
9562
+ }
9563
+ },
9564
+ {
9565
+ "name": "closeable",
9566
+ "default": "`false`",
9567
+ "description": "是否为可关闭标签",
9568
+ "value": {
9569
+ "type": "boolean",
9570
+ "kind": "expression"
9571
+ }
9572
+ }
9573
+ ]
9574
+ },
9482
9575
  {
9483
9576
  "name": "van-tree-select",
9484
9577
  "slots": [
@@ -9797,99 +9890,6 @@
9797
9890
  }
9798
9891
  }
9799
9892
  ]
9800
- },
9801
- {
9802
- "name": "van-tag",
9803
- "slots": [
9804
- {
9805
- "name": "default",
9806
- "description": "标签显示内容"
9807
- }
9808
- ],
9809
- "events": [
9810
- {
9811
- "name": "click",
9812
- "description": "点击时触发"
9813
- },
9814
- {
9815
- "name": "close",
9816
- "description": "关闭标签时触发"
9817
- }
9818
- ],
9819
- "attributes": [
9820
- {
9821
- "name": "type",
9822
- "default": "`default`",
9823
- "description": "类型,可选值为`primary` `success` `danger` `warning`",
9824
- "value": {
9825
- "type": "string",
9826
- "kind": "expression"
9827
- }
9828
- },
9829
- {
9830
- "name": "size",
9831
- "default": "-",
9832
- "description": "大小, 可选值为`large` `medium`",
9833
- "value": {
9834
- "type": "string",
9835
- "kind": "expression"
9836
- }
9837
- },
9838
- {
9839
- "name": "color",
9840
- "default": "-",
9841
- "description": "标签颜色",
9842
- "value": {
9843
- "type": "string",
9844
- "kind": "expression"
9845
- }
9846
- },
9847
- {
9848
- "name": "plain",
9849
- "default": "`false`",
9850
- "description": "是否为空心样式",
9851
- "value": {
9852
- "type": "boolean",
9853
- "kind": "expression"
9854
- }
9855
- },
9856
- {
9857
- "name": "round",
9858
- "default": "`false`",
9859
- "description": "是否为圆角样式",
9860
- "value": {
9861
- "type": "boolean",
9862
- "kind": "expression"
9863
- }
9864
- },
9865
- {
9866
- "name": "mark",
9867
- "default": "`false`",
9868
- "description": "是否为标记样式",
9869
- "value": {
9870
- "type": "boolean",
9871
- "kind": "expression"
9872
- }
9873
- },
9874
- {
9875
- "name": "text-color",
9876
- "default": "`white`",
9877
- "description": "文本颜色,优先级高于`color`属性",
9878
- "value": {
9879
- "type": "string",
9880
- "kind": "expression"
9881
- }
9882
- },
9883
- {
9884
- "name": "closeable",
9885
- "default": "`false`",
9886
- "description": "是否为可关闭标签",
9887
- "value": {
9888
- "type": "boolean",
9889
- "kind": "expression"
9890
- }
9891
- }
9892
- ]
9893
9893
  }
9894
9894
  ],
9895
9895
  "attributes": [],