vant 2.12.39 → 2.12.40

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,10 +2,208 @@
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.39",
5
+ "version": "2.12.40",
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
+ },
9
207
  {
10
208
  "name": "van-address-edit",
11
209
  "slots": [
@@ -418,40 +616,64 @@
418
616
  ]
419
617
  },
420
618
  {
421
- "name": "van-area",
619
+ "name": "van-calendar",
422
620
  "slots": [
423
621
  {
424
622
  "name": "title",
425
- "description": "自定义标题内容"
623
+ "description": "自定义标题"
426
624
  },
427
625
  {
428
- "name": "columns-top",
429
- "description": "自定义选项上方内容"
626
+ "name": "footer",
627
+ "description": "自定义底部区域内容"
430
628
  },
431
629
  {
432
- "name": "columns-bottom",
433
- "description": "自定义选项下方内容"
630
+ "name": "top-info",
631
+ "description": "自定义日期上方的提示信息"
632
+ },
633
+ {
634
+ "name": "bottom-info",
635
+ "description": "自定义日期下方的提示信息"
434
636
  }
435
637
  ],
436
638
  "events": [
639
+ {
640
+ "name": "select",
641
+ "description": "点击并选中任意日期时触发"
642
+ },
437
643
  {
438
644
  "name": "confirm",
439
- "description": "点击右上方完成按钮"
645
+ "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
440
646
  },
441
647
  {
442
- "name": "cancel",
443
- "description": "点击取消按钮时"
648
+ "name": "open",
649
+ "description": "打开弹出层时触发"
444
650
  },
445
651
  {
446
- "name": "change",
447
- "description": "选项改变时触发"
652
+ "name": "close",
653
+ "description": "关闭弹出层时触发"
654
+ },
655
+ {
656
+ "name": "opened",
657
+ "description": "打开弹出层且动画结束后触发"
658
+ },
659
+ {
660
+ "name": "closed",
661
+ "description": "关闭弹出层且动画结束后触发"
662
+ },
663
+ {
664
+ "name": "unselect",
665
+ "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
666
+ },
667
+ {
668
+ "name": "month-show",
669
+ "description": "当某个月份进入可视区域时触发"
448
670
  }
449
671
  ],
450
672
  "attributes": [
451
673
  {
452
- "name": "value",
453
- "default": "-",
454
- "description": "当前选中的省市区`code`",
674
+ "name": "type",
675
+ "default": "`single`",
676
+ "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
455
677
  "value": {
456
678
  "type": "string",
457
679
  "kind": "expression"
@@ -459,409 +681,8 @@
459
681
  },
460
682
  {
461
683
  "name": "title",
462
- "default": "-",
463
- "description": "顶部栏标题",
464
- "value": {
465
- "type": "string",
466
- "kind": "expression"
467
- }
468
- },
469
- {
470
- "name": "confirm-button-text",
471
- "default": "`确认`",
472
- "description": "确认按钮文字",
473
- "value": {
474
- "type": "string",
475
- "kind": "expression"
476
- }
477
- },
478
- {
479
- "name": "cancel-button-text",
480
- "default": "`取消`",
481
- "description": "取消按钮文字",
482
- "value": {
483
- "type": "string",
484
- "kind": "expression"
485
- }
486
- },
487
- {
488
- "name": "area-list",
489
- "default": "-",
490
- "description": "省市区数据,格式见下方",
491
- "value": {
492
- "type": "object",
493
- "kind": "expression"
494
- }
495
- },
496
- {
497
- "name": "columns-placeholder",
498
- "default": "`[]`",
499
- "description": "列占位提示文字",
500
- "value": {
501
- "type": "string[]",
502
- "kind": "expression"
503
- }
504
- },
505
- {
506
- "name": "loading",
507
- "default": "`false`",
508
- "description": "是否显示加载状态",
509
- "value": {
510
- "type": "boolean",
511
- "kind": "expression"
512
- }
513
- },
514
- {
515
- "name": "readonly",
516
- "default": "`false`",
517
- "description": "是否为只读状态,只读状态下无法切换选项",
518
- "value": {
519
- "type": "boolean",
520
- "kind": "expression"
521
- }
522
- },
523
- {
524
- "name": "item-height",
525
- "default": "`44`",
526
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
527
- "value": {
528
- "type": "number | string",
529
- "kind": "expression"
530
- }
531
- },
532
- {
533
- "name": "columns-num",
534
- "default": "`3`",
535
- "description": "显示列数,3-省市区,2-省市,1-省",
536
- "value": {
537
- "type": "number | string",
538
- "kind": "expression"
539
- }
540
- },
541
- {
542
- "name": "visible-item-count",
543
- "default": "`6`",
544
- "description": "可见的选项个数",
545
- "value": {
546
- "type": "number | string",
547
- "kind": "expression"
548
- }
549
- },
550
- {
551
- "name": "swipe-duration",
552
- "default": "`1000`",
553
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
554
- "value": {
555
- "type": "number | string",
556
- "kind": "expression"
557
- }
558
- },
559
- {
560
- "name": "is-oversea-code",
561
- "default": "-",
562
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
563
- "value": {
564
- "type": "() => boolean",
565
- "kind": "expression"
566
- }
567
- }
568
- ]
569
- },
570
- {
571
- "name": "van-button",
572
- "slots": [
573
- {
574
- "name": "default",
575
- "description": "按钮内容"
576
- },
577
- {
578
- "name": "icon",
579
- "description": "自定义图标"
580
- },
581
- {
582
- "name": "loading",
583
- "description": "自定义加载图标"
584
- }
585
- ],
586
- "events": [
587
- {
588
- "name": "click",
589
- "description": "点击按钮,且按钮状态不为加载或禁用时触发"
590
- },
591
- {
592
- "name": "touchstart",
593
- "description": "开始触摸按钮时触发"
594
- }
595
- ],
596
- "attributes": [
597
- {
598
- "name": "type",
599
- "default": "`default`",
600
- "description": "类型,可选值为 `primary` `info` `warning` `danger`",
601
- "value": {
602
- "type": "string",
603
- "kind": "expression"
604
- }
605
- },
606
- {
607
- "name": "size",
608
- "default": "`normal`",
609
- "description": "尺寸,可选值为 `large` `small` `mini`",
610
- "value": {
611
- "type": "string",
612
- "kind": "expression"
613
- }
614
- },
615
- {
616
- "name": "text",
617
- "default": "-",
618
- "description": "按钮文字",
619
- "value": {
620
- "type": "string",
621
- "kind": "expression"
622
- }
623
- },
624
- {
625
- "name": "color",
626
- "default": "-",
627
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
628
- "value": {
629
- "type": "string",
630
- "kind": "expression"
631
- }
632
- },
633
- {
634
- "name": "icon",
635
- "default": "-",
636
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
637
- "value": {
638
- "type": "string",
639
- "kind": "expression"
640
- }
641
- },
642
- {
643
- "name": "icon-prefix",
644
- "default": "`van-icon`",
645
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
646
- "value": {
647
- "type": "string",
648
- "kind": "expression"
649
- }
650
- },
651
- {
652
- "name": "icon-position",
653
- "default": "`left`",
654
- "description": "图标展示位置,可选值为 `right`",
655
- "value": {
656
- "type": "string",
657
- "kind": "expression"
658
- }
659
- },
660
- {
661
- "name": "tag",
662
- "default": "`button`",
663
- "description": "按钮根节点的 HTML 标签",
664
- "value": {
665
- "type": "string",
666
- "kind": "expression"
667
- }
668
- },
669
- {
670
- "name": "native-type",
671
- "default": "-",
672
- "description": "原生 button 标签的 type 属性",
673
- "value": {
674
- "type": "string",
675
- "kind": "expression"
676
- }
677
- },
678
- {
679
- "name": "block",
680
- "default": "`false`",
681
- "description": "是否为块级元素",
682
- "value": {
683
- "type": "boolean",
684
- "kind": "expression"
685
- }
686
- },
687
- {
688
- "name": "plain",
689
- "default": "`false`",
690
- "description": "是否为朴素按钮",
691
- "value": {
692
- "type": "boolean",
693
- "kind": "expression"
694
- }
695
- },
696
- {
697
- "name": "square",
698
- "default": "`false`",
699
- "description": "是否为方形按钮",
700
- "value": {
701
- "type": "boolean",
702
- "kind": "expression"
703
- }
704
- },
705
- {
706
- "name": "round",
707
- "default": "`false`",
708
- "description": "是否为圆形按钮",
709
- "value": {
710
- "type": "boolean",
711
- "kind": "expression"
712
- }
713
- },
714
- {
715
- "name": "disabled",
716
- "default": "`false`",
717
- "description": "是否禁用按钮",
718
- "value": {
719
- "type": "boolean",
720
- "kind": "expression"
721
- }
722
- },
723
- {
724
- "name": "hairline",
725
- "default": "`false`",
726
- "description": "是否使用 0.5px 边框",
727
- "value": {
728
- "type": "boolean",
729
- "kind": "expression"
730
- }
731
- },
732
- {
733
- "name": "loading",
734
- "default": "`false`",
735
- "description": "是否显示为加载状态",
736
- "value": {
737
- "type": "boolean",
738
- "kind": "expression"
739
- }
740
- },
741
- {
742
- "name": "loading-text",
743
- "default": "-",
744
- "description": "加载状态提示文字",
745
- "value": {
746
- "type": "string",
747
- "kind": "expression"
748
- }
749
- },
750
- {
751
- "name": "loading-type",
752
- "default": "`circular`",
753
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
754
- "value": {
755
- "type": "string",
756
- "kind": "expression"
757
- }
758
- },
759
- {
760
- "name": "loading-size",
761
- "default": "`20px`",
762
- "description": "加载图标大小",
763
- "value": {
764
- "type": "string",
765
- "kind": "expression"
766
- }
767
- },
768
- {
769
- "name": "url",
770
- "default": "-",
771
- "description": "点击后跳转的链接地址",
772
- "value": {
773
- "type": "string",
774
- "kind": "expression"
775
- }
776
- },
777
- {
778
- "name": "to",
779
- "default": "-",
780
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
781
- "value": {
782
- "type": "string | object",
783
- "kind": "expression"
784
- }
785
- },
786
- {
787
- "name": "replace",
788
- "default": "`false`",
789
- "description": "是否在跳转时替换当前页面历史",
790
- "value": {
791
- "type": "boolean",
792
- "kind": "expression"
793
- }
794
- }
795
- ]
796
- },
797
- {
798
- "name": "van-calendar",
799
- "slots": [
800
- {
801
- "name": "title",
802
- "description": "自定义标题"
803
- },
804
- {
805
- "name": "footer",
806
- "description": "自定义底部区域内容"
807
- },
808
- {
809
- "name": "top-info",
810
- "description": "自定义日期上方的提示信息"
811
- },
812
- {
813
- "name": "bottom-info",
814
- "description": "自定义日期下方的提示信息"
815
- }
816
- ],
817
- "events": [
818
- {
819
- "name": "select",
820
- "description": "点击并选中任意日期时触发"
821
- },
822
- {
823
- "name": "confirm",
824
- "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
825
- },
826
- {
827
- "name": "open",
828
- "description": "打开弹出层时触发"
829
- },
830
- {
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": "当某个月份进入可视区域时触发"
849
- }
850
- ],
851
- "attributes": [
852
- {
853
- "name": "type",
854
- "default": "`single`",
855
- "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
856
- "value": {
857
- "type": "string",
858
- "kind": "expression"
859
- }
860
- },
861
- {
862
- "name": "title",
863
- "default": "`日期选择`",
864
- "description": "日历标题",
684
+ "default": "`日期选择`",
685
+ "description": "日历标题",
865
686
  "value": {
866
687
  "type": "string",
867
688
  "kind": "expression"
@@ -1143,92 +964,150 @@
1143
964
  ]
1144
965
  },
1145
966
  {
1146
- "name": "van-cascader",
967
+ "name": "van-area",
1147
968
  "slots": [
1148
969
  {
1149
970
  "name": "title",
1150
- "description": "自定义顶部标题"
971
+ "description": "自定义标题内容"
1151
972
  },
1152
973
  {
1153
- "name": "option",
1154
- "description": "自定义选项文字"
974
+ "name": "columns-top",
975
+ "description": "自定义选项上方内容"
976
+ },
977
+ {
978
+ "name": "columns-bottom",
979
+ "description": "自定义选项下方内容"
1155
980
  }
1156
981
  ],
1157
982
  "events": [
1158
983
  {
1159
- "name": "change",
1160
- "description": "选中项变化时触发"
984
+ "name": "confirm",
985
+ "description": "点击右上方完成按钮"
1161
986
  },
1162
987
  {
1163
- "name": "finish",
1164
- "description": "全部选项选择完成后触发"
988
+ "name": "cancel",
989
+ "description": "点击取消按钮时"
1165
990
  },
1166
991
  {
1167
- "name": "close",
1168
- "description": "点击关闭图标时触发"
992
+ "name": "change",
993
+ "description": "选项改变时触发"
1169
994
  }
1170
995
  ],
1171
996
  "attributes": [
1172
997
  {
1173
- "name": "title",
998
+ "name": "value",
1174
999
  "default": "-",
1175
- "description": "顶部标题",
1000
+ "description": "当前选中的省市区`code`",
1176
1001
  "value": {
1177
1002
  "type": "string",
1178
1003
  "kind": "expression"
1179
1004
  }
1180
1005
  },
1181
1006
  {
1182
- "name": "value",
1007
+ "name": "title",
1183
1008
  "default": "-",
1184
- "description": "选中项的值",
1009
+ "description": "顶部栏标题",
1185
1010
  "value": {
1186
- "type": "string | number",
1011
+ "type": "string",
1187
1012
  "kind": "expression"
1188
1013
  }
1189
1014
  },
1190
1015
  {
1191
- "name": "options",
1192
- "default": "`[]`",
1193
- "description": "可选项数据源",
1016
+ "name": "confirm-button-text",
1017
+ "default": "`确认`",
1018
+ "description": "确认按钮文字",
1194
1019
  "value": {
1195
- "type": "Option[]",
1020
+ "type": "string",
1196
1021
  "kind": "expression"
1197
1022
  }
1198
1023
  },
1199
1024
  {
1200
- "name": "placeholder",
1201
- "default": "`请选择`",
1202
- "description": "未选中时的提示文案",
1025
+ "name": "cancel-button-text",
1026
+ "default": "`取消`",
1027
+ "description": "取消按钮文字",
1203
1028
  "value": {
1204
1029
  "type": "string",
1205
1030
  "kind": "expression"
1206
1031
  }
1207
1032
  },
1208
1033
  {
1209
- "name": "active-color",
1210
- "default": "`#ee0a24`",
1211
- "description": "选中状态的高亮颜色",
1034
+ "name": "area-list",
1035
+ "default": "-",
1036
+ "description": "省市区数据,格式见下方",
1212
1037
  "value": {
1213
- "type": "string",
1038
+ "type": "object",
1214
1039
  "kind": "expression"
1215
1040
  }
1216
1041
  },
1217
1042
  {
1218
- "name": "closeable",
1219
- "default": "`true`",
1220
- "description": "是否显示关闭图标",
1043
+ "name": "columns-placeholder",
1044
+ "default": "`[]`",
1045
+ "description": "列占位提示文字",
1046
+ "value": {
1047
+ "type": "string[]",
1048
+ "kind": "expression"
1049
+ }
1050
+ },
1051
+ {
1052
+ "name": "loading",
1053
+ "default": "`false`",
1054
+ "description": "是否显示加载状态",
1221
1055
  "value": {
1222
1056
  "type": "boolean",
1223
1057
  "kind": "expression"
1224
1058
  }
1225
1059
  },
1226
1060
  {
1227
- "name": "field-names",
1228
- "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1229
- "description": "自定义 `options` 结构中的字段",
1061
+ "name": "readonly",
1062
+ "default": "`false`",
1063
+ "description": "是否为只读状态,只读状态下无法切换选项",
1230
1064
  "value": {
1231
- "type": "object",
1065
+ "type": "boolean",
1066
+ "kind": "expression"
1067
+ }
1068
+ },
1069
+ {
1070
+ "name": "item-height",
1071
+ "default": "`44`",
1072
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
1073
+ "value": {
1074
+ "type": "number | string",
1075
+ "kind": "expression"
1076
+ }
1077
+ },
1078
+ {
1079
+ "name": "columns-num",
1080
+ "default": "`3`",
1081
+ "description": "显示列数,3-省市区,2-省市,1-省",
1082
+ "value": {
1083
+ "type": "number | string",
1084
+ "kind": "expression"
1085
+ }
1086
+ },
1087
+ {
1088
+ "name": "visible-item-count",
1089
+ "default": "`6`",
1090
+ "description": "可见的选项个数",
1091
+ "value": {
1092
+ "type": "number | string",
1093
+ "kind": "expression"
1094
+ }
1095
+ },
1096
+ {
1097
+ "name": "swipe-duration",
1098
+ "default": "`1000`",
1099
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
1100
+ "value": {
1101
+ "type": "number | string",
1102
+ "kind": "expression"
1103
+ }
1104
+ },
1105
+ {
1106
+ "name": "is-oversea-code",
1107
+ "default": "-",
1108
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
1109
+ "value": {
1110
+ "type": "() => boolean",
1232
1111
  "kind": "expression"
1233
1112
  }
1234
1113
  }
@@ -1288,107 +1167,208 @@
1288
1167
  "description": "点击时触发"
1289
1168
  },
1290
1169
  {
1291
- "name": "click-thumb",
1292
- "description": "点击自定义图片时触发"
1170
+ "name": "click-thumb",
1171
+ "description": "点击自定义图片时触发"
1172
+ }
1173
+ ],
1174
+ "attributes": [
1175
+ {
1176
+ "name": "thumb",
1177
+ "default": "-",
1178
+ "description": "左侧图片 URL",
1179
+ "value": {
1180
+ "type": "string",
1181
+ "kind": "expression"
1182
+ }
1183
+ },
1184
+ {
1185
+ "name": "title",
1186
+ "default": "-",
1187
+ "description": "标题",
1188
+ "value": {
1189
+ "type": "string",
1190
+ "kind": "expression"
1191
+ }
1192
+ },
1193
+ {
1194
+ "name": "desc",
1195
+ "default": "-",
1196
+ "description": "描述",
1197
+ "value": {
1198
+ "type": "string",
1199
+ "kind": "expression"
1200
+ }
1201
+ },
1202
+ {
1203
+ "name": "tag",
1204
+ "default": "-",
1205
+ "description": "图片角标",
1206
+ "value": {
1207
+ "type": "string",
1208
+ "kind": "expression"
1209
+ }
1210
+ },
1211
+ {
1212
+ "name": "num",
1213
+ "default": "-",
1214
+ "description": "商品数量",
1215
+ "value": {
1216
+ "type": "number | string",
1217
+ "kind": "expression"
1218
+ }
1219
+ },
1220
+ {
1221
+ "name": "price",
1222
+ "default": "-",
1223
+ "description": "商品价格",
1224
+ "value": {
1225
+ "type": "number | string",
1226
+ "kind": "expression"
1227
+ }
1228
+ },
1229
+ {
1230
+ "name": "origin-price",
1231
+ "default": "-",
1232
+ "description": "商品划线原价",
1233
+ "value": {
1234
+ "type": "number | string",
1235
+ "kind": "expression"
1236
+ }
1237
+ },
1238
+ {
1239
+ "name": "centered",
1240
+ "default": "`false`",
1241
+ "description": "内容是否垂直居中",
1242
+ "value": {
1243
+ "type": "boolean",
1244
+ "kind": "expression"
1245
+ }
1246
+ },
1247
+ {
1248
+ "name": "currency",
1249
+ "default": "`¥`",
1250
+ "description": "货币符号",
1251
+ "value": {
1252
+ "type": "string",
1253
+ "kind": "expression"
1254
+ }
1255
+ },
1256
+ {
1257
+ "name": "thumb-link",
1258
+ "default": "-",
1259
+ "description": "点击左侧图片后跳转的链接地址",
1260
+ "value": {
1261
+ "type": "string",
1262
+ "kind": "expression"
1263
+ }
1264
+ },
1265
+ {
1266
+ "name": "lazy-load",
1267
+ "default": "`false`",
1268
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1269
+ "value": {
1270
+ "type": "boolean",
1271
+ "kind": "expression"
1272
+ }
1273
+ }
1274
+ ]
1275
+ },
1276
+ {
1277
+ "name": "van-cascader",
1278
+ "slots": [
1279
+ {
1280
+ "name": "title",
1281
+ "description": "自定义顶部标题"
1282
+ },
1283
+ {
1284
+ "name": "option",
1285
+ "description": "自定义选项文字"
1286
+ }
1287
+ ],
1288
+ "events": [
1289
+ {
1290
+ "name": "change",
1291
+ "description": "选中项变化时触发"
1292
+ },
1293
+ {
1294
+ "name": "finish",
1295
+ "description": "全部选项选择完成后触发"
1296
+ },
1297
+ {
1298
+ "name": "close",
1299
+ "description": "点击关闭图标时触发"
1293
1300
  }
1294
1301
  ],
1295
1302
  "attributes": [
1296
- {
1297
- "name": "thumb",
1298
- "default": "-",
1299
- "description": "左侧图片 URL",
1300
- "value": {
1301
- "type": "string",
1302
- "kind": "expression"
1303
- }
1304
- },
1305
1303
  {
1306
1304
  "name": "title",
1307
1305
  "default": "-",
1308
- "description": "标题",
1309
- "value": {
1310
- "type": "string",
1311
- "kind": "expression"
1312
- }
1313
- },
1314
- {
1315
- "name": "desc",
1316
- "default": "-",
1317
- "description": "描述",
1306
+ "description": "顶部标题",
1318
1307
  "value": {
1319
1308
  "type": "string",
1320
1309
  "kind": "expression"
1321
1310
  }
1322
1311
  },
1323
1312
  {
1324
- "name": "tag",
1313
+ "name": "value",
1325
1314
  "default": "-",
1326
- "description": "图片角标",
1315
+ "description": "选中项的值",
1327
1316
  "value": {
1328
- "type": "string",
1317
+ "type": "string | number",
1329
1318
  "kind": "expression"
1330
1319
  }
1331
1320
  },
1332
1321
  {
1333
- "name": "num",
1334
- "default": "-",
1335
- "description": "商品数量",
1322
+ "name": "options",
1323
+ "default": "`[]`",
1324
+ "description": "可选项数据源",
1336
1325
  "value": {
1337
- "type": "number | string",
1326
+ "type": "Option[]",
1338
1327
  "kind": "expression"
1339
1328
  }
1340
1329
  },
1341
1330
  {
1342
- "name": "price",
1343
- "default": "-",
1344
- "description": "商品价格",
1331
+ "name": "placeholder",
1332
+ "default": "`请选择`",
1333
+ "description": "未选中时的提示文案",
1345
1334
  "value": {
1346
- "type": "number | string",
1335
+ "type": "string",
1347
1336
  "kind": "expression"
1348
1337
  }
1349
1338
  },
1350
1339
  {
1351
- "name": "origin-price",
1352
- "default": "-",
1353
- "description": "商品划线原价",
1340
+ "name": "active-color",
1341
+ "default": "`#ee0a24`",
1342
+ "description": "选中状态的高亮颜色",
1354
1343
  "value": {
1355
- "type": "number | string",
1344
+ "type": "string",
1356
1345
  "kind": "expression"
1357
1346
  }
1358
1347
  },
1359
1348
  {
1360
- "name": "centered",
1361
- "default": "`false`",
1362
- "description": "内容是否垂直居中",
1349
+ "name": "closeable",
1350
+ "default": "`true`",
1351
+ "description": "是否显示关闭图标",
1363
1352
  "value": {
1364
1353
  "type": "boolean",
1365
1354
  "kind": "expression"
1366
1355
  }
1367
1356
  },
1368
1357
  {
1369
- "name": "currency",
1370
- "default": "`¥`",
1371
- "description": "货币符号",
1372
- "value": {
1373
- "type": "string",
1374
- "kind": "expression"
1375
- }
1376
- },
1377
- {
1378
- "name": "thumb-link",
1379
- "default": "-",
1380
- "description": "点击左侧图片后跳转的链接地址",
1358
+ "name": "show-header",
1359
+ "default": "`true`",
1360
+ "description": "是否展示标题栏",
1381
1361
  "value": {
1382
- "type": "string",
1362
+ "type": "boolean",
1383
1363
  "kind": "expression"
1384
1364
  }
1385
1365
  },
1386
1366
  {
1387
- "name": "lazy-load",
1388
- "default": "`false`",
1389
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1367
+ "name": "field-names",
1368
+ "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1369
+ "description": "自定义 `options` 结构中的字段",
1390
1370
  "value": {
1391
- "type": "boolean",
1371
+ "type": "object",
1392
1372
  "kind": "expression"
1393
1373
  }
1394
1374
  }
@@ -1637,198 +1617,227 @@
1637
1617
  ]
1638
1618
  },
1639
1619
  {
1640
- "name": "van-action-sheet",
1620
+ "name": "van-button",
1641
1621
  "slots": [
1642
1622
  {
1643
1623
  "name": "default",
1644
- "description": "自定义面板的展示内容"
1624
+ "description": "按钮内容"
1645
1625
  },
1646
1626
  {
1647
- "name": "description",
1648
- "description": "自定义描述文案"
1627
+ "name": "icon",
1628
+ "description": "自定义图标"
1629
+ },
1630
+ {
1631
+ "name": "loading",
1632
+ "description": "自定义加载图标"
1649
1633
  }
1650
1634
  ],
1651
1635
  "events": [
1652
1636
  {
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": "关闭面板且动画结束后触发"
1637
+ "name": "click",
1638
+ "description": "点击按钮,且按钮状态不为加载或禁用时触发"
1675
1639
  },
1676
1640
  {
1677
- "name": "click-overlay",
1678
- "description": "点击遮罩层时触发"
1641
+ "name": "touchstart",
1642
+ "description": "开始触摸按钮时触发"
1679
1643
  }
1680
1644
  ],
1681
1645
  "attributes": [
1682
1646
  {
1683
- "name": "v-model (value)",
1684
- "default": "`false`",
1685
- "description": "是否显示动作面板",
1647
+ "name": "type",
1648
+ "default": "`default`",
1649
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`",
1686
1650
  "value": {
1687
- "type": "boolean",
1651
+ "type": "string",
1688
1652
  "kind": "expression"
1689
1653
  }
1690
1654
  },
1691
1655
  {
1692
- "name": "actions",
1693
- "default": "`[]`",
1694
- "description": "面板选项列表",
1656
+ "name": "size",
1657
+ "default": "`normal`",
1658
+ "description": "尺寸,可选值为 `large` `small` `mini`",
1695
1659
  "value": {
1696
- "type": "Action[]",
1660
+ "type": "string",
1697
1661
  "kind": "expression"
1698
1662
  }
1699
1663
  },
1700
1664
  {
1701
- "name": "title",
1665
+ "name": "text",
1702
1666
  "default": "-",
1703
- "description": "顶部标题",
1667
+ "description": "按钮文字",
1704
1668
  "value": {
1705
1669
  "type": "string",
1706
1670
  "kind": "expression"
1707
1671
  }
1708
1672
  },
1709
1673
  {
1710
- "name": "cancel-text",
1674
+ "name": "color",
1711
1675
  "default": "-",
1712
- "description": "取消按钮文字",
1676
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
1713
1677
  "value": {
1714
1678
  "type": "string",
1715
1679
  "kind": "expression"
1716
1680
  }
1717
1681
  },
1718
1682
  {
1719
- "name": "description",
1683
+ "name": "icon",
1720
1684
  "default": "-",
1721
- "description": "选项上方的描述信息",
1685
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
1722
1686
  "value": {
1723
1687
  "type": "string",
1724
1688
  "kind": "expression"
1725
1689
  }
1726
1690
  },
1727
1691
  {
1728
- "name": "closeable",
1729
- "default": "`true`",
1730
- "description": "是否显示关闭图标",
1692
+ "name": "icon-prefix",
1693
+ "default": "`van-icon`",
1694
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
1731
1695
  "value": {
1732
- "type": "boolean",
1696
+ "type": "string",
1733
1697
  "kind": "expression"
1734
1698
  }
1735
1699
  },
1736
1700
  {
1737
- "name": "close-icon",
1738
- "default": "`cross`",
1739
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
1701
+ "name": "icon-position",
1702
+ "default": "`left`",
1703
+ "description": "图标展示位置,可选值为 `right`",
1740
1704
  "value": {
1741
1705
  "type": "string",
1742
1706
  "kind": "expression"
1743
1707
  }
1744
1708
  },
1745
1709
  {
1746
- "name": "duration",
1747
- "default": "`0.3`",
1748
- "description": "动画时长,单位秒",
1710
+ "name": "tag",
1711
+ "default": "`button`",
1712
+ "description": "按钮根节点的 HTML 标签",
1749
1713
  "value": {
1750
- "type": "number | string",
1714
+ "type": "string",
1751
1715
  "kind": "expression"
1752
1716
  }
1753
1717
  },
1754
1718
  {
1755
- "name": "round",
1756
- "default": "`true`",
1757
- "description": "是否显示圆角",
1719
+ "name": "native-type",
1720
+ "default": "-",
1721
+ "description": "原生 button 标签的 type 属性",
1722
+ "value": {
1723
+ "type": "string",
1724
+ "kind": "expression"
1725
+ }
1726
+ },
1727
+ {
1728
+ "name": "block",
1729
+ "default": "`false`",
1730
+ "description": "是否为块级元素",
1758
1731
  "value": {
1759
1732
  "type": "boolean",
1760
1733
  "kind": "expression"
1761
1734
  }
1762
1735
  },
1763
1736
  {
1764
- "name": "overlay",
1765
- "default": "`true`",
1766
- "description": "是否显示遮罩层",
1737
+ "name": "plain",
1738
+ "default": "`false`",
1739
+ "description": "是否为朴素按钮",
1767
1740
  "value": {
1768
1741
  "type": "boolean",
1769
1742
  "kind": "expression"
1770
1743
  }
1771
1744
  },
1772
1745
  {
1773
- "name": "lock-scroll",
1774
- "default": "`true`",
1775
- "description": "是否锁定背景滚动",
1746
+ "name": "square",
1747
+ "default": "`false`",
1748
+ "description": "是否为方形按钮",
1776
1749
  "value": {
1777
1750
  "type": "boolean",
1778
1751
  "kind": "expression"
1779
1752
  }
1780
1753
  },
1781
1754
  {
1782
- "name": "lazy-render",
1783
- "default": "`true`",
1784
- "description": "是否在显示弹层时才渲染节点",
1755
+ "name": "round",
1756
+ "default": "`false`",
1757
+ "description": "是否为圆形按钮",
1785
1758
  "value": {
1786
1759
  "type": "boolean",
1787
1760
  "kind": "expression"
1788
1761
  }
1789
1762
  },
1790
1763
  {
1791
- "name": "close-on-popstate",
1764
+ "name": "disabled",
1792
1765
  "default": "`false`",
1793
- "description": "是否在页面回退时自动关闭",
1766
+ "description": "是否禁用按钮",
1794
1767
  "value": {
1795
1768
  "type": "boolean",
1796
1769
  "kind": "expression"
1797
1770
  }
1798
1771
  },
1799
1772
  {
1800
- "name": "close-on-click-action",
1773
+ "name": "hairline",
1801
1774
  "default": "`false`",
1802
- "description": "是否在点击选项后关闭",
1775
+ "description": "是否使用 0.5px 边框",
1803
1776
  "value": {
1804
1777
  "type": "boolean",
1805
1778
  "kind": "expression"
1806
1779
  }
1807
1780
  },
1808
1781
  {
1809
- "name": "close-on-click-overlay",
1810
- "default": "`true`",
1811
- "description": "是否在点击遮罩层后关闭",
1782
+ "name": "loading",
1783
+ "default": "`false`",
1784
+ "description": "是否显示为加载状态",
1785
+ "value": {
1786
+ "type": "boolean",
1787
+ "kind": "expression"
1788
+ }
1789
+ },
1790
+ {
1791
+ "name": "loading-text",
1792
+ "default": "-",
1793
+ "description": "加载状态提示文字",
1794
+ "value": {
1795
+ "type": "string",
1796
+ "kind": "expression"
1797
+ }
1798
+ },
1799
+ {
1800
+ "name": "loading-type",
1801
+ "default": "`circular`",
1802
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
1803
+ "value": {
1804
+ "type": "string",
1805
+ "kind": "expression"
1806
+ }
1807
+ },
1808
+ {
1809
+ "name": "loading-size",
1810
+ "default": "`20px`",
1811
+ "description": "加载图标大小",
1812
+ "value": {
1813
+ "type": "string",
1814
+ "kind": "expression"
1815
+ }
1816
+ },
1817
+ {
1818
+ "name": "url",
1819
+ "default": "-",
1820
+ "description": "点击后跳转的链接地址",
1812
1821
  "value": {
1813
- "type": "boolean",
1822
+ "type": "string",
1814
1823
  "kind": "expression"
1815
1824
  }
1816
1825
  },
1817
1826
  {
1818
- "name": "safe-area-inset-bottom",
1819
- "default": "`true`",
1820
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1827
+ "name": "to",
1828
+ "default": "-",
1829
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1821
1830
  "value": {
1822
- "type": "boolean",
1831
+ "type": "string | object",
1823
1832
  "kind": "expression"
1824
1833
  }
1825
1834
  },
1826
1835
  {
1827
- "name": "get-container",
1828
- "default": "-",
1829
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
1836
+ "name": "replace",
1837
+ "default": "`false`",
1838
+ "description": "是否在跳转时替换当前页面历史",
1830
1839
  "value": {
1831
- "type": "string | () => Element",
1840
+ "type": "boolean",
1832
1841
  "kind": "expression"
1833
1842
  }
1834
1843
  }
@@ -2847,264 +2856,30 @@
2847
2856
  "kind": "expression"
2848
2857
  }
2849
2858
  },
2850
- {
2851
- "name": "currency",
2852
- "default": "`¥`",
2853
- "description": "货币符号",
2854
- "value": {
2855
- "type": "string",
2856
- "kind": "expression"
2857
- }
2858
- },
2859
- {
2860
- "name": "empty-image",
2861
- "default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
2862
- "description": "列表为空时的占位图",
2863
- "value": {
2864
- "type": "string",
2865
- "kind": "expression"
2866
- }
2867
- },
2868
- {
2869
- "name": "show-count",
2870
- "default": "`true`",
2871
- "description": "是否展示可用 / 不可用数量",
2872
- "value": {
2873
- "type": "boolean",
2874
- "kind": "expression"
2875
- }
2876
- }
2877
- ]
2878
- },
2879
- {
2880
- "name": "van-datetime-picker",
2881
- "slots": [
2882
- {
2883
- "name": "default",
2884
- "description": "自定义整个顶部栏的内容"
2885
- },
2886
- {
2887
- "name": "title",
2888
- "description": "自定义标题内容"
2889
- },
2890
- {
2891
- "name": "confirm",
2892
- "description": "自定义确认按钮内容"
2893
- },
2894
- {
2895
- "name": "cancel",
2896
- "description": "自定义取消按钮内容"
2897
- },
2898
- {
2899
- "name": "option",
2900
- "description": "自定义选项内容"
2901
- },
2902
- {
2903
- "name": "columns-top",
2904
- "description": "自定义选项上方内容"
2905
- },
2906
- {
2907
- "name": "columns-bottom",
2908
- "description": "自定义选项下方内容"
2909
- }
2910
- ],
2911
- "events": [
2912
- {
2913
- "name": "change",
2914
- "description": "当值变化时触发的事件"
2915
- },
2916
- {
2917
- "name": "confirm",
2918
- "description": "点击完成按钮时触发的事件"
2919
- },
2920
- {
2921
- "name": "cancel",
2922
- "description": "点击取消按钮时触发的事件"
2923
- }
2924
- ],
2925
- "attributes": [
2926
- {
2927
- "name": "type",
2928
- "default": "`datetime`",
2929
- "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
2930
- "value": {
2931
- "type": "string",
2932
- "kind": "expression"
2933
- }
2934
- },
2935
- {
2936
- "name": "title",
2937
- "default": "`''`",
2938
- "description": "顶部栏标题",
2939
- "value": {
2940
- "type": "string",
2941
- "kind": "expression"
2942
- }
2943
- },
2944
- {
2945
- "name": "confirm-button-text",
2946
- "default": "`确认`",
2947
- "description": "确认按钮文字",
2948
- "value": {
2949
- "type": "string",
2950
- "kind": "expression"
2951
- }
2952
- },
2953
- {
2954
- "name": "cancel-button-text",
2955
- "default": "`取消`",
2956
- "description": "取消按钮文字",
2957
- "value": {
2958
- "type": "string",
2959
- "kind": "expression"
2960
- }
2961
- },
2962
- {
2963
- "name": "show-toolbar",
2964
- "default": "`true`",
2965
- "description": "是否显示顶部栏",
2966
- "value": {
2967
- "type": "boolean",
2968
- "kind": "expression"
2969
- }
2970
- },
2971
- {
2972
- "name": "loading",
2973
- "default": "`false`",
2974
- "description": "是否显示加载状态",
2975
- "value": {
2976
- "type": "boolean",
2977
- "kind": "expression"
2978
- }
2979
- },
2980
- {
2981
- "name": "readonly",
2982
- "default": "`false`",
2983
- "description": "是否为只读状态,只读状态下无法切换选项",
2984
- "value": {
2985
- "type": "boolean",
2986
- "kind": "expression"
2987
- }
2988
- },
2989
- {
2990
- "name": "filter",
2991
- "default": "-",
2992
- "description": "选项过滤函数",
2993
- "value": {
2994
- "type": "(type, vals) => vals",
2995
- "kind": "expression"
2996
- }
2997
- },
2998
- {
2999
- "name": "formatter",
3000
- "default": "-",
3001
- "description": "选项格式化函数",
3002
- "value": {
3003
- "type": "(type, val) => val",
3004
- "kind": "expression"
3005
- }
3006
- },
3007
- {
3008
- "name": "columns-order",
3009
- "default": "-",
3010
- "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
3011
- "value": {
3012
- "type": "string[]",
3013
- "kind": "expression"
3014
- }
3015
- },
3016
- {
3017
- "name": "item-height",
3018
- "default": "`44`",
3019
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
3020
- "value": {
3021
- "type": "number | string",
3022
- "kind": "expression"
3023
- }
3024
- },
3025
- {
3026
- "name": "visible-item-count",
3027
- "default": "`6`",
3028
- "description": "可见的选项个数",
3029
- "value": {
3030
- "type": "number | string",
3031
- "kind": "expression"
3032
- }
3033
- },
3034
- {
3035
- "name": "swipe-duration",
3036
- "default": "`1000`",
3037
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
3038
- "value": {
3039
- "type": "number | string",
3040
- "kind": "expression"
3041
- }
3042
- }
3043
- ]
3044
- },
3045
- {
3046
- "name": "van-date-picker",
3047
- "slots": [],
3048
- "events": [],
3049
- "attributes": [
3050
- {
3051
- "name": "min-date",
3052
- "default": "十年前",
3053
- "description": "可选的最小时间,精确到分钟",
3054
- "value": {
3055
- "type": "Date",
3056
- "kind": "expression"
3057
- }
3058
- },
3059
- {
3060
- "name": "max-date",
3061
- "default": "十年后",
3062
- "description": "可选的最大时间,精确到分钟",
3063
- "value": {
3064
- "type": "Date",
3065
- "kind": "expression"
3066
- }
3067
- }
3068
- ]
3069
- },
3070
- {
3071
- "name": "van-time-picker",
3072
- "slots": [],
3073
- "events": [],
3074
- "attributes": [
3075
- {
3076
- "name": "min-hour",
3077
- "default": "`0`",
3078
- "description": "可选的最小小时",
3079
- "value": {
3080
- "type": "number | string",
3081
- "kind": "expression"
3082
- }
3083
- },
3084
- {
3085
- "name": "max-hour",
3086
- "default": "`23`",
3087
- "description": "可选的最大小时",
2859
+ {
2860
+ "name": "currency",
2861
+ "default": "`¥`",
2862
+ "description": "货币符号",
3088
2863
  "value": {
3089
- "type": "number | string",
2864
+ "type": "string",
3090
2865
  "kind": "expression"
3091
2866
  }
3092
2867
  },
3093
2868
  {
3094
- "name": "min-minute",
3095
- "default": "`0`",
3096
- "description": "可选的最小分钟",
2869
+ "name": "empty-image",
2870
+ "default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
2871
+ "description": "列表为空时的占位图",
3097
2872
  "value": {
3098
- "type": "number | string",
2873
+ "type": "string",
3099
2874
  "kind": "expression"
3100
2875
  }
3101
2876
  },
3102
2877
  {
3103
- "name": "max-minute",
3104
- "default": "`59`",
3105
- "description": "可选的最大分钟",
2878
+ "name": "show-count",
2879
+ "default": "`true`",
2880
+ "description": "是否展示可用 / 不可用数量",
3106
2881
  "value": {
3107
- "type": "number | string",
2882
+ "type": "boolean",
3108
2883
  "kind": "expression"
3109
2884
  }
3110
2885
  }
@@ -3358,6 +3133,240 @@
3358
3133
  }
3359
3134
  ]
3360
3135
  },
3136
+ {
3137
+ "name": "van-datetime-picker",
3138
+ "slots": [
3139
+ {
3140
+ "name": "default",
3141
+ "description": "自定义整个顶部栏的内容"
3142
+ },
3143
+ {
3144
+ "name": "title",
3145
+ "description": "自定义标题内容"
3146
+ },
3147
+ {
3148
+ "name": "confirm",
3149
+ "description": "自定义确认按钮内容"
3150
+ },
3151
+ {
3152
+ "name": "cancel",
3153
+ "description": "自定义取消按钮内容"
3154
+ },
3155
+ {
3156
+ "name": "option",
3157
+ "description": "自定义选项内容"
3158
+ },
3159
+ {
3160
+ "name": "columns-top",
3161
+ "description": "自定义选项上方内容"
3162
+ },
3163
+ {
3164
+ "name": "columns-bottom",
3165
+ "description": "自定义选项下方内容"
3166
+ }
3167
+ ],
3168
+ "events": [
3169
+ {
3170
+ "name": "change",
3171
+ "description": "当值变化时触发的事件"
3172
+ },
3173
+ {
3174
+ "name": "confirm",
3175
+ "description": "点击完成按钮时触发的事件"
3176
+ },
3177
+ {
3178
+ "name": "cancel",
3179
+ "description": "点击取消按钮时触发的事件"
3180
+ }
3181
+ ],
3182
+ "attributes": [
3183
+ {
3184
+ "name": "type",
3185
+ "default": "`datetime`",
3186
+ "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
3187
+ "value": {
3188
+ "type": "string",
3189
+ "kind": "expression"
3190
+ }
3191
+ },
3192
+ {
3193
+ "name": "title",
3194
+ "default": "`''`",
3195
+ "description": "顶部栏标题",
3196
+ "value": {
3197
+ "type": "string",
3198
+ "kind": "expression"
3199
+ }
3200
+ },
3201
+ {
3202
+ "name": "confirm-button-text",
3203
+ "default": "`确认`",
3204
+ "description": "确认按钮文字",
3205
+ "value": {
3206
+ "type": "string",
3207
+ "kind": "expression"
3208
+ }
3209
+ },
3210
+ {
3211
+ "name": "cancel-button-text",
3212
+ "default": "`取消`",
3213
+ "description": "取消按钮文字",
3214
+ "value": {
3215
+ "type": "string",
3216
+ "kind": "expression"
3217
+ }
3218
+ },
3219
+ {
3220
+ "name": "show-toolbar",
3221
+ "default": "`true`",
3222
+ "description": "是否显示顶部栏",
3223
+ "value": {
3224
+ "type": "boolean",
3225
+ "kind": "expression"
3226
+ }
3227
+ },
3228
+ {
3229
+ "name": "loading",
3230
+ "default": "`false`",
3231
+ "description": "是否显示加载状态",
3232
+ "value": {
3233
+ "type": "boolean",
3234
+ "kind": "expression"
3235
+ }
3236
+ },
3237
+ {
3238
+ "name": "readonly",
3239
+ "default": "`false`",
3240
+ "description": "是否为只读状态,只读状态下无法切换选项",
3241
+ "value": {
3242
+ "type": "boolean",
3243
+ "kind": "expression"
3244
+ }
3245
+ },
3246
+ {
3247
+ "name": "filter",
3248
+ "default": "-",
3249
+ "description": "选项过滤函数",
3250
+ "value": {
3251
+ "type": "(type, vals) => vals",
3252
+ "kind": "expression"
3253
+ }
3254
+ },
3255
+ {
3256
+ "name": "formatter",
3257
+ "default": "-",
3258
+ "description": "选项格式化函数",
3259
+ "value": {
3260
+ "type": "(type, val) => val",
3261
+ "kind": "expression"
3262
+ }
3263
+ },
3264
+ {
3265
+ "name": "columns-order",
3266
+ "default": "-",
3267
+ "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
3268
+ "value": {
3269
+ "type": "string[]",
3270
+ "kind": "expression"
3271
+ }
3272
+ },
3273
+ {
3274
+ "name": "item-height",
3275
+ "default": "`44`",
3276
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
3277
+ "value": {
3278
+ "type": "number | string",
3279
+ "kind": "expression"
3280
+ }
3281
+ },
3282
+ {
3283
+ "name": "visible-item-count",
3284
+ "default": "`6`",
3285
+ "description": "可见的选项个数",
3286
+ "value": {
3287
+ "type": "number | string",
3288
+ "kind": "expression"
3289
+ }
3290
+ },
3291
+ {
3292
+ "name": "swipe-duration",
3293
+ "default": "`1000`",
3294
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
3295
+ "value": {
3296
+ "type": "number | string",
3297
+ "kind": "expression"
3298
+ }
3299
+ }
3300
+ ]
3301
+ },
3302
+ {
3303
+ "name": "van-date-picker",
3304
+ "slots": [],
3305
+ "events": [],
3306
+ "attributes": [
3307
+ {
3308
+ "name": "min-date",
3309
+ "default": "十年前",
3310
+ "description": "可选的最小时间,精确到分钟",
3311
+ "value": {
3312
+ "type": "Date",
3313
+ "kind": "expression"
3314
+ }
3315
+ },
3316
+ {
3317
+ "name": "max-date",
3318
+ "default": "十年后",
3319
+ "description": "可选的最大时间,精确到分钟",
3320
+ "value": {
3321
+ "type": "Date",
3322
+ "kind": "expression"
3323
+ }
3324
+ }
3325
+ ]
3326
+ },
3327
+ {
3328
+ "name": "van-time-picker",
3329
+ "slots": [],
3330
+ "events": [],
3331
+ "attributes": [
3332
+ {
3333
+ "name": "min-hour",
3334
+ "default": "`0`",
3335
+ "description": "可选的最小小时",
3336
+ "value": {
3337
+ "type": "number | string",
3338
+ "kind": "expression"
3339
+ }
3340
+ },
3341
+ {
3342
+ "name": "max-hour",
3343
+ "default": "`23`",
3344
+ "description": "可选的最大小时",
3345
+ "value": {
3346
+ "type": "number | string",
3347
+ "kind": "expression"
3348
+ }
3349
+ },
3350
+ {
3351
+ "name": "min-minute",
3352
+ "default": "`0`",
3353
+ "description": "可选的最小分钟",
3354
+ "value": {
3355
+ "type": "number | string",
3356
+ "kind": "expression"
3357
+ }
3358
+ },
3359
+ {
3360
+ "name": "max-minute",
3361
+ "default": "`59`",
3362
+ "description": "可选的最大分钟",
3363
+ "value": {
3364
+ "type": "number | string",
3365
+ "kind": "expression"
3366
+ }
3367
+ }
3368
+ ]
3369
+ },
3361
3370
  {
3362
3371
  "name": "van-divider",
3363
3372
  "slots": [