vant 2.12.35 → 2.12.39

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,208 +2,10 @@
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.35",
5
+ "version": "2.12.39",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
- {
10
- "name": "van-action-sheet",
11
- "slots": [
12
- {
13
- "name": "default",
14
- "description": "自定义面板的展示内容"
15
- },
16
- {
17
- "name": "description",
18
- "description": "自定义描述文案"
19
- }
20
- ],
21
- "events": [
22
- {
23
- "name": "select",
24
- "description": "点击选项时触发,禁用或加载状态下不会触发"
25
- },
26
- {
27
- "name": "cancel",
28
- "description": "点击取消按钮时触发"
29
- },
30
- {
31
- "name": "open",
32
- "description": "打开面板时触发"
33
- },
34
- {
35
- "name": "close",
36
- "description": "关闭面板时触发"
37
- },
38
- {
39
- "name": "opened",
40
- "description": "打开面板且动画结束后触发"
41
- },
42
- {
43
- "name": "closed",
44
- "description": "关闭面板且动画结束后触发"
45
- },
46
- {
47
- "name": "click-overlay",
48
- "description": "点击遮罩层时触发"
49
- }
50
- ],
51
- "attributes": [
52
- {
53
- "name": "v-model (value)",
54
- "default": "`false`",
55
- "description": "是否显示动作面板",
56
- "value": {
57
- "type": "boolean",
58
- "kind": "expression"
59
- }
60
- },
61
- {
62
- "name": "actions",
63
- "default": "`[]`",
64
- "description": "面板选项列表",
65
- "value": {
66
- "type": "Action[]",
67
- "kind": "expression"
68
- }
69
- },
70
- {
71
- "name": "title",
72
- "default": "-",
73
- "description": "顶部标题",
74
- "value": {
75
- "type": "string",
76
- "kind": "expression"
77
- }
78
- },
79
- {
80
- "name": "cancel-text",
81
- "default": "-",
82
- "description": "取消按钮文字",
83
- "value": {
84
- "type": "string",
85
- "kind": "expression"
86
- }
87
- },
88
- {
89
- "name": "description",
90
- "default": "-",
91
- "description": "选项上方的描述信息",
92
- "value": {
93
- "type": "string",
94
- "kind": "expression"
95
- }
96
- },
97
- {
98
- "name": "closeable",
99
- "default": "`true`",
100
- "description": "是否显示关闭图标",
101
- "value": {
102
- "type": "boolean",
103
- "kind": "expression"
104
- }
105
- },
106
- {
107
- "name": "close-icon",
108
- "default": "`cross`",
109
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
110
- "value": {
111
- "type": "string",
112
- "kind": "expression"
113
- }
114
- },
115
- {
116
- "name": "duration",
117
- "default": "`0.3`",
118
- "description": "动画时长,单位秒",
119
- "value": {
120
- "type": "number | string",
121
- "kind": "expression"
122
- }
123
- },
124
- {
125
- "name": "round",
126
- "default": "`true`",
127
- "description": "是否显示圆角",
128
- "value": {
129
- "type": "boolean",
130
- "kind": "expression"
131
- }
132
- },
133
- {
134
- "name": "overlay",
135
- "default": "`true`",
136
- "description": "是否显示遮罩层",
137
- "value": {
138
- "type": "boolean",
139
- "kind": "expression"
140
- }
141
- },
142
- {
143
- "name": "lock-scroll",
144
- "default": "`true`",
145
- "description": "是否锁定背景滚动",
146
- "value": {
147
- "type": "boolean",
148
- "kind": "expression"
149
- }
150
- },
151
- {
152
- "name": "lazy-render",
153
- "default": "`true`",
154
- "description": "是否在显示弹层时才渲染节点",
155
- "value": {
156
- "type": "boolean",
157
- "kind": "expression"
158
- }
159
- },
160
- {
161
- "name": "close-on-popstate",
162
- "default": "`false`",
163
- "description": "是否在页面回退时自动关闭",
164
- "value": {
165
- "type": "boolean",
166
- "kind": "expression"
167
- }
168
- },
169
- {
170
- "name": "close-on-click-action",
171
- "default": "`false`",
172
- "description": "是否在点击选项后关闭",
173
- "value": {
174
- "type": "boolean",
175
- "kind": "expression"
176
- }
177
- },
178
- {
179
- "name": "close-on-click-overlay",
180
- "default": "`true`",
181
- "description": "是否在点击遮罩层后关闭",
182
- "value": {
183
- "type": "boolean",
184
- "kind": "expression"
185
- }
186
- },
187
- {
188
- "name": "safe-area-inset-bottom",
189
- "default": "`true`",
190
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
191
- "value": {
192
- "type": "boolean",
193
- "kind": "expression"
194
- }
195
- },
196
- {
197
- "name": "get-container",
198
- "default": "-",
199
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
200
- "value": {
201
- "type": "string | () => Element",
202
- "kind": "expression"
203
- }
204
- }
205
- ]
206
- },
207
9
  {
208
10
  "name": "van-address-edit",
209
11
  "slots": [
@@ -616,64 +418,40 @@
616
418
  ]
617
419
  },
618
420
  {
619
- "name": "van-calendar",
421
+ "name": "van-area",
620
422
  "slots": [
621
423
  {
622
424
  "name": "title",
623
- "description": "自定义标题"
624
- },
625
- {
626
- "name": "footer",
627
- "description": "自定义底部区域内容"
425
+ "description": "自定义标题内容"
628
426
  },
629
427
  {
630
- "name": "top-info",
631
- "description": "自定义日期上方的提示信息"
428
+ "name": "columns-top",
429
+ "description": "自定义选项上方内容"
632
430
  },
633
431
  {
634
- "name": "bottom-info",
635
- "description": "自定义日期下方的提示信息"
432
+ "name": "columns-bottom",
433
+ "description": "自定义选项下方内容"
636
434
  }
637
435
  ],
638
436
  "events": [
639
- {
640
- "name": "select",
641
- "description": "点击并选中任意日期时触发"
642
- },
643
437
  {
644
438
  "name": "confirm",
645
- "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
646
- },
647
- {
648
- "name": "open",
649
- "description": "打开弹出层时触发"
650
- },
651
- {
652
- "name": "close",
653
- "description": "关闭弹出层时触发"
654
- },
655
- {
656
- "name": "opened",
657
- "description": "打开弹出层且动画结束后触发"
658
- },
659
- {
660
- "name": "closed",
661
- "description": "关闭弹出层且动画结束后触发"
439
+ "description": "点击右上方完成按钮"
662
440
  },
663
441
  {
664
- "name": "unselect",
665
- "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
442
+ "name": "cancel",
443
+ "description": "点击取消按钮时"
666
444
  },
667
445
  {
668
- "name": "month-show",
669
- "description": "当某个月份进入可视区域时触发"
446
+ "name": "change",
447
+ "description": "选项改变时触发"
670
448
  }
671
449
  ],
672
450
  "attributes": [
673
451
  {
674
- "name": "type",
675
- "default": "`single`",
676
- "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
452
+ "name": "value",
453
+ "default": "-",
454
+ "description": "当前选中的省市区`code`",
677
455
  "value": {
678
456
  "type": "string",
679
457
  "kind": "expression"
@@ -681,283 +459,109 @@
681
459
  },
682
460
  {
683
461
  "name": "title",
684
- "default": "`日期选择`",
685
- "description": "日历标题",
462
+ "default": "-",
463
+ "description": "顶部栏标题",
686
464
  "value": {
687
465
  "type": "string",
688
466
  "kind": "expression"
689
467
  }
690
468
  },
691
469
  {
692
- "name": "color",
693
- "default": "`#ee0a24`",
694
- "description": "主题色,对底部按钮和选中日期生效",
470
+ "name": "confirm-button-text",
471
+ "default": "`确认`",
472
+ "description": "确认按钮文字",
695
473
  "value": {
696
474
  "type": "string",
697
475
  "kind": "expression"
698
476
  }
699
477
  },
700
478
  {
701
- "name": "min-date",
702
- "default": "当前日期",
703
- "description": "可选择的最小日期",
704
- "value": {
705
- "type": "Date",
706
- "kind": "expression"
707
- }
708
- },
709
- {
710
- "name": "max-date",
711
- "default": "当前日期的六个月后",
712
- "description": "可选择的最大日期",
713
- "value": {
714
- "type": "Date",
715
- "kind": "expression"
716
- }
717
- },
718
- {
719
- "name": "default-date",
720
- "default": "null_",
721
- "description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
722
- "value": {
723
- "type": "Date | Date[] \\",
724
- "kind": "expression"
725
- }
726
- },
727
- {
728
- "name": "row-height",
729
- "default": "`64`",
730
- "description": "日期行高",
479
+ "name": "cancel-button-text",
480
+ "default": "`取消`",
481
+ "description": "取消按钮文字",
731
482
  "value": {
732
- "type": "number | string",
483
+ "type": "string",
733
484
  "kind": "expression"
734
485
  }
735
486
  },
736
487
  {
737
- "name": "formatter",
488
+ "name": "area-list",
738
489
  "default": "-",
739
- "description": "日期格式化函数",
740
- "value": {
741
- "type": "(day: Day) => Day",
742
- "kind": "expression"
743
- }
744
- },
745
- {
746
- "name": "poppable",
747
- "default": "`true`",
748
- "description": "是否以弹层的形式展示日历",
749
- "value": {
750
- "type": "boolean",
751
- "kind": "expression"
752
- }
753
- },
754
- {
755
- "name": "lazy-render",
756
- "default": "`true`",
757
- "description": "是否只渲染可视区域的内容",
758
- "value": {
759
- "type": "boolean",
760
- "kind": "expression"
761
- }
762
- },
763
- {
764
- "name": "show-mark",
765
- "default": "`true`",
766
- "description": "是否显示月份背景水印",
767
- "value": {
768
- "type": "boolean",
769
- "kind": "expression"
770
- }
771
- },
772
- {
773
- "name": "show-title",
774
- "default": "`true`",
775
- "description": "是否展示日历标题",
776
- "value": {
777
- "type": "boolean",
778
- "kind": "expression"
779
- }
780
- },
781
- {
782
- "name": "show-subtitle",
783
- "default": "`true`",
784
- "description": "是否展示日历副标题(年月)",
490
+ "description": "省市区数据,格式见下方",
785
491
  "value": {
786
- "type": "boolean",
492
+ "type": "object",
787
493
  "kind": "expression"
788
494
  }
789
495
  },
790
496
  {
791
- "name": "show-confirm",
792
- "default": "`true`",
793
- "description": "是否展示确认按钮",
497
+ "name": "columns-placeholder",
498
+ "default": "`[]`",
499
+ "description": "列占位提示文字",
794
500
  "value": {
795
- "type": "boolean",
501
+ "type": "string[]",
796
502
  "kind": "expression"
797
503
  }
798
504
  },
799
505
  {
800
- "name": "readonly",
506
+ "name": "loading",
801
507
  "default": "`false`",
802
- "description": "是否为只读状态,只读状态下不能选择日期",
508
+ "description": "是否显示加载状态",
803
509
  "value": {
804
510
  "type": "boolean",
805
511
  "kind": "expression"
806
512
  }
807
513
  },
808
514
  {
809
- "name": "confirm-text",
810
- "default": "`确定`",
811
- "description": "确认按钮的文字",
812
- "value": {
813
- "type": "string",
814
- "kind": "expression"
815
- }
816
- },
817
- {
818
- "name": "confirm-disabled-text",
819
- "default": "`确定`",
820
- "description": "确认按钮处于禁用状态时的文字",
821
- "value": {
822
- "type": "string",
823
- "kind": "expression"
824
- }
825
- },
826
- {
827
- "name": "first-day-of-week",
828
- "default": "`0`",
829
- "description": "设置周起始日",
830
- "value": {
831
- "type": "0-6",
832
- "kind": "expression"
833
- }
834
- }
835
- ]
836
- },
837
- {
838
- "name": "van-poppable",
839
- "slots": [],
840
- "events": [],
841
- "attributes": [
842
- {
843
- "name": "v-model",
515
+ "name": "readonly",
844
516
  "default": "`false`",
845
- "description": "是否显示日历弹窗",
846
- "value": {
847
- "type": "boolean",
848
- "kind": "expression"
849
- }
850
- },
851
- {
852
- "name": "position",
853
- "default": "`bottom`",
854
- "description": "弹出位置,可选值为 `top` `right` `left`",
855
- "value": {
856
- "type": "string",
857
- "kind": "expression"
858
- }
859
- },
860
- {
861
- "name": "round",
862
- "default": "`true`",
863
- "description": "是否显示圆角弹窗",
864
- "value": {
865
- "type": "boolean",
866
- "kind": "expression"
867
- }
868
- },
869
- {
870
- "name": "close-on-popstate",
871
- "default": "`true`",
872
- "description": "是否在页面回退时自动关闭",
873
- "value": {
874
- "type": "boolean",
875
- "kind": "expression"
876
- }
877
- },
878
- {
879
- "name": "close-on-click-overlay",
880
- "default": "`true`",
881
- "description": "是否在点击遮罩层后关闭",
517
+ "description": "是否为只读状态,只读状态下无法切换选项",
882
518
  "value": {
883
519
  "type": "boolean",
884
520
  "kind": "expression"
885
521
  }
886
522
  },
887
523
  {
888
- "name": "safe-area-inset-bottom",
889
- "default": "`true`",
890
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
524
+ "name": "item-height",
525
+ "default": "`44`",
526
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
891
527
  "value": {
892
- "type": "boolean",
528
+ "type": "number | string",
893
529
  "kind": "expression"
894
530
  }
895
531
  },
896
532
  {
897
- "name": "get-container",
898
- "default": "-",
899
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
900
- "value": {
901
- "type": "string | () => Element",
902
- "kind": "expression"
903
- }
904
- }
905
- ]
906
- },
907
- {
908
- "name": "van-range",
909
- "slots": [],
910
- "events": [],
911
- "attributes": [
912
- {
913
- "name": "max-range",
914
- "default": "无限制",
915
- "description": "日期区间最多可选天数",
533
+ "name": "columns-num",
534
+ "default": "`3`",
535
+ "description": "显示列数,3-省市区,2-省市,1-省",
916
536
  "value": {
917
537
  "type": "number | string",
918
538
  "kind": "expression"
919
539
  }
920
540
  },
921
541
  {
922
- "name": "range-prompt",
923
- "default": "`选择天数不能超过 xx 天`",
924
- "description": "范围选择超过最多可选天数时的提示文案",
542
+ "name": "visible-item-count",
543
+ "default": "`6`",
544
+ "description": "可见的选项个数",
925
545
  "value": {
926
- "type": "string",
546
+ "type": "number | string",
927
547
  "kind": "expression"
928
548
  }
929
549
  },
930
550
  {
931
- "name": "allow-same-day",
932
- "default": "`false`",
933
- "description": "是否允许日期范围的起止时间为同一天",
934
- "value": {
935
- "type": "boolean",
936
- "kind": "expression"
937
- }
938
- }
939
- ]
940
- },
941
- {
942
- "name": "van-multiple",
943
- "slots": [],
944
- "events": [],
945
- "attributes": [
946
- {
947
- "name": "max-range",
948
- "default": "无限制",
949
- "description": "日期最多可选天数",
551
+ "name": "swipe-duration",
552
+ "default": "`1000`",
553
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
950
554
  "value": {
951
555
  "type": "number | string",
952
556
  "kind": "expression"
953
557
  }
954
558
  },
955
559
  {
956
- "name": "range-prompt",
957
- "default": "`选择天数不能超过 xx 天`",
958
- "description": "选择超过最多可选天数时的提示文案",
560
+ "name": "is-oversea-code",
561
+ "default": "-",
562
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
959
563
  "value": {
960
- "type": "string",
564
+ "type": "() => boolean",
961
565
  "kind": "expression"
962
566
  }
963
567
  }
@@ -1191,40 +795,64 @@
1191
795
  ]
1192
796
  },
1193
797
  {
1194
- "name": "van-area",
798
+ "name": "van-calendar",
1195
799
  "slots": [
1196
800
  {
1197
801
  "name": "title",
1198
- "description": "自定义标题内容"
802
+ "description": "自定义标题"
1199
803
  },
1200
804
  {
1201
- "name": "columns-top",
1202
- "description": "自定义选项上方内容"
805
+ "name": "footer",
806
+ "description": "自定义底部区域内容"
1203
807
  },
1204
808
  {
1205
- "name": "columns-bottom",
1206
- "description": "自定义选项下方内容"
809
+ "name": "top-info",
810
+ "description": "自定义日期上方的提示信息"
811
+ },
812
+ {
813
+ "name": "bottom-info",
814
+ "description": "自定义日期下方的提示信息"
1207
815
  }
1208
816
  ],
1209
817
  "events": [
818
+ {
819
+ "name": "select",
820
+ "description": "点击并选中任意日期时触发"
821
+ },
1210
822
  {
1211
823
  "name": "confirm",
1212
- "description": "点击右上方完成按钮"
824
+ "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
1213
825
  },
1214
826
  {
1215
- "name": "cancel",
1216
- "description": "点击取消按钮时"
827
+ "name": "open",
828
+ "description": "打开弹出层时触发"
1217
829
  },
1218
830
  {
1219
- "name": "change",
1220
- "description": "选项改变时触发"
831
+ "name": "close",
832
+ "description": "关闭弹出层时触发"
833
+ },
834
+ {
835
+ "name": "opened",
836
+ "description": "打开弹出层且动画结束后触发"
837
+ },
838
+ {
839
+ "name": "closed",
840
+ "description": "关闭弹出层且动画结束后触发"
841
+ },
842
+ {
843
+ "name": "unselect",
844
+ "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
845
+ },
846
+ {
847
+ "name": "month-show",
848
+ "description": "当某个月份进入可视区域时触发"
1221
849
  }
1222
850
  ],
1223
851
  "attributes": [
1224
852
  {
1225
- "name": "value",
1226
- "default": "-",
1227
- "description": "当前选中的省市区`code`",
853
+ "name": "type",
854
+ "default": "`single`",
855
+ "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
1228
856
  "value": {
1229
857
  "type": "string",
1230
858
  "kind": "expression"
@@ -1232,53 +860,116 @@
1232
860
  },
1233
861
  {
1234
862
  "name": "title",
1235
- "default": "-",
1236
- "description": "顶部栏标题",
863
+ "default": "`日期选择`",
864
+ "description": "日历标题",
1237
865
  "value": {
1238
866
  "type": "string",
1239
867
  "kind": "expression"
1240
868
  }
1241
869
  },
1242
870
  {
1243
- "name": "confirm-button-text",
1244
- "default": "`确认`",
1245
- "description": "确认按钮文字",
871
+ "name": "color",
872
+ "default": "`#ee0a24`",
873
+ "description": "主题色,对底部按钮和选中日期生效",
1246
874
  "value": {
1247
875
  "type": "string",
1248
876
  "kind": "expression"
1249
877
  }
1250
878
  },
1251
879
  {
1252
- "name": "cancel-button-text",
1253
- "default": "`取消`",
1254
- "description": "取消按钮文字",
880
+ "name": "min-date",
881
+ "default": "当前日期",
882
+ "description": "可选择的最小日期",
1255
883
  "value": {
1256
- "type": "string",
884
+ "type": "Date",
1257
885
  "kind": "expression"
1258
886
  }
1259
887
  },
1260
888
  {
1261
- "name": "area-list",
889
+ "name": "max-date",
890
+ "default": "当前日期的六个月后",
891
+ "description": "可选择的最大日期",
892
+ "value": {
893
+ "type": "Date",
894
+ "kind": "expression"
895
+ }
896
+ },
897
+ {
898
+ "name": "default-date",
899
+ "default": "null_",
900
+ "description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
901
+ "value": {
902
+ "type": "Date | Date[] \\",
903
+ "kind": "expression"
904
+ }
905
+ },
906
+ {
907
+ "name": "row-height",
908
+ "default": "`64`",
909
+ "description": "日期行高",
910
+ "value": {
911
+ "type": "number | string",
912
+ "kind": "expression"
913
+ }
914
+ },
915
+ {
916
+ "name": "formatter",
1262
917
  "default": "-",
1263
- "description": "省市区数据,格式见下方",
918
+ "description": "日期格式化函数",
1264
919
  "value": {
1265
- "type": "object",
920
+ "type": "(day: Day) => Day",
1266
921
  "kind": "expression"
1267
922
  }
1268
923
  },
1269
924
  {
1270
- "name": "columns-placeholder",
1271
- "default": "`[]`",
1272
- "description": "列占位提示文字",
925
+ "name": "poppable",
926
+ "default": "`true`",
927
+ "description": "是否以弹层的形式展示日历",
1273
928
  "value": {
1274
- "type": "string[]",
929
+ "type": "boolean",
1275
930
  "kind": "expression"
1276
931
  }
1277
932
  },
1278
933
  {
1279
- "name": "loading",
1280
- "default": "`false`",
1281
- "description": "是否显示加载状态",
934
+ "name": "lazy-render",
935
+ "default": "`true`",
936
+ "description": "是否只渲染可视区域的内容",
937
+ "value": {
938
+ "type": "boolean",
939
+ "kind": "expression"
940
+ }
941
+ },
942
+ {
943
+ "name": "show-mark",
944
+ "default": "`true`",
945
+ "description": "是否显示月份背景水印",
946
+ "value": {
947
+ "type": "boolean",
948
+ "kind": "expression"
949
+ }
950
+ },
951
+ {
952
+ "name": "show-title",
953
+ "default": "`true`",
954
+ "description": "是否展示日历标题",
955
+ "value": {
956
+ "type": "boolean",
957
+ "kind": "expression"
958
+ }
959
+ },
960
+ {
961
+ "name": "show-subtitle",
962
+ "default": "`true`",
963
+ "description": "是否展示日历副标题(年月)",
964
+ "value": {
965
+ "type": "boolean",
966
+ "kind": "expression"
967
+ }
968
+ },
969
+ {
970
+ "name": "show-confirm",
971
+ "default": "`true`",
972
+ "description": "是否展示确认按钮",
1282
973
  "value": {
1283
974
  "type": "boolean",
1284
975
  "kind": "expression"
@@ -1287,54 +978,165 @@
1287
978
  {
1288
979
  "name": "readonly",
1289
980
  "default": "`false`",
1290
- "description": "是否为只读状态,只读状态下无法切换选项",
981
+ "description": "是否为只读状态,只读状态下不能选择日期",
1291
982
  "value": {
1292
983
  "type": "boolean",
1293
984
  "kind": "expression"
1294
985
  }
1295
986
  },
1296
987
  {
1297
- "name": "item-height",
1298
- "default": "`44`",
1299
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
988
+ "name": "confirm-text",
989
+ "default": "`确定`",
990
+ "description": "确认按钮的文字",
991
+ "value": {
992
+ "type": "string",
993
+ "kind": "expression"
994
+ }
995
+ },
996
+ {
997
+ "name": "confirm-disabled-text",
998
+ "default": "`确定`",
999
+ "description": "确认按钮处于禁用状态时的文字",
1000
+ "value": {
1001
+ "type": "string",
1002
+ "kind": "expression"
1003
+ }
1004
+ },
1005
+ {
1006
+ "name": "first-day-of-week",
1007
+ "default": "`0`",
1008
+ "description": "设置周起始日",
1009
+ "value": {
1010
+ "type": "0-6",
1011
+ "kind": "expression"
1012
+ }
1013
+ }
1014
+ ]
1015
+ },
1016
+ {
1017
+ "name": "van-poppable",
1018
+ "slots": [],
1019
+ "events": [],
1020
+ "attributes": [
1021
+ {
1022
+ "name": "v-model",
1023
+ "default": "`false`",
1024
+ "description": "是否显示日历弹窗",
1025
+ "value": {
1026
+ "type": "boolean",
1027
+ "kind": "expression"
1028
+ }
1029
+ },
1030
+ {
1031
+ "name": "position",
1032
+ "default": "`bottom`",
1033
+ "description": "弹出位置,可选值为 `top` `right` `left`",
1034
+ "value": {
1035
+ "type": "string",
1036
+ "kind": "expression"
1037
+ }
1038
+ },
1039
+ {
1040
+ "name": "round",
1041
+ "default": "`true`",
1042
+ "description": "是否显示圆角弹窗",
1043
+ "value": {
1044
+ "type": "boolean",
1045
+ "kind": "expression"
1046
+ }
1047
+ },
1048
+ {
1049
+ "name": "close-on-popstate",
1050
+ "default": "`true`",
1051
+ "description": "是否在页面回退时自动关闭",
1052
+ "value": {
1053
+ "type": "boolean",
1054
+ "kind": "expression"
1055
+ }
1056
+ },
1057
+ {
1058
+ "name": "close-on-click-overlay",
1059
+ "default": "`true`",
1060
+ "description": "是否在点击遮罩层后关闭",
1061
+ "value": {
1062
+ "type": "boolean",
1063
+ "kind": "expression"
1064
+ }
1065
+ },
1066
+ {
1067
+ "name": "safe-area-inset-bottom",
1068
+ "default": "`true`",
1069
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1070
+ "value": {
1071
+ "type": "boolean",
1072
+ "kind": "expression"
1073
+ }
1074
+ },
1075
+ {
1076
+ "name": "get-container",
1077
+ "default": "-",
1078
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
1079
+ "value": {
1080
+ "type": "string | () => Element",
1081
+ "kind": "expression"
1082
+ }
1083
+ }
1084
+ ]
1085
+ },
1086
+ {
1087
+ "name": "van-range",
1088
+ "slots": [],
1089
+ "events": [],
1090
+ "attributes": [
1091
+ {
1092
+ "name": "max-range",
1093
+ "default": "无限制",
1094
+ "description": "日期区间最多可选天数",
1300
1095
  "value": {
1301
1096
  "type": "number | string",
1302
1097
  "kind": "expression"
1303
1098
  }
1304
1099
  },
1305
1100
  {
1306
- "name": "columns-num",
1307
- "default": "`3`",
1308
- "description": "显示列数,3-省市区,2-省市,1-省",
1101
+ "name": "range-prompt",
1102
+ "default": "`选择天数不能超过 xx 天`",
1103
+ "description": "范围选择超过最多可选天数时的提示文案",
1309
1104
  "value": {
1310
- "type": "number | string",
1105
+ "type": "string",
1311
1106
  "kind": "expression"
1312
1107
  }
1313
1108
  },
1314
1109
  {
1315
- "name": "visible-item-count",
1316
- "default": "`6`",
1317
- "description": "可见的选项个数",
1110
+ "name": "allow-same-day",
1111
+ "default": "`false`",
1112
+ "description": "是否允许日期范围的起止时间为同一天",
1318
1113
  "value": {
1319
- "type": "number | string",
1114
+ "type": "boolean",
1320
1115
  "kind": "expression"
1321
1116
  }
1322
- },
1117
+ }
1118
+ ]
1119
+ },
1120
+ {
1121
+ "name": "van-multiple",
1122
+ "slots": [],
1123
+ "events": [],
1124
+ "attributes": [
1323
1125
  {
1324
- "name": "swipe-duration",
1325
- "default": "`1000`",
1326
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
1126
+ "name": "max-range",
1127
+ "default": "无限制",
1128
+ "description": "日期最多可选天数",
1327
1129
  "value": {
1328
1130
  "type": "number | string",
1329
1131
  "kind": "expression"
1330
1132
  }
1331
1133
  },
1332
1134
  {
1333
- "name": "is-oversea-code",
1334
- "default": "-",
1335
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
1135
+ "name": "range-prompt",
1136
+ "default": "`选择天数不能超过 xx 天`",
1137
+ "description": "选择超过最多可选天数时的提示文案",
1336
1138
  "value": {
1337
- "type": "() => boolean",
1139
+ "type": "string",
1338
1140
  "kind": "expression"
1339
1141
  }
1340
1142
  }
@@ -1834,6 +1636,204 @@
1834
1636
  }
1835
1637
  ]
1836
1638
  },
1639
+ {
1640
+ "name": "van-action-sheet",
1641
+ "slots": [
1642
+ {
1643
+ "name": "default",
1644
+ "description": "自定义面板的展示内容"
1645
+ },
1646
+ {
1647
+ "name": "description",
1648
+ "description": "自定义描述文案"
1649
+ }
1650
+ ],
1651
+ "events": [
1652
+ {
1653
+ "name": "select",
1654
+ "description": "点击选项时触发,禁用或加载状态下不会触发"
1655
+ },
1656
+ {
1657
+ "name": "cancel",
1658
+ "description": "点击取消按钮时触发"
1659
+ },
1660
+ {
1661
+ "name": "open",
1662
+ "description": "打开面板时触发"
1663
+ },
1664
+ {
1665
+ "name": "close",
1666
+ "description": "关闭面板时触发"
1667
+ },
1668
+ {
1669
+ "name": "opened",
1670
+ "description": "打开面板且动画结束后触发"
1671
+ },
1672
+ {
1673
+ "name": "closed",
1674
+ "description": "关闭面板且动画结束后触发"
1675
+ },
1676
+ {
1677
+ "name": "click-overlay",
1678
+ "description": "点击遮罩层时触发"
1679
+ }
1680
+ ],
1681
+ "attributes": [
1682
+ {
1683
+ "name": "v-model (value)",
1684
+ "default": "`false`",
1685
+ "description": "是否显示动作面板",
1686
+ "value": {
1687
+ "type": "boolean",
1688
+ "kind": "expression"
1689
+ }
1690
+ },
1691
+ {
1692
+ "name": "actions",
1693
+ "default": "`[]`",
1694
+ "description": "面板选项列表",
1695
+ "value": {
1696
+ "type": "Action[]",
1697
+ "kind": "expression"
1698
+ }
1699
+ },
1700
+ {
1701
+ "name": "title",
1702
+ "default": "-",
1703
+ "description": "顶部标题",
1704
+ "value": {
1705
+ "type": "string",
1706
+ "kind": "expression"
1707
+ }
1708
+ },
1709
+ {
1710
+ "name": "cancel-text",
1711
+ "default": "-",
1712
+ "description": "取消按钮文字",
1713
+ "value": {
1714
+ "type": "string",
1715
+ "kind": "expression"
1716
+ }
1717
+ },
1718
+ {
1719
+ "name": "description",
1720
+ "default": "-",
1721
+ "description": "选项上方的描述信息",
1722
+ "value": {
1723
+ "type": "string",
1724
+ "kind": "expression"
1725
+ }
1726
+ },
1727
+ {
1728
+ "name": "closeable",
1729
+ "default": "`true`",
1730
+ "description": "是否显示关闭图标",
1731
+ "value": {
1732
+ "type": "boolean",
1733
+ "kind": "expression"
1734
+ }
1735
+ },
1736
+ {
1737
+ "name": "close-icon",
1738
+ "default": "`cross`",
1739
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
1740
+ "value": {
1741
+ "type": "string",
1742
+ "kind": "expression"
1743
+ }
1744
+ },
1745
+ {
1746
+ "name": "duration",
1747
+ "default": "`0.3`",
1748
+ "description": "动画时长,单位秒",
1749
+ "value": {
1750
+ "type": "number | string",
1751
+ "kind": "expression"
1752
+ }
1753
+ },
1754
+ {
1755
+ "name": "round",
1756
+ "default": "`true`",
1757
+ "description": "是否显示圆角",
1758
+ "value": {
1759
+ "type": "boolean",
1760
+ "kind": "expression"
1761
+ }
1762
+ },
1763
+ {
1764
+ "name": "overlay",
1765
+ "default": "`true`",
1766
+ "description": "是否显示遮罩层",
1767
+ "value": {
1768
+ "type": "boolean",
1769
+ "kind": "expression"
1770
+ }
1771
+ },
1772
+ {
1773
+ "name": "lock-scroll",
1774
+ "default": "`true`",
1775
+ "description": "是否锁定背景滚动",
1776
+ "value": {
1777
+ "type": "boolean",
1778
+ "kind": "expression"
1779
+ }
1780
+ },
1781
+ {
1782
+ "name": "lazy-render",
1783
+ "default": "`true`",
1784
+ "description": "是否在显示弹层时才渲染节点",
1785
+ "value": {
1786
+ "type": "boolean",
1787
+ "kind": "expression"
1788
+ }
1789
+ },
1790
+ {
1791
+ "name": "close-on-popstate",
1792
+ "default": "`false`",
1793
+ "description": "是否在页面回退时自动关闭",
1794
+ "value": {
1795
+ "type": "boolean",
1796
+ "kind": "expression"
1797
+ }
1798
+ },
1799
+ {
1800
+ "name": "close-on-click-action",
1801
+ "default": "`false`",
1802
+ "description": "是否在点击选项后关闭",
1803
+ "value": {
1804
+ "type": "boolean",
1805
+ "kind": "expression"
1806
+ }
1807
+ },
1808
+ {
1809
+ "name": "close-on-click-overlay",
1810
+ "default": "`true`",
1811
+ "description": "是否在点击遮罩层后关闭",
1812
+ "value": {
1813
+ "type": "boolean",
1814
+ "kind": "expression"
1815
+ }
1816
+ },
1817
+ {
1818
+ "name": "safe-area-inset-bottom",
1819
+ "default": "`true`",
1820
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1821
+ "value": {
1822
+ "type": "boolean",
1823
+ "kind": "expression"
1824
+ }
1825
+ },
1826
+ {
1827
+ "name": "get-container",
1828
+ "default": "-",
1829
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
1830
+ "value": {
1831
+ "type": "string | () => Element",
1832
+ "kind": "expression"
1833
+ }
1834
+ }
1835
+ ]
1836
+ },
1837
1837
  {
1838
1838
  "name": "van-checkbox",
1839
1839
  "slots": [
@@ -4932,6 +4932,15 @@
4932
4932
  "kind": "expression"
4933
4933
  }
4934
4934
  },
4935
+ {
4936
+ "name": "overlay-style",
4937
+ "default": "-",
4938
+ "description": "自定义遮罩层样式",
4939
+ "value": {
4940
+ "type": "object",
4941
+ "kind": "expression"
4942
+ }
4943
+ },
4935
4944
  {
4936
4945
  "name": "get-container",
4937
4946
  "default": "-",
@@ -7830,6 +7839,14 @@
7830
7839
  {
7831
7840
  "name": "button",
7832
7841
  "description": "自定义滑动按钮"
7842
+ },
7843
+ {
7844
+ "name": "left-button",
7845
+ "description": "自定义左侧滑块按钮(双滑块模式下)"
7846
+ },
7847
+ {
7848
+ "name": "right-button",
7849
+ "description": "自定义右侧滑块按钮(双滑块模式下)"
7833
7850
  }
7834
7851
  ],
7835
7852
  "events": [