vant 2.12.48 → 2.12.49

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.
Files changed (61) hide show
  1. package/README.md +11 -11
  2. package/README.zh-CN.md +9 -9
  3. package/changelog.generated.md +24 -0
  4. package/es/button/index.less +1 -1
  5. package/es/calendar/index.js +2 -2
  6. package/es/collapse-item/index.less +1 -1
  7. package/es/count-down/index.js +1 -1
  8. package/es/datetime-picker/DatePicker.js +1 -1
  9. package/es/datetime-picker/TimePicker.js +1 -1
  10. package/es/datetime-picker/shared.js +1 -1
  11. package/es/field/index.js +3 -3
  12. package/es/grid-item/index.less +1 -1
  13. package/es/index.js +1 -1
  14. package/es/locale/lang/vi-VN.js +18 -18
  15. package/es/mixins/touch.js +1 -1
  16. package/es/nav-bar/index.js +1 -1
  17. package/es/notice-bar/index.js +1 -1
  18. package/es/number-keyboard/Key.js +1 -1
  19. package/es/picker/index.js +2 -2
  20. package/es/sidebar-item/index.less +1 -1
  21. package/es/stepper/index.js +1 -1
  22. package/es/swipe/index.less +1 -1
  23. package/es/switch/index.less +1 -1
  24. package/es/switch-cell/index.js +1 -1
  25. package/es/tabbar/index.js +1 -1
  26. package/es/tabs/index.js +1 -1
  27. package/es/toast/index.less +1 -1
  28. package/es/utils/dom/scroll.js +1 -1
  29. package/es/utils/index.js +1 -1
  30. package/lib/button/index.less +1 -1
  31. package/lib/calendar/index.js +2 -2
  32. package/lib/collapse-item/index.less +1 -1
  33. package/lib/count-down/index.js +1 -1
  34. package/lib/datetime-picker/DatePicker.js +1 -1
  35. package/lib/datetime-picker/TimePicker.js +1 -1
  36. package/lib/datetime-picker/shared.js +1 -1
  37. package/lib/field/index.js +3 -3
  38. package/lib/grid-item/index.less +1 -1
  39. package/lib/index.js +1 -1
  40. package/lib/locale/lang/vi-VN.js +18 -18
  41. package/lib/mixins/touch.js +1 -1
  42. package/lib/nav-bar/index.js +1 -1
  43. package/lib/notice-bar/index.js +1 -1
  44. package/lib/number-keyboard/Key.js +1 -1
  45. package/lib/picker/index.js +2 -2
  46. package/lib/sidebar-item/index.less +1 -1
  47. package/lib/stepper/index.js +1 -1
  48. package/lib/swipe/index.less +1 -1
  49. package/lib/switch/index.less +1 -1
  50. package/lib/switch-cell/index.js +1 -1
  51. package/lib/tabbar/index.js +1 -1
  52. package/lib/tabs/index.js +1 -1
  53. package/lib/toast/index.less +1 -1
  54. package/lib/utils/dom/scroll.js +1 -1
  55. package/lib/utils/index.js +1 -1
  56. package/lib/vant.js +21 -21
  57. package/lib/vant.min.js +2 -2
  58. package/package.json +3 -3
  59. package/vetur/attributes.json +426 -426
  60. package/vetur/tags.json +137 -137
  61. package/vetur/web-types.json +1074 -1074
@@ -2,7 +2,7 @@
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.12.48",
5
+ "version": "2.12.49",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -204,6 +204,118 @@
204
204
  }
205
205
  ]
206
206
  },
207
+ {
208
+ "name": "van-address-list",
209
+ "slots": [
210
+ {
211
+ "name": "default",
212
+ "description": "在列表下方插入内容"
213
+ },
214
+ {
215
+ "name": "top",
216
+ "description": "在顶部插入内容"
217
+ },
218
+ {
219
+ "name": "item-bottom",
220
+ "description": "在列表项底部插入内容"
221
+ },
222
+ {
223
+ "name": "tag",
224
+ "description": "列表项标签内容自定义"
225
+ }
226
+ ],
227
+ "events": [
228
+ {
229
+ "name": "add",
230
+ "description": "点击新增按钮时触发"
231
+ },
232
+ {
233
+ "name": "edit",
234
+ "description": "点击编辑按钮时触发"
235
+ },
236
+ {
237
+ "name": "select",
238
+ "description": "切换选中的地址时触发"
239
+ },
240
+ {
241
+ "name": "edit-disabled",
242
+ "description": "编辑不可配送的地址时触发"
243
+ },
244
+ {
245
+ "name": "select-disabled",
246
+ "description": "选中不可配送的地址时触发"
247
+ },
248
+ {
249
+ "name": "click-item",
250
+ "description": "点击任意地址时触发"
251
+ }
252
+ ],
253
+ "attributes": [
254
+ {
255
+ "name": "v-model",
256
+ "default": "-",
257
+ "description": "当前选中地址的 id",
258
+ "value": {
259
+ "type": "string",
260
+ "kind": "expression"
261
+ }
262
+ },
263
+ {
264
+ "name": "list",
265
+ "default": "`[]`",
266
+ "description": "地址列表",
267
+ "value": {
268
+ "type": "Address[]",
269
+ "kind": "expression"
270
+ }
271
+ },
272
+ {
273
+ "name": "disabled-list",
274
+ "default": "`[]`",
275
+ "description": "不可配送地址列表",
276
+ "value": {
277
+ "type": "Address[]",
278
+ "kind": "expression"
279
+ }
280
+ },
281
+ {
282
+ "name": "disabled-text",
283
+ "default": "-",
284
+ "description": "不可配送提示文案",
285
+ "value": {
286
+ "type": "string",
287
+ "kind": "expression"
288
+ }
289
+ },
290
+ {
291
+ "name": "switchable",
292
+ "default": "`true`",
293
+ "description": "是否允许切换地址",
294
+ "value": {
295
+ "type": "boolean",
296
+ "kind": "expression"
297
+ }
298
+ },
299
+ {
300
+ "name": "add-button-text",
301
+ "default": "`新增地址`",
302
+ "description": "底部按钮文字",
303
+ "value": {
304
+ "type": "string",
305
+ "kind": "expression"
306
+ }
307
+ },
308
+ {
309
+ "name": "default-tag-text",
310
+ "default": "-",
311
+ "description": "默认地址标签文字",
312
+ "value": {
313
+ "type": "string",
314
+ "kind": "expression"
315
+ }
316
+ }
317
+ ]
318
+ },
207
319
  {
208
320
  "name": "van-address-edit",
209
321
  "slots": [
@@ -602,123 +714,290 @@
602
714
  ]
603
715
  },
604
716
  {
605
- "name": "van-address-list",
717
+ "name": "van-badge",
606
718
  "slots": [
607
719
  {
608
720
  "name": "default",
609
- "description": "在列表下方插入内容"
610
- },
611
- {
612
- "name": "top",
613
- "description": "在顶部插入内容"
614
- },
615
- {
616
- "name": "item-bottom",
617
- "description": "在列表项底部插入内容"
721
+ "description": "徽标包裹的子元素"
618
722
  },
619
723
  {
620
- "name": "tag",
621
- "description": "列表项标签内容自定义"
724
+ "name": "content",
725
+ "description": "自定义徽标内容"
622
726
  }
623
727
  ],
624
- "events": [
728
+ "events": [],
729
+ "attributes": [
625
730
  {
626
- "name": "add",
627
- "description": "点击新增按钮时触发"
731
+ "name": "content",
732
+ "default": "-",
733
+ "description": "徽标内容",
734
+ "value": {
735
+ "type": "number | string",
736
+ "kind": "expression"
737
+ }
628
738
  },
629
739
  {
630
- "name": "edit",
631
- "description": "点击编辑按钮时触发"
740
+ "name": "color",
741
+ "default": "`#ee0a24`",
742
+ "description": "徽标背景颜色",
743
+ "value": {
744
+ "type": "string",
745
+ "kind": "expression"
746
+ }
632
747
  },
633
748
  {
634
- "name": "select",
635
- "description": "切换选中的地址时触发"
749
+ "name": "dot",
750
+ "default": "`false`",
751
+ "description": "是否展示为小红点",
752
+ "value": {
753
+ "type": "boolean",
754
+ "kind": "expression"
755
+ }
636
756
  },
637
757
  {
638
- "name": "edit-disabled",
639
- "description": "编辑不可配送的地址时触发"
758
+ "name": "max",
759
+ "default": "-",
760
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
761
+ "value": {
762
+ "type": "number | string",
763
+ "kind": "expression"
764
+ }
765
+ }
766
+ ]
767
+ },
768
+ {
769
+ "name": "van-button",
770
+ "slots": [
771
+ {
772
+ "name": "default",
773
+ "description": "按钮内容"
640
774
  },
641
775
  {
642
- "name": "select-disabled",
643
- "description": "选中不可配送的地址时触发"
776
+ "name": "icon",
777
+ "description": "自定义图标"
644
778
  },
645
779
  {
646
- "name": "click-item",
647
- "description": "点击任意地址时触发"
780
+ "name": "loading",
781
+ "description": "自定义加载图标"
782
+ }
783
+ ],
784
+ "events": [
785
+ {
786
+ "name": "click",
787
+ "description": "点击按钮,且按钮状态不为加载或禁用时触发"
788
+ },
789
+ {
790
+ "name": "touchstart",
791
+ "description": "开始触摸按钮时触发"
648
792
  }
649
793
  ],
650
794
  "attributes": [
651
795
  {
652
- "name": "v-model",
653
- "default": "-",
654
- "description": "当前选中地址的 id",
796
+ "name": "type",
797
+ "default": "`default`",
798
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`",
655
799
  "value": {
656
800
  "type": "string",
657
801
  "kind": "expression"
658
802
  }
659
803
  },
660
804
  {
661
- "name": "list",
662
- "default": "`[]`",
663
- "description": "地址列表",
805
+ "name": "size",
806
+ "default": "`normal`",
807
+ "description": "尺寸,可选值为 `large` `small` `mini`",
664
808
  "value": {
665
- "type": "Address[]",
809
+ "type": "string",
666
810
  "kind": "expression"
667
811
  }
668
812
  },
669
813
  {
670
- "name": "disabled-list",
671
- "default": "`[]`",
672
- "description": "不可配送地址列表",
814
+ "name": "text",
815
+ "default": "-",
816
+ "description": "按钮文字",
673
817
  "value": {
674
- "type": "Address[]",
818
+ "type": "string",
675
819
  "kind": "expression"
676
820
  }
677
821
  },
678
822
  {
679
- "name": "disabled-text",
823
+ "name": "color",
680
824
  "default": "-",
681
- "description": "不可配送提示文案",
825
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
682
826
  "value": {
683
827
  "type": "string",
684
828
  "kind": "expression"
685
829
  }
686
830
  },
687
831
  {
688
- "name": "switchable",
689
- "default": "`true`",
690
- "description": "是否允许切换地址",
832
+ "name": "icon",
833
+ "default": "-",
834
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
691
835
  "value": {
692
- "type": "boolean",
836
+ "type": "string",
693
837
  "kind": "expression"
694
838
  }
695
839
  },
696
840
  {
697
- "name": "add-button-text",
698
- "default": "`新增地址`",
699
- "description": "底部按钮文字",
841
+ "name": "icon-prefix",
842
+ "default": "`van-icon`",
843
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
700
844
  "value": {
701
845
  "type": "string",
702
846
  "kind": "expression"
703
847
  }
704
848
  },
705
849
  {
706
- "name": "default-tag-text",
707
- "default": "-",
708
- "description": "默认地址标签文字",
850
+ "name": "icon-position",
851
+ "default": "`left`",
852
+ "description": "图标展示位置,可选值为 `right`",
709
853
  "value": {
710
854
  "type": "string",
711
855
  "kind": "expression"
712
856
  }
713
- }
714
- ]
715
- },
716
- {
717
- "name": "van-calendar",
718
- "slots": [
857
+ },
719
858
  {
720
- "name": "title",
721
- "description": "自定义标题"
859
+ "name": "tag",
860
+ "default": "`button`",
861
+ "description": "按钮根节点的 HTML 标签",
862
+ "value": {
863
+ "type": "string",
864
+ "kind": "expression"
865
+ }
866
+ },
867
+ {
868
+ "name": "native-type",
869
+ "default": "-",
870
+ "description": "原生 button 标签的 type 属性",
871
+ "value": {
872
+ "type": "string",
873
+ "kind": "expression"
874
+ }
875
+ },
876
+ {
877
+ "name": "block",
878
+ "default": "`false`",
879
+ "description": "是否为块级元素",
880
+ "value": {
881
+ "type": "boolean",
882
+ "kind": "expression"
883
+ }
884
+ },
885
+ {
886
+ "name": "plain",
887
+ "default": "`false`",
888
+ "description": "是否为朴素按钮",
889
+ "value": {
890
+ "type": "boolean",
891
+ "kind": "expression"
892
+ }
893
+ },
894
+ {
895
+ "name": "square",
896
+ "default": "`false`",
897
+ "description": "是否为方形按钮",
898
+ "value": {
899
+ "type": "boolean",
900
+ "kind": "expression"
901
+ }
902
+ },
903
+ {
904
+ "name": "round",
905
+ "default": "`false`",
906
+ "description": "是否为圆形按钮",
907
+ "value": {
908
+ "type": "boolean",
909
+ "kind": "expression"
910
+ }
911
+ },
912
+ {
913
+ "name": "disabled",
914
+ "default": "`false`",
915
+ "description": "是否禁用按钮",
916
+ "value": {
917
+ "type": "boolean",
918
+ "kind": "expression"
919
+ }
920
+ },
921
+ {
922
+ "name": "hairline",
923
+ "default": "`false`",
924
+ "description": "是否使用 0.5px 边框",
925
+ "value": {
926
+ "type": "boolean",
927
+ "kind": "expression"
928
+ }
929
+ },
930
+ {
931
+ "name": "loading",
932
+ "default": "`false`",
933
+ "description": "是否显示为加载状态",
934
+ "value": {
935
+ "type": "boolean",
936
+ "kind": "expression"
937
+ }
938
+ },
939
+ {
940
+ "name": "loading-text",
941
+ "default": "-",
942
+ "description": "加载状态提示文字",
943
+ "value": {
944
+ "type": "string",
945
+ "kind": "expression"
946
+ }
947
+ },
948
+ {
949
+ "name": "loading-type",
950
+ "default": "`circular`",
951
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
952
+ "value": {
953
+ "type": "string",
954
+ "kind": "expression"
955
+ }
956
+ },
957
+ {
958
+ "name": "loading-size",
959
+ "default": "`20px`",
960
+ "description": "加载图标大小",
961
+ "value": {
962
+ "type": "string",
963
+ "kind": "expression"
964
+ }
965
+ },
966
+ {
967
+ "name": "url",
968
+ "default": "-",
969
+ "description": "点击后跳转的链接地址",
970
+ "value": {
971
+ "type": "string",
972
+ "kind": "expression"
973
+ }
974
+ },
975
+ {
976
+ "name": "to",
977
+ "default": "-",
978
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
979
+ "value": {
980
+ "type": "string | object",
981
+ "kind": "expression"
982
+ }
983
+ },
984
+ {
985
+ "name": "replace",
986
+ "default": "`false`",
987
+ "description": "是否在跳转时替换当前页面历史",
988
+ "value": {
989
+ "type": "boolean",
990
+ "kind": "expression"
991
+ }
992
+ }
993
+ ]
994
+ },
995
+ {
996
+ "name": "van-calendar",
997
+ "slots": [
998
+ {
999
+ "name": "title",
1000
+ "description": "自定义标题"
722
1001
  },
723
1002
  {
724
1003
  "name": "footer",
@@ -1302,115 +1581,97 @@
1302
1581
  ]
1303
1582
  },
1304
1583
  {
1305
- "name": "van-badge",
1584
+ "name": "van-cell",
1306
1585
  "slots": [
1307
1586
  {
1308
1587
  "name": "default",
1309
- "description": "徽标包裹的子元素"
1588
+ "description": "默认插槽"
1310
1589
  },
1311
1590
  {
1312
- "name": "content",
1313
- "description": "自定义徽标内容"
1314
- }
1315
- ],
1316
- "events": [],
1317
- "attributes": [
1318
- {
1319
- "name": "content",
1320
- "default": "-",
1321
- "description": "徽标内容",
1322
- "value": {
1323
- "type": "number | string",
1324
- "kind": "expression"
1325
- }
1591
+ "name": "title",
1592
+ "description": "自定义分组标题"
1326
1593
  },
1327
1594
  {
1328
- "name": "color",
1329
- "default": "`#ee0a24`",
1330
- "description": "徽标背景颜色",
1331
- "value": {
1332
- "type": "string",
1333
- "kind": "expression"
1334
- }
1595
+ "name": "default",
1596
+ "description": "自定义右侧 value 的内容"
1335
1597
  },
1336
1598
  {
1337
- "name": "dot",
1338
- "default": "`false`",
1339
- "description": "是否展示为小红点",
1340
- "value": {
1341
- "type": "boolean",
1342
- "kind": "expression"
1343
- }
1599
+ "name": "title",
1600
+ "description": "自定义左侧 title 的内容"
1344
1601
  },
1345
1602
  {
1346
- "name": "max",
1347
- "default": "-",
1348
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
1349
- "value": {
1350
- "type": "number | string",
1351
- "kind": "expression"
1352
- }
1353
- }
1354
- ]
1355
- },
1356
- {
1357
- "name": "van-button",
1358
- "slots": [
1359
- {
1360
- "name": "default",
1361
- "description": "按钮内容"
1603
+ "name": "label",
1604
+ "description": "自定义标题下方 label 的内容"
1362
1605
  },
1363
1606
  {
1364
1607
  "name": "icon",
1365
- "description": "自定义图标"
1608
+ "description": "自定义左侧图标"
1366
1609
  },
1367
1610
  {
1368
- "name": "loading",
1369
- "description": "自定义加载图标"
1611
+ "name": "right-icon",
1612
+ "description": "自定义右侧按钮,默认为`arrow`"
1613
+ },
1614
+ {
1615
+ "name": "extra",
1616
+ "description": "自定义单元格最右侧的额外内容"
1370
1617
  }
1371
1618
  ],
1372
1619
  "events": [
1373
1620
  {
1374
1621
  "name": "click",
1375
- "description": "点击按钮,且按钮状态不为加载或禁用时触发"
1376
- },
1377
- {
1378
- "name": "touchstart",
1379
- "description": "开始触摸按钮时触发"
1622
+ "description": "点击单元格时触发"
1380
1623
  }
1381
1624
  ],
1382
1625
  "attributes": [
1383
1626
  {
1384
- "name": "type",
1385
- "default": "`default`",
1386
- "description": "类型,可选值为 `primary` `info` `warning` `danger`",
1627
+ "name": "title",
1628
+ "default": "`-`",
1629
+ "description": "分组标题",
1387
1630
  "value": {
1388
1631
  "type": "string",
1389
1632
  "kind": "expression"
1390
1633
  }
1391
1634
  },
1392
1635
  {
1393
- "name": "size",
1394
- "default": "`normal`",
1395
- "description": "尺寸,可选值为 `large` `small` `mini`",
1636
+ "name": "border",
1637
+ "default": "`true`",
1638
+ "description": "是否显示外边框",
1396
1639
  "value": {
1397
- "type": "string",
1640
+ "type": "boolean",
1398
1641
  "kind": "expression"
1399
1642
  }
1400
1643
  },
1401
1644
  {
1402
- "name": "text",
1645
+ "name": "title",
1403
1646
  "default": "-",
1404
- "description": "按钮文字",
1647
+ "description": "左侧标题",
1648
+ "value": {
1649
+ "type": "number | string",
1650
+ "kind": "expression"
1651
+ }
1652
+ },
1653
+ {
1654
+ "name": "value",
1655
+ "default": "-",
1656
+ "description": "右侧内容",
1657
+ "value": {
1658
+ "type": "number | string",
1659
+ "kind": "expression"
1660
+ }
1661
+ },
1662
+ {
1663
+ "name": "label",
1664
+ "default": "-",
1665
+ "description": "标题下方的描述信息",
1405
1666
  "value": {
1406
1667
  "type": "string",
1407
1668
  "kind": "expression"
1408
1669
  }
1409
1670
  },
1410
1671
  {
1411
- "name": "color",
1672
+ "name": "size",
1412
1673
  "default": "-",
1413
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
1674
+ "description": "单元格大小,可选值为 `large`",
1414
1675
  "value": {
1415
1676
  "type": "string",
1416
1677
  "kind": "expression"
@@ -1435,380 +1696,394 @@
1435
1696
  }
1436
1697
  },
1437
1698
  {
1438
- "name": "icon-position",
1439
- "default": "`left`",
1440
- "description": "图标展示位置,可选值为 `right`",
1699
+ "name": "url",
1700
+ "default": "-",
1701
+ "description": "点击后跳转的链接地址",
1441
1702
  "value": {
1442
1703
  "type": "string",
1443
1704
  "kind": "expression"
1444
1705
  }
1445
1706
  },
1446
1707
  {
1447
- "name": "tag",
1448
- "default": "`button`",
1449
- "description": "按钮根节点的 HTML 标签",
1450
- "value": {
1451
- "type": "string",
1452
- "kind": "expression"
1453
- }
1454
- },
1455
- {
1456
- "name": "native-type",
1708
+ "name": "to",
1457
1709
  "default": "-",
1458
- "description": "原生 button 标签的 type 属性",
1459
- "value": {
1460
- "type": "string",
1461
- "kind": "expression"
1462
- }
1463
- },
1464
- {
1465
- "name": "block",
1466
- "default": "`false`",
1467
- "description": "是否为块级元素",
1710
+ "description": "点击后跳转的目标路由对象,同 vue-router [to 属性](https://router.vuejs.org/zh/api/#to)",
1468
1711
  "value": {
1469
- "type": "boolean",
1712
+ "type": "string | object",
1470
1713
  "kind": "expression"
1471
1714
  }
1472
1715
  },
1473
1716
  {
1474
- "name": "plain",
1475
- "default": "`false`",
1476
- "description": "是否为朴素按钮",
1717
+ "name": "border",
1718
+ "default": "`true`",
1719
+ "description": "是否显示内边框",
1477
1720
  "value": {
1478
1721
  "type": "boolean",
1479
1722
  "kind": "expression"
1480
1723
  }
1481
1724
  },
1482
1725
  {
1483
- "name": "square",
1726
+ "name": "replace",
1484
1727
  "default": "`false`",
1485
- "description": "是否为方形按钮",
1728
+ "description": "是否在跳转时替换当前页面历史",
1486
1729
  "value": {
1487
1730
  "type": "boolean",
1488
1731
  "kind": "expression"
1489
1732
  }
1490
1733
  },
1491
1734
  {
1492
- "name": "round",
1493
- "default": "`false`",
1494
- "description": "是否为圆形按钮",
1735
+ "name": "clickable",
1736
+ "default": "`null`",
1737
+ "description": "是否开启点击反馈",
1495
1738
  "value": {
1496
1739
  "type": "boolean",
1497
1740
  "kind": "expression"
1498
1741
  }
1499
1742
  },
1500
1743
  {
1501
- "name": "disabled",
1744
+ "name": "is-link",
1502
1745
  "default": "`false`",
1503
- "description": "是否禁用按钮",
1746
+ "description": "是否展示右侧箭头并开启点击反馈",
1504
1747
  "value": {
1505
1748
  "type": "boolean",
1506
1749
  "kind": "expression"
1507
1750
  }
1508
1751
  },
1509
1752
  {
1510
- "name": "hairline",
1753
+ "name": "required",
1511
1754
  "default": "`false`",
1512
- "description": "是否使用 0.5px 边框",
1755
+ "description": "是否显示表单必填星号",
1513
1756
  "value": {
1514
1757
  "type": "boolean",
1515
1758
  "kind": "expression"
1516
1759
  }
1517
1760
  },
1518
1761
  {
1519
- "name": "loading",
1762
+ "name": "center",
1520
1763
  "default": "`false`",
1521
- "description": "是否显示为加载状态",
1764
+ "description": "是否使内容垂直居中",
1522
1765
  "value": {
1523
1766
  "type": "boolean",
1524
1767
  "kind": "expression"
1525
1768
  }
1526
1769
  },
1527
1770
  {
1528
- "name": "loading-text",
1529
- "default": "-",
1530
- "description": "加载状态提示文字",
1531
- "value": {
1532
- "type": "string",
1533
- "kind": "expression"
1534
- }
1535
- },
1536
- {
1537
- "name": "loading-type",
1538
- "default": "`circular`",
1539
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
1771
+ "name": "arrow-direction",
1772
+ "default": "`right`",
1773
+ "description": "箭头方向,可选值为 `left` `up` `down`",
1540
1774
  "value": {
1541
1775
  "type": "string",
1542
1776
  "kind": "expression"
1543
1777
  }
1544
1778
  },
1545
1779
  {
1546
- "name": "loading-size",
1547
- "default": "`20px`",
1548
- "description": "加载图标大小",
1780
+ "name": "title-style",
1781
+ "default": "-",
1782
+ "description": "左侧标题额外样式",
1549
1783
  "value": {
1550
- "type": "string",
1784
+ "type": "any",
1551
1785
  "kind": "expression"
1552
1786
  }
1553
1787
  },
1554
1788
  {
1555
- "name": "url",
1789
+ "name": "title-class",
1556
1790
  "default": "-",
1557
- "description": "点击后跳转的链接地址",
1791
+ "description": "左侧标题额外类名",
1558
1792
  "value": {
1559
- "type": "string",
1793
+ "type": "any",
1560
1794
  "kind": "expression"
1561
1795
  }
1562
1796
  },
1563
1797
  {
1564
- "name": "to",
1798
+ "name": "value-class",
1565
1799
  "default": "-",
1566
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1800
+ "description": "右侧内容额外类名",
1567
1801
  "value": {
1568
- "type": "string | object",
1802
+ "type": "any",
1569
1803
  "kind": "expression"
1570
1804
  }
1571
1805
  },
1572
1806
  {
1573
- "name": "replace",
1574
- "default": "`false`",
1575
- "description": "是否在跳转时替换当前页面历史",
1807
+ "name": "label-class",
1808
+ "default": "-",
1809
+ "description": "描述信息额外类名",
1576
1810
  "value": {
1577
- "type": "boolean",
1811
+ "type": "any",
1578
1812
  "kind": "expression"
1579
1813
  }
1580
1814
  }
1581
1815
  ]
1582
1816
  },
1583
1817
  {
1584
- "name": "van-cell",
1818
+ "name": "van-checkbox",
1585
1819
  "slots": [
1586
1820
  {
1587
1821
  "name": "default",
1588
- "description": "默认插槽"
1589
- },
1590
- {
1591
- "name": "title",
1592
- "description": "自定义分组标题"
1593
- },
1594
- {
1595
- "name": "default",
1596
- "description": "自定义右侧 value 的内容"
1597
- },
1598
- {
1599
- "name": "title",
1600
- "description": "自定义左侧 title 的内容"
1601
- },
1602
- {
1603
- "name": "label",
1604
- "description": "自定义标题下方 label 的内容"
1822
+ "description": "自定义文本"
1605
1823
  },
1606
1824
  {
1607
1825
  "name": "icon",
1608
- "description": "自定义左侧图标"
1609
- },
1610
- {
1611
- "name": "right-icon",
1612
- "description": "自定义右侧按钮,默认为`arrow`"
1613
- },
1614
- {
1615
- "name": "extra",
1616
- "description": "自定义单元格最右侧的额外内容"
1826
+ "description": "自定义图标"
1617
1827
  }
1618
1828
  ],
1619
1829
  "events": [
1830
+ {
1831
+ "name": "change",
1832
+ "description": "当绑定值变化时触发的事件"
1833
+ },
1620
1834
  {
1621
1835
  "name": "click",
1622
- "description": "点击单元格时触发"
1836
+ "description": "点击复选框时触发"
1837
+ },
1838
+ {
1839
+ "name": "change",
1840
+ "description": "当绑定值变化时触发的事件"
1623
1841
  }
1624
1842
  ],
1625
1843
  "attributes": [
1626
1844
  {
1627
- "name": "title",
1628
- "default": "`-`",
1629
- "description": "分组标题",
1630
- "value": {
1631
- "type": "string",
1632
- "kind": "expression"
1633
- }
1634
- },
1635
- {
1636
- "name": "border",
1637
- "default": "`true`",
1638
- "description": "是否显示外边框",
1845
+ "name": "v-model (value)",
1846
+ "default": "`false`",
1847
+ "description": "是否为选中状态",
1639
1848
  "value": {
1640
1849
  "type": "boolean",
1641
1850
  "kind": "expression"
1642
1851
  }
1643
1852
  },
1644
1853
  {
1645
- "name": "title",
1646
- "default": "-",
1647
- "description": "左侧标题",
1648
- "value": {
1649
- "type": "number | string",
1650
- "kind": "expression"
1651
- }
1652
- },
1653
- {
1654
- "name": "value",
1854
+ "name": "name",
1655
1855
  "default": "-",
1656
- "description": "右侧内容",
1856
+ "description": "标识符",
1657
1857
  "value": {
1658
- "type": "number | string",
1858
+ "type": "any",
1659
1859
  "kind": "expression"
1660
1860
  }
1661
1861
  },
1662
1862
  {
1663
- "name": "label",
1664
- "default": "-",
1665
- "description": "标题下方的描述信息",
1863
+ "name": "shape",
1864
+ "default": "`round`",
1865
+ "description": "形状,可选值为 `square`",
1666
1866
  "value": {
1667
1867
  "type": "string",
1668
1868
  "kind": "expression"
1669
1869
  }
1670
1870
  },
1671
1871
  {
1672
- "name": "size",
1673
- "default": "-",
1674
- "description": "单元格大小,可选值为 `large`",
1872
+ "name": "disabled",
1873
+ "default": "`false`",
1874
+ "description": "是否禁用复选框",
1675
1875
  "value": {
1676
- "type": "string",
1876
+ "type": "boolean",
1677
1877
  "kind": "expression"
1678
1878
  }
1679
1879
  },
1680
1880
  {
1681
- "name": "icon",
1682
- "default": "-",
1683
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
1881
+ "name": "label-disabled",
1882
+ "default": "`false`",
1883
+ "description": "是否禁用复选框文本点击",
1684
1884
  "value": {
1685
- "type": "string",
1885
+ "type": "boolean",
1686
1886
  "kind": "expression"
1687
1887
  }
1688
1888
  },
1689
1889
  {
1690
- "name": "icon-prefix",
1691
- "default": "`van-icon`",
1692
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
1890
+ "name": "label-position",
1891
+ "default": "`right`",
1892
+ "description": "文本位置,可选值为 `left`",
1693
1893
  "value": {
1694
1894
  "type": "string",
1695
1895
  "kind": "expression"
1696
1896
  }
1697
1897
  },
1698
1898
  {
1699
- "name": "url",
1700
- "default": "-",
1701
- "description": "点击后跳转的链接地址",
1899
+ "name": "icon-size",
1900
+ "default": "`20px`",
1901
+ "description": "图标大小,默认单位为 `px`",
1702
1902
  "value": {
1703
- "type": "string",
1903
+ "type": "number | string",
1704
1904
  "kind": "expression"
1705
1905
  }
1706
1906
  },
1707
1907
  {
1708
- "name": "to",
1709
- "default": "-",
1710
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1908
+ "name": "checked-color",
1909
+ "default": "`#1989fa`",
1910
+ "description": "选中状态颜色",
1711
1911
  "value": {
1712
- "type": "string | object",
1912
+ "type": "string",
1713
1913
  "kind": "expression"
1714
1914
  }
1715
1915
  },
1716
1916
  {
1717
- "name": "border",
1917
+ "name": "bind-group",
1718
1918
  "default": "`true`",
1719
- "description": "是否显示内边框",
1919
+ "description": "是否与复选框组绑定",
1720
1920
  "value": {
1721
1921
  "type": "boolean",
1722
1922
  "kind": "expression"
1723
1923
  }
1724
1924
  },
1725
1925
  {
1726
- "name": "replace",
1727
- "default": "`false`",
1728
- "description": "是否在跳转时替换当前页面历史",
1926
+ "name": "v-model (value)",
1927
+ "default": "-",
1928
+ "description": "所有选中项的标识符",
1729
1929
  "value": {
1730
- "type": "boolean",
1930
+ "type": "any[]",
1731
1931
  "kind": "expression"
1732
1932
  }
1733
1933
  },
1734
1934
  {
1735
- "name": "clickable",
1736
- "default": "`null`",
1737
- "description": "是否开启点击反馈",
1935
+ "name": "disabled",
1936
+ "default": "`false`",
1937
+ "description": "是否禁用所有复选框",
1738
1938
  "value": {
1739
1939
  "type": "boolean",
1740
1940
  "kind": "expression"
1741
1941
  }
1742
1942
  },
1743
1943
  {
1744
- "name": "is-link",
1745
- "default": "`false`",
1746
- "description": "是否展示右侧箭头并开启点击反馈",
1944
+ "name": "max",
1945
+ "default": "`0`",
1946
+ "description": "最大可选数,`0`为无限制",
1747
1947
  "value": {
1748
- "type": "boolean",
1948
+ "type": "number | string",
1749
1949
  "kind": "expression"
1750
1950
  }
1751
1951
  },
1752
1952
  {
1753
- "name": "required",
1754
- "default": "`false`",
1755
- "description": "是否显示表单必填星号",
1953
+ "name": "direction",
1954
+ "default": "`vertical`",
1955
+ "description": "排列方向,可选值为 `horizontal`",
1756
1956
  "value": {
1757
- "type": "boolean",
1957
+ "type": "string",
1758
1958
  "kind": "expression"
1759
1959
  }
1760
1960
  },
1761
1961
  {
1762
- "name": "center",
1763
- "default": "`false`",
1764
- "description": "是否使内容垂直居中",
1962
+ "name": "icon-size",
1963
+ "default": "`20px`",
1964
+ "description": "所有复选框的图标大小,默认单位为 `px`",
1765
1965
  "value": {
1766
- "type": "boolean",
1966
+ "type": "number | string",
1767
1967
  "kind": "expression"
1768
1968
  }
1769
1969
  },
1770
1970
  {
1771
- "name": "arrow-direction",
1772
- "default": "`right`",
1773
- "description": "箭头方向,可选值为 `left` `up` `down`",
1971
+ "name": "checked-color",
1972
+ "default": "`#1989fa`",
1973
+ "description": "所有复选框的选中状态颜色",
1774
1974
  "value": {
1775
1975
  "type": "string",
1776
1976
  "kind": "expression"
1777
1977
  }
1778
- },
1779
- {
1780
- "name": "title-style",
1978
+ }
1979
+ ]
1980
+ },
1981
+ {
1982
+ "name": "van-circle",
1983
+ "slots": [
1984
+ {
1985
+ "name": "default",
1986
+ "description": "自定义文字内容"
1987
+ }
1988
+ ],
1989
+ "events": [],
1990
+ "attributes": [
1991
+ {
1992
+ "name": "v-model",
1781
1993
  "default": "-",
1782
- "description": "左侧标题额外样式",
1994
+ "description": "当前进度",
1783
1995
  "value": {
1784
- "type": "any",
1996
+ "type": "number",
1785
1997
  "kind": "expression"
1786
1998
  }
1787
1999
  },
1788
2000
  {
1789
- "name": "title-class",
1790
- "default": "-",
1791
- "description": "左侧标题额外类名",
2001
+ "name": "rate",
2002
+ "default": "`100`",
2003
+ "description": "目标进度",
1792
2004
  "value": {
1793
- "type": "any",
2005
+ "type": "number | string",
1794
2006
  "kind": "expression"
1795
2007
  }
1796
2008
  },
1797
2009
  {
1798
- "name": "value-class",
1799
- "default": "-",
1800
- "description": "右侧内容额外类名",
2010
+ "name": "size",
2011
+ "default": "`100px`",
2012
+ "description": "圆环直径,默认单位为 `px`",
1801
2013
  "value": {
1802
- "type": "any",
2014
+ "type": "number | string",
1803
2015
  "kind": "expression"
1804
2016
  }
1805
2017
  },
1806
2018
  {
1807
- "name": "label-class",
2019
+ "name": "color",
2020
+ "default": "`#1989fa`",
2021
+ "description": "进度条颜色,传入对象格式可以定义渐变色",
2022
+ "value": {
2023
+ "type": "string | object",
2024
+ "kind": "expression"
2025
+ }
2026
+ },
2027
+ {
2028
+ "name": "layer-color",
2029
+ "default": "`white`",
2030
+ "description": "轨道颜色",
2031
+ "value": {
2032
+ "type": "string",
2033
+ "kind": "expression"
2034
+ }
2035
+ },
2036
+ {
2037
+ "name": "fill",
2038
+ "default": "`none`",
2039
+ "description": "填充颜色",
2040
+ "value": {
2041
+ "type": "string",
2042
+ "kind": "expression"
2043
+ }
2044
+ },
2045
+ {
2046
+ "name": "speed",
2047
+ "default": "`0`",
2048
+ "description": "动画速度(单位为 rate/s)",
2049
+ "value": {
2050
+ "type": "number | string",
2051
+ "kind": "expression"
2052
+ }
2053
+ },
2054
+ {
2055
+ "name": "text",
1808
2056
  "default": "-",
1809
- "description": "描述信息额外类名",
2057
+ "description": "文字",
1810
2058
  "value": {
1811
- "type": "any",
2059
+ "type": "string",
2060
+ "kind": "expression"
2061
+ }
2062
+ },
2063
+ {
2064
+ "name": "stroke-width",
2065
+ "default": "`40`",
2066
+ "description": "进度条宽度",
2067
+ "value": {
2068
+ "type": "number | string",
2069
+ "kind": "expression"
2070
+ }
2071
+ },
2072
+ {
2073
+ "name": "stroke-linecap",
2074
+ "default": "`round`",
2075
+ "description": "进度条端点的形状,可选值为`square` `butt`",
2076
+ "value": {
2077
+ "type": "string",
2078
+ "kind": "expression"
2079
+ }
2080
+ },
2081
+ {
2082
+ "name": "clockwise",
2083
+ "default": "`true`",
2084
+ "description": "是否顺时针增加",
2085
+ "value": {
2086
+ "type": "boolean",
1812
2087
  "kind": "expression"
1813
2088
  }
1814
2089
  }
@@ -1929,426 +2204,151 @@
1929
2204
  "events": [
1930
2205
  {
1931
2206
  "name": "change",
1932
- "description": "切换面板时触发"
1933
- }
1934
- ],
1935
- "attributes": [
1936
- {
1937
- "name": "v-model",
1938
- "default": "string)[]_",
1939
- "description": "当前展开面板的 name",
1940
- "value": {
1941
- "type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
1942
- "kind": "expression"
1943
- }
1944
- },
1945
- {
1946
- "name": "accordion",
1947
- "default": "`false`",
1948
- "description": "是否开启手风琴模式",
1949
- "value": {
1950
- "type": "boolean",
1951
- "kind": "expression"
1952
- }
1953
- },
1954
- {
1955
- "name": "border",
1956
- "default": "`true`",
1957
- "description": "是否显示外边框",
1958
- "value": {
1959
- "type": "boolean",
1960
- "kind": "expression"
1961
- }
1962
- },
1963
- {
1964
- "name": "name",
1965
- "default": "`index`",
1966
- "description": "唯一标识符,默认为索引值",
1967
- "value": {
1968
- "type": "number | string",
1969
- "kind": "expression"
1970
- }
1971
- },
1972
- {
1973
- "name": "icon",
1974
- "default": "-",
1975
- "description": "标题栏左侧[图标名称](#/zh-CN/icon)或图片链接",
1976
- "value": {
1977
- "type": "string",
1978
- "kind": "expression"
1979
- }
1980
- },
1981
- {
1982
- "name": "size",
1983
- "default": "-",
1984
- "description": "标题栏大小,可选值为 `large`",
1985
- "value": {
1986
- "type": "string",
1987
- "kind": "expression"
1988
- }
1989
- },
1990
- {
1991
- "name": "title",
1992
- "default": "-",
1993
- "description": "标题栏左侧内容",
1994
- "value": {
1995
- "type": "number | string",
1996
- "kind": "expression"
1997
- }
1998
- },
1999
- {
2000
- "name": "value",
2001
- "default": "-",
2002
- "description": "标题栏右侧内容",
2003
- "value": {
2004
- "type": "number | string",
2005
- "kind": "expression"
2006
- }
2007
- },
2008
- {
2009
- "name": "label",
2010
- "default": "-",
2011
- "description": "标题栏描述信息",
2012
- "value": {
2013
- "type": "number | string",
2014
- "kind": "expression"
2015
- }
2016
- },
2017
- {
2018
- "name": "border",
2019
- "default": "`true`",
2020
- "description": "是否显示内边框",
2021
- "value": {
2022
- "type": "boolean",
2023
- "kind": "expression"
2024
- }
2025
- },
2026
- {
2027
- "name": "is-link",
2028
- "default": "`true`",
2029
- "description": "是否展示标题栏右侧箭头并开启点击反馈",
2030
- "value": {
2031
- "type": "boolean",
2032
- "kind": "expression"
2033
- }
2034
- },
2035
- {
2036
- "name": "disabled",
2037
- "default": "`false`",
2038
- "description": "是否禁用面板",
2039
- "value": {
2040
- "type": "boolean",
2041
- "kind": "expression"
2042
- }
2043
- },
2044
- {
2045
- "name": "lazy-render",
2046
- "default": "`true`",
2047
- "description": "是否在首次展开时才渲染面板内容",
2048
- "value": {
2049
- "type": "boolean",
2050
- "kind": "expression"
2051
- }
2052
- },
2053
- {
2054
- "name": "title-class",
2055
- "default": "-",
2056
- "description": "左侧标题额外类名",
2057
- "value": {
2058
- "type": "string",
2059
- "kind": "expression"
2060
- }
2061
- },
2062
- {
2063
- "name": "value-class",
2064
- "default": "-",
2065
- "description": "右侧内容额外类名",
2066
- "value": {
2067
- "type": "string",
2068
- "kind": "expression"
2069
- }
2070
- },
2071
- {
2072
- "name": "label-class",
2073
- "default": "-",
2074
- "description": "描述信息额外类名",
2075
- "value": {
2076
- "type": "string",
2077
- "kind": "expression"
2078
- }
2079
- }
2080
- ]
2081
- },
2082
- {
2083
- "name": "van-checkbox",
2084
- "slots": [
2085
- {
2086
- "name": "default",
2087
- "description": "自定义文本"
2088
- },
2089
- {
2090
- "name": "icon",
2091
- "description": "自定义图标"
2092
- }
2093
- ],
2094
- "events": [
2095
- {
2096
- "name": "change",
2097
- "description": "当绑定值变化时触发的事件"
2098
- },
2099
- {
2100
- "name": "click",
2101
- "description": "点击复选框时触发"
2102
- },
2103
- {
2104
- "name": "change",
2105
- "description": "当绑定值变化时触发的事件"
2106
- }
2107
- ],
2108
- "attributes": [
2109
- {
2110
- "name": "v-model (value)",
2111
- "default": "`false`",
2112
- "description": "是否为选中状态",
2113
- "value": {
2114
- "type": "boolean",
2115
- "kind": "expression"
2116
- }
2117
- },
2118
- {
2119
- "name": "name",
2120
- "default": "-",
2121
- "description": "标识符",
2122
- "value": {
2123
- "type": "any",
2124
- "kind": "expression"
2125
- }
2126
- },
2127
- {
2128
- "name": "shape",
2129
- "default": "`round`",
2130
- "description": "形状,可选值为 `square`",
2131
- "value": {
2132
- "type": "string",
2133
- "kind": "expression"
2134
- }
2135
- },
2136
- {
2137
- "name": "disabled",
2138
- "default": "`false`",
2139
- "description": "是否禁用复选框",
2140
- "value": {
2141
- "type": "boolean",
2142
- "kind": "expression"
2143
- }
2144
- },
2145
- {
2146
- "name": "label-disabled",
2147
- "default": "`false`",
2148
- "description": "是否禁用复选框文本点击",
2149
- "value": {
2150
- "type": "boolean",
2151
- "kind": "expression"
2152
- }
2153
- },
2154
- {
2155
- "name": "label-position",
2156
- "default": "`right`",
2157
- "description": "文本位置,可选值为 `left`",
2158
- "value": {
2159
- "type": "string",
2160
- "kind": "expression"
2161
- }
2162
- },
2163
- {
2164
- "name": "icon-size",
2165
- "default": "`20px`",
2166
- "description": "图标大小,默认单位为 `px`",
2167
- "value": {
2168
- "type": "number | string",
2169
- "kind": "expression"
2170
- }
2171
- },
2172
- {
2173
- "name": "checked-color",
2174
- "default": "`#1989fa`",
2175
- "description": "选中状态颜色",
2176
- "value": {
2177
- "type": "string",
2178
- "kind": "expression"
2179
- }
2180
- },
2207
+ "description": "切换面板时触发"
2208
+ }
2209
+ ],
2210
+ "attributes": [
2181
2211
  {
2182
- "name": "bind-group",
2183
- "default": "`true`",
2184
- "description": "是否与复选框组绑定",
2212
+ "name": "v-model",
2213
+ "default": "string)[]_",
2214
+ "description": "当前展开面板的 name",
2185
2215
  "value": {
2186
- "type": "boolean",
2216
+ "type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
2187
2217
  "kind": "expression"
2188
2218
  }
2189
2219
  },
2190
2220
  {
2191
- "name": "v-model (value)",
2192
- "default": "-",
2193
- "description": "所有选中项的标识符",
2221
+ "name": "accordion",
2222
+ "default": "`false`",
2223
+ "description": "是否开启手风琴模式",
2194
2224
  "value": {
2195
- "type": "any[]",
2225
+ "type": "boolean",
2196
2226
  "kind": "expression"
2197
2227
  }
2198
2228
  },
2199
2229
  {
2200
- "name": "disabled",
2201
- "default": "`false`",
2202
- "description": "是否禁用所有复选框",
2230
+ "name": "border",
2231
+ "default": "`true`",
2232
+ "description": "是否显示外边框",
2203
2233
  "value": {
2204
2234
  "type": "boolean",
2205
2235
  "kind": "expression"
2206
2236
  }
2207
2237
  },
2208
2238
  {
2209
- "name": "max",
2210
- "default": "`0`",
2211
- "description": "最大可选数,`0`为无限制",
2239
+ "name": "name",
2240
+ "default": "`index`",
2241
+ "description": "唯一标识符,默认为索引值",
2212
2242
  "value": {
2213
2243
  "type": "number | string",
2214
2244
  "kind": "expression"
2215
2245
  }
2216
2246
  },
2217
2247
  {
2218
- "name": "direction",
2219
- "default": "`vertical`",
2220
- "description": "排列方向,可选值为 `horizontal`",
2248
+ "name": "icon",
2249
+ "default": "-",
2250
+ "description": "标题栏左侧[图标名称](#/zh-CN/icon)或图片链接",
2221
2251
  "value": {
2222
2252
  "type": "string",
2223
2253
  "kind": "expression"
2224
2254
  }
2225
2255
  },
2226
2256
  {
2227
- "name": "icon-size",
2228
- "default": "`20px`",
2229
- "description": "所有复选框的图标大小,默认单位为 `px`",
2230
- "value": {
2231
- "type": "number | string",
2232
- "kind": "expression"
2233
- }
2234
- },
2235
- {
2236
- "name": "checked-color",
2237
- "default": "`#1989fa`",
2238
- "description": "所有复选框的选中状态颜色",
2257
+ "name": "size",
2258
+ "default": "-",
2259
+ "description": "标题栏大小,可选值为 `large`",
2239
2260
  "value": {
2240
2261
  "type": "string",
2241
2262
  "kind": "expression"
2242
2263
  }
2243
- }
2244
- ]
2245
- },
2246
- {
2247
- "name": "van-circle",
2248
- "slots": [
2249
- {
2250
- "name": "default",
2251
- "description": "自定义文字内容"
2252
- }
2253
- ],
2254
- "events": [],
2255
- "attributes": [
2264
+ },
2256
2265
  {
2257
- "name": "v-model",
2266
+ "name": "title",
2258
2267
  "default": "-",
2259
- "description": "当前进度",
2268
+ "description": "标题栏左侧内容",
2260
2269
  "value": {
2261
- "type": "number",
2270
+ "type": "number | string",
2262
2271
  "kind": "expression"
2263
2272
  }
2264
2273
  },
2265
2274
  {
2266
- "name": "rate",
2267
- "default": "`100`",
2268
- "description": "目标进度",
2275
+ "name": "value",
2276
+ "default": "-",
2277
+ "description": "标题栏右侧内容",
2269
2278
  "value": {
2270
2279
  "type": "number | string",
2271
2280
  "kind": "expression"
2272
2281
  }
2273
2282
  },
2274
2283
  {
2275
- "name": "size",
2276
- "default": "`100px`",
2277
- "description": "圆环直径,默认单位为 `px`",
2284
+ "name": "label",
2285
+ "default": "-",
2286
+ "description": "标题栏描述信息",
2278
2287
  "value": {
2279
2288
  "type": "number | string",
2280
2289
  "kind": "expression"
2281
2290
  }
2282
2291
  },
2283
2292
  {
2284
- "name": "color",
2285
- "default": "`#1989fa`",
2286
- "description": "进度条颜色,传入对象格式可以定义渐变色",
2293
+ "name": "border",
2294
+ "default": "`true`",
2295
+ "description": "是否显示内边框",
2287
2296
  "value": {
2288
- "type": "string | object",
2297
+ "type": "boolean",
2289
2298
  "kind": "expression"
2290
2299
  }
2291
2300
  },
2292
2301
  {
2293
- "name": "layer-color",
2294
- "default": "`white`",
2295
- "description": "轨道颜色",
2302
+ "name": "is-link",
2303
+ "default": "`true`",
2304
+ "description": "是否展示标题栏右侧箭头并开启点击反馈",
2296
2305
  "value": {
2297
- "type": "string",
2306
+ "type": "boolean",
2298
2307
  "kind": "expression"
2299
2308
  }
2300
2309
  },
2301
2310
  {
2302
- "name": "fill",
2303
- "default": "`none`",
2304
- "description": "填充颜色",
2311
+ "name": "disabled",
2312
+ "default": "`false`",
2313
+ "description": "是否禁用面板",
2305
2314
  "value": {
2306
- "type": "string",
2315
+ "type": "boolean",
2307
2316
  "kind": "expression"
2308
2317
  }
2309
2318
  },
2310
2319
  {
2311
- "name": "speed",
2312
- "default": "`0`",
2313
- "description": "动画速度(单位为 rate/s)",
2320
+ "name": "lazy-render",
2321
+ "default": "`true`",
2322
+ "description": "是否在首次展开时才渲染面板内容",
2314
2323
  "value": {
2315
- "type": "number | string",
2324
+ "type": "boolean",
2316
2325
  "kind": "expression"
2317
2326
  }
2318
2327
  },
2319
2328
  {
2320
- "name": "text",
2329
+ "name": "title-class",
2321
2330
  "default": "-",
2322
- "description": "文字",
2331
+ "description": "左侧标题额外类名",
2323
2332
  "value": {
2324
2333
  "type": "string",
2325
2334
  "kind": "expression"
2326
2335
  }
2327
2336
  },
2328
2337
  {
2329
- "name": "stroke-width",
2330
- "default": "`40`",
2331
- "description": "进度条宽度",
2332
- "value": {
2333
- "type": "number | string",
2334
- "kind": "expression"
2335
- }
2336
- },
2337
- {
2338
- "name": "stroke-linecap",
2339
- "default": "`round`",
2340
- "description": "进度条端点的形状,可选值为`square` `butt`",
2338
+ "name": "value-class",
2339
+ "default": "-",
2340
+ "description": "右侧内容额外类名",
2341
2341
  "value": {
2342
2342
  "type": "string",
2343
2343
  "kind": "expression"
2344
2344
  }
2345
2345
  },
2346
2346
  {
2347
- "name": "clockwise",
2348
- "default": "`true`",
2349
- "description": "是否顺时针增加",
2347
+ "name": "label-class",
2348
+ "default": "-",
2349
+ "description": "描述信息额外类名",
2350
2350
  "value": {
2351
- "type": "boolean",
2351
+ "type": "string",
2352
2352
  "kind": "expression"
2353
2353
  }
2354
2354
  }
@@ -2402,6 +2402,62 @@
2402
2402
  }
2403
2403
  ]
2404
2404
  },
2405
+ {
2406
+ "name": "van-contact-list",
2407
+ "slots": [],
2408
+ "events": [
2409
+ {
2410
+ "name": "add",
2411
+ "description": "点击新增按钮时触发"
2412
+ },
2413
+ {
2414
+ "name": "edit",
2415
+ "description": "点击编辑按钮时触发"
2416
+ },
2417
+ {
2418
+ "name": "select",
2419
+ "description": "切换选中的联系人时触发"
2420
+ }
2421
+ ],
2422
+ "attributes": [
2423
+ {
2424
+ "name": "v-model",
2425
+ "default": "-",
2426
+ "description": "当前选中联系人的 id",
2427
+ "value": {
2428
+ "type": "number | string",
2429
+ "kind": "expression"
2430
+ }
2431
+ },
2432
+ {
2433
+ "name": "list",
2434
+ "default": "`[]`",
2435
+ "description": "联系人列表",
2436
+ "value": {
2437
+ "type": "Contact[]",
2438
+ "kind": "expression"
2439
+ }
2440
+ },
2441
+ {
2442
+ "name": "add-text",
2443
+ "default": "`新建联系人`",
2444
+ "description": "新建按钮文案",
2445
+ "value": {
2446
+ "type": "string",
2447
+ "kind": "expression"
2448
+ }
2449
+ },
2450
+ {
2451
+ "name": "default-tag-text",
2452
+ "default": "-",
2453
+ "description": "默认联系人标签文案",
2454
+ "value": {
2455
+ "type": "string",
2456
+ "kind": "expression"
2457
+ }
2458
+ }
2459
+ ]
2460
+ },
2405
2461
  {
2406
2462
  "name": "van-contact-edit",
2407
2463
  "slots": [],
@@ -2481,62 +2537,6 @@
2481
2537
  }
2482
2538
  ]
2483
2539
  },
2484
- {
2485
- "name": "van-contact-list",
2486
- "slots": [],
2487
- "events": [
2488
- {
2489
- "name": "add",
2490
- "description": "点击新增按钮时触发"
2491
- },
2492
- {
2493
- "name": "edit",
2494
- "description": "点击编辑按钮时触发"
2495
- },
2496
- {
2497
- "name": "select",
2498
- "description": "切换选中的联系人时触发"
2499
- }
2500
- ],
2501
- "attributes": [
2502
- {
2503
- "name": "v-model",
2504
- "default": "-",
2505
- "description": "当前选中联系人的 id",
2506
- "value": {
2507
- "type": "number | string",
2508
- "kind": "expression"
2509
- }
2510
- },
2511
- {
2512
- "name": "list",
2513
- "default": "`[]`",
2514
- "description": "联系人列表",
2515
- "value": {
2516
- "type": "Contact[]",
2517
- "kind": "expression"
2518
- }
2519
- },
2520
- {
2521
- "name": "add-text",
2522
- "default": "`新建联系人`",
2523
- "description": "新建按钮文案",
2524
- "value": {
2525
- "type": "string",
2526
- "kind": "expression"
2527
- }
2528
- },
2529
- {
2530
- "name": "default-tag-text",
2531
- "default": "-",
2532
- "description": "默认联系人标签文案",
2533
- "value": {
2534
- "type": "string",
2535
- "kind": "expression"
2536
- }
2537
- }
2538
- ]
2539
- },
2540
2540
  {
2541
2541
  "name": "van-count-down",
2542
2542
  "slots": [
@@ -3055,45 +3055,6 @@
3055
3055
  }
3056
3056
  ]
3057
3057
  },
3058
- {
3059
- "name": "van-divider",
3060
- "slots": [
3061
- {
3062
- "name": "default",
3063
- "description": "内容"
3064
- }
3065
- ],
3066
- "events": [],
3067
- "attributes": [
3068
- {
3069
- "name": "dashed",
3070
- "default": "`false`",
3071
- "description": "是否使用虚线",
3072
- "value": {
3073
- "type": "boolean",
3074
- "kind": "expression"
3075
- }
3076
- },
3077
- {
3078
- "name": "hairline",
3079
- "default": "`true`",
3080
- "description": "是否使用 0.5px 线",
3081
- "value": {
3082
- "type": "boolean",
3083
- "kind": "expression"
3084
- }
3085
- },
3086
- {
3087
- "name": "content-position",
3088
- "default": "`center`",
3089
- "description": "内容位置,可选值为`left` `right`",
3090
- "value": {
3091
- "type": "string",
3092
- "kind": "expression"
3093
- }
3094
- }
3095
- ]
3096
- },
3097
3058
  {
3098
3059
  "name": "van-dialog",
3099
3060
  "slots": [
@@ -3342,6 +3303,45 @@
3342
3303
  }
3343
3304
  ]
3344
3305
  },
3306
+ {
3307
+ "name": "van-divider",
3308
+ "slots": [
3309
+ {
3310
+ "name": "default",
3311
+ "description": "内容"
3312
+ }
3313
+ ],
3314
+ "events": [],
3315
+ "attributes": [
3316
+ {
3317
+ "name": "dashed",
3318
+ "default": "`false`",
3319
+ "description": "是否使用虚线",
3320
+ "value": {
3321
+ "type": "boolean",
3322
+ "kind": "expression"
3323
+ }
3324
+ },
3325
+ {
3326
+ "name": "hairline",
3327
+ "default": "`true`",
3328
+ "description": "是否使用 0.5px 线",
3329
+ "value": {
3330
+ "type": "boolean",
3331
+ "kind": "expression"
3332
+ }
3333
+ },
3334
+ {
3335
+ "name": "content-position",
3336
+ "default": "`center`",
3337
+ "description": "内容位置,可选值为`left` `right`",
3338
+ "value": {
3339
+ "type": "string",
3340
+ "kind": "expression"
3341
+ }
3342
+ }
3343
+ ]
3344
+ },
3345
3345
  {
3346
3346
  "name": "van-dropdown-menu",
3347
3347
  "slots": [
@@ -4060,187 +4060,9 @@
4060
4060
  }
4061
4061
  },
4062
4062
  {
4063
- "name": "submit-on-enter",
4064
- "default": "`true`",
4065
- "description": "是否在按下回车键时提交表单",
4066
- "value": {
4067
- "type": "boolean",
4068
- "kind": "expression"
4069
- }
4070
- }
4071
- ]
4072
- },
4073
- {
4074
- "name": "van-grid",
4075
- "slots": [
4076
- {
4077
- "name": "default",
4078
- "description": "自定义宫格的所有内容"
4079
- },
4080
- {
4081
- "name": "icon",
4082
- "description": "自定义图标"
4083
- },
4084
- {
4085
- "name": "text",
4086
- "description": "自定义文字"
4087
- }
4088
- ],
4089
- "events": [
4090
- {
4091
- "name": "click",
4092
- "description": "点击格子时触发"
4093
- }
4094
- ],
4095
- "attributes": [
4096
- {
4097
- "name": "column-num",
4098
- "default": "`4`",
4099
- "description": "列数",
4100
- "value": {
4101
- "type": "number | string",
4102
- "kind": "expression"
4103
- }
4104
- },
4105
- {
4106
- "name": "icon-size",
4107
- "default": "`28px`",
4108
- "description": "图标大小,默认单位为`px`",
4109
- "value": {
4110
- "type": "number | string",
4111
- "kind": "expression"
4112
- }
4113
- },
4114
- {
4115
- "name": "gutter",
4116
- "default": "`0`",
4117
- "description": "格子之间的间距,默认单位为`px`",
4118
- "value": {
4119
- "type": "number | string",
4120
- "kind": "expression"
4121
- }
4122
- },
4123
- {
4124
- "name": "border",
4125
- "default": "`true`",
4126
- "description": "是否显示边框",
4127
- "value": {
4128
- "type": "boolean",
4129
- "kind": "expression"
4130
- }
4131
- },
4132
- {
4133
- "name": "center",
4134
- "default": "`true`",
4135
- "description": "是否将格子内容居中显示",
4136
- "value": {
4137
- "type": "boolean",
4138
- "kind": "expression"
4139
- }
4140
- },
4141
- {
4142
- "name": "square",
4143
- "default": "`false`",
4144
- "description": "是否将格子固定为正方形",
4145
- "value": {
4146
- "type": "boolean",
4147
- "kind": "expression"
4148
- }
4149
- },
4150
- {
4151
- "name": "clickable",
4152
- "default": "`false`",
4153
- "description": "是否开启格子点击反馈",
4154
- "value": {
4155
- "type": "boolean",
4156
- "kind": "expression"
4157
- }
4158
- },
4159
- {
4160
- "name": "direction",
4161
- "default": "`vertical`",
4162
- "description": "格子内容排列的方向,可选值为 `horizontal`",
4163
- "value": {
4164
- "type": "string",
4165
- "kind": "expression"
4166
- }
4167
- },
4168
- {
4169
- "name": "text",
4170
- "default": "-",
4171
- "description": "文字",
4172
- "value": {
4173
- "type": "string",
4174
- "kind": "expression"
4175
- }
4176
- },
4177
- {
4178
- "name": "icon",
4179
- "default": "-",
4180
- "description": "[图标名称](#/zh-CN/icon)或图片链接",
4181
- "value": {
4182
- "type": "string",
4183
- "kind": "expression"
4184
- }
4185
- },
4186
- {
4187
- "name": "icon-prefix",
4188
- "default": "`van-icon`",
4189
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4190
- "value": {
4191
- "type": "string",
4192
- "kind": "expression"
4193
- }
4194
- },
4195
- {
4196
- "name": "dot",
4197
- "default": "`false`",
4198
- "description": "是否显示图标右上角小红点",
4199
- "value": {
4200
- "type": "boolean",
4201
- "kind": "expression"
4202
- }
4203
- },
4204
- {
4205
- "name": "badge",
4206
- "default": "-",
4207
- "description": "图标右上角徽标的内容",
4208
- "value": {
4209
- "type": "number | string",
4210
- "kind": "expression"
4211
- }
4212
- },
4213
- {
4214
- "name": "info",
4215
- "default": "-",
4216
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4217
- "value": {
4218
- "type": "number | string",
4219
- "kind": "expression"
4220
- }
4221
- },
4222
- {
4223
- "name": "url",
4224
- "default": "-",
4225
- "description": "点击后跳转的链接地址",
4226
- "value": {
4227
- "type": "string",
4228
- "kind": "expression"
4229
- }
4230
- },
4231
- {
4232
- "name": "to",
4233
- "default": "-",
4234
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
4235
- "value": {
4236
- "type": "string | object",
4237
- "kind": "expression"
4238
- }
4239
- },
4240
- {
4241
- "name": "replace",
4242
- "default": "`false`",
4243
- "description": "是否在跳转时替换当前页面历史",
4063
+ "name": "submit-on-enter",
4064
+ "default": "`true`",
4065
+ "description": "是否在按下回车键时提交表单",
4244
4066
  "value": {
4245
4067
  "type": "boolean",
4246
4068
  "kind": "expression"
@@ -4449,159 +4271,178 @@
4449
4271
  ]
4450
4272
  },
4451
4273
  {
4452
- "name": "van-icon",
4453
- "slots": [],
4274
+ "name": "van-grid",
4275
+ "slots": [
4276
+ {
4277
+ "name": "default",
4278
+ "description": "自定义宫格的所有内容"
4279
+ },
4280
+ {
4281
+ "name": "icon",
4282
+ "description": "自定义图标"
4283
+ },
4284
+ {
4285
+ "name": "text",
4286
+ "description": "自定义文字"
4287
+ }
4288
+ ],
4454
4289
  "events": [
4455
4290
  {
4456
4291
  "name": "click",
4457
- "description": "点击图标时触发"
4292
+ "description": "点击格子时触发"
4458
4293
  }
4459
4294
  ],
4460
4295
  "attributes": [
4461
4296
  {
4462
- "name": "name",
4463
- "default": "-",
4464
- "description": "图标名称或图片链接",
4297
+ "name": "column-num",
4298
+ "default": "`4`",
4299
+ "description": "列数",
4465
4300
  "value": {
4466
- "type": "string",
4301
+ "type": "number | string",
4467
4302
  "kind": "expression"
4468
4303
  }
4469
4304
  },
4470
4305
  {
4471
- "name": "dot",
4472
- "default": "`false`",
4473
- "description": "是否显示图标右上角小红点",
4306
+ "name": "icon-size",
4307
+ "default": "`28px`",
4308
+ "description": "图标大小,默认单位为`px`",
4474
4309
  "value": {
4475
- "type": "boolean",
4310
+ "type": "number | string",
4476
4311
  "kind": "expression"
4477
4312
  }
4478
4313
  },
4479
4314
  {
4480
- "name": "badge",
4481
- "default": "-",
4482
- "description": "图标右上角徽标的内容",
4315
+ "name": "gutter",
4316
+ "default": "`0`",
4317
+ "description": "格子之间的间距,默认单位为`px`",
4483
4318
  "value": {
4484
4319
  "type": "number | string",
4485
4320
  "kind": "expression"
4486
4321
  }
4487
4322
  },
4488
4323
  {
4489
- "name": "info",
4490
- "default": "-",
4491
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4324
+ "name": "border",
4325
+ "default": "`true`",
4326
+ "description": "是否显示边框",
4492
4327
  "value": {
4493
- "type": "number | string",
4328
+ "type": "boolean",
4494
4329
  "kind": "expression"
4495
4330
  }
4496
4331
  },
4497
4332
  {
4498
- "name": "color",
4499
- "default": "`inherit`",
4500
- "description": "图标颜色",
4333
+ "name": "center",
4334
+ "default": "`true`",
4335
+ "description": "是否将格子内容居中显示",
4501
4336
  "value": {
4502
- "type": "string",
4337
+ "type": "boolean",
4503
4338
  "kind": "expression"
4504
4339
  }
4505
4340
  },
4506
4341
  {
4507
- "name": "size",
4508
- "default": "`inherit`",
4509
- "description": "图标大小,如 `20px` `2em`,默认单位为`px`",
4342
+ "name": "square",
4343
+ "default": "`false`",
4344
+ "description": "是否将格子固定为正方形",
4510
4345
  "value": {
4511
- "type": "number | string",
4346
+ "type": "boolean",
4512
4347
  "kind": "expression"
4513
4348
  }
4514
4349
  },
4515
4350
  {
4516
- "name": "class-prefix",
4517
- "default": "`van-icon`",
4518
- "description": "类名前缀,用于使用自定义图标",
4351
+ "name": "clickable",
4352
+ "default": "`false`",
4353
+ "description": "是否开启格子点击反馈",
4519
4354
  "value": {
4520
- "type": "string",
4355
+ "type": "boolean",
4521
4356
  "kind": "expression"
4522
4357
  }
4523
4358
  },
4524
4359
  {
4525
- "name": "tag",
4526
- "default": "`i`",
4527
- "description": "HTML 标签",
4360
+ "name": "direction",
4361
+ "default": "`vertical`",
4362
+ "description": "格子内容排列的方向,可选值为 `horizontal`",
4528
4363
  "value": {
4529
4364
  "type": "string",
4530
4365
  "kind": "expression"
4531
4366
  }
4532
- }
4533
- ]
4534
- },
4535
- {
4536
- "name": "van-index-bar",
4537
- "slots": [
4538
- {
4539
- "name": "default",
4540
- "description": "锚点位置显示内容,默认为索引字符"
4541
- }
4542
- ],
4543
- "events": [
4544
- {
4545
- "name": "select",
4546
- "description": "点击索引栏的字符时触发"
4547
4367
  },
4548
4368
  {
4549
- "name": "change",
4550
- "description": "当前高亮的索引字符变化时触发"
4551
- }
4552
- ],
4553
- "attributes": [
4369
+ "name": "text",
4370
+ "default": "-",
4371
+ "description": "文字",
4372
+ "value": {
4373
+ "type": "string",
4374
+ "kind": "expression"
4375
+ }
4376
+ },
4554
4377
  {
4555
- "name": "index-list",
4556
- "default": "`A-Z`",
4557
- "description": "索引字符列表",
4378
+ "name": "icon",
4379
+ "default": "-",
4380
+ "description": "[图标名称](#/zh-CN/icon)或图片链接",
4558
4381
  "value": {
4559
- "type": "string[] | number[]",
4382
+ "type": "string",
4560
4383
  "kind": "expression"
4561
4384
  }
4562
4385
  },
4563
4386
  {
4564
- "name": "z-index",
4565
- "default": "`1`",
4566
- "description": "z-index 层级",
4387
+ "name": "icon-prefix",
4388
+ "default": "`van-icon`",
4389
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4567
4390
  "value": {
4568
- "type": "number | string",
4391
+ "type": "string",
4569
4392
  "kind": "expression"
4570
4393
  }
4571
4394
  },
4572
4395
  {
4573
- "name": "sticky",
4574
- "default": "`true`",
4575
- "description": "是否开启锚点自动吸顶",
4396
+ "name": "dot",
4397
+ "default": "`false`",
4398
+ "description": "是否显示图标右上角小红点",
4576
4399
  "value": {
4577
4400
  "type": "boolean",
4578
4401
  "kind": "expression"
4579
4402
  }
4580
4403
  },
4581
4404
  {
4582
- "name": "sticky-offset-top",
4583
- "default": "`0`",
4584
- "description": "锚点自动吸顶时与顶部的距离",
4405
+ "name": "badge",
4406
+ "default": "-",
4407
+ "description": "图标右上角徽标的内容",
4585
4408
  "value": {
4586
- "type": "number",
4409
+ "type": "number | string",
4587
4410
  "kind": "expression"
4588
4411
  }
4589
4412
  },
4590
4413
  {
4591
- "name": "highlight-color",
4592
- "default": "`#ee0a24`",
4593
- "description": "索引字符高亮颜色",
4414
+ "name": "info",
4415
+ "default": "-",
4416
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4417
+ "value": {
4418
+ "type": "number | string",
4419
+ "kind": "expression"
4420
+ }
4421
+ },
4422
+ {
4423
+ "name": "url",
4424
+ "default": "-",
4425
+ "description": "点击后跳转的链接地址",
4594
4426
  "value": {
4595
4427
  "type": "string",
4596
4428
  "kind": "expression"
4597
4429
  }
4598
4430
  },
4599
4431
  {
4600
- "name": "index",
4432
+ "name": "to",
4601
4433
  "default": "-",
4602
- "description": "索引字符",
4434
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
4603
4435
  "value": {
4604
- "type": "number | string",
4436
+ "type": "string | object",
4437
+ "kind": "expression"
4438
+ }
4439
+ },
4440
+ {
4441
+ "name": "replace",
4442
+ "default": "`false`",
4443
+ "description": "是否在跳转时替换当前页面历史",
4444
+ "value": {
4445
+ "type": "boolean",
4605
4446
  "kind": "expression"
4606
4447
  }
4607
4448
  }
@@ -4715,41 +4556,125 @@
4715
4556
  "default": "`true`",
4716
4557
  "description": "是否展示图片加载失败提示",
4717
4558
  "value": {
4718
- "type": "boolean",
4559
+ "type": "boolean",
4560
+ "kind": "expression"
4561
+ }
4562
+ },
4563
+ {
4564
+ "name": "show-loading",
4565
+ "default": "`true`",
4566
+ "description": "是否展示图片加载中提示",
4567
+ "value": {
4568
+ "type": "boolean",
4569
+ "kind": "expression"
4570
+ }
4571
+ },
4572
+ {
4573
+ "name": "error-icon",
4574
+ "default": "`photo-fail`",
4575
+ "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接",
4576
+ "value": {
4577
+ "type": "string",
4578
+ "kind": "expression"
4579
+ }
4580
+ },
4581
+ {
4582
+ "name": "loading-icon",
4583
+ "default": "`photo`",
4584
+ "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接",
4585
+ "value": {
4586
+ "type": "string",
4587
+ "kind": "expression"
4588
+ }
4589
+ },
4590
+ {
4591
+ "name": "icon-prefix",
4592
+ "default": "`van-icon`",
4593
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4594
+ "value": {
4595
+ "type": "string",
4596
+ "kind": "expression"
4597
+ }
4598
+ }
4599
+ ]
4600
+ },
4601
+ {
4602
+ "name": "van-icon",
4603
+ "slots": [],
4604
+ "events": [
4605
+ {
4606
+ "name": "click",
4607
+ "description": "点击图标时触发"
4608
+ }
4609
+ ],
4610
+ "attributes": [
4611
+ {
4612
+ "name": "name",
4613
+ "default": "-",
4614
+ "description": "图标名称或图片链接",
4615
+ "value": {
4616
+ "type": "string",
4617
+ "kind": "expression"
4618
+ }
4619
+ },
4620
+ {
4621
+ "name": "dot",
4622
+ "default": "`false`",
4623
+ "description": "是否显示图标右上角小红点",
4624
+ "value": {
4625
+ "type": "boolean",
4626
+ "kind": "expression"
4627
+ }
4628
+ },
4629
+ {
4630
+ "name": "badge",
4631
+ "default": "-",
4632
+ "description": "图标右上角徽标的内容",
4633
+ "value": {
4634
+ "type": "number | string",
4635
+ "kind": "expression"
4636
+ }
4637
+ },
4638
+ {
4639
+ "name": "info",
4640
+ "default": "-",
4641
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4642
+ "value": {
4643
+ "type": "number | string",
4719
4644
  "kind": "expression"
4720
4645
  }
4721
4646
  },
4722
4647
  {
4723
- "name": "show-loading",
4724
- "default": "`true`",
4725
- "description": "是否展示图片加载中提示",
4648
+ "name": "color",
4649
+ "default": "`inherit`",
4650
+ "description": "图标颜色",
4726
4651
  "value": {
4727
- "type": "boolean",
4652
+ "type": "string",
4728
4653
  "kind": "expression"
4729
4654
  }
4730
4655
  },
4731
4656
  {
4732
- "name": "error-icon",
4733
- "default": "`photo-fail`",
4734
- "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接",
4657
+ "name": "size",
4658
+ "default": "`inherit`",
4659
+ "description": "图标大小,如 `20px` `2em`,默认单位为`px`",
4735
4660
  "value": {
4736
- "type": "string",
4661
+ "type": "number | string",
4737
4662
  "kind": "expression"
4738
4663
  }
4739
4664
  },
4740
4665
  {
4741
- "name": "loading-icon",
4742
- "default": "`photo`",
4743
- "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接",
4666
+ "name": "class-prefix",
4667
+ "default": "`van-icon`",
4668
+ "description": "类名前缀,用于使用自定义图标",
4744
4669
  "value": {
4745
4670
  "type": "string",
4746
4671
  "kind": "expression"
4747
4672
  }
4748
4673
  },
4749
4674
  {
4750
- "name": "icon-prefix",
4751
- "default": "`van-icon`",
4752
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4675
+ "name": "tag",
4676
+ "default": "`i`",
4677
+ "description": "HTML 标签",
4753
4678
  "value": {
4754
4679
  "type": "string",
4755
4680
  "kind": "expression"
@@ -4943,6 +4868,81 @@
4943
4868
  }
4944
4869
  ]
4945
4870
  },
4871
+ {
4872
+ "name": "van-index-bar",
4873
+ "slots": [
4874
+ {
4875
+ "name": "default",
4876
+ "description": "锚点位置显示内容,默认为索引字符"
4877
+ }
4878
+ ],
4879
+ "events": [
4880
+ {
4881
+ "name": "select",
4882
+ "description": "点击索引栏的字符时触发"
4883
+ },
4884
+ {
4885
+ "name": "change",
4886
+ "description": "当前高亮的索引字符变化时触发"
4887
+ }
4888
+ ],
4889
+ "attributes": [
4890
+ {
4891
+ "name": "index-list",
4892
+ "default": "`A-Z`",
4893
+ "description": "索引字符列表",
4894
+ "value": {
4895
+ "type": "string[] | number[]",
4896
+ "kind": "expression"
4897
+ }
4898
+ },
4899
+ {
4900
+ "name": "z-index",
4901
+ "default": "`1`",
4902
+ "description": "z-index 层级",
4903
+ "value": {
4904
+ "type": "number | string",
4905
+ "kind": "expression"
4906
+ }
4907
+ },
4908
+ {
4909
+ "name": "sticky",
4910
+ "default": "`true`",
4911
+ "description": "是否开启锚点自动吸顶",
4912
+ "value": {
4913
+ "type": "boolean",
4914
+ "kind": "expression"
4915
+ }
4916
+ },
4917
+ {
4918
+ "name": "sticky-offset-top",
4919
+ "default": "`0`",
4920
+ "description": "锚点自动吸顶时与顶部的距离",
4921
+ "value": {
4922
+ "type": "number",
4923
+ "kind": "expression"
4924
+ }
4925
+ },
4926
+ {
4927
+ "name": "highlight-color",
4928
+ "default": "`#ee0a24`",
4929
+ "description": "索引字符高亮颜色",
4930
+ "value": {
4931
+ "type": "string",
4932
+ "kind": "expression"
4933
+ }
4934
+ },
4935
+ {
4936
+ "name": "index",
4937
+ "default": "-",
4938
+ "description": "索引字符",
4939
+ "value": {
4940
+ "type": "number | string",
4941
+ "kind": "expression"
4942
+ }
4943
+ }
4944
+ ]
4945
+ },
4946
4946
  {
4947
4947
  "name": "van-lazyload",
4948
4948
  "slots": [],
@@ -5783,6 +5783,81 @@
5783
5783
  }
5784
5784
  ]
5785
5785
  },
5786
+ {
5787
+ "name": "van-password-input",
5788
+ "slots": [],
5789
+ "events": [
5790
+ {
5791
+ "name": "focus",
5792
+ "description": "输入框聚焦时触发"
5793
+ }
5794
+ ],
5795
+ "attributes": [
5796
+ {
5797
+ "name": "value",
5798
+ "default": "`''`",
5799
+ "description": "密码值",
5800
+ "value": {
5801
+ "type": "string",
5802
+ "kind": "expression"
5803
+ }
5804
+ },
5805
+ {
5806
+ "name": "info",
5807
+ "default": "-",
5808
+ "description": "输入框下方文字提示",
5809
+ "value": {
5810
+ "type": "string",
5811
+ "kind": "expression"
5812
+ }
5813
+ },
5814
+ {
5815
+ "name": "error-info",
5816
+ "default": "-",
5817
+ "description": "输入框下方错误提示",
5818
+ "value": {
5819
+ "type": "string",
5820
+ "kind": "expression"
5821
+ }
5822
+ },
5823
+ {
5824
+ "name": "length",
5825
+ "default": "`6`",
5826
+ "description": "密码最大长度",
5827
+ "value": {
5828
+ "type": "number | string",
5829
+ "kind": "expression"
5830
+ }
5831
+ },
5832
+ {
5833
+ "name": "gutter",
5834
+ "default": "`0`",
5835
+ "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`",
5836
+ "value": {
5837
+ "type": "number | string",
5838
+ "kind": "expression"
5839
+ }
5840
+ },
5841
+ {
5842
+ "name": "mask",
5843
+ "default": "`true`",
5844
+ "description": "是否隐藏密码内容",
5845
+ "value": {
5846
+ "type": "boolean",
5847
+ "kind": "expression"
5848
+ }
5849
+ },
5850
+ {
5851
+ "name": "focused",
5852
+ "default": "`false`",
5853
+ "description": "是否已聚焦,聚焦时会显示光标",
5854
+ "value": {
5855
+ "type": "boolean",
5856
+ "kind": "expression"
5857
+ }
5858
+ }
5859
+ ]
5860
+ },
5786
5861
  {
5787
5862
  "name": "van-picker",
5788
5863
  "slots": [
@@ -5958,81 +6033,6 @@
5958
6033
  }
5959
6034
  ]
5960
6035
  },
5961
- {
5962
- "name": "van-password-input",
5963
- "slots": [],
5964
- "events": [
5965
- {
5966
- "name": "focus",
5967
- "description": "输入框聚焦时触发"
5968
- }
5969
- ],
5970
- "attributes": [
5971
- {
5972
- "name": "value",
5973
- "default": "`''`",
5974
- "description": "密码值",
5975
- "value": {
5976
- "type": "string",
5977
- "kind": "expression"
5978
- }
5979
- },
5980
- {
5981
- "name": "info",
5982
- "default": "-",
5983
- "description": "输入框下方文字提示",
5984
- "value": {
5985
- "type": "string",
5986
- "kind": "expression"
5987
- }
5988
- },
5989
- {
5990
- "name": "error-info",
5991
- "default": "-",
5992
- "description": "输入框下方错误提示",
5993
- "value": {
5994
- "type": "string",
5995
- "kind": "expression"
5996
- }
5997
- },
5998
- {
5999
- "name": "length",
6000
- "default": "`6`",
6001
- "description": "密码最大长度",
6002
- "value": {
6003
- "type": "number | string",
6004
- "kind": "expression"
6005
- }
6006
- },
6007
- {
6008
- "name": "gutter",
6009
- "default": "`0`",
6010
- "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`",
6011
- "value": {
6012
- "type": "number | string",
6013
- "kind": "expression"
6014
- }
6015
- },
6016
- {
6017
- "name": "mask",
6018
- "default": "`true`",
6019
- "description": "是否隐藏密码内容",
6020
- "value": {
6021
- "type": "boolean",
6022
- "kind": "expression"
6023
- }
6024
- },
6025
- {
6026
- "name": "focused",
6027
- "default": "`false`",
6028
- "description": "是否已聚焦,聚焦时会显示光标",
6029
- "value": {
6030
- "type": "boolean",
6031
- "kind": "expression"
6032
- }
6033
- }
6034
- ]
6035
- },
6036
6036
  {
6037
6037
  "name": "van-popover",
6038
6038
  "slots": [