vant 2.12.40 → 2.12.41
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.
- package/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.js +1 -1
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +272 -272
- package/vetur/tags.json +85 -85
- package/vetur/web-types.json +780 -780
package/vetur/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "vant",
|
|
5
|
-
"version": "2.12.
|
|
5
|
+
"version": "2.12.41",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -616,64 +616,40 @@
|
|
|
616
616
|
]
|
|
617
617
|
},
|
|
618
618
|
{
|
|
619
|
-
"name": "van-
|
|
619
|
+
"name": "van-area",
|
|
620
620
|
"slots": [
|
|
621
621
|
{
|
|
622
622
|
"name": "title",
|
|
623
|
-
"description": "
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"name": "footer",
|
|
627
|
-
"description": "自定义底部区域内容"
|
|
623
|
+
"description": "自定义标题内容"
|
|
628
624
|
},
|
|
629
625
|
{
|
|
630
|
-
"name": "top
|
|
631
|
-
"description": "
|
|
626
|
+
"name": "columns-top",
|
|
627
|
+
"description": "自定义选项上方内容"
|
|
632
628
|
},
|
|
633
629
|
{
|
|
634
|
-
"name": "bottom
|
|
635
|
-
"description": "
|
|
630
|
+
"name": "columns-bottom",
|
|
631
|
+
"description": "自定义选项下方内容"
|
|
636
632
|
}
|
|
637
633
|
],
|
|
638
634
|
"events": [
|
|
639
|
-
{
|
|
640
|
-
"name": "select",
|
|
641
|
-
"description": "点击并选中任意日期时触发"
|
|
642
|
-
},
|
|
643
635
|
{
|
|
644
636
|
"name": "confirm",
|
|
645
|
-
"description": "
|
|
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": "关闭弹出层且动画结束后触发"
|
|
637
|
+
"description": "点击右上方完成按钮"
|
|
662
638
|
},
|
|
663
639
|
{
|
|
664
|
-
"name": "
|
|
665
|
-
"description": "
|
|
640
|
+
"name": "cancel",
|
|
641
|
+
"description": "点击取消按钮时"
|
|
666
642
|
},
|
|
667
643
|
{
|
|
668
|
-
"name": "
|
|
669
|
-
"description": "
|
|
644
|
+
"name": "change",
|
|
645
|
+
"description": "选项改变时触发"
|
|
670
646
|
}
|
|
671
647
|
],
|
|
672
648
|
"attributes": [
|
|
673
649
|
{
|
|
674
|
-
"name": "
|
|
675
|
-
"default": "
|
|
676
|
-
"description": "
|
|
650
|
+
"name": "value",
|
|
651
|
+
"default": "-",
|
|
652
|
+
"description": "当前选中的省市区`code`",
|
|
677
653
|
"value": {
|
|
678
654
|
"type": "string",
|
|
679
655
|
"kind": "expression"
|
|
@@ -681,435 +657,338 @@
|
|
|
681
657
|
},
|
|
682
658
|
{
|
|
683
659
|
"name": "title",
|
|
684
|
-
"default": "
|
|
685
|
-
"description": "
|
|
660
|
+
"default": "-",
|
|
661
|
+
"description": "顶部栏标题",
|
|
686
662
|
"value": {
|
|
687
663
|
"type": "string",
|
|
688
664
|
"kind": "expression"
|
|
689
665
|
}
|
|
690
666
|
},
|
|
691
667
|
{
|
|
692
|
-
"name": "
|
|
693
|
-
"default": "
|
|
694
|
-
"description": "
|
|
668
|
+
"name": "confirm-button-text",
|
|
669
|
+
"default": "`确认`",
|
|
670
|
+
"description": "确认按钮文字",
|
|
695
671
|
"value": {
|
|
696
672
|
"type": "string",
|
|
697
673
|
"kind": "expression"
|
|
698
674
|
}
|
|
699
675
|
},
|
|
700
676
|
{
|
|
701
|
-
"name": "
|
|
702
|
-
"default": "
|
|
703
|
-
"description": "
|
|
677
|
+
"name": "cancel-button-text",
|
|
678
|
+
"default": "`取消`",
|
|
679
|
+
"description": "取消按钮文字",
|
|
704
680
|
"value": {
|
|
705
|
-
"type": "
|
|
681
|
+
"type": "string",
|
|
706
682
|
"kind": "expression"
|
|
707
683
|
}
|
|
708
684
|
},
|
|
709
685
|
{
|
|
710
|
-
"name": "
|
|
711
|
-
"default": "
|
|
712
|
-
"description": "
|
|
686
|
+
"name": "area-list",
|
|
687
|
+
"default": "-",
|
|
688
|
+
"description": "省市区数据,格式见下方",
|
|
713
689
|
"value": {
|
|
714
|
-
"type": "
|
|
690
|
+
"type": "object",
|
|
715
691
|
"kind": "expression"
|
|
716
692
|
}
|
|
717
693
|
},
|
|
718
694
|
{
|
|
719
|
-
"name": "
|
|
720
|
-
"default": "
|
|
721
|
-
"description": "
|
|
695
|
+
"name": "columns-placeholder",
|
|
696
|
+
"default": "`[]`",
|
|
697
|
+
"description": "列占位提示文字",
|
|
722
698
|
"value": {
|
|
723
|
-
"type": "
|
|
699
|
+
"type": "string[]",
|
|
724
700
|
"kind": "expression"
|
|
725
701
|
}
|
|
726
702
|
},
|
|
727
703
|
{
|
|
728
|
-
"name": "
|
|
729
|
-
"default": "`
|
|
730
|
-
"description": "
|
|
704
|
+
"name": "loading",
|
|
705
|
+
"default": "`false`",
|
|
706
|
+
"description": "是否显示加载状态",
|
|
731
707
|
"value": {
|
|
732
|
-
"type": "
|
|
708
|
+
"type": "boolean",
|
|
733
709
|
"kind": "expression"
|
|
734
710
|
}
|
|
735
711
|
},
|
|
736
712
|
{
|
|
737
|
-
"name": "
|
|
738
|
-
"default": "
|
|
739
|
-
"description": "
|
|
713
|
+
"name": "readonly",
|
|
714
|
+
"default": "`false`",
|
|
715
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
|
740
716
|
"value": {
|
|
741
|
-
"type": "
|
|
717
|
+
"type": "boolean",
|
|
742
718
|
"kind": "expression"
|
|
743
719
|
}
|
|
744
720
|
},
|
|
745
721
|
{
|
|
746
|
-
"name": "
|
|
747
|
-
"default": "`
|
|
748
|
-
"description": "
|
|
722
|
+
"name": "item-height",
|
|
723
|
+
"default": "`44`",
|
|
724
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
|
749
725
|
"value": {
|
|
750
|
-
"type": "
|
|
726
|
+
"type": "number | string",
|
|
751
727
|
"kind": "expression"
|
|
752
728
|
}
|
|
753
729
|
},
|
|
754
730
|
{
|
|
755
|
-
"name": "
|
|
756
|
-
"default": "`
|
|
757
|
-
"description": "
|
|
731
|
+
"name": "columns-num",
|
|
732
|
+
"default": "`3`",
|
|
733
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
|
758
734
|
"value": {
|
|
759
|
-
"type": "
|
|
735
|
+
"type": "number | string",
|
|
760
736
|
"kind": "expression"
|
|
761
737
|
}
|
|
762
738
|
},
|
|
763
739
|
{
|
|
764
|
-
"name": "
|
|
765
|
-
"default": "`
|
|
766
|
-
"description": "
|
|
740
|
+
"name": "visible-item-count",
|
|
741
|
+
"default": "`6`",
|
|
742
|
+
"description": "可见的选项个数",
|
|
767
743
|
"value": {
|
|
768
|
-
"type": "
|
|
744
|
+
"type": "number | string",
|
|
769
745
|
"kind": "expression"
|
|
770
746
|
}
|
|
771
747
|
},
|
|
772
748
|
{
|
|
773
|
-
"name": "
|
|
774
|
-
"default": "`
|
|
775
|
-
"description": "
|
|
749
|
+
"name": "swipe-duration",
|
|
750
|
+
"default": "`1000`",
|
|
751
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
|
776
752
|
"value": {
|
|
777
|
-
"type": "
|
|
753
|
+
"type": "number | string",
|
|
778
754
|
"kind": "expression"
|
|
779
755
|
}
|
|
780
756
|
},
|
|
781
757
|
{
|
|
782
|
-
"name": "
|
|
783
|
-
"default": "
|
|
784
|
-
"description": "
|
|
758
|
+
"name": "is-oversea-code",
|
|
759
|
+
"default": "-",
|
|
760
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
|
785
761
|
"value": {
|
|
786
|
-
"type": "boolean",
|
|
762
|
+
"type": "() => boolean",
|
|
787
763
|
"kind": "expression"
|
|
788
764
|
}
|
|
765
|
+
}
|
|
766
|
+
]
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"name": "van-button",
|
|
770
|
+
"slots": [
|
|
771
|
+
{
|
|
772
|
+
"name": "default",
|
|
773
|
+
"description": "按钮内容"
|
|
789
774
|
},
|
|
790
775
|
{
|
|
791
|
-
"name": "
|
|
792
|
-
"
|
|
793
|
-
|
|
776
|
+
"name": "icon",
|
|
777
|
+
"description": "自定义图标"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"name": "loading",
|
|
781
|
+
"description": "自定义加载图标"
|
|
782
|
+
}
|
|
783
|
+
],
|
|
784
|
+
"events": [
|
|
785
|
+
{
|
|
786
|
+
"name": "click",
|
|
787
|
+
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "touchstart",
|
|
791
|
+
"description": "开始触摸按钮时触发"
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
"attributes": [
|
|
795
|
+
{
|
|
796
|
+
"name": "type",
|
|
797
|
+
"default": "`default`",
|
|
798
|
+
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
|
794
799
|
"value": {
|
|
795
|
-
"type": "
|
|
800
|
+
"type": "string",
|
|
796
801
|
"kind": "expression"
|
|
797
802
|
}
|
|
798
803
|
},
|
|
799
804
|
{
|
|
800
|
-
"name": "
|
|
801
|
-
"default": "`
|
|
802
|
-
"description": "
|
|
805
|
+
"name": "size",
|
|
806
|
+
"default": "`normal`",
|
|
807
|
+
"description": "尺寸,可选值为 `large` `small` `mini`",
|
|
803
808
|
"value": {
|
|
804
|
-
"type": "
|
|
809
|
+
"type": "string",
|
|
805
810
|
"kind": "expression"
|
|
806
811
|
}
|
|
807
812
|
},
|
|
808
813
|
{
|
|
809
|
-
"name": "
|
|
810
|
-
"default": "
|
|
811
|
-
"description": "
|
|
814
|
+
"name": "text",
|
|
815
|
+
"default": "-",
|
|
816
|
+
"description": "按钮文字",
|
|
812
817
|
"value": {
|
|
813
818
|
"type": "string",
|
|
814
819
|
"kind": "expression"
|
|
815
820
|
}
|
|
816
821
|
},
|
|
817
822
|
{
|
|
818
|
-
"name": "
|
|
819
|
-
"default": "
|
|
820
|
-
"description": "
|
|
823
|
+
"name": "color",
|
|
824
|
+
"default": "-",
|
|
825
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
|
821
826
|
"value": {
|
|
822
827
|
"type": "string",
|
|
823
828
|
"kind": "expression"
|
|
824
829
|
}
|
|
825
830
|
},
|
|
826
831
|
{
|
|
827
|
-
"name": "
|
|
828
|
-
"default": "
|
|
829
|
-
"description": "
|
|
832
|
+
"name": "icon",
|
|
833
|
+
"default": "-",
|
|
834
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
|
830
835
|
"value": {
|
|
831
|
-
"type": "
|
|
836
|
+
"type": "string",
|
|
832
837
|
"kind": "expression"
|
|
833
838
|
}
|
|
834
|
-
}
|
|
835
|
-
]
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
"name": "van-poppable",
|
|
839
|
-
"slots": [],
|
|
840
|
-
"events": [],
|
|
841
|
-
"attributes": [
|
|
839
|
+
},
|
|
842
840
|
{
|
|
843
|
-
"name": "
|
|
844
|
-
"default": "`
|
|
845
|
-
"description": "
|
|
841
|
+
"name": "icon-prefix",
|
|
842
|
+
"default": "`van-icon`",
|
|
843
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
|
846
844
|
"value": {
|
|
847
|
-
"type": "
|
|
845
|
+
"type": "string",
|
|
848
846
|
"kind": "expression"
|
|
849
847
|
}
|
|
850
848
|
},
|
|
851
849
|
{
|
|
852
|
-
"name": "position",
|
|
853
|
-
"default": "`
|
|
854
|
-
"description": "
|
|
850
|
+
"name": "icon-position",
|
|
851
|
+
"default": "`left`",
|
|
852
|
+
"description": "图标展示位置,可选值为 `right`",
|
|
855
853
|
"value": {
|
|
856
854
|
"type": "string",
|
|
857
855
|
"kind": "expression"
|
|
858
856
|
}
|
|
859
857
|
},
|
|
860
858
|
{
|
|
861
|
-
"name": "
|
|
862
|
-
"default": "`
|
|
863
|
-
"description": "
|
|
859
|
+
"name": "tag",
|
|
860
|
+
"default": "`button`",
|
|
861
|
+
"description": "按钮根节点的 HTML 标签",
|
|
864
862
|
"value": {
|
|
865
|
-
"type": "
|
|
863
|
+
"type": "string",
|
|
866
864
|
"kind": "expression"
|
|
867
865
|
}
|
|
868
866
|
},
|
|
869
867
|
{
|
|
870
|
-
"name": "
|
|
871
|
-
"default": "
|
|
872
|
-
"description": "
|
|
868
|
+
"name": "native-type",
|
|
869
|
+
"default": "-",
|
|
870
|
+
"description": "原生 button 标签的 type 属性",
|
|
873
871
|
"value": {
|
|
874
|
-
"type": "
|
|
872
|
+
"type": "string",
|
|
875
873
|
"kind": "expression"
|
|
876
874
|
}
|
|
877
875
|
},
|
|
878
876
|
{
|
|
879
|
-
"name": "
|
|
880
|
-
"default": "`
|
|
881
|
-
"description": "
|
|
877
|
+
"name": "block",
|
|
878
|
+
"default": "`false`",
|
|
879
|
+
"description": "是否为块级元素",
|
|
882
880
|
"value": {
|
|
883
881
|
"type": "boolean",
|
|
884
882
|
"kind": "expression"
|
|
885
883
|
}
|
|
886
884
|
},
|
|
887
885
|
{
|
|
888
|
-
"name": "
|
|
889
|
-
"default": "`
|
|
890
|
-
"description": "
|
|
891
|
-
"value": {
|
|
886
|
+
"name": "plain",
|
|
887
|
+
"default": "`false`",
|
|
888
|
+
"description": "是否为朴素按钮",
|
|
889
|
+
"value": {
|
|
892
890
|
"type": "boolean",
|
|
893
891
|
"kind": "expression"
|
|
894
892
|
}
|
|
895
893
|
},
|
|
896
894
|
{
|
|
897
|
-
"name": "
|
|
898
|
-
"default": "
|
|
899
|
-
"description": "
|
|
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": "日期区间最多可选天数",
|
|
895
|
+
"name": "square",
|
|
896
|
+
"default": "`false`",
|
|
897
|
+
"description": "是否为方形按钮",
|
|
916
898
|
"value": {
|
|
917
|
-
"type": "
|
|
899
|
+
"type": "boolean",
|
|
918
900
|
"kind": "expression"
|
|
919
901
|
}
|
|
920
902
|
},
|
|
921
903
|
{
|
|
922
|
-
"name": "
|
|
923
|
-
"default": "
|
|
924
|
-
"description": "
|
|
904
|
+
"name": "round",
|
|
905
|
+
"default": "`false`",
|
|
906
|
+
"description": "是否为圆形按钮",
|
|
925
907
|
"value": {
|
|
926
|
-
"type": "
|
|
908
|
+
"type": "boolean",
|
|
927
909
|
"kind": "expression"
|
|
928
910
|
}
|
|
929
911
|
},
|
|
930
912
|
{
|
|
931
|
-
"name": "
|
|
913
|
+
"name": "disabled",
|
|
932
914
|
"default": "`false`",
|
|
933
|
-
"description": "
|
|
915
|
+
"description": "是否禁用按钮",
|
|
934
916
|
"value": {
|
|
935
917
|
"type": "boolean",
|
|
936
918
|
"kind": "expression"
|
|
937
919
|
}
|
|
938
|
-
}
|
|
939
|
-
]
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
"name": "van-multiple",
|
|
943
|
-
"slots": [],
|
|
944
|
-
"events": [],
|
|
945
|
-
"attributes": [
|
|
946
|
-
{
|
|
947
|
-
"name": "max-range",
|
|
948
|
-
"default": "无限制",
|
|
949
|
-
"description": "日期最多可选天数",
|
|
950
|
-
"value": {
|
|
951
|
-
"type": "number | string",
|
|
952
|
-
"kind": "expression"
|
|
953
|
-
}
|
|
954
920
|
},
|
|
955
921
|
{
|
|
956
|
-
"name": "
|
|
957
|
-
"default": "
|
|
958
|
-
"description": "
|
|
922
|
+
"name": "hairline",
|
|
923
|
+
"default": "`false`",
|
|
924
|
+
"description": "是否使用 0.5px 边框",
|
|
959
925
|
"value": {
|
|
960
|
-
"type": "
|
|
926
|
+
"type": "boolean",
|
|
961
927
|
"kind": "expression"
|
|
962
928
|
}
|
|
963
|
-
}
|
|
964
|
-
]
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
"name": "van-area",
|
|
968
|
-
"slots": [
|
|
969
|
-
{
|
|
970
|
-
"name": "title",
|
|
971
|
-
"description": "自定义标题内容"
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
"name": "columns-top",
|
|
975
|
-
"description": "自定义选项上方内容"
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
"name": "columns-bottom",
|
|
979
|
-
"description": "自定义选项下方内容"
|
|
980
|
-
}
|
|
981
|
-
],
|
|
982
|
-
"events": [
|
|
983
|
-
{
|
|
984
|
-
"name": "confirm",
|
|
985
|
-
"description": "点击右上方完成按钮"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"name": "cancel",
|
|
989
|
-
"description": "点击取消按钮时"
|
|
990
929
|
},
|
|
991
930
|
{
|
|
992
|
-
"name": "
|
|
993
|
-
"
|
|
994
|
-
|
|
995
|
-
],
|
|
996
|
-
"attributes": [
|
|
997
|
-
{
|
|
998
|
-
"name": "value",
|
|
999
|
-
"default": "-",
|
|
1000
|
-
"description": "当前选中的省市区`code`",
|
|
931
|
+
"name": "loading",
|
|
932
|
+
"default": "`false`",
|
|
933
|
+
"description": "是否显示为加载状态",
|
|
1001
934
|
"value": {
|
|
1002
|
-
"type": "
|
|
935
|
+
"type": "boolean",
|
|
1003
936
|
"kind": "expression"
|
|
1004
937
|
}
|
|
1005
938
|
},
|
|
1006
939
|
{
|
|
1007
|
-
"name": "
|
|
940
|
+
"name": "loading-text",
|
|
1008
941
|
"default": "-",
|
|
1009
|
-
"description": "
|
|
942
|
+
"description": "加载状态提示文字",
|
|
1010
943
|
"value": {
|
|
1011
944
|
"type": "string",
|
|
1012
945
|
"kind": "expression"
|
|
1013
946
|
}
|
|
1014
947
|
},
|
|
1015
948
|
{
|
|
1016
|
-
"name": "
|
|
1017
|
-
"default": "
|
|
1018
|
-
"description": "
|
|
949
|
+
"name": "loading-type",
|
|
950
|
+
"default": "`circular`",
|
|
951
|
+
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
|
|
1019
952
|
"value": {
|
|
1020
953
|
"type": "string",
|
|
1021
954
|
"kind": "expression"
|
|
1022
955
|
}
|
|
1023
956
|
},
|
|
1024
957
|
{
|
|
1025
|
-
"name": "
|
|
1026
|
-
"default": "
|
|
1027
|
-
"description": "
|
|
958
|
+
"name": "loading-size",
|
|
959
|
+
"default": "`20px`",
|
|
960
|
+
"description": "加载图标大小",
|
|
1028
961
|
"value": {
|
|
1029
962
|
"type": "string",
|
|
1030
963
|
"kind": "expression"
|
|
1031
964
|
}
|
|
1032
965
|
},
|
|
1033
966
|
{
|
|
1034
|
-
"name": "
|
|
967
|
+
"name": "url",
|
|
1035
968
|
"default": "-",
|
|
1036
|
-
"description": "
|
|
1037
|
-
"value": {
|
|
1038
|
-
"type": "object",
|
|
1039
|
-
"kind": "expression"
|
|
1040
|
-
}
|
|
1041
|
-
},
|
|
1042
|
-
{
|
|
1043
|
-
"name": "columns-placeholder",
|
|
1044
|
-
"default": "`[]`",
|
|
1045
|
-
"description": "列占位提示文字",
|
|
969
|
+
"description": "点击后跳转的链接地址",
|
|
1046
970
|
"value": {
|
|
1047
|
-
"type": "string
|
|
971
|
+
"type": "string",
|
|
1048
972
|
"kind": "expression"
|
|
1049
973
|
}
|
|
1050
974
|
},
|
|
1051
975
|
{
|
|
1052
|
-
"name": "
|
|
1053
|
-
"default": "
|
|
1054
|
-
"description": "
|
|
976
|
+
"name": "to",
|
|
977
|
+
"default": "-",
|
|
978
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
|
1055
979
|
"value": {
|
|
1056
|
-
"type": "
|
|
980
|
+
"type": "string | object",
|
|
1057
981
|
"kind": "expression"
|
|
1058
982
|
}
|
|
1059
983
|
},
|
|
1060
984
|
{
|
|
1061
|
-
"name": "
|
|
985
|
+
"name": "replace",
|
|
1062
986
|
"default": "`false`",
|
|
1063
|
-
"description": "
|
|
987
|
+
"description": "是否在跳转时替换当前页面历史",
|
|
1064
988
|
"value": {
|
|
1065
989
|
"type": "boolean",
|
|
1066
990
|
"kind": "expression"
|
|
1067
991
|
}
|
|
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",
|
|
1111
|
-
"kind": "expression"
|
|
1112
|
-
}
|
|
1113
992
|
}
|
|
1114
993
|
]
|
|
1115
994
|
},
|
|
@@ -1252,22 +1131,370 @@
|
|
|
1252
1131
|
"type": "string",
|
|
1253
1132
|
"kind": "expression"
|
|
1254
1133
|
}
|
|
1255
|
-
},
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "thumb-link",
|
|
1137
|
+
"default": "-",
|
|
1138
|
+
"description": "点击左侧图片后跳转的链接地址",
|
|
1139
|
+
"value": {
|
|
1140
|
+
"type": "string",
|
|
1141
|
+
"kind": "expression"
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"name": "lazy-load",
|
|
1146
|
+
"default": "`false`",
|
|
1147
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
|
|
1148
|
+
"value": {
|
|
1149
|
+
"type": "boolean",
|
|
1150
|
+
"kind": "expression"
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
]
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"name": "van-calendar",
|
|
1157
|
+
"slots": [
|
|
1158
|
+
{
|
|
1159
|
+
"name": "title",
|
|
1160
|
+
"description": "自定义标题"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"name": "footer",
|
|
1164
|
+
"description": "自定义底部区域内容"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"name": "top-info",
|
|
1168
|
+
"description": "自定义日期上方的提示信息"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"name": "bottom-info",
|
|
1172
|
+
"description": "自定义日期下方的提示信息"
|
|
1173
|
+
}
|
|
1174
|
+
],
|
|
1175
|
+
"events": [
|
|
1176
|
+
{
|
|
1177
|
+
"name": "select",
|
|
1178
|
+
"description": "点击并选中任意日期时触发"
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"name": "confirm",
|
|
1182
|
+
"description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"name": "open",
|
|
1186
|
+
"description": "打开弹出层时触发"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"name": "close",
|
|
1190
|
+
"description": "关闭弹出层时触发"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"name": "opened",
|
|
1194
|
+
"description": "打开弹出层且动画结束后触发"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"name": "closed",
|
|
1198
|
+
"description": "关闭弹出层且动画结束后触发"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"name": "unselect",
|
|
1202
|
+
"description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"name": "month-show",
|
|
1206
|
+
"description": "当某个月份进入可视区域时触发"
|
|
1207
|
+
}
|
|
1208
|
+
],
|
|
1209
|
+
"attributes": [
|
|
1210
|
+
{
|
|
1211
|
+
"name": "type",
|
|
1212
|
+
"default": "`single`",
|
|
1213
|
+
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
|
|
1214
|
+
"value": {
|
|
1215
|
+
"type": "string",
|
|
1216
|
+
"kind": "expression"
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"name": "title",
|
|
1221
|
+
"default": "`日期选择`",
|
|
1222
|
+
"description": "日历标题",
|
|
1223
|
+
"value": {
|
|
1224
|
+
"type": "string",
|
|
1225
|
+
"kind": "expression"
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"name": "color",
|
|
1230
|
+
"default": "`#ee0a24`",
|
|
1231
|
+
"description": "主题色,对底部按钮和选中日期生效",
|
|
1232
|
+
"value": {
|
|
1233
|
+
"type": "string",
|
|
1234
|
+
"kind": "expression"
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"name": "min-date",
|
|
1239
|
+
"default": "当前日期",
|
|
1240
|
+
"description": "可选择的最小日期",
|
|
1241
|
+
"value": {
|
|
1242
|
+
"type": "Date",
|
|
1243
|
+
"kind": "expression"
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "max-date",
|
|
1248
|
+
"default": "当前日期的六个月后",
|
|
1249
|
+
"description": "可选择的最大日期",
|
|
1250
|
+
"value": {
|
|
1251
|
+
"type": "Date",
|
|
1252
|
+
"kind": "expression"
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"name": "default-date",
|
|
1257
|
+
"default": "null_",
|
|
1258
|
+
"description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
|
|
1259
|
+
"value": {
|
|
1260
|
+
"type": "Date | Date[] \\",
|
|
1261
|
+
"kind": "expression"
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"name": "row-height",
|
|
1266
|
+
"default": "`64`",
|
|
1267
|
+
"description": "日期行高",
|
|
1268
|
+
"value": {
|
|
1269
|
+
"type": "number | string",
|
|
1270
|
+
"kind": "expression"
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"name": "formatter",
|
|
1275
|
+
"default": "-",
|
|
1276
|
+
"description": "日期格式化函数",
|
|
1277
|
+
"value": {
|
|
1278
|
+
"type": "(day: Day) => Day",
|
|
1279
|
+
"kind": "expression"
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"name": "poppable",
|
|
1284
|
+
"default": "`true`",
|
|
1285
|
+
"description": "是否以弹层的形式展示日历",
|
|
1286
|
+
"value": {
|
|
1287
|
+
"type": "boolean",
|
|
1288
|
+
"kind": "expression"
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"name": "lazy-render",
|
|
1293
|
+
"default": "`true`",
|
|
1294
|
+
"description": "是否只渲染可视区域的内容",
|
|
1295
|
+
"value": {
|
|
1296
|
+
"type": "boolean",
|
|
1297
|
+
"kind": "expression"
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"name": "show-mark",
|
|
1302
|
+
"default": "`true`",
|
|
1303
|
+
"description": "是否显示月份背景水印",
|
|
1304
|
+
"value": {
|
|
1305
|
+
"type": "boolean",
|
|
1306
|
+
"kind": "expression"
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"name": "show-title",
|
|
1311
|
+
"default": "`true`",
|
|
1312
|
+
"description": "是否展示日历标题",
|
|
1313
|
+
"value": {
|
|
1314
|
+
"type": "boolean",
|
|
1315
|
+
"kind": "expression"
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"name": "show-subtitle",
|
|
1320
|
+
"default": "`true`",
|
|
1321
|
+
"description": "是否展示日历副标题(年月)",
|
|
1322
|
+
"value": {
|
|
1323
|
+
"type": "boolean",
|
|
1324
|
+
"kind": "expression"
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "show-confirm",
|
|
1329
|
+
"default": "`true`",
|
|
1330
|
+
"description": "是否展示确认按钮",
|
|
1331
|
+
"value": {
|
|
1332
|
+
"type": "boolean",
|
|
1333
|
+
"kind": "expression"
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"name": "readonly",
|
|
1338
|
+
"default": "`false`",
|
|
1339
|
+
"description": "是否为只读状态,只读状态下不能选择日期",
|
|
1340
|
+
"value": {
|
|
1341
|
+
"type": "boolean",
|
|
1342
|
+
"kind": "expression"
|
|
1343
|
+
}
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"name": "confirm-text",
|
|
1347
|
+
"default": "`确定`",
|
|
1348
|
+
"description": "确认按钮的文字",
|
|
1349
|
+
"value": {
|
|
1350
|
+
"type": "string",
|
|
1351
|
+
"kind": "expression"
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"name": "confirm-disabled-text",
|
|
1356
|
+
"default": "`确定`",
|
|
1357
|
+
"description": "确认按钮处于禁用状态时的文字",
|
|
1358
|
+
"value": {
|
|
1359
|
+
"type": "string",
|
|
1360
|
+
"kind": "expression"
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"name": "first-day-of-week",
|
|
1365
|
+
"default": "`0`",
|
|
1366
|
+
"description": "设置周起始日",
|
|
1367
|
+
"value": {
|
|
1368
|
+
"type": "0-6",
|
|
1369
|
+
"kind": "expression"
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
]
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "van-poppable",
|
|
1376
|
+
"slots": [],
|
|
1377
|
+
"events": [],
|
|
1378
|
+
"attributes": [
|
|
1379
|
+
{
|
|
1380
|
+
"name": "v-model",
|
|
1381
|
+
"default": "`false`",
|
|
1382
|
+
"description": "是否显示日历弹窗",
|
|
1383
|
+
"value": {
|
|
1384
|
+
"type": "boolean",
|
|
1385
|
+
"kind": "expression"
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"name": "position",
|
|
1390
|
+
"default": "`bottom`",
|
|
1391
|
+
"description": "弹出位置,可选值为 `top` `right` `left`",
|
|
1392
|
+
"value": {
|
|
1393
|
+
"type": "string",
|
|
1394
|
+
"kind": "expression"
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"name": "round",
|
|
1399
|
+
"default": "`true`",
|
|
1400
|
+
"description": "是否显示圆角弹窗",
|
|
1401
|
+
"value": {
|
|
1402
|
+
"type": "boolean",
|
|
1403
|
+
"kind": "expression"
|
|
1404
|
+
}
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"name": "close-on-popstate",
|
|
1408
|
+
"default": "`true`",
|
|
1409
|
+
"description": "是否在页面回退时自动关闭",
|
|
1410
|
+
"value": {
|
|
1411
|
+
"type": "boolean",
|
|
1412
|
+
"kind": "expression"
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"name": "close-on-click-overlay",
|
|
1417
|
+
"default": "`true`",
|
|
1418
|
+
"description": "是否在点击遮罩层后关闭",
|
|
1419
|
+
"value": {
|
|
1420
|
+
"type": "boolean",
|
|
1421
|
+
"kind": "expression"
|
|
1422
|
+
}
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"name": "safe-area-inset-bottom",
|
|
1426
|
+
"default": "`true`",
|
|
1427
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
|
1428
|
+
"value": {
|
|
1429
|
+
"type": "boolean",
|
|
1430
|
+
"kind": "expression"
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"name": "get-container",
|
|
1435
|
+
"default": "-",
|
|
1436
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
|
1437
|
+
"value": {
|
|
1438
|
+
"type": "string | () => Element",
|
|
1439
|
+
"kind": "expression"
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
]
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
"name": "van-range",
|
|
1446
|
+
"slots": [],
|
|
1447
|
+
"events": [],
|
|
1448
|
+
"attributes": [
|
|
1449
|
+
{
|
|
1450
|
+
"name": "max-range",
|
|
1451
|
+
"default": "无限制",
|
|
1452
|
+
"description": "日期区间最多可选天数",
|
|
1453
|
+
"value": {
|
|
1454
|
+
"type": "number | string",
|
|
1455
|
+
"kind": "expression"
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"name": "range-prompt",
|
|
1460
|
+
"default": "`选择天数不能超过 xx 天`",
|
|
1461
|
+
"description": "范围选择超过最多可选天数时的提示文案",
|
|
1462
|
+
"value": {
|
|
1463
|
+
"type": "string",
|
|
1464
|
+
"kind": "expression"
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"name": "allow-same-day",
|
|
1469
|
+
"default": "`false`",
|
|
1470
|
+
"description": "是否允许日期范围的起止时间为同一天",
|
|
1471
|
+
"value": {
|
|
1472
|
+
"type": "boolean",
|
|
1473
|
+
"kind": "expression"
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
]
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "van-multiple",
|
|
1480
|
+
"slots": [],
|
|
1481
|
+
"events": [],
|
|
1482
|
+
"attributes": [
|
|
1256
1483
|
{
|
|
1257
|
-
"name": "
|
|
1258
|
-
"default": "
|
|
1259
|
-
"description": "
|
|
1484
|
+
"name": "max-range",
|
|
1485
|
+
"default": "无限制",
|
|
1486
|
+
"description": "日期最多可选天数",
|
|
1260
1487
|
"value": {
|
|
1261
|
-
"type": "string",
|
|
1488
|
+
"type": "number | string",
|
|
1262
1489
|
"kind": "expression"
|
|
1263
1490
|
}
|
|
1264
1491
|
},
|
|
1265
1492
|
{
|
|
1266
|
-
"name": "
|
|
1267
|
-
"default": "
|
|
1268
|
-
"description": "
|
|
1493
|
+
"name": "range-prompt",
|
|
1494
|
+
"default": "`选择天数不能超过 xx 天`",
|
|
1495
|
+
"description": "选择超过最多可选天数时的提示文案",
|
|
1269
1496
|
"value": {
|
|
1270
|
-
"type": "
|
|
1497
|
+
"type": "string",
|
|
1271
1498
|
"kind": "expression"
|
|
1272
1499
|
}
|
|
1273
1500
|
}
|
|
@@ -1578,266 +1805,39 @@
|
|
|
1578
1805
|
"kind": "expression"
|
|
1579
1806
|
}
|
|
1580
1807
|
},
|
|
1581
|
-
{
|
|
1582
|
-
"name": "title-style",
|
|
1583
|
-
"default": "-",
|
|
1584
|
-
"description": "左侧标题额外样式",
|
|
1585
|
-
"value": {
|
|
1586
|
-
"type": "any",
|
|
1587
|
-
"kind": "expression"
|
|
1588
|
-
}
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
"name": "title-class",
|
|
1592
|
-
"default": "-",
|
|
1593
|
-
"description": "左侧标题额外类名",
|
|
1594
|
-
"value": {
|
|
1595
|
-
"type": "any",
|
|
1596
|
-
"kind": "expression"
|
|
1597
|
-
}
|
|
1598
|
-
},
|
|
1599
|
-
{
|
|
1600
|
-
"name": "value-class",
|
|
1601
|
-
"default": "-",
|
|
1602
|
-
"description": "右侧内容额外类名",
|
|
1603
|
-
"value": {
|
|
1604
|
-
"type": "any",
|
|
1605
|
-
"kind": "expression"
|
|
1606
|
-
}
|
|
1607
|
-
},
|
|
1608
|
-
{
|
|
1609
|
-
"name": "label-class",
|
|
1610
|
-
"default": "-",
|
|
1611
|
-
"description": "描述信息额外类名",
|
|
1612
|
-
"value": {
|
|
1613
|
-
"type": "any",
|
|
1614
|
-
"kind": "expression"
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
]
|
|
1618
|
-
},
|
|
1619
|
-
{
|
|
1620
|
-
"name": "van-button",
|
|
1621
|
-
"slots": [
|
|
1622
|
-
{
|
|
1623
|
-
"name": "default",
|
|
1624
|
-
"description": "按钮内容"
|
|
1625
|
-
},
|
|
1626
|
-
{
|
|
1627
|
-
"name": "icon",
|
|
1628
|
-
"description": "自定义图标"
|
|
1629
|
-
},
|
|
1630
|
-
{
|
|
1631
|
-
"name": "loading",
|
|
1632
|
-
"description": "自定义加载图标"
|
|
1633
|
-
}
|
|
1634
|
-
],
|
|
1635
|
-
"events": [
|
|
1636
|
-
{
|
|
1637
|
-
"name": "click",
|
|
1638
|
-
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
"name": "touchstart",
|
|
1642
|
-
"description": "开始触摸按钮时触发"
|
|
1643
|
-
}
|
|
1644
|
-
],
|
|
1645
|
-
"attributes": [
|
|
1646
|
-
{
|
|
1647
|
-
"name": "type",
|
|
1648
|
-
"default": "`default`",
|
|
1649
|
-
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
|
1650
|
-
"value": {
|
|
1651
|
-
"type": "string",
|
|
1652
|
-
"kind": "expression"
|
|
1653
|
-
}
|
|
1654
|
-
},
|
|
1655
|
-
{
|
|
1656
|
-
"name": "size",
|
|
1657
|
-
"default": "`normal`",
|
|
1658
|
-
"description": "尺寸,可选值为 `large` `small` `mini`",
|
|
1659
|
-
"value": {
|
|
1660
|
-
"type": "string",
|
|
1661
|
-
"kind": "expression"
|
|
1662
|
-
}
|
|
1663
|
-
},
|
|
1664
|
-
{
|
|
1665
|
-
"name": "text",
|
|
1666
|
-
"default": "-",
|
|
1667
|
-
"description": "按钮文字",
|
|
1668
|
-
"value": {
|
|
1669
|
-
"type": "string",
|
|
1670
|
-
"kind": "expression"
|
|
1671
|
-
}
|
|
1672
|
-
},
|
|
1673
|
-
{
|
|
1674
|
-
"name": "color",
|
|
1675
|
-
"default": "-",
|
|
1676
|
-
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
|
1677
|
-
"value": {
|
|
1678
|
-
"type": "string",
|
|
1679
|
-
"kind": "expression"
|
|
1680
|
-
}
|
|
1681
|
-
},
|
|
1682
|
-
{
|
|
1683
|
-
"name": "icon",
|
|
1684
|
-
"default": "-",
|
|
1685
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
|
1686
|
-
"value": {
|
|
1687
|
-
"type": "string",
|
|
1688
|
-
"kind": "expression"
|
|
1689
|
-
}
|
|
1690
|
-
},
|
|
1691
|
-
{
|
|
1692
|
-
"name": "icon-prefix",
|
|
1693
|
-
"default": "`van-icon`",
|
|
1694
|
-
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
|
1695
|
-
"value": {
|
|
1696
|
-
"type": "string",
|
|
1697
|
-
"kind": "expression"
|
|
1698
|
-
}
|
|
1699
|
-
},
|
|
1700
|
-
{
|
|
1701
|
-
"name": "icon-position",
|
|
1702
|
-
"default": "`left`",
|
|
1703
|
-
"description": "图标展示位置,可选值为 `right`",
|
|
1704
|
-
"value": {
|
|
1705
|
-
"type": "string",
|
|
1706
|
-
"kind": "expression"
|
|
1707
|
-
}
|
|
1708
|
-
},
|
|
1709
|
-
{
|
|
1710
|
-
"name": "tag",
|
|
1711
|
-
"default": "`button`",
|
|
1712
|
-
"description": "按钮根节点的 HTML 标签",
|
|
1713
|
-
"value": {
|
|
1714
|
-
"type": "string",
|
|
1715
|
-
"kind": "expression"
|
|
1716
|
-
}
|
|
1717
|
-
},
|
|
1718
|
-
{
|
|
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": "是否为块级元素",
|
|
1731
|
-
"value": {
|
|
1732
|
-
"type": "boolean",
|
|
1733
|
-
"kind": "expression"
|
|
1734
|
-
}
|
|
1735
|
-
},
|
|
1736
|
-
{
|
|
1737
|
-
"name": "plain",
|
|
1738
|
-
"default": "`false`",
|
|
1739
|
-
"description": "是否为朴素按钮",
|
|
1740
|
-
"value": {
|
|
1741
|
-
"type": "boolean",
|
|
1742
|
-
"kind": "expression"
|
|
1743
|
-
}
|
|
1744
|
-
},
|
|
1745
|
-
{
|
|
1746
|
-
"name": "square",
|
|
1747
|
-
"default": "`false`",
|
|
1748
|
-
"description": "是否为方形按钮",
|
|
1749
|
-
"value": {
|
|
1750
|
-
"type": "boolean",
|
|
1751
|
-
"kind": "expression"
|
|
1752
|
-
}
|
|
1753
|
-
},
|
|
1754
|
-
{
|
|
1755
|
-
"name": "round",
|
|
1756
|
-
"default": "`false`",
|
|
1757
|
-
"description": "是否为圆形按钮",
|
|
1758
|
-
"value": {
|
|
1759
|
-
"type": "boolean",
|
|
1760
|
-
"kind": "expression"
|
|
1761
|
-
}
|
|
1762
|
-
},
|
|
1763
|
-
{
|
|
1764
|
-
"name": "disabled",
|
|
1765
|
-
"default": "`false`",
|
|
1766
|
-
"description": "是否禁用按钮",
|
|
1767
|
-
"value": {
|
|
1768
|
-
"type": "boolean",
|
|
1769
|
-
"kind": "expression"
|
|
1770
|
-
}
|
|
1771
|
-
},
|
|
1772
|
-
{
|
|
1773
|
-
"name": "hairline",
|
|
1774
|
-
"default": "`false`",
|
|
1775
|
-
"description": "是否使用 0.5px 边框",
|
|
1776
|
-
"value": {
|
|
1777
|
-
"type": "boolean",
|
|
1778
|
-
"kind": "expression"
|
|
1779
|
-
}
|
|
1780
|
-
},
|
|
1781
|
-
{
|
|
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": "加载图标大小",
|
|
1808
|
+
{
|
|
1809
|
+
"name": "title-style",
|
|
1810
|
+
"default": "-",
|
|
1811
|
+
"description": "左侧标题额外样式",
|
|
1812
1812
|
"value": {
|
|
1813
|
-
"type": "
|
|
1813
|
+
"type": "any",
|
|
1814
1814
|
"kind": "expression"
|
|
1815
1815
|
}
|
|
1816
1816
|
},
|
|
1817
1817
|
{
|
|
1818
|
-
"name": "
|
|
1818
|
+
"name": "title-class",
|
|
1819
1819
|
"default": "-",
|
|
1820
|
-
"description": "
|
|
1820
|
+
"description": "左侧标题额外类名",
|
|
1821
1821
|
"value": {
|
|
1822
|
-
"type": "
|
|
1822
|
+
"type": "any",
|
|
1823
1823
|
"kind": "expression"
|
|
1824
1824
|
}
|
|
1825
1825
|
},
|
|
1826
1826
|
{
|
|
1827
|
-
"name": "
|
|
1827
|
+
"name": "value-class",
|
|
1828
1828
|
"default": "-",
|
|
1829
|
-
"description": "
|
|
1829
|
+
"description": "右侧内容额外类名",
|
|
1830
1830
|
"value": {
|
|
1831
|
-
"type": "
|
|
1831
|
+
"type": "any",
|
|
1832
1832
|
"kind": "expression"
|
|
1833
1833
|
}
|
|
1834
1834
|
},
|
|
1835
1835
|
{
|
|
1836
|
-
"name": "
|
|
1837
|
-
"default": "
|
|
1838
|
-
"description": "
|
|
1836
|
+
"name": "label-class",
|
|
1837
|
+
"default": "-",
|
|
1838
|
+
"description": "描述信息额外类名",
|
|
1839
1839
|
"value": {
|
|
1840
|
-
"type": "
|
|
1840
|
+
"type": "any",
|
|
1841
1841
|
"kind": "expression"
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
@@ -2861,25 +2861,259 @@
|
|
|
2861
2861
|
"default": "`¥`",
|
|
2862
2862
|
"description": "货币符号",
|
|
2863
2863
|
"value": {
|
|
2864
|
-
"type": "string",
|
|
2864
|
+
"type": "string",
|
|
2865
|
+
"kind": "expression"
|
|
2866
|
+
}
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
"name": "empty-image",
|
|
2870
|
+
"default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
|
|
2871
|
+
"description": "列表为空时的占位图",
|
|
2872
|
+
"value": {
|
|
2873
|
+
"type": "string",
|
|
2874
|
+
"kind": "expression"
|
|
2875
|
+
}
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
"name": "show-count",
|
|
2879
|
+
"default": "`true`",
|
|
2880
|
+
"description": "是否展示可用 / 不可用数量",
|
|
2881
|
+
"value": {
|
|
2882
|
+
"type": "boolean",
|
|
2883
|
+
"kind": "expression"
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
]
|
|
2887
|
+
},
|
|
2888
|
+
{
|
|
2889
|
+
"name": "van-datetime-picker",
|
|
2890
|
+
"slots": [
|
|
2891
|
+
{
|
|
2892
|
+
"name": "default",
|
|
2893
|
+
"description": "自定义整个顶部栏的内容"
|
|
2894
|
+
},
|
|
2895
|
+
{
|
|
2896
|
+
"name": "title",
|
|
2897
|
+
"description": "自定义标题内容"
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
"name": "confirm",
|
|
2901
|
+
"description": "自定义确认按钮内容"
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
"name": "cancel",
|
|
2905
|
+
"description": "自定义取消按钮内容"
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
"name": "option",
|
|
2909
|
+
"description": "自定义选项内容"
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
"name": "columns-top",
|
|
2913
|
+
"description": "自定义选项上方内容"
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
"name": "columns-bottom",
|
|
2917
|
+
"description": "自定义选项下方内容"
|
|
2918
|
+
}
|
|
2919
|
+
],
|
|
2920
|
+
"events": [
|
|
2921
|
+
{
|
|
2922
|
+
"name": "change",
|
|
2923
|
+
"description": "当值变化时触发的事件"
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
"name": "confirm",
|
|
2927
|
+
"description": "点击完成按钮时触发的事件"
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
"name": "cancel",
|
|
2931
|
+
"description": "点击取消按钮时触发的事件"
|
|
2932
|
+
}
|
|
2933
|
+
],
|
|
2934
|
+
"attributes": [
|
|
2935
|
+
{
|
|
2936
|
+
"name": "type",
|
|
2937
|
+
"default": "`datetime`",
|
|
2938
|
+
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
|
|
2939
|
+
"value": {
|
|
2940
|
+
"type": "string",
|
|
2941
|
+
"kind": "expression"
|
|
2942
|
+
}
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
"name": "title",
|
|
2946
|
+
"default": "`''`",
|
|
2947
|
+
"description": "顶部栏标题",
|
|
2948
|
+
"value": {
|
|
2949
|
+
"type": "string",
|
|
2950
|
+
"kind": "expression"
|
|
2951
|
+
}
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
"name": "confirm-button-text",
|
|
2955
|
+
"default": "`确认`",
|
|
2956
|
+
"description": "确认按钮文字",
|
|
2957
|
+
"value": {
|
|
2958
|
+
"type": "string",
|
|
2959
|
+
"kind": "expression"
|
|
2960
|
+
}
|
|
2961
|
+
},
|
|
2962
|
+
{
|
|
2963
|
+
"name": "cancel-button-text",
|
|
2964
|
+
"default": "`取消`",
|
|
2965
|
+
"description": "取消按钮文字",
|
|
2966
|
+
"value": {
|
|
2967
|
+
"type": "string",
|
|
2968
|
+
"kind": "expression"
|
|
2969
|
+
}
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
"name": "show-toolbar",
|
|
2973
|
+
"default": "`true`",
|
|
2974
|
+
"description": "是否显示顶部栏",
|
|
2975
|
+
"value": {
|
|
2976
|
+
"type": "boolean",
|
|
2977
|
+
"kind": "expression"
|
|
2978
|
+
}
|
|
2979
|
+
},
|
|
2980
|
+
{
|
|
2981
|
+
"name": "loading",
|
|
2982
|
+
"default": "`false`",
|
|
2983
|
+
"description": "是否显示加载状态",
|
|
2984
|
+
"value": {
|
|
2985
|
+
"type": "boolean",
|
|
2986
|
+
"kind": "expression"
|
|
2987
|
+
}
|
|
2988
|
+
},
|
|
2989
|
+
{
|
|
2990
|
+
"name": "readonly",
|
|
2991
|
+
"default": "`false`",
|
|
2992
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
|
2993
|
+
"value": {
|
|
2994
|
+
"type": "boolean",
|
|
2995
|
+
"kind": "expression"
|
|
2996
|
+
}
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
"name": "filter",
|
|
3000
|
+
"default": "-",
|
|
3001
|
+
"description": "选项过滤函数",
|
|
3002
|
+
"value": {
|
|
3003
|
+
"type": "(type, vals) => vals",
|
|
3004
|
+
"kind": "expression"
|
|
3005
|
+
}
|
|
3006
|
+
},
|
|
3007
|
+
{
|
|
3008
|
+
"name": "formatter",
|
|
3009
|
+
"default": "-",
|
|
3010
|
+
"description": "选项格式化函数",
|
|
3011
|
+
"value": {
|
|
3012
|
+
"type": "(type, val) => val",
|
|
3013
|
+
"kind": "expression"
|
|
3014
|
+
}
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
"name": "columns-order",
|
|
3018
|
+
"default": "-",
|
|
3019
|
+
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
|
3020
|
+
"value": {
|
|
3021
|
+
"type": "string[]",
|
|
3022
|
+
"kind": "expression"
|
|
3023
|
+
}
|
|
3024
|
+
},
|
|
3025
|
+
{
|
|
3026
|
+
"name": "item-height",
|
|
3027
|
+
"default": "`44`",
|
|
3028
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
|
3029
|
+
"value": {
|
|
3030
|
+
"type": "number | string",
|
|
3031
|
+
"kind": "expression"
|
|
3032
|
+
}
|
|
3033
|
+
},
|
|
3034
|
+
{
|
|
3035
|
+
"name": "visible-item-count",
|
|
3036
|
+
"default": "`6`",
|
|
3037
|
+
"description": "可见的选项个数",
|
|
3038
|
+
"value": {
|
|
3039
|
+
"type": "number | string",
|
|
3040
|
+
"kind": "expression"
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
"name": "swipe-duration",
|
|
3045
|
+
"default": "`1000`",
|
|
3046
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
|
3047
|
+
"value": {
|
|
3048
|
+
"type": "number | string",
|
|
3049
|
+
"kind": "expression"
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
]
|
|
3053
|
+
},
|
|
3054
|
+
{
|
|
3055
|
+
"name": "van-date-picker",
|
|
3056
|
+
"slots": [],
|
|
3057
|
+
"events": [],
|
|
3058
|
+
"attributes": [
|
|
3059
|
+
{
|
|
3060
|
+
"name": "min-date",
|
|
3061
|
+
"default": "十年前",
|
|
3062
|
+
"description": "可选的最小时间,精确到分钟",
|
|
3063
|
+
"value": {
|
|
3064
|
+
"type": "Date",
|
|
3065
|
+
"kind": "expression"
|
|
3066
|
+
}
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
"name": "max-date",
|
|
3070
|
+
"default": "十年后",
|
|
3071
|
+
"description": "可选的最大时间,精确到分钟",
|
|
3072
|
+
"value": {
|
|
3073
|
+
"type": "Date",
|
|
3074
|
+
"kind": "expression"
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
]
|
|
3078
|
+
},
|
|
3079
|
+
{
|
|
3080
|
+
"name": "van-time-picker",
|
|
3081
|
+
"slots": [],
|
|
3082
|
+
"events": [],
|
|
3083
|
+
"attributes": [
|
|
3084
|
+
{
|
|
3085
|
+
"name": "min-hour",
|
|
3086
|
+
"default": "`0`",
|
|
3087
|
+
"description": "可选的最小小时",
|
|
3088
|
+
"value": {
|
|
3089
|
+
"type": "number | string",
|
|
3090
|
+
"kind": "expression"
|
|
3091
|
+
}
|
|
3092
|
+
},
|
|
3093
|
+
{
|
|
3094
|
+
"name": "max-hour",
|
|
3095
|
+
"default": "`23`",
|
|
3096
|
+
"description": "可选的最大小时",
|
|
3097
|
+
"value": {
|
|
3098
|
+
"type": "number | string",
|
|
2865
3099
|
"kind": "expression"
|
|
2866
3100
|
}
|
|
2867
3101
|
},
|
|
2868
3102
|
{
|
|
2869
|
-
"name": "
|
|
2870
|
-
"default": "`
|
|
2871
|
-
"description": "
|
|
3103
|
+
"name": "min-minute",
|
|
3104
|
+
"default": "`0`",
|
|
3105
|
+
"description": "可选的最小分钟",
|
|
2872
3106
|
"value": {
|
|
2873
|
-
"type": "string",
|
|
3107
|
+
"type": "number | string",
|
|
2874
3108
|
"kind": "expression"
|
|
2875
3109
|
}
|
|
2876
3110
|
},
|
|
2877
3111
|
{
|
|
2878
|
-
"name": "
|
|
2879
|
-
"default": "`
|
|
2880
|
-
"description": "
|
|
3112
|
+
"name": "max-minute",
|
|
3113
|
+
"default": "`59`",
|
|
3114
|
+
"description": "可选的最大分钟",
|
|
2881
3115
|
"value": {
|
|
2882
|
-
"type": "
|
|
3116
|
+
"type": "number | string",
|
|
2883
3117
|
"kind": "expression"
|
|
2884
3118
|
}
|
|
2885
3119
|
}
|
|
@@ -3133,240 +3367,6 @@
|
|
|
3133
3367
|
}
|
|
3134
3368
|
]
|
|
3135
3369
|
},
|
|
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
|
-
},
|
|
3370
3370
|
{
|
|
3371
3371
|
"name": "van-divider",
|
|
3372
3372
|
"slots": [
|