vant 2.13.0 → 2.13.1

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.13.0",
5
+ "version": "2.13.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -452,54 +452,152 @@
452
452
  ]
453
453
  },
454
454
  {
455
- "name": "van-badge",
455
+ "name": "van-area",
456
456
  "slots": [
457
457
  {
458
- "name": "default",
459
- "description": "徽标包裹的子元素"
458
+ "name": "title",
459
+ "description": "自定义标题内容"
460
460
  },
461
461
  {
462
- "name": "content",
463
- "description": "自定义徽标内容"
462
+ "name": "columns-top",
463
+ "description": "自定义选项上方内容"
464
+ },
465
+ {
466
+ "name": "columns-bottom",
467
+ "description": "自定义选项下方内容"
468
+ }
469
+ ],
470
+ "events": [
471
+ {
472
+ "name": "confirm",
473
+ "description": "点击右上方完成按钮"
474
+ },
475
+ {
476
+ "name": "cancel",
477
+ "description": "点击取消按钮时"
478
+ },
479
+ {
480
+ "name": "change",
481
+ "description": "选项改变时触发"
464
482
  }
465
483
  ],
466
- "events": [],
467
484
  "attributes": [
468
485
  {
469
- "name": "content",
486
+ "name": "value",
470
487
  "default": "-",
471
- "description": "徽标内容",
488
+ "description": "当前选中的省市区`code`",
472
489
  "value": {
473
- "type": "number | string",
490
+ "type": "string",
474
491
  "kind": "expression"
475
492
  }
476
493
  },
477
494
  {
478
- "name": "color",
479
- "default": "`#ee0a24`",
480
- "description": "徽标背景颜色",
495
+ "name": "title",
496
+ "default": "-",
497
+ "description": "顶部栏标题",
481
498
  "value": {
482
499
  "type": "string",
483
500
  "kind": "expression"
484
501
  }
485
502
  },
486
503
  {
487
- "name": "dot",
504
+ "name": "confirm-button-text",
505
+ "default": "`确认`",
506
+ "description": "确认按钮文字",
507
+ "value": {
508
+ "type": "string",
509
+ "kind": "expression"
510
+ }
511
+ },
512
+ {
513
+ "name": "cancel-button-text",
514
+ "default": "`取消`",
515
+ "description": "取消按钮文字",
516
+ "value": {
517
+ "type": "string",
518
+ "kind": "expression"
519
+ }
520
+ },
521
+ {
522
+ "name": "area-list",
523
+ "default": "-",
524
+ "description": "省市区数据,格式见下方",
525
+ "value": {
526
+ "type": "object",
527
+ "kind": "expression"
528
+ }
529
+ },
530
+ {
531
+ "name": "columns-placeholder",
532
+ "default": "`[]`",
533
+ "description": "列占位提示文字",
534
+ "value": {
535
+ "type": "string[]",
536
+ "kind": "expression"
537
+ }
538
+ },
539
+ {
540
+ "name": "loading",
488
541
  "default": "`false`",
489
- "description": "是否展示为小红点",
542
+ "description": "是否显示加载状态",
490
543
  "value": {
491
544
  "type": "boolean",
492
545
  "kind": "expression"
493
546
  }
494
547
  },
495
548
  {
496
- "name": "max",
497
- "default": "-",
498
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
549
+ "name": "readonly",
550
+ "default": "`false`",
551
+ "description": "是否为只读状态,只读状态下无法切换选项",
552
+ "value": {
553
+ "type": "boolean",
554
+ "kind": "expression"
555
+ }
556
+ },
557
+ {
558
+ "name": "item-height",
559
+ "default": "`44`",
560
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
499
561
  "value": {
500
562
  "type": "number | string",
501
563
  "kind": "expression"
502
564
  }
565
+ },
566
+ {
567
+ "name": "columns-num",
568
+ "default": "`3`",
569
+ "description": "显示列数,3-省市区,2-省市,1-省",
570
+ "value": {
571
+ "type": "number | string",
572
+ "kind": "expression"
573
+ }
574
+ },
575
+ {
576
+ "name": "visible-item-count",
577
+ "default": "`6`",
578
+ "description": "可见的选项个数",
579
+ "value": {
580
+ "type": "number | string",
581
+ "kind": "expression"
582
+ }
583
+ },
584
+ {
585
+ "name": "swipe-duration",
586
+ "default": "`1000`",
587
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
588
+ "value": {
589
+ "type": "number | string",
590
+ "kind": "expression"
591
+ }
592
+ },
593
+ {
594
+ "name": "is-oversea-code",
595
+ "default": "-",
596
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
597
+ "value": {
598
+ "type": "() => boolean",
599
+ "kind": "expression"
600
+ }
503
601
  }
504
602
  ]
505
603
  },
@@ -843,40 +941,116 @@
843
941
  ]
844
942
  },
845
943
  {
846
- "name": "van-area",
944
+ "name": "van-badge",
945
+ "slots": [
946
+ {
947
+ "name": "default",
948
+ "description": "徽标包裹的子元素"
949
+ },
950
+ {
951
+ "name": "content",
952
+ "description": "自定义徽标内容"
953
+ }
954
+ ],
955
+ "events": [],
956
+ "attributes": [
957
+ {
958
+ "name": "content",
959
+ "default": "-",
960
+ "description": "徽标内容",
961
+ "value": {
962
+ "type": "number | string",
963
+ "kind": "expression"
964
+ }
965
+ },
966
+ {
967
+ "name": "color",
968
+ "default": "`#ee0a24`",
969
+ "description": "徽标背景颜色",
970
+ "value": {
971
+ "type": "string",
972
+ "kind": "expression"
973
+ }
974
+ },
975
+ {
976
+ "name": "dot",
977
+ "default": "`false`",
978
+ "description": "是否展示为小红点",
979
+ "value": {
980
+ "type": "boolean",
981
+ "kind": "expression"
982
+ }
983
+ },
984
+ {
985
+ "name": "max",
986
+ "default": "-",
987
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
988
+ "value": {
989
+ "type": "number | string",
990
+ "kind": "expression"
991
+ }
992
+ }
993
+ ]
994
+ },
995
+ {
996
+ "name": "van-calendar",
847
997
  "slots": [
848
998
  {
849
999
  "name": "title",
850
- "description": "自定义标题内容"
1000
+ "description": "自定义标题"
851
1001
  },
852
1002
  {
853
- "name": "columns-top",
854
- "description": "自定义选项上方内容"
1003
+ "name": "footer",
1004
+ "description": "自定义底部区域内容"
855
1005
  },
856
1006
  {
857
- "name": "columns-bottom",
858
- "description": "自定义选项下方内容"
1007
+ "name": "top-info",
1008
+ "description": "自定义日期上方的提示信息"
1009
+ },
1010
+ {
1011
+ "name": "bottom-info",
1012
+ "description": "自定义日期下方的提示信息"
859
1013
  }
860
1014
  ],
861
1015
  "events": [
1016
+ {
1017
+ "name": "select",
1018
+ "description": "点击并选中任意日期时触发"
1019
+ },
862
1020
  {
863
1021
  "name": "confirm",
864
- "description": "点击右上方完成按钮"
1022
+ "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
865
1023
  },
866
1024
  {
867
- "name": "cancel",
868
- "description": "点击取消按钮时"
1025
+ "name": "open",
1026
+ "description": "打开弹出层时触发"
869
1027
  },
870
1028
  {
871
- "name": "change",
872
- "description": "选项改变时触发"
1029
+ "name": "close",
1030
+ "description": "关闭弹出层时触发"
1031
+ },
1032
+ {
1033
+ "name": "opened",
1034
+ "description": "打开弹出层且动画结束后触发"
1035
+ },
1036
+ {
1037
+ "name": "closed",
1038
+ "description": "关闭弹出层且动画结束后触发"
1039
+ },
1040
+ {
1041
+ "name": "unselect",
1042
+ "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
1043
+ },
1044
+ {
1045
+ "name": "month-show",
1046
+ "description": "当某个月份进入可视区域时触发"
873
1047
  }
874
1048
  ],
875
1049
  "attributes": [
876
1050
  {
877
- "name": "value",
878
- "default": "-",
879
- "description": "当前选中的省市区`code`",
1051
+ "name": "type",
1052
+ "default": "`single`",
1053
+ "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
880
1054
  "value": {
881
1055
  "type": "string",
882
1056
  "kind": "expression"
@@ -884,202 +1058,28 @@
884
1058
  },
885
1059
  {
886
1060
  "name": "title",
887
- "default": "-",
888
- "description": "顶部栏标题",
1061
+ "default": "`日期选择`",
1062
+ "description": "日历标题",
889
1063
  "value": {
890
1064
  "type": "string",
891
1065
  "kind": "expression"
892
1066
  }
893
1067
  },
894
1068
  {
895
- "name": "confirm-button-text",
896
- "default": "`确认`",
897
- "description": "确认按钮文字",
1069
+ "name": "color",
1070
+ "default": "`#ee0a24`",
1071
+ "description": "主题色,对底部按钮和选中日期生效",
898
1072
  "value": {
899
1073
  "type": "string",
900
1074
  "kind": "expression"
901
1075
  }
902
1076
  },
903
1077
  {
904
- "name": "cancel-button-text",
905
- "default": "`取消`",
906
- "description": "取消按钮文字",
1078
+ "name": "min-date",
1079
+ "default": "当前日期",
1080
+ "description": "可选择的最小日期",
907
1081
  "value": {
908
- "type": "string",
909
- "kind": "expression"
910
- }
911
- },
912
- {
913
- "name": "area-list",
914
- "default": "-",
915
- "description": "省市区数据,格式见下方",
916
- "value": {
917
- "type": "object",
918
- "kind": "expression"
919
- }
920
- },
921
- {
922
- "name": "columns-placeholder",
923
- "default": "`[]`",
924
- "description": "列占位提示文字",
925
- "value": {
926
- "type": "string[]",
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": "readonly",
941
- "default": "`false`",
942
- "description": "是否为只读状态,只读状态下无法切换选项",
943
- "value": {
944
- "type": "boolean",
945
- "kind": "expression"
946
- }
947
- },
948
- {
949
- "name": "item-height",
950
- "default": "`44`",
951
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
952
- "value": {
953
- "type": "number | string",
954
- "kind": "expression"
955
- }
956
- },
957
- {
958
- "name": "columns-num",
959
- "default": "`3`",
960
- "description": "显示列数,3-省市区,2-省市,1-省",
961
- "value": {
962
- "type": "number | string",
963
- "kind": "expression"
964
- }
965
- },
966
- {
967
- "name": "visible-item-count",
968
- "default": "`6`",
969
- "description": "可见的选项个数",
970
- "value": {
971
- "type": "number | string",
972
- "kind": "expression"
973
- }
974
- },
975
- {
976
- "name": "swipe-duration",
977
- "default": "`1000`",
978
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
979
- "value": {
980
- "type": "number | string",
981
- "kind": "expression"
982
- }
983
- },
984
- {
985
- "name": "is-oversea-code",
986
- "default": "-",
987
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
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": "自定义标题"
1001
- },
1002
- {
1003
- "name": "footer",
1004
- "description": "自定义底部区域内容"
1005
- },
1006
- {
1007
- "name": "top-info",
1008
- "description": "自定义日期上方的提示信息"
1009
- },
1010
- {
1011
- "name": "bottom-info",
1012
- "description": "自定义日期下方的提示信息"
1013
- }
1014
- ],
1015
- "events": [
1016
- {
1017
- "name": "select",
1018
- "description": "点击并选中任意日期时触发"
1019
- },
1020
- {
1021
- "name": "confirm",
1022
- "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
1023
- },
1024
- {
1025
- "name": "open",
1026
- "description": "打开弹出层时触发"
1027
- },
1028
- {
1029
- "name": "close",
1030
- "description": "关闭弹出层时触发"
1031
- },
1032
- {
1033
- "name": "opened",
1034
- "description": "打开弹出层且动画结束后触发"
1035
- },
1036
- {
1037
- "name": "closed",
1038
- "description": "关闭弹出层且动画结束后触发"
1039
- },
1040
- {
1041
- "name": "unselect",
1042
- "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
1043
- },
1044
- {
1045
- "name": "month-show",
1046
- "description": "当某个月份进入可视区域时触发"
1047
- }
1048
- ],
1049
- "attributes": [
1050
- {
1051
- "name": "type",
1052
- "default": "`single`",
1053
- "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
1054
- "value": {
1055
- "type": "string",
1056
- "kind": "expression"
1057
- }
1058
- },
1059
- {
1060
- "name": "title",
1061
- "default": "`日期选择`",
1062
- "description": "日历标题",
1063
- "value": {
1064
- "type": "string",
1065
- "kind": "expression"
1066
- }
1067
- },
1068
- {
1069
- "name": "color",
1070
- "default": "`#ee0a24`",
1071
- "description": "主题色,对底部按钮和选中日期生效",
1072
- "value": {
1073
- "type": "string",
1074
- "kind": "expression"
1075
- }
1076
- },
1077
- {
1078
- "name": "min-date",
1079
- "default": "当前日期",
1080
- "description": "可选择的最小日期",
1081
- "value": {
1082
- "type": "Date",
1082
+ "type": "Date",
1083
1083
  "kind": "expression"
1084
1084
  }
1085
1085
  },
@@ -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": [
@@ -5362,187 +5362,175 @@
5362
5362
  "attributes": []
5363
5363
  },
5364
5364
  {
5365
- "name": "van-number-keyboard",
5365
+ "name": "van-overlay",
5366
5366
  "slots": [
5367
5367
  {
5368
- "name": "delete",
5369
- "description": "自定义删除按键内容"
5370
- },
5371
- {
5372
- "name": "extra-key",
5373
- "description": "自定义左下角按键内容"
5374
- },
5375
- {
5376
- "name": "title-left",
5377
- "description": "自定义标题栏左侧内容"
5368
+ "name": "default",
5369
+ "description": "默认插槽,用于在遮罩层上方嵌入内容"
5378
5370
  }
5379
5371
  ],
5380
5372
  "events": [
5381
5373
  {
5382
- "name": "input",
5383
- "description": "点击按键时触发"
5384
- },
5385
- {
5386
- "name": "delete",
5387
- "description": "点击删除键时触发"
5388
- },
5389
- {
5390
- "name": "close",
5391
- "description": "点击关闭按钮时触发"
5392
- },
5393
- {
5394
- "name": "blur",
5395
- "description": "点击关闭按钮或非键盘区域时触发"
5396
- },
5397
- {
5398
- "name": "show",
5399
- "description": "键盘完全弹出时触发"
5400
- },
5401
- {
5402
- "name": "hide",
5403
- "description": "键盘完全收起时触发"
5374
+ "name": "click",
5375
+ "description": "点击时触发"
5404
5376
  }
5405
5377
  ],
5406
5378
  "attributes": [
5407
5379
  {
5408
- "name": "v-model (value)",
5409
- "default": "-",
5410
- "description": "当前输入值",
5380
+ "name": "show",
5381
+ "default": "`false`",
5382
+ "description": "是否展示遮罩层",
5411
5383
  "value": {
5412
- "type": "string",
5384
+ "type": "boolean",
5413
5385
  "kind": "expression"
5414
5386
  }
5415
5387
  },
5416
5388
  {
5417
- "name": "show",
5418
- "default": "-",
5419
- "description": "是否显示键盘",
5389
+ "name": "z-index",
5390
+ "default": "`1`",
5391
+ "description": "z-index 层级",
5420
5392
  "value": {
5421
- "type": "boolean",
5393
+ "type": "number | string",
5422
5394
  "kind": "expression"
5423
5395
  }
5424
5396
  },
5425
5397
  {
5426
- "name": "title",
5427
- "default": "-",
5428
- "description": "键盘标题",
5398
+ "name": "duration",
5399
+ "default": "`0.3`",
5400
+ "description": "动画时长,单位秒",
5429
5401
  "value": {
5430
- "type": "string",
5402
+ "type": "number | string",
5431
5403
  "kind": "expression"
5432
5404
  }
5433
5405
  },
5434
5406
  {
5435
- "name": "theme",
5436
- "default": "`default`",
5437
- "description": "样式风格,可选值为 `custom`",
5407
+ "name": "class-name",
5408
+ "default": "-",
5409
+ "description": "自定义类名",
5438
5410
  "value": {
5439
5411
  "type": "string",
5440
5412
  "kind": "expression"
5441
5413
  }
5442
5414
  },
5443
5415
  {
5444
- "name": "maxlength",
5416
+ "name": "custom-style",
5445
5417
  "default": "-",
5446
- "description": "输入值最大长度",
5418
+ "description": "自定义样式",
5447
5419
  "value": {
5448
- "type": "number | string",
5420
+ "type": "object",
5449
5421
  "kind": "expression"
5450
5422
  }
5451
5423
  },
5452
5424
  {
5453
- "name": "transition",
5425
+ "name": "lock-scroll",
5454
5426
  "default": "`true`",
5455
- "description": "是否开启过场动画",
5427
+ "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
5456
5428
  "value": {
5457
5429
  "type": "boolean",
5458
5430
  "kind": "expression"
5459
5431
  }
5432
+ }
5433
+ ]
5434
+ },
5435
+ {
5436
+ "name": "van-pagination",
5437
+ "slots": [
5438
+ {
5439
+ "name": "page",
5440
+ "description": "自定义页码"
5460
5441
  },
5461
5442
  {
5462
- "name": "z-index",
5463
- "default": "`100`",
5464
- "description": "键盘 z-index 层级",
5465
- "value": {
5466
- "type": "number | string",
5467
- "kind": "expression"
5468
- }
5443
+ "name": "prev-text",
5444
+ "description": "自定义上一页按钮文字"
5469
5445
  },
5470
5446
  {
5471
- "name": "extra-key",
5472
- "default": "`''`",
5473
- "description": "底部额外按键的内容",
5447
+ "name": "next-text",
5448
+ "description": "自定义下一页按钮文字"
5449
+ }
5450
+ ],
5451
+ "events": [
5452
+ {
5453
+ "name": "change",
5454
+ "description": "页码改变时触发"
5455
+ }
5456
+ ],
5457
+ "attributes": [
5458
+ {
5459
+ "name": "v-model",
5460
+ "default": "-",
5461
+ "description": "当前页码",
5474
5462
  "value": {
5475
- "type": "string | string[]",
5463
+ "type": "number",
5476
5464
  "kind": "expression"
5477
5465
  }
5478
5466
  },
5479
5467
  {
5480
- "name": "close-button-text",
5481
- "default": "-",
5482
- "description": "关闭按钮文字,空则不展示",
5468
+ "name": "mode",
5469
+ "default": "`multi`",
5470
+ "description": "显示模式,可选值为 `simple`",
5483
5471
  "value": {
5484
5472
  "type": "string",
5485
5473
  "kind": "expression"
5486
5474
  }
5487
5475
  },
5488
5476
  {
5489
- "name": "delete-button-text",
5490
- "default": "-",
5491
- "description": "删除按钮文字,空则展示删除图标",
5477
+ "name": "prev-text",
5478
+ "default": "`上一页`",
5479
+ "description": "上一页按钮文字",
5492
5480
  "value": {
5493
5481
  "type": "string",
5494
5482
  "kind": "expression"
5495
5483
  }
5496
5484
  },
5497
5485
  {
5498
- "name": "close-button-loading",
5499
- "default": "`false`",
5500
- "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效",
5486
+ "name": "next-text",
5487
+ "default": "`下一页`",
5488
+ "description": "下一页按钮文字",
5501
5489
  "value": {
5502
- "type": "boolean",
5490
+ "type": "string",
5503
5491
  "kind": "expression"
5504
5492
  }
5505
5493
  },
5506
5494
  {
5507
- "name": "show-delete-key",
5508
- "default": "`true`",
5509
- "description": "是否展示删除图标",
5495
+ "name": "page-count",
5496
+ "default": "根据页数计算",
5497
+ "description": "总页数",
5510
5498
  "value": {
5511
- "type": "boolean",
5499
+ "type": "number | string",
5512
5500
  "kind": "expression"
5513
5501
  }
5514
5502
  },
5515
5503
  {
5516
- "name": "hide-on-click-outside",
5517
- "default": "`true`",
5518
- "description": "点击外部时是否收起键盘",
5504
+ "name": "total-items",
5505
+ "default": "`0`",
5506
+ "description": "总记录数",
5519
5507
  "value": {
5520
- "type": "boolean",
5508
+ "type": "number | string",
5521
5509
  "kind": "expression"
5522
5510
  }
5523
5511
  },
5524
5512
  {
5525
- "name": "get-container",
5526
- "default": "-",
5527
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
5513
+ "name": "items-per-page",
5514
+ "default": "`10`",
5515
+ "description": "每页记录数",
5528
5516
  "value": {
5529
- "type": "string | () => Element",
5517
+ "type": "number | string",
5530
5518
  "kind": "expression"
5531
5519
  }
5532
5520
  },
5533
5521
  {
5534
- "name": "safe-area-inset-bottom",
5535
- "default": "`true`",
5536
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
5522
+ "name": "show-page-size",
5523
+ "default": "`5`",
5524
+ "description": "显示的页码个数",
5537
5525
  "value": {
5538
- "type": "boolean",
5526
+ "type": "number | string",
5539
5527
  "kind": "expression"
5540
5528
  }
5541
5529
  },
5542
5530
  {
5543
- "name": "random-key-order",
5531
+ "name": "force-ellipses",
5544
5532
  "default": "`false`",
5545
- "description": "是否将通过随机顺序展示按键",
5533
+ "description": "是否显示省略号",
5546
5534
  "value": {
5547
5535
  "type": "boolean",
5548
5536
  "kind": "expression"
@@ -5551,175 +5539,187 @@
5551
5539
  ]
5552
5540
  },
5553
5541
  {
5554
- "name": "van-overlay",
5542
+ "name": "van-number-keyboard",
5555
5543
  "slots": [
5556
5544
  {
5557
- "name": "default",
5558
- "description": "默认插槽,用于在遮罩层上方嵌入内容"
5545
+ "name": "delete",
5546
+ "description": "自定义删除按键内容"
5547
+ },
5548
+ {
5549
+ "name": "extra-key",
5550
+ "description": "自定义左下角按键内容"
5551
+ },
5552
+ {
5553
+ "name": "title-left",
5554
+ "description": "自定义标题栏左侧内容"
5559
5555
  }
5560
5556
  ],
5561
5557
  "events": [
5562
5558
  {
5563
- "name": "click",
5564
- "description": "点击时触发"
5559
+ "name": "input",
5560
+ "description": "点击按键时触发"
5561
+ },
5562
+ {
5563
+ "name": "delete",
5564
+ "description": "点击删除键时触发"
5565
+ },
5566
+ {
5567
+ "name": "close",
5568
+ "description": "点击关闭按钮时触发"
5569
+ },
5570
+ {
5571
+ "name": "blur",
5572
+ "description": "点击关闭按钮或非键盘区域时触发"
5573
+ },
5574
+ {
5575
+ "name": "show",
5576
+ "description": "键盘完全弹出时触发"
5577
+ },
5578
+ {
5579
+ "name": "hide",
5580
+ "description": "键盘完全收起时触发"
5565
5581
  }
5566
5582
  ],
5567
5583
  "attributes": [
5568
5584
  {
5569
- "name": "show",
5570
- "default": "`false`",
5571
- "description": "是否展示遮罩层",
5585
+ "name": "v-model (value)",
5586
+ "default": "-",
5587
+ "description": "当前输入值",
5572
5588
  "value": {
5573
- "type": "boolean",
5589
+ "type": "string",
5574
5590
  "kind": "expression"
5575
5591
  }
5576
5592
  },
5577
5593
  {
5578
- "name": "z-index",
5579
- "default": "`1`",
5580
- "description": "z-index 层级",
5594
+ "name": "show",
5595
+ "default": "-",
5596
+ "description": "是否显示键盘",
5581
5597
  "value": {
5582
- "type": "number | string",
5598
+ "type": "boolean",
5583
5599
  "kind": "expression"
5584
5600
  }
5585
5601
  },
5586
5602
  {
5587
- "name": "duration",
5588
- "default": "`0.3`",
5589
- "description": "动画时长,单位秒",
5603
+ "name": "title",
5604
+ "default": "-",
5605
+ "description": "键盘标题",
5590
5606
  "value": {
5591
- "type": "number | string",
5607
+ "type": "string",
5592
5608
  "kind": "expression"
5593
5609
  }
5594
5610
  },
5595
5611
  {
5596
- "name": "class-name",
5597
- "default": "-",
5598
- "description": "自定义类名",
5612
+ "name": "theme",
5613
+ "default": "`default`",
5614
+ "description": "样式风格,可选值为 `custom`",
5599
5615
  "value": {
5600
5616
  "type": "string",
5601
5617
  "kind": "expression"
5602
5618
  }
5603
5619
  },
5604
5620
  {
5605
- "name": "custom-style",
5621
+ "name": "maxlength",
5606
5622
  "default": "-",
5607
- "description": "自定义样式",
5623
+ "description": "输入值最大长度",
5608
5624
  "value": {
5609
- "type": "object",
5625
+ "type": "number | string",
5610
5626
  "kind": "expression"
5611
5627
  }
5612
5628
  },
5613
5629
  {
5614
- "name": "lock-scroll",
5630
+ "name": "transition",
5615
5631
  "default": "`true`",
5616
- "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
5632
+ "description": "是否开启过场动画",
5617
5633
  "value": {
5618
5634
  "type": "boolean",
5619
5635
  "kind": "expression"
5620
- }
5621
- }
5622
- ]
5623
- },
5624
- {
5625
- "name": "van-pagination",
5626
- "slots": [
5627
- {
5628
- "name": "page",
5629
- "description": "自定义页码"
5636
+ }
5630
5637
  },
5631
5638
  {
5632
- "name": "prev-text",
5633
- "description": "自定义上一页按钮文字"
5639
+ "name": "z-index",
5640
+ "default": "`100`",
5641
+ "description": "键盘 z-index 层级",
5642
+ "value": {
5643
+ "type": "number | string",
5644
+ "kind": "expression"
5645
+ }
5634
5646
  },
5635
5647
  {
5636
- "name": "next-text",
5637
- "description": "自定义下一页按钮文字"
5638
- }
5639
- ],
5640
- "events": [
5641
- {
5642
- "name": "change",
5643
- "description": "页码改变时触发"
5644
- }
5645
- ],
5646
- "attributes": [
5647
- {
5648
- "name": "v-model",
5649
- "default": "-",
5650
- "description": "当前页码",
5648
+ "name": "extra-key",
5649
+ "default": "`''`",
5650
+ "description": "底部额外按键的内容",
5651
5651
  "value": {
5652
- "type": "number",
5652
+ "type": "string | string[]",
5653
5653
  "kind": "expression"
5654
5654
  }
5655
5655
  },
5656
5656
  {
5657
- "name": "mode",
5658
- "default": "`multi`",
5659
- "description": "显示模式,可选值为 `simple`",
5657
+ "name": "close-button-text",
5658
+ "default": "-",
5659
+ "description": "关闭按钮文字,空则不展示",
5660
5660
  "value": {
5661
5661
  "type": "string",
5662
5662
  "kind": "expression"
5663
5663
  }
5664
5664
  },
5665
5665
  {
5666
- "name": "prev-text",
5667
- "default": "`上一页`",
5668
- "description": "上一页按钮文字",
5666
+ "name": "delete-button-text",
5667
+ "default": "-",
5668
+ "description": "删除按钮文字,空则展示删除图标",
5669
5669
  "value": {
5670
5670
  "type": "string",
5671
5671
  "kind": "expression"
5672
5672
  }
5673
5673
  },
5674
5674
  {
5675
- "name": "next-text",
5676
- "default": "`下一页`",
5677
- "description": "下一页按钮文字",
5675
+ "name": "close-button-loading",
5676
+ "default": "`false`",
5677
+ "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效",
5678
5678
  "value": {
5679
- "type": "string",
5679
+ "type": "boolean",
5680
5680
  "kind": "expression"
5681
5681
  }
5682
5682
  },
5683
5683
  {
5684
- "name": "page-count",
5685
- "default": "根据页数计算",
5686
- "description": "总页数",
5684
+ "name": "show-delete-key",
5685
+ "default": "`true`",
5686
+ "description": "是否展示删除图标",
5687
5687
  "value": {
5688
- "type": "number | string",
5688
+ "type": "boolean",
5689
5689
  "kind": "expression"
5690
5690
  }
5691
5691
  },
5692
5692
  {
5693
- "name": "total-items",
5694
- "default": "`0`",
5695
- "description": "总记录数",
5693
+ "name": "hide-on-click-outside",
5694
+ "default": "`true`",
5695
+ "description": "点击外部时是否收起键盘",
5696
5696
  "value": {
5697
- "type": "number | string",
5697
+ "type": "boolean",
5698
5698
  "kind": "expression"
5699
5699
  }
5700
5700
  },
5701
5701
  {
5702
- "name": "items-per-page",
5703
- "default": "`10`",
5704
- "description": "每页记录数",
5702
+ "name": "get-container",
5703
+ "default": "-",
5704
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
5705
5705
  "value": {
5706
- "type": "number | string",
5706
+ "type": "string | () => Element",
5707
5707
  "kind": "expression"
5708
5708
  }
5709
5709
  },
5710
5710
  {
5711
- "name": "show-page-size",
5712
- "default": "`5`",
5713
- "description": "显示的页码个数",
5711
+ "name": "safe-area-inset-bottom",
5712
+ "default": "`true`",
5713
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
5714
5714
  "value": {
5715
- "type": "number | string",
5715
+ "type": "boolean",
5716
5716
  "kind": "expression"
5717
5717
  }
5718
5718
  },
5719
5719
  {
5720
- "name": "force-ellipses",
5720
+ "name": "random-key-order",
5721
5721
  "default": "`false`",
5722
- "description": "是否显示省略号",
5722
+ "description": "是否将通过随机顺序展示按键",
5723
5723
  "value": {
5724
5724
  "type": "boolean",
5725
5725
  "kind": "expression"
@@ -6034,326 +6034,326 @@
6034
6034
  ]
6035
6035
  },
6036
6036
  {
6037
- "name": "van-popover",
6038
- "slots": [
6037
+ "name": "van-popup",
6038
+ "slots": [],
6039
+ "events": [
6039
6040
  {
6040
- "name": "default",
6041
- "description": "自定义菜单内容"
6041
+ "name": "click",
6042
+ "description": "点击弹出层时触发"
6042
6043
  },
6043
6044
  {
6044
- "name": "reference",
6045
- "description": "触发 Popover 显示的元素内容"
6046
- }
6047
- ],
6048
- "events": [
6045
+ "name": "click-overlay",
6046
+ "description": "点击遮罩层时触发"
6047
+ },
6049
6048
  {
6050
- "name": "select",
6051
- "description": "点击选项时触发"
6049
+ "name": "click-close-icon",
6050
+ "description": "点击关闭图标时触发"
6052
6051
  },
6053
6052
  {
6054
6053
  "name": "open",
6055
- "description": "打开菜单时触发"
6054
+ "description": "打开弹出层时触发"
6056
6055
  },
6057
6056
  {
6058
6057
  "name": "close",
6059
- "description": "关闭菜单时触发"
6058
+ "description": "关闭弹出层时触发"
6060
6059
  },
6061
6060
  {
6062
6061
  "name": "opened",
6063
- "description": "打开菜单且动画结束后触发"
6062
+ "description": "打开弹出层且动画结束后触发"
6064
6063
  },
6065
6064
  {
6066
6065
  "name": "closed",
6067
- "description": "关闭菜单且动画结束后触发"
6066
+ "description": "关闭弹出层且动画结束后触发"
6068
6067
  }
6069
6068
  ],
6070
6069
  "attributes": [
6071
6070
  {
6072
- "name": "v-model",
6071
+ "name": "v-model (value)",
6073
6072
  "default": "`false`",
6074
- "description": "是否展示气泡弹出层",
6073
+ "description": "是否显示弹出层",
6075
6074
  "value": {
6076
6075
  "type": "boolean",
6077
6076
  "kind": "expression"
6078
6077
  }
6079
6078
  },
6080
6079
  {
6081
- "name": "actions",
6082
- "default": "`[]`",
6083
- "description": "选项列表",
6080
+ "name": "overlay",
6081
+ "default": "`true`",
6082
+ "description": "是否显示遮罩层",
6084
6083
  "value": {
6085
- "type": "Action[]",
6084
+ "type": "boolean",
6086
6085
  "kind": "expression"
6087
6086
  }
6088
6087
  },
6089
6088
  {
6090
- "name": "placement",
6091
- "default": "`bottom`",
6092
- "description": "弹出位置",
6089
+ "name": "position",
6090
+ "default": "`center`",
6091
+ "description": "弹出位置,可选值为 `top` `bottom` `right` `left`",
6093
6092
  "value": {
6094
6093
  "type": "string",
6095
6094
  "kind": "expression"
6096
6095
  }
6097
6096
  },
6098
6097
  {
6099
- "name": "theme",
6100
- "default": "`light`",
6101
- "description": "主题风格,可选值为 `dark`",
6098
+ "name": "overlay-class",
6099
+ "default": "-",
6100
+ "description": "自定义遮罩层类名",
6102
6101
  "value": {
6103
6102
  "type": "string",
6104
6103
  "kind": "expression"
6105
6104
  }
6106
6105
  },
6107
6106
  {
6108
- "name": "trigger",
6109
- "description": "触发方式,可选值为 `click`",
6107
+ "name": "overlay-style",
6108
+ "default": "-",
6109
+ "description": "自定义遮罩层样式",
6110
6110
  "value": {
6111
- "type": "-",
6111
+ "type": "object",
6112
6112
  "kind": "expression"
6113
6113
  }
6114
6114
  },
6115
6115
  {
6116
- "name": "offset",
6117
- "default": "`[0, 8]`",
6118
- "description": "出现位置的偏移量",
6116
+ "name": "duration",
6117
+ "default": "`0.3`",
6118
+ "description": "动画时长,单位秒",
6119
6119
  "value": {
6120
- "type": "[number, number]",
6120
+ "type": "number | string",
6121
6121
  "kind": "expression"
6122
6122
  }
6123
6123
  },
6124
6124
  {
6125
- "name": "overlay",
6125
+ "name": "round",
6126
6126
  "default": "`false`",
6127
- "description": "是否显示遮罩层",
6127
+ "description": "是否显示圆角",
6128
6128
  "value": {
6129
6129
  "type": "boolean",
6130
6130
  "kind": "expression"
6131
6131
  }
6132
6132
  },
6133
6133
  {
6134
- "name": "close-on-click-action",
6134
+ "name": "lock-scroll",
6135
6135
  "default": "`true`",
6136
- "description": "是否在点击选项后关闭",
6136
+ "description": "是否锁定背景滚动",
6137
6137
  "value": {
6138
6138
  "type": "boolean",
6139
6139
  "kind": "expression"
6140
6140
  }
6141
6141
  },
6142
6142
  {
6143
- "name": "close-on-click-outside",
6143
+ "name": "lazy-render",
6144
6144
  "default": "`true`",
6145
- "description": "是否在点击外部元素后关闭菜单",
6145
+ "description": "是否在显示弹层时才渲染节点",
6146
6146
  "value": {
6147
6147
  "type": "boolean",
6148
6148
  "kind": "expression"
6149
6149
  }
6150
6150
  },
6151
6151
  {
6152
- "name": "get-container",
6153
- "default": "`body`",
6154
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
6152
+ "name": "close-on-popstate",
6153
+ "default": "`false`",
6154
+ "description": "是否在页面回退时自动关闭",
6155
6155
  "value": {
6156
- "type": "string | () => Element",
6156
+ "type": "boolean",
6157
6157
  "kind": "expression"
6158
6158
  }
6159
- }
6160
- ]
6161
- },
6162
- {
6163
- "name": "van-popup",
6164
- "slots": [],
6165
- "events": [
6166
- {
6167
- "name": "click",
6168
- "description": "点击弹出层时触发"
6169
- },
6170
- {
6171
- "name": "click-overlay",
6172
- "description": "点击遮罩层时触发"
6173
- },
6174
- {
6175
- "name": "click-close-icon",
6176
- "description": "点击关闭图标时触发"
6177
6159
  },
6178
6160
  {
6179
- "name": "open",
6180
- "description": "打开弹出层时触发"
6181
- },
6182
- {
6183
- "name": "close",
6184
- "description": "关闭弹出层时触发"
6185
- },
6186
- {
6187
- "name": "opened",
6188
- "description": "打开弹出层且动画结束后触发"
6189
- },
6190
- {
6191
- "name": "closed",
6192
- "description": "关闭弹出层且动画结束后触发"
6193
- }
6194
- ],
6195
- "attributes": [
6196
- {
6197
- "name": "v-model (value)",
6198
- "default": "`false`",
6199
- "description": "是否显示弹出层",
6161
+ "name": "close-on-click-overlay",
6162
+ "default": "`true`",
6163
+ "description": "是否在点击遮罩层后关闭",
6200
6164
  "value": {
6201
6165
  "type": "boolean",
6202
6166
  "kind": "expression"
6203
6167
  }
6204
6168
  },
6205
6169
  {
6206
- "name": "overlay",
6207
- "default": "`true`",
6208
- "description": "是否显示遮罩层",
6170
+ "name": "closeable",
6171
+ "default": "`false`",
6172
+ "description": "是否显示关闭图标",
6209
6173
  "value": {
6210
6174
  "type": "boolean",
6211
6175
  "kind": "expression"
6212
6176
  }
6213
6177
  },
6214
6178
  {
6215
- "name": "position",
6216
- "default": "`center`",
6217
- "description": "弹出位置,可选值为 `top` `bottom` `right` `left`",
6179
+ "name": "close-icon",
6180
+ "default": "`cross`",
6181
+ "description": "关闭图标名称或图片链接",
6218
6182
  "value": {
6219
6183
  "type": "string",
6220
6184
  "kind": "expression"
6221
6185
  }
6222
6186
  },
6223
6187
  {
6224
- "name": "overlay-class",
6225
- "default": "-",
6226
- "description": "自定义遮罩层类名",
6188
+ "name": "close-icon-position",
6189
+ "default": "`top-right`",
6190
+ "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
6227
6191
  "value": {
6228
6192
  "type": "string",
6229
6193
  "kind": "expression"
6230
6194
  }
6231
6195
  },
6232
6196
  {
6233
- "name": "overlay-style",
6197
+ "name": "transition",
6234
6198
  "default": "-",
6235
- "description": "自定义遮罩层样式",
6199
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6236
6200
  "value": {
6237
- "type": "object",
6201
+ "type": "string",
6238
6202
  "kind": "expression"
6239
6203
  }
6240
6204
  },
6241
6205
  {
6242
- "name": "duration",
6243
- "default": "`0.3`",
6244
- "description": "动画时长,单位秒",
6206
+ "name": "transition-appear",
6207
+ "default": "`false`",
6208
+ "description": "是否在初始渲染时启用过渡动画",
6245
6209
  "value": {
6246
- "type": "number | string",
6210
+ "type": "boolean",
6247
6211
  "kind": "expression"
6248
6212
  }
6249
6213
  },
6250
6214
  {
6251
- "name": "round",
6252
- "default": "`false`",
6253
- "description": "是否显示圆角",
6215
+ "name": "get-container",
6216
+ "default": "-",
6217
+ "description": "指定挂载的节点",
6254
6218
  "value": {
6255
- "type": "boolean",
6219
+ "type": "string | () => Element",
6256
6220
  "kind": "expression"
6257
6221
  }
6258
6222
  },
6259
6223
  {
6260
- "name": "lock-scroll",
6261
- "default": "`true`",
6262
- "description": "是否锁定背景滚动",
6224
+ "name": "safe-area-inset-bottom",
6225
+ "default": "`false`",
6226
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
6263
6227
  "value": {
6264
6228
  "type": "boolean",
6265
6229
  "kind": "expression"
6266
6230
  }
6231
+ }
6232
+ ]
6233
+ },
6234
+ {
6235
+ "name": "van-popover",
6236
+ "slots": [
6237
+ {
6238
+ "name": "default",
6239
+ "description": "自定义菜单内容"
6267
6240
  },
6268
6241
  {
6269
- "name": "lazy-render",
6270
- "default": "`true`",
6271
- "description": "是否在显示弹层时才渲染节点",
6272
- "value": {
6273
- "type": "boolean",
6274
- "kind": "expression"
6275
- }
6242
+ "name": "reference",
6243
+ "description": "触发 Popover 显示的元素内容"
6244
+ }
6245
+ ],
6246
+ "events": [
6247
+ {
6248
+ "name": "select",
6249
+ "description": "点击选项时触发"
6276
6250
  },
6277
6251
  {
6278
- "name": "close-on-popstate",
6252
+ "name": "open",
6253
+ "description": "打开菜单时触发"
6254
+ },
6255
+ {
6256
+ "name": "close",
6257
+ "description": "关闭菜单时触发"
6258
+ },
6259
+ {
6260
+ "name": "opened",
6261
+ "description": "打开菜单且动画结束后触发"
6262
+ },
6263
+ {
6264
+ "name": "closed",
6265
+ "description": "关闭菜单且动画结束后触发"
6266
+ }
6267
+ ],
6268
+ "attributes": [
6269
+ {
6270
+ "name": "v-model",
6279
6271
  "default": "`false`",
6280
- "description": "是否在页面回退时自动关闭",
6272
+ "description": "是否展示气泡弹出层",
6281
6273
  "value": {
6282
6274
  "type": "boolean",
6283
6275
  "kind": "expression"
6284
6276
  }
6285
6277
  },
6286
6278
  {
6287
- "name": "close-on-click-overlay",
6288
- "default": "`true`",
6289
- "description": "是否在点击遮罩层后关闭",
6279
+ "name": "actions",
6280
+ "default": "`[]`",
6281
+ "description": "选项列表",
6290
6282
  "value": {
6291
- "type": "boolean",
6283
+ "type": "Action[]",
6292
6284
  "kind": "expression"
6293
6285
  }
6294
6286
  },
6295
6287
  {
6296
- "name": "closeable",
6297
- "default": "`false`",
6298
- "description": "是否显示关闭图标",
6288
+ "name": "placement",
6289
+ "default": "`bottom`",
6290
+ "description": "弹出位置",
6299
6291
  "value": {
6300
- "type": "boolean",
6292
+ "type": "string",
6301
6293
  "kind": "expression"
6302
6294
  }
6303
6295
  },
6304
6296
  {
6305
- "name": "close-icon",
6306
- "default": "`cross`",
6307
- "description": "关闭图标名称或图片链接",
6297
+ "name": "theme",
6298
+ "default": "`light`",
6299
+ "description": "主题风格,可选值为 `dark`",
6308
6300
  "value": {
6309
6301
  "type": "string",
6310
6302
  "kind": "expression"
6311
6303
  }
6312
6304
  },
6313
6305
  {
6314
- "name": "close-icon-position",
6315
- "default": "`top-right`",
6316
- "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
6306
+ "name": "trigger",
6307
+ "description": "触发方式,可选值为 `click`",
6317
6308
  "value": {
6318
- "type": "string",
6309
+ "type": "-",
6319
6310
  "kind": "expression"
6320
6311
  }
6321
6312
  },
6322
6313
  {
6323
- "name": "transition",
6324
- "default": "-",
6325
- "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6314
+ "name": "offset",
6315
+ "default": "`[0, 8]`",
6316
+ "description": "出现位置的偏移量",
6326
6317
  "value": {
6327
- "type": "string",
6318
+ "type": "[number, number]",
6328
6319
  "kind": "expression"
6329
6320
  }
6330
6321
  },
6331
6322
  {
6332
- "name": "transition-appear",
6323
+ "name": "overlay",
6333
6324
  "default": "`false`",
6334
- "description": "是否在初始渲染时启用过渡动画",
6325
+ "description": "是否显示遮罩层",
6335
6326
  "value": {
6336
6327
  "type": "boolean",
6337
6328
  "kind": "expression"
6338
6329
  }
6339
6330
  },
6340
6331
  {
6341
- "name": "get-container",
6342
- "default": "-",
6343
- "description": "指定挂载的节点",
6332
+ "name": "close-on-click-action",
6333
+ "default": "`true`",
6334
+ "description": "是否在点击选项后关闭",
6344
6335
  "value": {
6345
- "type": "string | () => Element",
6336
+ "type": "boolean",
6346
6337
  "kind": "expression"
6347
6338
  }
6348
6339
  },
6349
6340
  {
6350
- "name": "safe-area-inset-bottom",
6351
- "default": "`false`",
6352
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
6341
+ "name": "close-on-click-outside",
6342
+ "default": "`true`",
6343
+ "description": "是否在点击外部元素后关闭菜单",
6353
6344
  "value": {
6354
6345
  "type": "boolean",
6355
6346
  "kind": "expression"
6356
6347
  }
6348
+ },
6349
+ {
6350
+ "name": "get-container",
6351
+ "default": "`body`",
6352
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
6353
+ "value": {
6354
+ "type": "string | () => Element",
6355
+ "kind": "expression"
6356
+ }
6357
6357
  }
6358
6358
  ]
6359
6359
  },
@@ -8110,6 +8110,49 @@
8110
8110
  }
8111
8111
  ]
8112
8112
  },
8113
+ {
8114
+ "name": "van-sticky",
8115
+ "slots": [],
8116
+ "events": [
8117
+ {
8118
+ "name": "change",
8119
+ "description": "当吸顶状态改变时触发"
8120
+ },
8121
+ {
8122
+ "name": "scroll",
8123
+ "description": "滚动时触发"
8124
+ }
8125
+ ],
8126
+ "attributes": [
8127
+ {
8128
+ "name": "offset-top",
8129
+ "default": "`0`",
8130
+ "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
8131
+ "value": {
8132
+ "type": "number | string",
8133
+ "kind": "expression"
8134
+ }
8135
+ },
8136
+ {
8137
+ "name": "z-index",
8138
+ "default": "`99`",
8139
+ "description": "吸顶时的 z-index",
8140
+ "value": {
8141
+ "type": "number | string",
8142
+ "kind": "expression"
8143
+ }
8144
+ },
8145
+ {
8146
+ "name": "container",
8147
+ "default": "-",
8148
+ "description": "容器对应的 HTML 节点",
8149
+ "value": {
8150
+ "type": "Element",
8151
+ "kind": "expression"
8152
+ }
8153
+ }
8154
+ ]
8155
+ },
8113
8156
  {
8114
8157
  "name": "van-steps",
8115
8158
  "slots": [
@@ -8216,49 +8259,6 @@
8216
8259
  }
8217
8260
  ]
8218
8261
  },
8219
- {
8220
- "name": "van-sticky",
8221
- "slots": [],
8222
- "events": [
8223
- {
8224
- "name": "change",
8225
- "description": "当吸顶状态改变时触发"
8226
- },
8227
- {
8228
- "name": "scroll",
8229
- "description": "滚动时触发"
8230
- }
8231
- ],
8232
- "attributes": [
8233
- {
8234
- "name": "offset-top",
8235
- "default": "`0`",
8236
- "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
8237
- "value": {
8238
- "type": "number | string",
8239
- "kind": "expression"
8240
- }
8241
- },
8242
- {
8243
- "name": "z-index",
8244
- "default": "`99`",
8245
- "description": "吸顶时的 z-index",
8246
- "value": {
8247
- "type": "number | string",
8248
- "kind": "expression"
8249
- }
8250
- },
8251
- {
8252
- "name": "container",
8253
- "default": "-",
8254
- "description": "容器对应的 HTML 节点",
8255
- "value": {
8256
- "type": "Element",
8257
- "kind": "expression"
8258
- }
8259
- }
8260
- ]
8261
- },
8262
8262
  {
8263
8263
  "name": "van-内置样式",
8264
8264
  "slots": [],
@@ -8356,63 +8356,150 @@
8356
8356
  }
8357
8357
  },
8358
8358
  {
8359
- "name": "button-color",
8360
- "default": "-",
8361
- "description": "自定义按钮颜色",
8359
+ "name": "button-color",
8360
+ "default": "-",
8361
+ "description": "自定义按钮颜色",
8362
+ "value": {
8363
+ "type": "string",
8364
+ "kind": "expression"
8365
+ }
8366
+ },
8367
+ {
8368
+ "name": "tip",
8369
+ "default": "-",
8370
+ "description": "在订单栏上方的提示文案",
8371
+ "value": {
8372
+ "type": "string",
8373
+ "kind": "expression"
8374
+ }
8375
+ },
8376
+ {
8377
+ "name": "tip-icon",
8378
+ "default": "-",
8379
+ "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
8380
+ "value": {
8381
+ "type": "string",
8382
+ "kind": "expression"
8383
+ }
8384
+ },
8385
+ {
8386
+ "name": "currency",
8387
+ "default": "`¥`",
8388
+ "description": "货币符号",
8389
+ "value": {
8390
+ "type": "string",
8391
+ "kind": "expression"
8392
+ }
8393
+ },
8394
+ {
8395
+ "name": "disabled",
8396
+ "default": "`false`",
8397
+ "description": "是否禁用按钮",
8398
+ "value": {
8399
+ "type": "boolean",
8400
+ "kind": "expression"
8401
+ }
8402
+ },
8403
+ {
8404
+ "name": "loading",
8405
+ "default": "`false`",
8406
+ "description": "是否显示将按钮显示为加载中状态",
8407
+ "value": {
8408
+ "type": "boolean",
8409
+ "kind": "expression"
8410
+ }
8411
+ },
8412
+ {
8413
+ "name": "safe-area-inset-bottom",
8414
+ "default": "`true`",
8415
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
8362
8416
  "value": {
8363
- "type": "string",
8417
+ "type": "boolean",
8364
8418
  "kind": "expression"
8365
8419
  }
8420
+ }
8421
+ ]
8422
+ },
8423
+ {
8424
+ "name": "van-swipe-cell",
8425
+ "slots": [
8426
+ {
8427
+ "name": "default",
8428
+ "description": "自定义显示内容"
8366
8429
  },
8367
8430
  {
8368
- "name": "tip",
8431
+ "name": "left",
8432
+ "description": "左侧滑动内容"
8433
+ },
8434
+ {
8435
+ "name": "right",
8436
+ "description": "右侧滑动内容"
8437
+ }
8438
+ ],
8439
+ "events": [
8440
+ {
8441
+ "name": "click",
8442
+ "description": "点击时触发"
8443
+ },
8444
+ {
8445
+ "name": "open",
8446
+ "description": "打开时触发"
8447
+ },
8448
+ {
8449
+ "name": "close",
8450
+ "description": "关闭时触发"
8451
+ }
8452
+ ],
8453
+ "attributes": [
8454
+ {
8455
+ "name": "name",
8369
8456
  "default": "-",
8370
- "description": "在订单栏上方的提示文案",
8457
+ "description": "标识符,可以在事件参数中获取到",
8371
8458
  "value": {
8372
- "type": "string",
8459
+ "type": "number | string",
8373
8460
  "kind": "expression"
8374
8461
  }
8375
8462
  },
8376
8463
  {
8377
- "name": "tip-icon",
8378
- "default": "-",
8379
- "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
8464
+ "name": "left-width",
8465
+ "default": "`auto`",
8466
+ "description": "指定左侧滑动区域宽度,单位为`px`",
8380
8467
  "value": {
8381
- "type": "string",
8468
+ "type": "number | string",
8382
8469
  "kind": "expression"
8383
8470
  }
8384
8471
  },
8385
8472
  {
8386
- "name": "currency",
8387
- "default": "`¥`",
8388
- "description": "货币符号",
8473
+ "name": "right-width",
8474
+ "default": "`auto`",
8475
+ "description": "指定右侧滑动区域宽度,单位为`px`",
8389
8476
  "value": {
8390
- "type": "string",
8477
+ "type": "number | string",
8391
8478
  "kind": "expression"
8392
8479
  }
8393
8480
  },
8394
8481
  {
8395
- "name": "disabled",
8396
- "default": "`false`",
8397
- "description": "是否禁用按钮",
8482
+ "name": "before-close",
8483
+ "default": "-",
8484
+ "description": "关闭前的回调函数",
8398
8485
  "value": {
8399
- "type": "boolean",
8486
+ "type": "Function",
8400
8487
  "kind": "expression"
8401
8488
  }
8402
8489
  },
8403
8490
  {
8404
- "name": "loading",
8491
+ "name": "disabled",
8405
8492
  "default": "`false`",
8406
- "description": "是否显示将按钮显示为加载中状态",
8493
+ "description": "是否禁用滑动",
8407
8494
  "value": {
8408
8495
  "type": "boolean",
8409
8496
  "kind": "expression"
8410
8497
  }
8411
8498
  },
8412
8499
  {
8413
- "name": "safe-area-inset-bottom",
8414
- "default": "`true`",
8415
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
8500
+ "name": "stop-propagation",
8501
+ "default": "`false`",
8502
+ "description": "是否阻止滑动事件冒泡",
8416
8503
  "value": {
8417
8504
  "type": "boolean",
8418
8505
  "kind": "expression"
@@ -8554,112 +8641,48 @@
8554
8641
  ]
8555
8642
  },
8556
8643
  {
8557
- "name": "van-swipe-cell",
8558
- "slots": [
8559
- {
8560
- "name": "default",
8561
- "description": "自定义显示内容"
8562
- },
8563
- {
8564
- "name": "left",
8565
- "description": "左侧滑动内容"
8566
- },
8567
- {
8568
- "name": "right",
8569
- "description": "右侧滑动内容"
8570
- }
8571
- ],
8644
+ "name": "van-switch-cell",
8645
+ "slots": [],
8572
8646
  "events": [
8573
8647
  {
8574
- "name": "click",
8575
- "description": "点击时触发"
8576
- },
8577
- {
8578
- "name": "open",
8579
- "description": "打开时触发"
8580
- },
8581
- {
8582
- "name": "close",
8583
- "description": "关闭时触发"
8648
+ "name": "change",
8649
+ "description": "开关状态切换回调"
8584
8650
  }
8585
8651
  ],
8586
8652
  "attributes": [
8587
8653
  {
8588
- "name": "name",
8589
- "default": "-",
8590
- "description": "标识符,可以在事件参数中获取到",
8591
- "value": {
8592
- "type": "number | string",
8593
- "kind": "expression"
8594
- }
8595
- },
8596
- {
8597
- "name": "left-width",
8598
- "default": "`auto`",
8599
- "description": "指定左侧滑动区域宽度,单位为`px`",
8600
- "value": {
8601
- "type": "number | string",
8602
- "kind": "expression"
8603
- }
8604
- },
8605
- {
8606
- "name": "right-width",
8607
- "default": "`auto`",
8608
- "description": "指定右侧滑动区域宽度,单位为`px`",
8609
- "value": {
8610
- "type": "number | string",
8611
- "kind": "expression"
8612
- }
8613
- },
8614
- {
8615
- "name": "before-close",
8616
- "default": "-",
8617
- "description": "关闭前的回调函数",
8654
+ "name": "v-model",
8655
+ "default": "`false`",
8656
+ "description": "开关状态",
8618
8657
  "value": {
8619
- "type": "Function",
8658
+ "type": "any",
8620
8659
  "kind": "expression"
8621
8660
  }
8622
8661
  },
8623
8662
  {
8624
- "name": "disabled",
8625
- "default": "`false`",
8626
- "description": "是否禁用滑动",
8663
+ "name": "title",
8664
+ "default": "`''`",
8665
+ "description": "左侧标题",
8627
8666
  "value": {
8628
- "type": "boolean",
8667
+ "type": "string",
8629
8668
  "kind": "expression"
8630
8669
  }
8631
8670
  },
8632
8671
  {
8633
- "name": "stop-propagation",
8634
- "default": "`false`",
8635
- "description": "是否阻止滑动事件冒泡",
8672
+ "name": "border",
8673
+ "default": "`true`",
8674
+ "description": "是否展示单元格内边框",
8636
8675
  "value": {
8637
8676
  "type": "boolean",
8638
8677
  "kind": "expression"
8639
8678
  }
8640
- }
8641
- ]
8642
- },
8643
- {
8644
- "name": "van-switch",
8645
- "slots": [],
8646
- "events": [
8647
- {
8648
- "name": "change",
8649
- "description": "开关状态切换时触发"
8650
8679
  },
8651
8680
  {
8652
- "name": "click",
8653
- "description": "点击时触发"
8654
- }
8655
- ],
8656
- "attributes": [
8657
- {
8658
- "name": "v-model",
8659
- "default": "`false`",
8660
- "description": "开关选中状态",
8681
+ "name": "cell-size",
8682
+ "default": "-",
8683
+ "description": "单元格大小,可选值为 `large`",
8661
8684
  "value": {
8662
- "type": "any",
8685
+ "type": "string",
8663
8686
  "kind": "expression"
8664
8687
  }
8665
8688
  },
@@ -8683,8 +8706,8 @@
8683
8706
  },
8684
8707
  {
8685
8708
  "name": "size",
8686
- "default": "`30px`",
8687
- "description": "开关尺寸,默认单位为`px`",
8709
+ "default": "`24px`",
8710
+ "description": "开关尺寸",
8688
8711
  "value": {
8689
8712
  "type": "number | string",
8690
8713
  "kind": "expression"
@@ -8693,7 +8716,7 @@
8693
8716
  {
8694
8717
  "name": "active-color",
8695
8718
  "default": "`#1989fa`",
8696
- "description": "打开时的背景色",
8719
+ "description": "开关时的背景色",
8697
8720
  "value": {
8698
8721
  "type": "string",
8699
8722
  "kind": "expression"
@@ -8702,7 +8725,7 @@
8702
8725
  {
8703
8726
  "name": "inactive-color",
8704
8727
  "default": "`white`",
8705
- "description": "关闭时的背景色",
8728
+ "description": "开关时的背景色",
8706
8729
  "value": {
8707
8730
  "type": "string",
8708
8731
  "kind": "expression"
@@ -8711,7 +8734,7 @@
8711
8734
  {
8712
8735
  "name": "active-value",
8713
8736
  "default": "`true`",
8714
- "description": "打开时对应的值",
8737
+ "description": "打开时的值",
8715
8738
  "value": {
8716
8739
  "type": "any",
8717
8740
  "kind": "expression"
@@ -8720,7 +8743,7 @@
8720
8743
  {
8721
8744
  "name": "inactive-value",
8722
8745
  "default": "`false`",
8723
- "description": "关闭时对应的值",
8746
+ "description": "关闭时的值",
8724
8747
  "value": {
8725
8748
  "type": "any",
8726
8749
  "kind": "expression"
@@ -8729,51 +8752,28 @@
8729
8752
  ]
8730
8753
  },
8731
8754
  {
8732
- "name": "van-switch-cell",
8755
+ "name": "van-switch",
8733
8756
  "slots": [],
8734
8757
  "events": [
8735
8758
  {
8736
8759
  "name": "change",
8737
- "description": "开关状态切换回调"
8760
+ "description": "开关状态切换时触发"
8761
+ },
8762
+ {
8763
+ "name": "click",
8764
+ "description": "点击时触发"
8738
8765
  }
8739
8766
  ],
8740
8767
  "attributes": [
8741
8768
  {
8742
8769
  "name": "v-model",
8743
8770
  "default": "`false`",
8744
- "description": "开关状态",
8771
+ "description": "开关选中状态",
8745
8772
  "value": {
8746
8773
  "type": "any",
8747
8774
  "kind": "expression"
8748
8775
  }
8749
8776
  },
8750
- {
8751
- "name": "title",
8752
- "default": "`''`",
8753
- "description": "左侧标题",
8754
- "value": {
8755
- "type": "string",
8756
- "kind": "expression"
8757
- }
8758
- },
8759
- {
8760
- "name": "border",
8761
- "default": "`true`",
8762
- "description": "是否展示单元格内边框",
8763
- "value": {
8764
- "type": "boolean",
8765
- "kind": "expression"
8766
- }
8767
- },
8768
- {
8769
- "name": "cell-size",
8770
- "default": "-",
8771
- "description": "单元格大小,可选值为 `large`",
8772
- "value": {
8773
- "type": "string",
8774
- "kind": "expression"
8775
- }
8776
- },
8777
8777
  {
8778
8778
  "name": "loading",
8779
8779
  "default": "`false`",
@@ -8794,8 +8794,8 @@
8794
8794
  },
8795
8795
  {
8796
8796
  "name": "size",
8797
- "default": "`24px`",
8798
- "description": "开关尺寸",
8797
+ "default": "`30px`",
8798
+ "description": "开关尺寸,默认单位为`px`",
8799
8799
  "value": {
8800
8800
  "type": "number | string",
8801
8801
  "kind": "expression"
@@ -8804,7 +8804,7 @@
8804
8804
  {
8805
8805
  "name": "active-color",
8806
8806
  "default": "`#1989fa`",
8807
- "description": "开关时的背景色",
8807
+ "description": "打开时的背景色",
8808
8808
  "value": {
8809
8809
  "type": "string",
8810
8810
  "kind": "expression"
@@ -8813,7 +8813,7 @@
8813
8813
  {
8814
8814
  "name": "inactive-color",
8815
8815
  "default": "`white`",
8816
- "description": "开关时的背景色",
8816
+ "description": "关闭时的背景色",
8817
8817
  "value": {
8818
8818
  "type": "string",
8819
8819
  "kind": "expression"
@@ -8822,7 +8822,7 @@
8822
8822
  {
8823
8823
  "name": "active-value",
8824
8824
  "default": "`true`",
8825
- "description": "打开时的值",
8825
+ "description": "打开时对应的值",
8826
8826
  "value": {
8827
8827
  "type": "any",
8828
8828
  "kind": "expression"
@@ -8831,7 +8831,7 @@
8831
8831
  {
8832
8832
  "name": "inactive-value",
8833
8833
  "default": "`false`",
8834
- "description": "关闭时的值",
8834
+ "description": "关闭时对应的值",
8835
8835
  "value": {
8836
8836
  "type": "any",
8837
8837
  "kind": "expression"
@@ -9435,12 +9435,6 @@
9435
9435
  }
9436
9436
  ]
9437
9437
  },
9438
- {
9439
- "name": "van-toast",
9440
- "slots": [],
9441
- "events": [],
9442
- "attributes": []
9443
- },
9444
9438
  {
9445
9439
  "name": "van-tree-select",
9446
9440
  "slots": [
@@ -9516,6 +9510,12 @@
9516
9510
  }
9517
9511
  ]
9518
9512
  },
9513
+ {
9514
+ "name": "van-toast",
9515
+ "slots": [],
9516
+ "events": [],
9517
+ "attributes": []
9518
+ },
9519
9519
  {
9520
9520
  "name": "van-uploader",
9521
9521
  "slots": [