vant 2.12.49 → 2.12.51

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,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.49",
5
+ "version": "2.12.51",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -205,112 +205,150 @@
205
205
  ]
206
206
  },
207
207
  {
208
- "name": "van-address-list",
208
+ "name": "van-area",
209
209
  "slots": [
210
210
  {
211
- "name": "default",
212
- "description": "在列表下方插入内容"
213
- },
214
- {
215
- "name": "top",
216
- "description": "在顶部插入内容"
211
+ "name": "title",
212
+ "description": "自定义标题内容"
217
213
  },
218
214
  {
219
- "name": "item-bottom",
220
- "description": "在列表项底部插入内容"
215
+ "name": "columns-top",
216
+ "description": "自定义选项上方内容"
221
217
  },
222
218
  {
223
- "name": "tag",
224
- "description": "列表项标签内容自定义"
219
+ "name": "columns-bottom",
220
+ "description": "自定义选项下方内容"
225
221
  }
226
222
  ],
227
223
  "events": [
228
224
  {
229
- "name": "add",
230
- "description": "点击新增按钮时触发"
225
+ "name": "confirm",
226
+ "description": "点击右上方完成按钮"
231
227
  },
232
228
  {
233
- "name": "edit",
234
- "description": "点击编辑按钮时触发"
229
+ "name": "cancel",
230
+ "description": "点击取消按钮时"
235
231
  },
236
232
  {
237
- "name": "select",
238
- "description": "切换选中的地址时触发"
239
- },
233
+ "name": "change",
234
+ "description": "选项改变时触发"
235
+ }
236
+ ],
237
+ "attributes": [
240
238
  {
241
- "name": "edit-disabled",
242
- "description": "编辑不可配送的地址时触发"
239
+ "name": "value",
240
+ "default": "-",
241
+ "description": "当前选中的省市区`code`",
242
+ "value": {
243
+ "type": "string",
244
+ "kind": "expression"
245
+ }
243
246
  },
244
247
  {
245
- "name": "select-disabled",
246
- "description": "选中不可配送的地址时触发"
248
+ "name": "title",
249
+ "default": "-",
250
+ "description": "顶部栏标题",
251
+ "value": {
252
+ "type": "string",
253
+ "kind": "expression"
254
+ }
247
255
  },
248
256
  {
249
- "name": "click-item",
250
- "description": "点击任意地址时触发"
251
- }
252
- ],
253
- "attributes": [
257
+ "name": "confirm-button-text",
258
+ "default": "`确认`",
259
+ "description": "确认按钮文字",
260
+ "value": {
261
+ "type": "string",
262
+ "kind": "expression"
263
+ }
264
+ },
254
265
  {
255
- "name": "v-model",
256
- "default": "-",
257
- "description": "当前选中地址的 id",
266
+ "name": "cancel-button-text",
267
+ "default": "`取消`",
268
+ "description": "取消按钮文字",
258
269
  "value": {
259
270
  "type": "string",
260
271
  "kind": "expression"
261
272
  }
262
273
  },
263
274
  {
264
- "name": "list",
265
- "default": "`[]`",
266
- "description": "地址列表",
275
+ "name": "area-list",
276
+ "default": "-",
277
+ "description": "省市区数据,格式见下方",
267
278
  "value": {
268
- "type": "Address[]",
279
+ "type": "object",
269
280
  "kind": "expression"
270
281
  }
271
282
  },
272
283
  {
273
- "name": "disabled-list",
284
+ "name": "columns-placeholder",
274
285
  "default": "`[]`",
275
- "description": "不可配送地址列表",
286
+ "description": "列占位提示文字",
276
287
  "value": {
277
- "type": "Address[]",
288
+ "type": "string[]",
278
289
  "kind": "expression"
279
290
  }
280
291
  },
281
292
  {
282
- "name": "disabled-text",
283
- "default": "-",
284
- "description": "不可配送提示文案",
293
+ "name": "loading",
294
+ "default": "`false`",
295
+ "description": "是否显示加载状态",
285
296
  "value": {
286
- "type": "string",
297
+ "type": "boolean",
287
298
  "kind": "expression"
288
299
  }
289
300
  },
290
301
  {
291
- "name": "switchable",
292
- "default": "`true`",
293
- "description": "是否允许切换地址",
302
+ "name": "readonly",
303
+ "default": "`false`",
304
+ "description": "是否为只读状态,只读状态下无法切换选项",
294
305
  "value": {
295
306
  "type": "boolean",
296
307
  "kind": "expression"
297
308
  }
298
309
  },
299
310
  {
300
- "name": "add-button-text",
301
- "default": "`新增地址`",
302
- "description": "底部按钮文字",
311
+ "name": "item-height",
312
+ "default": "`44`",
313
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
303
314
  "value": {
304
- "type": "string",
315
+ "type": "number | string",
305
316
  "kind": "expression"
306
317
  }
307
318
  },
308
319
  {
309
- "name": "default-tag-text",
320
+ "name": "columns-num",
321
+ "default": "`3`",
322
+ "description": "显示列数,3-省市区,2-省市,1-省",
323
+ "value": {
324
+ "type": "number | string",
325
+ "kind": "expression"
326
+ }
327
+ },
328
+ {
329
+ "name": "visible-item-count",
330
+ "default": "`6`",
331
+ "description": "可见的选项个数",
332
+ "value": {
333
+ "type": "number | string",
334
+ "kind": "expression"
335
+ }
336
+ },
337
+ {
338
+ "name": "swipe-duration",
339
+ "default": "`1000`",
340
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
341
+ "value": {
342
+ "type": "number | string",
343
+ "kind": "expression"
344
+ }
345
+ },
346
+ {
347
+ "name": "is-oversea-code",
310
348
  "default": "-",
311
- "description": "默认地址标签文字",
349
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
312
350
  "value": {
313
- "type": "string",
351
+ "type": "() => boolean",
314
352
  "kind": "expression"
315
353
  }
316
354
  }
@@ -564,427 +602,538 @@
564
602
  ]
565
603
  },
566
604
  {
567
- "name": "van-area",
605
+ "name": "van-badge",
568
606
  "slots": [
569
607
  {
570
- "name": "title",
571
- "description": "自定义标题内容"
608
+ "name": "default",
609
+ "description": "徽标包裹的子元素"
572
610
  },
573
611
  {
574
- "name": "columns-top",
575
- "description": "自定义选项上方内容"
612
+ "name": "content",
613
+ "description": "自定义徽标内容"
614
+ }
615
+ ],
616
+ "events": [],
617
+ "attributes": [
618
+ {
619
+ "name": "content",
620
+ "default": "-",
621
+ "description": "徽标内容",
622
+ "value": {
623
+ "type": "number | string",
624
+ "kind": "expression"
625
+ }
576
626
  },
577
627
  {
578
- "name": "columns-bottom",
579
- "description": "自定义选项下方内容"
628
+ "name": "color",
629
+ "default": "`#ee0a24`",
630
+ "description": "徽标背景颜色",
631
+ "value": {
632
+ "type": "string",
633
+ "kind": "expression"
634
+ }
635
+ },
636
+ {
637
+ "name": "dot",
638
+ "default": "`false`",
639
+ "description": "是否展示为小红点",
640
+ "value": {
641
+ "type": "boolean",
642
+ "kind": "expression"
643
+ }
644
+ },
645
+ {
646
+ "name": "max",
647
+ "default": "-",
648
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
649
+ "value": {
650
+ "type": "number | string",
651
+ "kind": "expression"
652
+ }
580
653
  }
581
- ],
582
- "events": [
654
+ ]
655
+ },
656
+ {
657
+ "name": "van-button",
658
+ "slots": [
583
659
  {
584
- "name": "confirm",
585
- "description": "点击右上方完成按钮"
660
+ "name": "default",
661
+ "description": "按钮内容"
586
662
  },
587
663
  {
588
- "name": "cancel",
589
- "description": "点击取消按钮时"
664
+ "name": "icon",
665
+ "description": "自定义图标"
590
666
  },
591
667
  {
592
- "name": "change",
593
- "description": "选项改变时触发"
668
+ "name": "loading",
669
+ "description": "自定义加载图标"
670
+ }
671
+ ],
672
+ "events": [
673
+ {
674
+ "name": "click",
675
+ "description": "点击按钮,且按钮状态不为加载或禁用时触发"
676
+ },
677
+ {
678
+ "name": "touchstart",
679
+ "description": "开始触摸按钮时触发"
594
680
  }
595
681
  ],
596
682
  "attributes": [
597
683
  {
598
- "name": "value",
599
- "default": "-",
600
- "description": "当前选中的省市区`code`",
684
+ "name": "type",
685
+ "default": "`default`",
686
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`",
601
687
  "value": {
602
688
  "type": "string",
603
689
  "kind": "expression"
604
690
  }
605
691
  },
606
692
  {
607
- "name": "title",
608
- "default": "-",
609
- "description": "顶部栏标题",
693
+ "name": "size",
694
+ "default": "`normal`",
695
+ "description": "尺寸,可选值为 `large` `small` `mini`",
610
696
  "value": {
611
697
  "type": "string",
612
698
  "kind": "expression"
613
699
  }
614
700
  },
615
701
  {
616
- "name": "confirm-button-text",
617
- "default": "`确认`",
618
- "description": "确认按钮文字",
702
+ "name": "text",
703
+ "default": "-",
704
+ "description": "按钮文字",
619
705
  "value": {
620
706
  "type": "string",
621
707
  "kind": "expression"
622
708
  }
623
709
  },
624
710
  {
625
- "name": "cancel-button-text",
626
- "default": "`取消`",
627
- "description": "取消按钮文字",
711
+ "name": "color",
712
+ "default": "-",
713
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
628
714
  "value": {
629
715
  "type": "string",
630
716
  "kind": "expression"
631
717
  }
632
718
  },
633
719
  {
634
- "name": "area-list",
720
+ "name": "icon",
635
721
  "default": "-",
636
- "description": "省市区数据,格式见下方",
722
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
637
723
  "value": {
638
- "type": "object",
724
+ "type": "string",
639
725
  "kind": "expression"
640
726
  }
641
727
  },
642
728
  {
643
- "name": "columns-placeholder",
644
- "default": "`[]`",
645
- "description": "列占位提示文字",
729
+ "name": "icon-prefix",
730
+ "default": "`van-icon`",
731
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
646
732
  "value": {
647
- "type": "string[]",
733
+ "type": "string",
648
734
  "kind": "expression"
649
735
  }
650
736
  },
651
737
  {
652
- "name": "loading",
738
+ "name": "icon-position",
739
+ "default": "`left`",
740
+ "description": "图标展示位置,可选值为 `right`",
741
+ "value": {
742
+ "type": "string",
743
+ "kind": "expression"
744
+ }
745
+ },
746
+ {
747
+ "name": "tag",
748
+ "default": "`button`",
749
+ "description": "按钮根节点的 HTML 标签",
750
+ "value": {
751
+ "type": "string",
752
+ "kind": "expression"
753
+ }
754
+ },
755
+ {
756
+ "name": "native-type",
757
+ "default": "-",
758
+ "description": "原生 button 标签的 type 属性",
759
+ "value": {
760
+ "type": "string",
761
+ "kind": "expression"
762
+ }
763
+ },
764
+ {
765
+ "name": "block",
653
766
  "default": "`false`",
654
- "description": "是否显示加载状态",
767
+ "description": "是否为块级元素",
655
768
  "value": {
656
769
  "type": "boolean",
657
770
  "kind": "expression"
658
771
  }
659
772
  },
660
773
  {
661
- "name": "readonly",
774
+ "name": "plain",
662
775
  "default": "`false`",
663
- "description": "是否为只读状态,只读状态下无法切换选项",
776
+ "description": "是否为朴素按钮",
664
777
  "value": {
665
778
  "type": "boolean",
666
779
  "kind": "expression"
667
780
  }
668
781
  },
669
782
  {
670
- "name": "item-height",
671
- "default": "`44`",
672
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
783
+ "name": "square",
784
+ "default": "`false`",
785
+ "description": "是否为方形按钮",
673
786
  "value": {
674
- "type": "number | string",
787
+ "type": "boolean",
675
788
  "kind": "expression"
676
789
  }
677
790
  },
678
791
  {
679
- "name": "columns-num",
680
- "default": "`3`",
681
- "description": "显示列数,3-省市区,2-省市,1-省",
792
+ "name": "round",
793
+ "default": "`false`",
794
+ "description": "是否为圆形按钮",
682
795
  "value": {
683
- "type": "number | string",
796
+ "type": "boolean",
684
797
  "kind": "expression"
685
798
  }
686
799
  },
687
800
  {
688
- "name": "visible-item-count",
689
- "default": "`6`",
690
- "description": "可见的选项个数",
801
+ "name": "disabled",
802
+ "default": "`false`",
803
+ "description": "是否禁用按钮",
691
804
  "value": {
692
- "type": "number | string",
805
+ "type": "boolean",
693
806
  "kind": "expression"
694
807
  }
695
808
  },
696
809
  {
697
- "name": "swipe-duration",
698
- "default": "`1000`",
699
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
810
+ "name": "hairline",
811
+ "default": "`false`",
812
+ "description": "是否使用 0.5px 边框",
700
813
  "value": {
701
- "type": "number | string",
814
+ "type": "boolean",
702
815
  "kind": "expression"
703
816
  }
704
817
  },
705
818
  {
706
- "name": "is-oversea-code",
707
- "default": "-",
708
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
819
+ "name": "loading",
820
+ "default": "`false`",
821
+ "description": "是否显示为加载状态",
709
822
  "value": {
710
- "type": "() => boolean",
823
+ "type": "boolean",
711
824
  "kind": "expression"
712
825
  }
713
- }
714
- ]
715
- },
716
- {
717
- "name": "van-badge",
718
- "slots": [
719
- {
720
- "name": "default",
721
- "description": "徽标包裹的子元素"
722
826
  },
723
827
  {
724
- "name": "content",
725
- "description": "自定义徽标内容"
726
- }
727
- ],
728
- "events": [],
729
- "attributes": [
730
- {
731
- "name": "content",
828
+ "name": "loading-text",
732
829
  "default": "-",
733
- "description": "徽标内容",
830
+ "description": "加载状态提示文字",
734
831
  "value": {
735
- "type": "number | string",
832
+ "type": "string",
736
833
  "kind": "expression"
737
834
  }
738
835
  },
739
836
  {
740
- "name": "color",
741
- "default": "`#ee0a24`",
742
- "description": "徽标背景颜色",
837
+ "name": "loading-type",
838
+ "default": "`circular`",
839
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
743
840
  "value": {
744
841
  "type": "string",
745
842
  "kind": "expression"
746
843
  }
747
844
  },
748
845
  {
749
- "name": "dot",
750
- "default": "`false`",
751
- "description": "是否展示为小红点",
846
+ "name": "loading-size",
847
+ "default": "`20px`",
848
+ "description": "加载图标大小",
752
849
  "value": {
753
- "type": "boolean",
850
+ "type": "string",
754
851
  "kind": "expression"
755
852
  }
756
853
  },
757
854
  {
758
- "name": "max",
855
+ "name": "url",
759
856
  "default": "-",
760
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
857
+ "description": "点击后跳转的链接地址",
761
858
  "value": {
762
- "type": "number | string",
859
+ "type": "string",
860
+ "kind": "expression"
861
+ }
862
+ },
863
+ {
864
+ "name": "to",
865
+ "default": "-",
866
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
867
+ "value": {
868
+ "type": "string | object",
869
+ "kind": "expression"
870
+ }
871
+ },
872
+ {
873
+ "name": "replace",
874
+ "default": "`false`",
875
+ "description": "是否在跳转时替换当前页面历史",
876
+ "value": {
877
+ "type": "boolean",
763
878
  "kind": "expression"
764
879
  }
765
880
  }
766
881
  ]
767
882
  },
768
883
  {
769
- "name": "van-button",
884
+ "name": "van-cascader",
770
885
  "slots": [
771
886
  {
772
- "name": "default",
773
- "description": "按钮内容"
774
- },
775
- {
776
- "name": "icon",
777
- "description": "自定义图标"
887
+ "name": "title",
888
+ "description": "自定义顶部标题"
778
889
  },
779
890
  {
780
- "name": "loading",
781
- "description": "自定义加载图标"
891
+ "name": "option",
892
+ "description": "自定义选项文字"
782
893
  }
783
894
  ],
784
895
  "events": [
785
896
  {
786
- "name": "click",
787
- "description": "点击按钮,且按钮状态不为加载或禁用时触发"
897
+ "name": "change",
898
+ "description": "选中项变化时触发"
788
899
  },
789
900
  {
790
- "name": "touchstart",
791
- "description": "开始触摸按钮时触发"
901
+ "name": "finish",
902
+ "description": "全部选项选择完成后触发"
903
+ },
904
+ {
905
+ "name": "close",
906
+ "description": "点击关闭图标时触发"
792
907
  }
793
908
  ],
794
909
  "attributes": [
795
910
  {
796
- "name": "type",
797
- "default": "`default`",
798
- "description": "类型,可选值为 `primary` `info` `warning` `danger`",
911
+ "name": "title",
912
+ "default": "-",
913
+ "description": "顶部标题",
799
914
  "value": {
800
915
  "type": "string",
801
916
  "kind": "expression"
802
917
  }
803
918
  },
804
919
  {
805
- "name": "size",
806
- "default": "`normal`",
807
- "description": "尺寸,可选值为 `large` `small` `mini`",
920
+ "name": "value",
921
+ "default": "-",
922
+ "description": "选中项的值",
808
923
  "value": {
809
- "type": "string",
924
+ "type": "string | number",
810
925
  "kind": "expression"
811
926
  }
812
927
  },
813
928
  {
814
- "name": "text",
815
- "default": "-",
816
- "description": "按钮文字",
929
+ "name": "options",
930
+ "default": "`[]`",
931
+ "description": "可选项数据源",
817
932
  "value": {
818
- "type": "string",
933
+ "type": "Option[]",
819
934
  "kind": "expression"
820
935
  }
821
936
  },
822
937
  {
823
- "name": "color",
824
- "default": "-",
825
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
938
+ "name": "placeholder",
939
+ "default": "`请选择`",
940
+ "description": "未选中时的提示文案",
826
941
  "value": {
827
942
  "type": "string",
828
943
  "kind": "expression"
829
944
  }
830
945
  },
831
946
  {
832
- "name": "icon",
833
- "default": "-",
834
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
947
+ "name": "active-color",
948
+ "default": "`#ee0a24`",
949
+ "description": "选中状态的高亮颜色",
835
950
  "value": {
836
951
  "type": "string",
837
952
  "kind": "expression"
838
953
  }
839
954
  },
840
955
  {
841
- "name": "icon-prefix",
842
- "default": "`van-icon`",
843
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
956
+ "name": "closeable",
957
+ "default": "`true`",
958
+ "description": "是否显示关闭图标",
844
959
  "value": {
845
- "type": "string",
960
+ "type": "boolean",
846
961
  "kind": "expression"
847
962
  }
848
963
  },
849
964
  {
850
- "name": "icon-position",
851
- "default": "`left`",
852
- "description": "图标展示位置,可选值为 `right`",
965
+ "name": "show-header",
966
+ "default": "`true`",
967
+ "description": "是否展示标题栏",
853
968
  "value": {
854
- "type": "string",
969
+ "type": "boolean",
855
970
  "kind": "expression"
856
971
  }
857
972
  },
858
973
  {
859
- "name": "tag",
860
- "default": "`button`",
861
- "description": "按钮根节点的 HTML 标签",
974
+ "name": "field-names",
975
+ "default": "`{ text: 'text', value: 'value', children: 'children' }`",
976
+ "description": "自定义 `options` 结构中的字段",
862
977
  "value": {
863
- "type": "string",
978
+ "type": "object",
864
979
  "kind": "expression"
865
980
  }
981
+ }
982
+ ]
983
+ },
984
+ {
985
+ "name": "van-card",
986
+ "slots": [
987
+ {
988
+ "name": "title",
989
+ "description": "自定义标题"
866
990
  },
867
991
  {
868
- "name": "native-type",
869
- "default": "-",
870
- "description": "原生 button 标签的 type 属性",
871
- "value": {
872
- "type": "string",
873
- "kind": "expression"
874
- }
992
+ "name": "desc",
993
+ "description": "自定义描述"
875
994
  },
876
995
  {
877
- "name": "block",
878
- "default": "`false`",
879
- "description": "是否为块级元素",
880
- "value": {
881
- "type": "boolean",
882
- "kind": "expression"
883
- }
996
+ "name": "num",
997
+ "description": "自定义数量"
884
998
  },
885
999
  {
886
- "name": "plain",
887
- "default": "`false`",
888
- "description": "是否为朴素按钮",
889
- "value": {
890
- "type": "boolean",
891
- "kind": "expression"
892
- }
1000
+ "name": "price",
1001
+ "description": "自定义价格"
893
1002
  },
894
1003
  {
895
- "name": "square",
896
- "default": "`false`",
897
- "description": "是否为方形按钮",
1004
+ "name": "origin-price",
1005
+ "description": "自定义商品原价"
1006
+ },
1007
+ {
1008
+ "name": "price-top",
1009
+ "description": "自定义价格上方区域"
1010
+ },
1011
+ {
1012
+ "name": "bottom",
1013
+ "description": "自定义价格下方区域"
1014
+ },
1015
+ {
1016
+ "name": "thumb",
1017
+ "description": "自定义图片"
1018
+ },
1019
+ {
1020
+ "name": "tag",
1021
+ "description": "自定义图片角标"
1022
+ },
1023
+ {
1024
+ "name": "tags",
1025
+ "description": "自定义描述下方标签区域"
1026
+ },
1027
+ {
1028
+ "name": "footer",
1029
+ "description": "自定义右下角内容"
1030
+ }
1031
+ ],
1032
+ "events": [
1033
+ {
1034
+ "name": "click",
1035
+ "description": "点击时触发"
1036
+ },
1037
+ {
1038
+ "name": "click-thumb",
1039
+ "description": "点击自定义图片时触发"
1040
+ }
1041
+ ],
1042
+ "attributes": [
1043
+ {
1044
+ "name": "thumb",
1045
+ "default": "-",
1046
+ "description": "左侧图片 URL",
898
1047
  "value": {
899
- "type": "boolean",
1048
+ "type": "string",
900
1049
  "kind": "expression"
901
1050
  }
902
1051
  },
903
1052
  {
904
- "name": "round",
905
- "default": "`false`",
906
- "description": "是否为圆形按钮",
1053
+ "name": "title",
1054
+ "default": "-",
1055
+ "description": "标题",
907
1056
  "value": {
908
- "type": "boolean",
1057
+ "type": "string",
909
1058
  "kind": "expression"
910
1059
  }
911
1060
  },
912
1061
  {
913
- "name": "disabled",
914
- "default": "`false`",
915
- "description": "是否禁用按钮",
1062
+ "name": "desc",
1063
+ "default": "-",
1064
+ "description": "描述",
916
1065
  "value": {
917
- "type": "boolean",
1066
+ "type": "string",
918
1067
  "kind": "expression"
919
1068
  }
920
1069
  },
921
1070
  {
922
- "name": "hairline",
923
- "default": "`false`",
924
- "description": "是否使用 0.5px 边框",
1071
+ "name": "tag",
1072
+ "default": "-",
1073
+ "description": "图片角标",
925
1074
  "value": {
926
- "type": "boolean",
1075
+ "type": "string",
927
1076
  "kind": "expression"
928
1077
  }
929
1078
  },
930
1079
  {
931
- "name": "loading",
932
- "default": "`false`",
933
- "description": "是否显示为加载状态",
1080
+ "name": "num",
1081
+ "default": "-",
1082
+ "description": "商品数量",
934
1083
  "value": {
935
- "type": "boolean",
1084
+ "type": "number | string",
936
1085
  "kind": "expression"
937
1086
  }
938
1087
  },
939
1088
  {
940
- "name": "loading-text",
1089
+ "name": "price",
941
1090
  "default": "-",
942
- "description": "加载状态提示文字",
1091
+ "description": "商品价格",
943
1092
  "value": {
944
- "type": "string",
1093
+ "type": "number | string",
945
1094
  "kind": "expression"
946
1095
  }
947
1096
  },
948
1097
  {
949
- "name": "loading-type",
950
- "default": "`circular`",
951
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
1098
+ "name": "origin-price",
1099
+ "default": "-",
1100
+ "description": "商品划线原价",
952
1101
  "value": {
953
- "type": "string",
1102
+ "type": "number | string",
954
1103
  "kind": "expression"
955
1104
  }
956
1105
  },
957
1106
  {
958
- "name": "loading-size",
959
- "default": "`20px`",
960
- "description": "加载图标大小",
1107
+ "name": "centered",
1108
+ "default": "`false`",
1109
+ "description": "内容是否垂直居中",
961
1110
  "value": {
962
- "type": "string",
1111
+ "type": "boolean",
963
1112
  "kind": "expression"
964
1113
  }
965
1114
  },
966
1115
  {
967
- "name": "url",
968
- "default": "-",
969
- "description": "点击后跳转的链接地址",
1116
+ "name": "currency",
1117
+ "default": "`¥`",
1118
+ "description": "货币符号",
970
1119
  "value": {
971
1120
  "type": "string",
972
1121
  "kind": "expression"
973
1122
  }
974
1123
  },
975
1124
  {
976
- "name": "to",
1125
+ "name": "thumb-link",
977
1126
  "default": "-",
978
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1127
+ "description": "点击左侧图片后跳转的链接地址",
979
1128
  "value": {
980
- "type": "string | object",
1129
+ "type": "string",
981
1130
  "kind": "expression"
982
1131
  }
983
1132
  },
984
1133
  {
985
- "name": "replace",
1134
+ "name": "lazy-load",
986
1135
  "default": "`false`",
987
- "description": "是否在跳转时替换当前页面历史",
1136
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
988
1137
  "value": {
989
1138
  "type": "boolean",
990
1139
  "kind": "expression"
@@ -1185,396 +1334,247 @@
1185
1334
  {
1186
1335
  "name": "confirm-text",
1187
1336
  "default": "`确定`",
1188
- "description": "确认按钮的文字",
1189
- "value": {
1190
- "type": "string",
1191
- "kind": "expression"
1192
- }
1193
- },
1194
- {
1195
- "name": "confirm-disabled-text",
1196
- "default": "`确定`",
1197
- "description": "确认按钮处于禁用状态时的文字",
1198
- "value": {
1199
- "type": "string",
1200
- "kind": "expression"
1201
- }
1202
- },
1203
- {
1204
- "name": "first-day-of-week",
1205
- "default": "`0`",
1206
- "description": "设置周起始日",
1207
- "value": {
1208
- "type": "0-6",
1209
- "kind": "expression"
1210
- }
1211
- },
1212
- {
1213
- "name": "v-model",
1214
- "default": "`false`",
1215
- "description": "是否显示日历弹窗",
1216
- "value": {
1217
- "type": "boolean",
1218
- "kind": "expression"
1219
- }
1220
- },
1221
- {
1222
- "name": "position",
1223
- "default": "`bottom`",
1224
- "description": "弹出位置,可选值为 `top` `right` `left`",
1225
- "value": {
1226
- "type": "string",
1227
- "kind": "expression"
1228
- }
1229
- },
1230
- {
1231
- "name": "round",
1232
- "default": "`true`",
1233
- "description": "是否显示圆角弹窗",
1234
- "value": {
1235
- "type": "boolean",
1236
- "kind": "expression"
1237
- }
1238
- },
1239
- {
1240
- "name": "close-on-popstate",
1241
- "default": "`true`",
1242
- "description": "是否在页面回退时自动关闭",
1243
- "value": {
1244
- "type": "boolean",
1245
- "kind": "expression"
1246
- }
1247
- },
1248
- {
1249
- "name": "close-on-click-overlay",
1250
- "default": "`true`",
1251
- "description": "是否在点击遮罩层后关闭",
1252
- "value": {
1253
- "type": "boolean",
1254
- "kind": "expression"
1255
- }
1256
- },
1257
- {
1258
- "name": "safe-area-inset-bottom",
1259
- "default": "`true`",
1260
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1261
- "value": {
1262
- "type": "boolean",
1263
- "kind": "expression"
1264
- }
1265
- },
1266
- {
1267
- "name": "get-container",
1268
- "default": "-",
1269
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
1270
- "value": {
1271
- "type": "string | () => Element",
1272
- "kind": "expression"
1273
- }
1274
- },
1275
- {
1276
- "name": "max-range",
1277
- "default": "无限制",
1278
- "description": "日期区间最多可选天数",
1279
- "value": {
1280
- "type": "number | string",
1281
- "kind": "expression"
1282
- }
1283
- },
1284
- {
1285
- "name": "range-prompt",
1286
- "default": "`选择天数不能超过 xx 天`",
1287
- "description": "范围选择超过最多可选天数时的提示文案",
1288
- "value": {
1289
- "type": "string",
1290
- "kind": "expression"
1291
- }
1292
- },
1293
- {
1294
- "name": "allow-same-day",
1295
- "default": "`false`",
1296
- "description": "是否允许日期范围的起止时间为同一天",
1297
- "value": {
1298
- "type": "boolean",
1299
- "kind": "expression"
1300
- }
1301
- },
1302
- {
1303
- "name": "max-range",
1304
- "default": "无限制",
1305
- "description": "日期最多可选天数",
1306
- "value": {
1307
- "type": "number | string",
1308
- "kind": "expression"
1309
- }
1310
- },
1311
- {
1312
- "name": "range-prompt",
1313
- "default": "`选择天数不能超过 xx 天`",
1314
- "description": "选择超过最多可选天数时的提示文案",
1315
- "value": {
1316
- "type": "string",
1317
- "kind": "expression"
1318
- }
1319
- }
1320
- ]
1321
- },
1322
- {
1323
- "name": "van-card",
1324
- "slots": [
1325
- {
1326
- "name": "title",
1327
- "description": "自定义标题"
1328
- },
1329
- {
1330
- "name": "desc",
1331
- "description": "自定义描述"
1332
- },
1333
- {
1334
- "name": "num",
1335
- "description": "自定义数量"
1336
- },
1337
- {
1338
- "name": "price",
1339
- "description": "自定义价格"
1340
- },
1341
- {
1342
- "name": "origin-price",
1343
- "description": "自定义商品原价"
1344
- },
1345
- {
1346
- "name": "price-top",
1347
- "description": "自定义价格上方区域"
1348
- },
1349
- {
1350
- "name": "bottom",
1351
- "description": "自定义价格下方区域"
1352
- },
1353
- {
1354
- "name": "thumb",
1355
- "description": "自定义图片"
1356
- },
1357
- {
1358
- "name": "tag",
1359
- "description": "自定义图片角标"
1360
- },
1361
- {
1362
- "name": "tags",
1363
- "description": "自定义描述下方标签区域"
1364
- },
1365
- {
1366
- "name": "footer",
1367
- "description": "自定义右下角内容"
1368
- }
1369
- ],
1370
- "events": [
1371
- {
1372
- "name": "click",
1373
- "description": "点击时触发"
1374
- },
1375
- {
1376
- "name": "click-thumb",
1377
- "description": "点击自定义图片时触发"
1378
- }
1379
- ],
1380
- "attributes": [
1381
- {
1382
- "name": "thumb",
1383
- "default": "-",
1384
- "description": "左侧图片 URL",
1337
+ "description": "确认按钮的文字",
1385
1338
  "value": {
1386
1339
  "type": "string",
1387
1340
  "kind": "expression"
1388
1341
  }
1389
1342
  },
1390
1343
  {
1391
- "name": "title",
1392
- "default": "-",
1393
- "description": "标题",
1344
+ "name": "confirm-disabled-text",
1345
+ "default": "`确定`",
1346
+ "description": "确认按钮处于禁用状态时的文字",
1394
1347
  "value": {
1395
1348
  "type": "string",
1396
1349
  "kind": "expression"
1397
1350
  }
1398
1351
  },
1399
1352
  {
1400
- "name": "desc",
1401
- "default": "-",
1402
- "description": "描述",
1353
+ "name": "first-day-of-week",
1354
+ "default": "`0`",
1355
+ "description": "设置周起始日",
1403
1356
  "value": {
1404
- "type": "string",
1357
+ "type": "0-6",
1405
1358
  "kind": "expression"
1406
1359
  }
1407
1360
  },
1408
1361
  {
1409
- "name": "tag",
1410
- "default": "-",
1411
- "description": "图片角标",
1362
+ "name": "v-model",
1363
+ "default": "`false`",
1364
+ "description": "是否显示日历弹窗",
1412
1365
  "value": {
1413
- "type": "string",
1366
+ "type": "boolean",
1414
1367
  "kind": "expression"
1415
1368
  }
1416
1369
  },
1417
1370
  {
1418
- "name": "num",
1419
- "default": "-",
1420
- "description": "商品数量",
1371
+ "name": "position",
1372
+ "default": "`bottom`",
1373
+ "description": "弹出位置,可选值为 `top` `right` `left`",
1421
1374
  "value": {
1422
- "type": "number | string",
1375
+ "type": "string",
1423
1376
  "kind": "expression"
1424
1377
  }
1425
1378
  },
1426
1379
  {
1427
- "name": "price",
1428
- "default": "-",
1429
- "description": "商品价格",
1380
+ "name": "round",
1381
+ "default": "`true`",
1382
+ "description": "是否显示圆角弹窗",
1430
1383
  "value": {
1431
- "type": "number | string",
1384
+ "type": "boolean",
1432
1385
  "kind": "expression"
1433
1386
  }
1434
1387
  },
1435
1388
  {
1436
- "name": "origin-price",
1437
- "default": "-",
1438
- "description": "商品划线原价",
1389
+ "name": "close-on-popstate",
1390
+ "default": "`true`",
1391
+ "description": "是否在页面回退时自动关闭",
1439
1392
  "value": {
1440
- "type": "number | string",
1393
+ "type": "boolean",
1441
1394
  "kind": "expression"
1442
1395
  }
1443
1396
  },
1444
1397
  {
1445
- "name": "centered",
1446
- "default": "`false`",
1447
- "description": "内容是否垂直居中",
1398
+ "name": "close-on-click-overlay",
1399
+ "default": "`true`",
1400
+ "description": "是否在点击遮罩层后关闭",
1448
1401
  "value": {
1449
1402
  "type": "boolean",
1450
1403
  "kind": "expression"
1451
1404
  }
1452
1405
  },
1453
1406
  {
1454
- "name": "currency",
1455
- "default": "`¥`",
1456
- "description": "货币符号",
1407
+ "name": "safe-area-inset-bottom",
1408
+ "default": "`true`",
1409
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1457
1410
  "value": {
1458
- "type": "string",
1411
+ "type": "boolean",
1459
1412
  "kind": "expression"
1460
1413
  }
1461
1414
  },
1462
1415
  {
1463
- "name": "thumb-link",
1416
+ "name": "get-container",
1464
1417
  "default": "-",
1465
- "description": "点击左侧图片后跳转的链接地址",
1418
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
1419
+ "value": {
1420
+ "type": "string | () => Element",
1421
+ "kind": "expression"
1422
+ }
1423
+ },
1424
+ {
1425
+ "name": "max-range",
1426
+ "default": "无限制",
1427
+ "description": "日期区间最多可选天数",
1428
+ "value": {
1429
+ "type": "number | string",
1430
+ "kind": "expression"
1431
+ }
1432
+ },
1433
+ {
1434
+ "name": "range-prompt",
1435
+ "default": "`选择天数不能超过 xx 天`",
1436
+ "description": "范围选择超过最多可选天数时的提示文案",
1466
1437
  "value": {
1467
1438
  "type": "string",
1468
1439
  "kind": "expression"
1469
1440
  }
1470
1441
  },
1471
1442
  {
1472
- "name": "lazy-load",
1443
+ "name": "allow-same-day",
1473
1444
  "default": "`false`",
1474
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1445
+ "description": "是否允许日期范围的起止时间为同一天",
1475
1446
  "value": {
1476
1447
  "type": "boolean",
1477
1448
  "kind": "expression"
1478
1449
  }
1450
+ },
1451
+ {
1452
+ "name": "max-range",
1453
+ "default": "无限制",
1454
+ "description": "日期最多可选天数",
1455
+ "value": {
1456
+ "type": "number | string",
1457
+ "kind": "expression"
1458
+ }
1459
+ },
1460
+ {
1461
+ "name": "range-prompt",
1462
+ "default": "`选择天数不能超过 xx 天`",
1463
+ "description": "选择超过最多可选天数时的提示文案",
1464
+ "value": {
1465
+ "type": "string",
1466
+ "kind": "expression"
1467
+ }
1479
1468
  }
1480
1469
  ]
1481
1470
  },
1482
1471
  {
1483
- "name": "van-cascader",
1472
+ "name": "van-address-list",
1484
1473
  "slots": [
1485
1474
  {
1486
- "name": "title",
1487
- "description": "自定义顶部标题"
1475
+ "name": "default",
1476
+ "description": "在列表下方插入内容"
1488
1477
  },
1489
1478
  {
1490
- "name": "option",
1491
- "description": "自定义选项文字"
1479
+ "name": "top",
1480
+ "description": "在顶部插入内容"
1481
+ },
1482
+ {
1483
+ "name": "item-bottom",
1484
+ "description": "在列表项底部插入内容"
1485
+ },
1486
+ {
1487
+ "name": "tag",
1488
+ "description": "列表项标签内容自定义"
1492
1489
  }
1493
1490
  ],
1494
1491
  "events": [
1495
1492
  {
1496
- "name": "change",
1497
- "description": "选中项变化时触发"
1493
+ "name": "add",
1494
+ "description": "点击新增按钮时触发"
1498
1495
  },
1499
1496
  {
1500
- "name": "finish",
1501
- "description": "全部选项选择完成后触发"
1497
+ "name": "edit",
1498
+ "description": "点击编辑按钮时触发"
1502
1499
  },
1503
1500
  {
1504
- "name": "close",
1505
- "description": "点击关闭图标时触发"
1501
+ "name": "select",
1502
+ "description": "切换选中的地址时触发"
1503
+ },
1504
+ {
1505
+ "name": "edit-disabled",
1506
+ "description": "编辑不可配送的地址时触发"
1507
+ },
1508
+ {
1509
+ "name": "select-disabled",
1510
+ "description": "选中不可配送的地址时触发"
1511
+ },
1512
+ {
1513
+ "name": "click-item",
1514
+ "description": "点击任意地址时触发"
1506
1515
  }
1507
1516
  ],
1508
1517
  "attributes": [
1509
1518
  {
1510
- "name": "title",
1519
+ "name": "v-model",
1511
1520
  "default": "-",
1512
- "description": "顶部标题",
1521
+ "description": "当前选中地址的 id",
1513
1522
  "value": {
1514
1523
  "type": "string",
1515
1524
  "kind": "expression"
1516
1525
  }
1517
1526
  },
1518
1527
  {
1519
- "name": "value",
1520
- "default": "-",
1521
- "description": "选中项的值",
1522
- "value": {
1523
- "type": "string | number",
1524
- "kind": "expression"
1525
- }
1526
- },
1527
- {
1528
- "name": "options",
1528
+ "name": "list",
1529
1529
  "default": "`[]`",
1530
- "description": "可选项数据源",
1530
+ "description": "地址列表",
1531
1531
  "value": {
1532
- "type": "Option[]",
1532
+ "type": "Address[]",
1533
1533
  "kind": "expression"
1534
1534
  }
1535
1535
  },
1536
1536
  {
1537
- "name": "placeholder",
1538
- "default": "`请选择`",
1539
- "description": "未选中时的提示文案",
1537
+ "name": "disabled-list",
1538
+ "default": "`[]`",
1539
+ "description": "不可配送地址列表",
1540
1540
  "value": {
1541
- "type": "string",
1541
+ "type": "Address[]",
1542
1542
  "kind": "expression"
1543
1543
  }
1544
1544
  },
1545
1545
  {
1546
- "name": "active-color",
1547
- "default": "`#ee0a24`",
1548
- "description": "选中状态的高亮颜色",
1546
+ "name": "disabled-text",
1547
+ "default": "-",
1548
+ "description": "不可配送提示文案",
1549
1549
  "value": {
1550
1550
  "type": "string",
1551
1551
  "kind": "expression"
1552
1552
  }
1553
1553
  },
1554
1554
  {
1555
- "name": "closeable",
1555
+ "name": "switchable",
1556
1556
  "default": "`true`",
1557
- "description": "是否显示关闭图标",
1557
+ "description": "是否允许切换地址",
1558
1558
  "value": {
1559
1559
  "type": "boolean",
1560
1560
  "kind": "expression"
1561
1561
  }
1562
1562
  },
1563
1563
  {
1564
- "name": "show-header",
1565
- "default": "`true`",
1566
- "description": "是否展示标题栏",
1564
+ "name": "add-button-text",
1565
+ "default": "`新增地址`",
1566
+ "description": "底部按钮文字",
1567
1567
  "value": {
1568
- "type": "boolean",
1568
+ "type": "string",
1569
1569
  "kind": "expression"
1570
1570
  }
1571
1571
  },
1572
1572
  {
1573
- "name": "field-names",
1574
- "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1575
- "description": "自定义 `options` 结构中的字段",
1573
+ "name": "default-tag-text",
1574
+ "default": "-",
1575
+ "description": "默认地址标签文字",
1576
1576
  "value": {
1577
- "type": "object",
1577
+ "type": "string",
1578
1578
  "kind": "expression"
1579
1579
  }
1580
1580
  }
@@ -2359,98 +2359,42 @@
2359
2359
  "slots": [],
2360
2360
  "events": [
2361
2361
  {
2362
- "name": "click",
2363
- "description": "点击时触发"
2364
- }
2365
- ],
2366
- "attributes": [
2367
- {
2368
- "name": "type",
2369
- "default": "`add`",
2370
- "description": "卡片类型,可选值为 `edit`",
2371
- "value": {
2372
- "type": "string",
2373
- "kind": "expression"
2374
- }
2375
- },
2376
- {
2377
- "name": "name",
2378
- "default": "-",
2379
- "description": "联系人姓名",
2380
- "value": {
2381
- "type": "string",
2382
- "kind": "expression"
2383
- }
2384
- },
2385
- {
2386
- "name": "tel",
2387
- "default": "-",
2388
- "description": "联系人手机号",
2389
- "value": {
2390
- "type": "string",
2391
- "kind": "expression"
2392
- }
2393
- },
2394
- {
2395
- "name": "add-text",
2396
- "default": "`添加联系人`",
2397
- "description": "添加时的文案提示",
2398
- "value": {
2399
- "type": "string",
2400
- "kind": "expression"
2401
- }
2402
- }
2403
- ]
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": "切换选中的联系人时触发"
2362
+ "name": "click",
2363
+ "description": "点击时触发"
2420
2364
  }
2421
2365
  ],
2422
2366
  "attributes": [
2423
2367
  {
2424
- "name": "v-model",
2425
- "default": "-",
2426
- "description": "当前选中联系人的 id",
2368
+ "name": "type",
2369
+ "default": "`add`",
2370
+ "description": "卡片类型,可选值为 `edit`",
2427
2371
  "value": {
2428
- "type": "number | string",
2372
+ "type": "string",
2429
2373
  "kind": "expression"
2430
2374
  }
2431
2375
  },
2432
2376
  {
2433
- "name": "list",
2434
- "default": "`[]`",
2435
- "description": "联系人列表",
2377
+ "name": "name",
2378
+ "default": "-",
2379
+ "description": "联系人姓名",
2436
2380
  "value": {
2437
- "type": "Contact[]",
2381
+ "type": "string",
2438
2382
  "kind": "expression"
2439
2383
  }
2440
2384
  },
2441
2385
  {
2442
- "name": "add-text",
2443
- "default": "`新建联系人`",
2444
- "description": "新建按钮文案",
2386
+ "name": "tel",
2387
+ "default": "-",
2388
+ "description": "联系人手机号",
2445
2389
  "value": {
2446
2390
  "type": "string",
2447
2391
  "kind": "expression"
2448
2392
  }
2449
2393
  },
2450
2394
  {
2451
- "name": "default-tag-text",
2452
- "default": "-",
2453
- "description": "默认联系人标签文案",
2395
+ "name": "add-text",
2396
+ "default": "`添加联系人`",
2397
+ "description": "添加时的文案提示",
2454
2398
  "value": {
2455
2399
  "type": "string",
2456
2400
  "kind": "expression"
@@ -2537,6 +2481,62 @@
2537
2481
  }
2538
2482
  ]
2539
2483
  },
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": [
@@ -4448,6 +4448,90 @@
4448
4448
  }
4449
4449
  ]
4450
4450
  },
4451
+ {
4452
+ "name": "van-icon",
4453
+ "slots": [],
4454
+ "events": [
4455
+ {
4456
+ "name": "click",
4457
+ "description": "点击图标时触发"
4458
+ }
4459
+ ],
4460
+ "attributes": [
4461
+ {
4462
+ "name": "name",
4463
+ "default": "-",
4464
+ "description": "图标名称或图片链接",
4465
+ "value": {
4466
+ "type": "string",
4467
+ "kind": "expression"
4468
+ }
4469
+ },
4470
+ {
4471
+ "name": "dot",
4472
+ "default": "`false`",
4473
+ "description": "是否显示图标右上角小红点",
4474
+ "value": {
4475
+ "type": "boolean",
4476
+ "kind": "expression"
4477
+ }
4478
+ },
4479
+ {
4480
+ "name": "badge",
4481
+ "default": "-",
4482
+ "description": "图标右上角徽标的内容",
4483
+ "value": {
4484
+ "type": "number | string",
4485
+ "kind": "expression"
4486
+ }
4487
+ },
4488
+ {
4489
+ "name": "info",
4490
+ "default": "-",
4491
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4492
+ "value": {
4493
+ "type": "number | string",
4494
+ "kind": "expression"
4495
+ }
4496
+ },
4497
+ {
4498
+ "name": "color",
4499
+ "default": "`inherit`",
4500
+ "description": "图标颜色",
4501
+ "value": {
4502
+ "type": "string",
4503
+ "kind": "expression"
4504
+ }
4505
+ },
4506
+ {
4507
+ "name": "size",
4508
+ "default": "`inherit`",
4509
+ "description": "图标大小,如 `20px` `2em`,默认单位为`px`",
4510
+ "value": {
4511
+ "type": "number | string",
4512
+ "kind": "expression"
4513
+ }
4514
+ },
4515
+ {
4516
+ "name": "class-prefix",
4517
+ "default": "`van-icon`",
4518
+ "description": "类名前缀,用于使用自定义图标",
4519
+ "value": {
4520
+ "type": "string",
4521
+ "kind": "expression"
4522
+ }
4523
+ },
4524
+ {
4525
+ "name": "tag",
4526
+ "default": "`i`",
4527
+ "description": "HTML 标签",
4528
+ "value": {
4529
+ "type": "string",
4530
+ "kind": "expression"
4531
+ }
4532
+ }
4533
+ ]
4534
+ },
4451
4535
  {
4452
4536
  "name": "van-image",
4453
4537
  "slots": [
@@ -4598,90 +4682,6 @@
4598
4682
  }
4599
4683
  ]
4600
4684
  },
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",
4644
- "kind": "expression"
4645
- }
4646
- },
4647
- {
4648
- "name": "color",
4649
- "default": "`inherit`",
4650
- "description": "图标颜色",
4651
- "value": {
4652
- "type": "string",
4653
- "kind": "expression"
4654
- }
4655
- },
4656
- {
4657
- "name": "size",
4658
- "default": "`inherit`",
4659
- "description": "图标大小,如 `20px` `2em`,默认单位为`px`",
4660
- "value": {
4661
- "type": "number | string",
4662
- "kind": "expression"
4663
- }
4664
- },
4665
- {
4666
- "name": "class-prefix",
4667
- "default": "`van-icon`",
4668
- "description": "类名前缀,用于使用自定义图标",
4669
- "value": {
4670
- "type": "string",
4671
- "kind": "expression"
4672
- }
4673
- },
4674
- {
4675
- "name": "tag",
4676
- "default": "`i`",
4677
- "description": "HTML 标签",
4678
- "value": {
4679
- "type": "string",
4680
- "kind": "expression"
4681
- }
4682
- }
4683
- ]
4684
- },
4685
4685
  {
4686
4686
  "name": "van-image-preview",
4687
4687
  "slots": [