vant 2.12.50 → 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.50",
5
+ "version": "2.12.51",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -204,6 +204,156 @@
204
204
  }
205
205
  ]
206
206
  },
207
+ {
208
+ "name": "van-area",
209
+ "slots": [
210
+ {
211
+ "name": "title",
212
+ "description": "自定义标题内容"
213
+ },
214
+ {
215
+ "name": "columns-top",
216
+ "description": "自定义选项上方内容"
217
+ },
218
+ {
219
+ "name": "columns-bottom",
220
+ "description": "自定义选项下方内容"
221
+ }
222
+ ],
223
+ "events": [
224
+ {
225
+ "name": "confirm",
226
+ "description": "点击右上方完成按钮"
227
+ },
228
+ {
229
+ "name": "cancel",
230
+ "description": "点击取消按钮时"
231
+ },
232
+ {
233
+ "name": "change",
234
+ "description": "选项改变时触发"
235
+ }
236
+ ],
237
+ "attributes": [
238
+ {
239
+ "name": "value",
240
+ "default": "-",
241
+ "description": "当前选中的省市区`code`",
242
+ "value": {
243
+ "type": "string",
244
+ "kind": "expression"
245
+ }
246
+ },
247
+ {
248
+ "name": "title",
249
+ "default": "-",
250
+ "description": "顶部栏标题",
251
+ "value": {
252
+ "type": "string",
253
+ "kind": "expression"
254
+ }
255
+ },
256
+ {
257
+ "name": "confirm-button-text",
258
+ "default": "`确认`",
259
+ "description": "确认按钮文字",
260
+ "value": {
261
+ "type": "string",
262
+ "kind": "expression"
263
+ }
264
+ },
265
+ {
266
+ "name": "cancel-button-text",
267
+ "default": "`取消`",
268
+ "description": "取消按钮文字",
269
+ "value": {
270
+ "type": "string",
271
+ "kind": "expression"
272
+ }
273
+ },
274
+ {
275
+ "name": "area-list",
276
+ "default": "-",
277
+ "description": "省市区数据,格式见下方",
278
+ "value": {
279
+ "type": "object",
280
+ "kind": "expression"
281
+ }
282
+ },
283
+ {
284
+ "name": "columns-placeholder",
285
+ "default": "`[]`",
286
+ "description": "列占位提示文字",
287
+ "value": {
288
+ "type": "string[]",
289
+ "kind": "expression"
290
+ }
291
+ },
292
+ {
293
+ "name": "loading",
294
+ "default": "`false`",
295
+ "description": "是否显示加载状态",
296
+ "value": {
297
+ "type": "boolean",
298
+ "kind": "expression"
299
+ }
300
+ },
301
+ {
302
+ "name": "readonly",
303
+ "default": "`false`",
304
+ "description": "是否为只读状态,只读状态下无法切换选项",
305
+ "value": {
306
+ "type": "boolean",
307
+ "kind": "expression"
308
+ }
309
+ },
310
+ {
311
+ "name": "item-height",
312
+ "default": "`44`",
313
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
314
+ "value": {
315
+ "type": "number | string",
316
+ "kind": "expression"
317
+ }
318
+ },
319
+ {
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",
348
+ "default": "-",
349
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
350
+ "value": {
351
+ "type": "() => boolean",
352
+ "kind": "expression"
353
+ }
354
+ }
355
+ ]
356
+ },
207
357
  {
208
358
  "name": "van-address-edit",
209
359
  "slots": [
@@ -452,539 +602,538 @@
452
602
  ]
453
603
  },
454
604
  {
455
- "name": "van-address-list",
605
+ "name": "van-badge",
456
606
  "slots": [
457
607
  {
458
608
  "name": "default",
459
- "description": "在列表下方插入内容"
460
- },
461
- {
462
- "name": "top",
463
- "description": "在顶部插入内容"
464
- },
465
- {
466
- "name": "item-bottom",
467
- "description": "在列表项底部插入内容"
468
- },
469
- {
470
- "name": "tag",
471
- "description": "列表项标签内容自定义"
472
- }
473
- ],
474
- "events": [
475
- {
476
- "name": "add",
477
- "description": "点击新增按钮时触发"
478
- },
479
- {
480
- "name": "edit",
481
- "description": "点击编辑按钮时触发"
482
- },
483
- {
484
- "name": "select",
485
- "description": "切换选中的地址时触发"
486
- },
487
- {
488
- "name": "edit-disabled",
489
- "description": "编辑不可配送的地址时触发"
490
- },
491
- {
492
- "name": "select-disabled",
493
- "description": "选中不可配送的地址时触发"
609
+ "description": "徽标包裹的子元素"
494
610
  },
495
611
  {
496
- "name": "click-item",
497
- "description": "点击任意地址时触发"
612
+ "name": "content",
613
+ "description": "自定义徽标内容"
498
614
  }
499
615
  ],
616
+ "events": [],
500
617
  "attributes": [
501
618
  {
502
- "name": "v-model",
619
+ "name": "content",
503
620
  "default": "-",
504
- "description": "当前选中地址的 id",
505
- "value": {
506
- "type": "string",
507
- "kind": "expression"
508
- }
509
- },
510
- {
511
- "name": "list",
512
- "default": "`[]`",
513
- "description": "地址列表",
514
- "value": {
515
- "type": "Address[]",
516
- "kind": "expression"
517
- }
518
- },
519
- {
520
- "name": "disabled-list",
521
- "default": "`[]`",
522
- "description": "不可配送地址列表",
621
+ "description": "徽标内容",
523
622
  "value": {
524
- "type": "Address[]",
623
+ "type": "number | string",
525
624
  "kind": "expression"
526
625
  }
527
626
  },
528
627
  {
529
- "name": "disabled-text",
530
- "default": "-",
531
- "description": "不可配送提示文案",
628
+ "name": "color",
629
+ "default": "`#ee0a24`",
630
+ "description": "徽标背景颜色",
532
631
  "value": {
533
632
  "type": "string",
534
633
  "kind": "expression"
535
634
  }
536
635
  },
537
636
  {
538
- "name": "switchable",
539
- "default": "`true`",
540
- "description": "是否允许切换地址",
637
+ "name": "dot",
638
+ "default": "`false`",
639
+ "description": "是否展示为小红点",
541
640
  "value": {
542
641
  "type": "boolean",
543
642
  "kind": "expression"
544
643
  }
545
644
  },
546
645
  {
547
- "name": "add-button-text",
548
- "default": "`新增地址`",
549
- "description": "底部按钮文字",
550
- "value": {
551
- "type": "string",
552
- "kind": "expression"
553
- }
554
- },
555
- {
556
- "name": "default-tag-text",
646
+ "name": "max",
557
647
  "default": "-",
558
- "description": "默认地址标签文字",
648
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
559
649
  "value": {
560
- "type": "string",
650
+ "type": "number | string",
561
651
  "kind": "expression"
562
652
  }
563
653
  }
564
654
  ]
565
655
  },
566
656
  {
567
- "name": "van-area",
657
+ "name": "van-button",
568
658
  "slots": [
569
659
  {
570
- "name": "title",
571
- "description": "自定义标题内容"
660
+ "name": "default",
661
+ "description": "按钮内容"
572
662
  },
573
663
  {
574
- "name": "columns-top",
575
- "description": "自定义选项上方内容"
664
+ "name": "icon",
665
+ "description": "自定义图标"
576
666
  },
577
667
  {
578
- "name": "columns-bottom",
579
- "description": "自定义选项下方内容"
668
+ "name": "loading",
669
+ "description": "自定义加载图标"
580
670
  }
581
671
  ],
582
672
  "events": [
583
673
  {
584
- "name": "confirm",
585
- "description": "点击右上方完成按钮"
586
- },
587
- {
588
- "name": "cancel",
589
- "description": "点击取消按钮时"
674
+ "name": "click",
675
+ "description": "点击按钮,且按钮状态不为加载或禁用时触发"
590
676
  },
591
677
  {
592
- "name": "change",
593
- "description": "选项改变时触发"
678
+ "name": "touchstart",
679
+ "description": "开始触摸按钮时触发"
594
680
  }
595
681
  ],
596
682
  "attributes": [
597
683
  {
598
- "name": "value",
684
+ "name": "type",
685
+ "default": "`default`",
686
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`",
687
+ "value": {
688
+ "type": "string",
689
+ "kind": "expression"
690
+ }
691
+ },
692
+ {
693
+ "name": "size",
694
+ "default": "`normal`",
695
+ "description": "尺寸,可选值为 `large` `small` `mini`",
696
+ "value": {
697
+ "type": "string",
698
+ "kind": "expression"
699
+ }
700
+ },
701
+ {
702
+ "name": "text",
599
703
  "default": "-",
600
- "description": "当前选中的省市区`code`",
704
+ "description": "按钮文字",
601
705
  "value": {
602
706
  "type": "string",
603
707
  "kind": "expression"
604
708
  }
605
709
  },
606
710
  {
607
- "name": "title",
711
+ "name": "color",
608
712
  "default": "-",
609
- "description": "顶部栏标题",
713
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
610
714
  "value": {
611
715
  "type": "string",
612
716
  "kind": "expression"
613
717
  }
614
718
  },
615
719
  {
616
- "name": "confirm-button-text",
617
- "default": "`确认`",
618
- "description": "确认按钮文字",
720
+ "name": "icon",
721
+ "default": "-",
722
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
619
723
  "value": {
620
724
  "type": "string",
621
725
  "kind": "expression"
622
726
  }
623
727
  },
624
728
  {
625
- "name": "cancel-button-text",
626
- "default": "`取消`",
627
- "description": "取消按钮文字",
729
+ "name": "icon-prefix",
730
+ "default": "`van-icon`",
731
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
628
732
  "value": {
629
733
  "type": "string",
630
734
  "kind": "expression"
631
735
  }
632
736
  },
633
737
  {
634
- "name": "area-list",
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",
635
757
  "default": "-",
636
- "description": "省市区数据,格式见下方",
758
+ "description": "原生 button 标签的 type 属性",
637
759
  "value": {
638
- "type": "object",
760
+ "type": "string",
639
761
  "kind": "expression"
640
762
  }
641
763
  },
642
764
  {
643
- "name": "columns-placeholder",
644
- "default": "`[]`",
645
- "description": "列占位提示文字",
765
+ "name": "block",
766
+ "default": "`false`",
767
+ "description": "是否为块级元素",
646
768
  "value": {
647
- "type": "string[]",
769
+ "type": "boolean",
648
770
  "kind": "expression"
649
771
  }
650
772
  },
651
773
  {
652
- "name": "loading",
774
+ "name": "plain",
653
775
  "default": "`false`",
654
- "description": "是否显示加载状态",
776
+ "description": "是否为朴素按钮",
655
777
  "value": {
656
778
  "type": "boolean",
657
779
  "kind": "expression"
658
780
  }
659
781
  },
660
782
  {
661
- "name": "readonly",
783
+ "name": "square",
662
784
  "default": "`false`",
663
- "description": "是否为只读状态,只读状态下无法切换选项",
785
+ "description": "是否为方形按钮",
664
786
  "value": {
665
787
  "type": "boolean",
666
788
  "kind": "expression"
667
789
  }
668
790
  },
669
791
  {
670
- "name": "item-height",
671
- "default": "`44`",
672
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
792
+ "name": "round",
793
+ "default": "`false`",
794
+ "description": "是否为圆形按钮",
673
795
  "value": {
674
- "type": "number | string",
796
+ "type": "boolean",
675
797
  "kind": "expression"
676
798
  }
677
799
  },
678
800
  {
679
- "name": "columns-num",
680
- "default": "`3`",
681
- "description": "显示列数,3-省市区,2-省市,1-省",
801
+ "name": "disabled",
802
+ "default": "`false`",
803
+ "description": "是否禁用按钮",
682
804
  "value": {
683
- "type": "number | string",
805
+ "type": "boolean",
684
806
  "kind": "expression"
685
807
  }
686
808
  },
687
809
  {
688
- "name": "visible-item-count",
689
- "default": "`6`",
690
- "description": "可见的选项个数",
810
+ "name": "hairline",
811
+ "default": "`false`",
812
+ "description": "是否使用 0.5px 边框",
691
813
  "value": {
692
- "type": "number | string",
814
+ "type": "boolean",
693
815
  "kind": "expression"
694
816
  }
695
817
  },
696
818
  {
697
- "name": "swipe-duration",
698
- "default": "`1000`",
699
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
819
+ "name": "loading",
820
+ "default": "`false`",
821
+ "description": "是否显示为加载状态",
700
822
  "value": {
701
- "type": "number | string",
823
+ "type": "boolean",
702
824
  "kind": "expression"
703
825
  }
704
826
  },
705
827
  {
706
- "name": "is-oversea-code",
828
+ "name": "loading-text",
707
829
  "default": "-",
708
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
830
+ "description": "加载状态提示文字",
709
831
  "value": {
710
- "type": "() => boolean",
832
+ "type": "string",
711
833
  "kind": "expression"
712
834
  }
713
- }
714
- ]
715
- },
716
- {
717
- "name": "van-badge",
718
- "slots": [
719
- {
720
- "name": "default",
721
- "description": "徽标包裹的子元素"
722
835
  },
723
836
  {
724
- "name": "content",
725
- "description": "自定义徽标内容"
726
- }
727
- ],
728
- "events": [],
729
- "attributes": [
730
- {
731
- "name": "content",
732
- "default": "-",
733
- "description": "徽标内容",
837
+ "name": "loading-type",
838
+ "default": "`circular`",
839
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
734
840
  "value": {
735
- "type": "number | string",
841
+ "type": "string",
736
842
  "kind": "expression"
737
843
  }
738
844
  },
739
845
  {
740
- "name": "color",
741
- "default": "`#ee0a24`",
742
- "description": "徽标背景颜色",
846
+ "name": "loading-size",
847
+ "default": "`20px`",
848
+ "description": "加载图标大小",
743
849
  "value": {
744
850
  "type": "string",
745
851
  "kind": "expression"
746
852
  }
747
853
  },
748
854
  {
749
- "name": "dot",
750
- "default": "`false`",
751
- "description": "是否展示为小红点",
855
+ "name": "url",
856
+ "default": "-",
857
+ "description": "点击后跳转的链接地址",
752
858
  "value": {
753
- "type": "boolean",
859
+ "type": "string",
754
860
  "kind": "expression"
755
861
  }
756
862
  },
757
863
  {
758
- "name": "max",
864
+ "name": "to",
759
865
  "default": "-",
760
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
866
+ "description": "点击后跳转的目标路由对象,同 vue-router [to 属性](https://router.vuejs.org/zh/api/#to)",
761
867
  "value": {
762
- "type": "number | string",
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
- },
957
- {
958
- "name": "loading-size",
959
- "default": "`20px`",
960
- "description": "加载图标大小",
1105
+ },
1106
+ {
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"
@@ -1320,261 +1469,112 @@
1320
1469
  ]
1321
1470
  },
1322
1471
  {
1323
- "name": "van-card",
1472
+ "name": "van-address-list",
1324
1473
  "slots": [
1325
1474
  {
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": "自定义价格上方区域"
1475
+ "name": "default",
1476
+ "description": "在列表下方插入内容"
1348
1477
  },
1349
1478
  {
1350
- "name": "bottom",
1351
- "description": "自定义价格下方区域"
1479
+ "name": "top",
1480
+ "description": "在顶部插入内容"
1352
1481
  },
1353
1482
  {
1354
- "name": "thumb",
1355
- "description": "自定义图片"
1483
+ "name": "item-bottom",
1484
+ "description": "在列表项底部插入内容"
1356
1485
  },
1357
1486
  {
1358
1487
  "name": "tag",
1359
- "description": "自定义图片角标"
1360
- },
1361
- {
1362
- "name": "tags",
1363
- "description": "自定义描述下方标签区域"
1364
- },
1365
- {
1366
- "name": "footer",
1367
- "description": "自定义右下角内容"
1488
+ "description": "列表项标签内容自定义"
1368
1489
  }
1369
1490
  ],
1370
1491
  "events": [
1371
1492
  {
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",
1385
- "value": {
1386
- "type": "string",
1387
- "kind": "expression"
1388
- }
1389
- },
1390
- {
1391
- "name": "title",
1392
- "default": "-",
1393
- "description": "标题",
1394
- "value": {
1395
- "type": "string",
1396
- "kind": "expression"
1397
- }
1398
- },
1399
- {
1400
- "name": "desc",
1401
- "default": "-",
1402
- "description": "描述",
1403
- "value": {
1404
- "type": "string",
1405
- "kind": "expression"
1406
- }
1407
- },
1408
- {
1409
- "name": "tag",
1410
- "default": "-",
1411
- "description": "图片角标",
1412
- "value": {
1413
- "type": "string",
1414
- "kind": "expression"
1415
- }
1416
- },
1417
- {
1418
- "name": "num",
1419
- "default": "-",
1420
- "description": "商品数量",
1421
- "value": {
1422
- "type": "number | string",
1423
- "kind": "expression"
1424
- }
1425
- },
1426
- {
1427
- "name": "price",
1428
- "default": "-",
1429
- "description": "商品价格",
1430
- "value": {
1431
- "type": "number | string",
1432
- "kind": "expression"
1433
- }
1434
- },
1435
- {
1436
- "name": "origin-price",
1437
- "default": "-",
1438
- "description": "商品划线原价",
1439
- "value": {
1440
- "type": "number | string",
1441
- "kind": "expression"
1442
- }
1443
- },
1444
- {
1445
- "name": "centered",
1446
- "default": "`false`",
1447
- "description": "内容是否垂直居中",
1448
- "value": {
1449
- "type": "boolean",
1450
- "kind": "expression"
1451
- }
1452
- },
1453
- {
1454
- "name": "currency",
1455
- "default": "`¥`",
1456
- "description": "货币符号",
1457
- "value": {
1458
- "type": "string",
1459
- "kind": "expression"
1460
- }
1493
+ "name": "add",
1494
+ "description": "点击新增按钮时触发"
1461
1495
  },
1462
1496
  {
1463
- "name": "thumb-link",
1464
- "default": "-",
1465
- "description": "点击左侧图片后跳转的链接地址",
1466
- "value": {
1467
- "type": "string",
1468
- "kind": "expression"
1469
- }
1497
+ "name": "edit",
1498
+ "description": "点击编辑按钮时触发"
1470
1499
  },
1471
1500
  {
1472
- "name": "lazy-load",
1473
- "default": "`false`",
1474
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1475
- "value": {
1476
- "type": "boolean",
1477
- "kind": "expression"
1478
- }
1479
- }
1480
- ]
1481
- },
1482
- {
1483
- "name": "van-cascader",
1484
- "slots": [
1485
- {
1486
- "name": "title",
1487
- "description": "自定义顶部标题"
1501
+ "name": "select",
1502
+ "description": "切换选中的地址时触发"
1488
1503
  },
1489
1504
  {
1490
- "name": "option",
1491
- "description": "自定义选项文字"
1492
- }
1493
- ],
1494
- "events": [
1495
- {
1496
- "name": "change",
1497
- "description": "选中项变化时触发"
1505
+ "name": "edit-disabled",
1506
+ "description": "编辑不可配送的地址时触发"
1498
1507
  },
1499
1508
  {
1500
- "name": "finish",
1501
- "description": "全部选项选择完成后触发"
1509
+ "name": "select-disabled",
1510
+ "description": "选中不可配送的地址时触发"
1502
1511
  },
1503
1512
  {
1504
- "name": "close",
1505
- "description": "点击关闭图标时触发"
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
  }