vant 4.0.0-rc.4 → 4.0.0-rc.5
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/changelog.generated.md +39 -27
- package/es/date-picker/DatePicker.mjs +4 -1
- package/es/date-picker/utils.d.ts +1 -0
- package/es/date-picker/utils.mjs +11 -0
- package/es/field/Field.mjs +3 -3
- package/es/field/index.css +1 -1
- package/es/field/types.d.ts +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/loading/Loading.mjs +8 -4
- package/es/nav-bar/NavBar.d.ts +13 -0
- package/es/nav-bar/NavBar.mjs +4 -3
- package/es/nav-bar/index.d.ts +9 -0
- package/es/stepper/Stepper.d.ts +13 -0
- package/es/stepper/Stepper.mjs +4 -3
- package/es/stepper/index.d.ts +9 -0
- package/es/tabs/Tabs.mjs +44 -41
- package/es/time-picker/TimePicker.mjs +4 -3
- package/lib/date-picker/DatePicker.js +3 -0
- package/lib/date-picker/utils.d.ts +1 -0
- package/lib/date-picker/utils.js +11 -0
- package/lib/field/Field.js +3 -3
- package/lib/field/index.css +1 -1
- package/lib/field/types.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/loading/Loading.js +8 -4
- package/lib/nav-bar/NavBar.d.ts +13 -0
- package/lib/nav-bar/NavBar.js +4 -3
- package/lib/nav-bar/index.d.ts +9 -0
- package/lib/stepper/Stepper.d.ts +13 -0
- package/lib/stepper/Stepper.js +4 -3
- package/lib/stepper/index.d.ts +9 -0
- package/lib/tabs/Tabs.js +44 -41
- package/lib/time-picker/TimePicker.js +3 -2
- package/lib/vant.cjs.js +80 -57
- package/lib/vant.es.js +80 -57
- package/lib/vant.js +80 -57
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +336 -312
- package/package.json +2 -2
package/lib/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": "4.0.0-rc.
|
5
|
+
"version": "4.0.0-rc.5",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -550,101 +550,67 @@
|
|
550
550
|
]
|
551
551
|
},
|
552
552
|
{
|
553
|
-
"name": "van-
|
553
|
+
"name": "van-area",
|
554
554
|
"slots": [
|
555
555
|
{
|
556
|
-
"name": "
|
557
|
-
"description": "Custom content"
|
556
|
+
"name": "toolbar",
|
557
|
+
"description": "Custom toolbar content"
|
558
558
|
},
|
559
559
|
{
|
560
|
-
"name": "
|
561
|
-
"description": "Custom
|
560
|
+
"name": "title",
|
561
|
+
"description": "Custom title"
|
562
|
+
},
|
563
|
+
{
|
564
|
+
"name": "confirm",
|
565
|
+
"description": "Custom confirm button text"
|
562
566
|
},
|
563
567
|
{
|
564
568
|
"name": "cancel",
|
565
|
-
"description": "Custom
|
569
|
+
"description": "Custom cancel button text"
|
566
570
|
},
|
567
571
|
{
|
568
|
-
"name": "
|
569
|
-
"description": "Custom
|
572
|
+
"name": "columns-top",
|
573
|
+
"description": "Custom content above columns"
|
574
|
+
},
|
575
|
+
{
|
576
|
+
"name": "columns-bottom",
|
577
|
+
"description": "Custom content below columns"
|
570
578
|
}
|
571
579
|
],
|
572
580
|
"events": [
|
573
581
|
{
|
574
|
-
"name": "
|
575
|
-
"description": "Emitted when
|
582
|
+
"name": "confirm",
|
583
|
+
"description": "Emitted when the confirm button is clicked",
|
576
584
|
"arguments": [
|
577
585
|
{
|
578
|
-
"name": "
|
579
|
-
"type": "ActionSheetAction"
|
580
|
-
},
|
581
|
-
{
|
582
|
-
"name": "index",
|
583
|
-
"type": "number"
|
586
|
+
"name": "{ selectedValues, selectedOptions }"
|
584
587
|
}
|
585
588
|
]
|
586
589
|
},
|
587
590
|
{
|
588
591
|
"name": "cancel",
|
589
592
|
"description": "Emitted when the cancel button is clicked",
|
590
|
-
"arguments": [
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
"arguments": []
|
596
|
-
},
|
597
|
-
{
|
598
|
-
"name": "close",
|
599
|
-
"description": "Emitted when closing ActionSheet",
|
600
|
-
"arguments": []
|
601
|
-
},
|
602
|
-
{
|
603
|
-
"name": "opened",
|
604
|
-
"description": "Emitted when ActionSheet is opened",
|
605
|
-
"arguments": []
|
606
|
-
},
|
607
|
-
{
|
608
|
-
"name": "closed",
|
609
|
-
"description": "Emitted when ActionSheet is closed",
|
610
|
-
"arguments": []
|
593
|
+
"arguments": [
|
594
|
+
{
|
595
|
+
"name": "{ selectedValues, selectedOptions }"
|
596
|
+
}
|
597
|
+
]
|
611
598
|
},
|
612
599
|
{
|
613
|
-
"name": "
|
614
|
-
"description": "Emitted when
|
600
|
+
"name": "change",
|
601
|
+
"description": "Emitted when current option is changed",
|
615
602
|
"arguments": [
|
616
603
|
{
|
617
|
-
"name": "
|
618
|
-
"type": "MouseEvent"
|
604
|
+
"name": "{ selectedValues, selectedOptions, columnIndex }"
|
619
605
|
}
|
620
606
|
]
|
621
607
|
}
|
622
608
|
],
|
623
609
|
"attributes": [
|
624
610
|
{
|
625
|
-
"name": "v-model
|
626
|
-
"default": "`false`",
|
627
|
-
"description": "Whether to show ActionSheet",
|
628
|
-
"options": [],
|
629
|
-
"value": {
|
630
|
-
"type": "boolean",
|
631
|
-
"kind": "expression"
|
632
|
-
}
|
633
|
-
},
|
634
|
-
{
|
635
|
-
"name": "actions",
|
636
|
-
"default": "`[]`",
|
637
|
-
"description": "Options",
|
638
|
-
"options": [],
|
639
|
-
"value": {
|
640
|
-
"type": "ActionSheetAction[]",
|
641
|
-
"kind": "expression"
|
642
|
-
}
|
643
|
-
},
|
644
|
-
{
|
645
|
-
"name": "title",
|
611
|
+
"name": "v-model",
|
646
612
|
"default": "-",
|
647
|
-
"description": "
|
613
|
+
"description": "the `code` of selected area",
|
648
614
|
"options": [],
|
649
615
|
"value": {
|
650
616
|
"type": "string",
|
@@ -652,9 +618,9 @@
|
|
652
618
|
}
|
653
619
|
},
|
654
620
|
{
|
655
|
-
"name": "
|
621
|
+
"name": "title",
|
656
622
|
"default": "-",
|
657
|
-
"description": "
|
623
|
+
"description": "Toolbar title",
|
658
624
|
"options": [],
|
659
625
|
"value": {
|
660
626
|
"type": "string",
|
@@ -662,9 +628,9 @@
|
|
662
628
|
}
|
663
629
|
},
|
664
630
|
{
|
665
|
-
"name": "
|
666
|
-
"default": "
|
667
|
-
"description": "
|
631
|
+
"name": "confirm-button-text",
|
632
|
+
"default": "`Confirm`",
|
633
|
+
"description": "Text of confirm button",
|
668
634
|
"options": [],
|
669
635
|
"value": {
|
670
636
|
"type": "string",
|
@@ -672,19 +638,9 @@
|
|
672
638
|
}
|
673
639
|
},
|
674
640
|
{
|
675
|
-
"name": "
|
676
|
-
"default": "`
|
677
|
-
"description": "
|
678
|
-
"options": [],
|
679
|
-
"value": {
|
680
|
-
"type": "boolean",
|
681
|
-
"kind": "expression"
|
682
|
-
}
|
683
|
-
},
|
684
|
-
{
|
685
|
-
"name": "close-icon",
|
686
|
-
"default": "`cross`",
|
687
|
-
"description": "Close icon name",
|
641
|
+
"name": "cancel-button-text",
|
642
|
+
"default": "`Cancel`",
|
643
|
+
"description": "Text of cancel button",
|
688
644
|
"options": [],
|
689
645
|
"value": {
|
690
646
|
"type": "string",
|
@@ -692,59 +648,9 @@
|
|
692
648
|
}
|
693
649
|
},
|
694
650
|
{
|
695
|
-
"name": "
|
696
|
-
"default": "`0.3`",
|
697
|
-
"description": "Transition duration, unit second",
|
698
|
-
"options": [],
|
699
|
-
"value": {
|
700
|
-
"type": "number | string",
|
701
|
-
"kind": "expression"
|
702
|
-
}
|
703
|
-
},
|
704
|
-
{
|
705
|
-
"name": "z-index",
|
706
|
-
"default": "`2000+`",
|
707
|
-
"description": "Set the z-index to a fixed value",
|
708
|
-
"options": [],
|
709
|
-
"value": {
|
710
|
-
"type": "number | string",
|
711
|
-
"kind": "expression"
|
712
|
-
}
|
713
|
-
},
|
714
|
-
{
|
715
|
-
"name": "round",
|
716
|
-
"default": "`true`",
|
717
|
-
"description": "Whether to show round corner",
|
718
|
-
"options": [],
|
719
|
-
"value": {
|
720
|
-
"type": "boolean",
|
721
|
-
"kind": "expression"
|
722
|
-
}
|
723
|
-
},
|
724
|
-
{
|
725
|
-
"name": "overlay",
|
726
|
-
"default": "`true`",
|
727
|
-
"description": "Whether to show overlay",
|
728
|
-
"options": [],
|
729
|
-
"value": {
|
730
|
-
"type": "boolean",
|
731
|
-
"kind": "expression"
|
732
|
-
}
|
733
|
-
},
|
734
|
-
{
|
735
|
-
"name": "overlay-class",
|
736
|
-
"default": "-",
|
737
|
-
"description": "Custom overlay class",
|
738
|
-
"options": [],
|
739
|
-
"value": {
|
740
|
-
"type": "string | Array | object",
|
741
|
-
"kind": "expression"
|
742
|
-
}
|
743
|
-
},
|
744
|
-
{
|
745
|
-
"name": "overlay-style",
|
651
|
+
"name": "area-list",
|
746
652
|
"default": "-",
|
747
|
-
"description": "
|
653
|
+
"description": "Area list data",
|
748
654
|
"options": [],
|
749
655
|
"value": {
|
750
656
|
"type": "object",
|
@@ -752,29 +658,19 @@
|
|
752
658
|
}
|
753
659
|
},
|
754
660
|
{
|
755
|
-
"name": "
|
756
|
-
"default": "`
|
757
|
-
"description": "
|
758
|
-
"options": [],
|
759
|
-
"value": {
|
760
|
-
"type": "boolean",
|
761
|
-
"kind": "expression"
|
762
|
-
}
|
763
|
-
},
|
764
|
-
{
|
765
|
-
"name": "lazy-render",
|
766
|
-
"default": "`true`",
|
767
|
-
"description": "Whether to lazy render util appeared",
|
661
|
+
"name": "columns-placeholder",
|
662
|
+
"default": "`[]`",
|
663
|
+
"description": "Placeholder of columns",
|
768
664
|
"options": [],
|
769
665
|
"value": {
|
770
|
-
"type": "
|
666
|
+
"type": "string[]",
|
771
667
|
"kind": "expression"
|
772
668
|
}
|
773
669
|
},
|
774
670
|
{
|
775
|
-
"name": "
|
776
|
-
"default": "`
|
777
|
-
"description": "Whether to
|
671
|
+
"name": "loading",
|
672
|
+
"default": "`false`",
|
673
|
+
"description": "Whether to show loading prompt",
|
778
674
|
"options": [],
|
779
675
|
"value": {
|
780
676
|
"type": "boolean",
|
@@ -782,9 +678,9 @@
|
|
782
678
|
}
|
783
679
|
},
|
784
680
|
{
|
785
|
-
"name": "
|
681
|
+
"name": "readonly",
|
786
682
|
"default": "`false`",
|
787
|
-
"description": "Whether to
|
683
|
+
"description": "Whether to be readonly",
|
788
684
|
"options": [],
|
789
685
|
"value": {
|
790
686
|
"type": "boolean",
|
@@ -792,42 +688,42 @@
|
|
792
688
|
}
|
793
689
|
},
|
794
690
|
{
|
795
|
-
"name": "
|
796
|
-
"default": "`
|
797
|
-
"description": "
|
691
|
+
"name": "option-height",
|
692
|
+
"default": "`44`",
|
693
|
+
"description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
|
798
694
|
"options": [],
|
799
695
|
"value": {
|
800
|
-
"type": "
|
696
|
+
"type": "number | string",
|
801
697
|
"kind": "expression"
|
802
698
|
}
|
803
699
|
},
|
804
700
|
{
|
805
|
-
"name": "
|
806
|
-
"default": "`
|
807
|
-
"description": "
|
701
|
+
"name": "columns-num",
|
702
|
+
"default": "`3`",
|
703
|
+
"description": "Level of picker",
|
808
704
|
"options": [],
|
809
705
|
"value": {
|
810
|
-
"type": "
|
706
|
+
"type": "number | string",
|
811
707
|
"kind": "expression"
|
812
708
|
}
|
813
709
|
},
|
814
710
|
{
|
815
|
-
"name": "
|
816
|
-
"default": "
|
817
|
-
"description": "
|
711
|
+
"name": "visible-option-num",
|
712
|
+
"default": "`6`",
|
713
|
+
"description": "Count of visible columns",
|
818
714
|
"options": [],
|
819
715
|
"value": {
|
820
|
-
"type": "
|
716
|
+
"type": "number | string",
|
821
717
|
"kind": "expression"
|
822
718
|
}
|
823
719
|
},
|
824
720
|
{
|
825
|
-
"name": "
|
826
|
-
"default": "
|
827
|
-
"description": "
|
721
|
+
"name": "swipe-duration",
|
722
|
+
"default": "`1000`",
|
723
|
+
"description": "Duration of the momentum animation, unit `ms`",
|
828
724
|
"options": [],
|
829
725
|
"value": {
|
830
|
-
"type": "
|
726
|
+
"type": "number | string",
|
831
727
|
"kind": "expression"
|
832
728
|
}
|
833
729
|
}
|
@@ -997,30 +893,168 @@
|
|
997
893
|
"description": "Default tag text",
|
998
894
|
"options": [],
|
999
895
|
"value": {
|
1000
|
-
"type": "string",
|
896
|
+
"type": "string",
|
897
|
+
"kind": "expression"
|
898
|
+
}
|
899
|
+
}
|
900
|
+
]
|
901
|
+
},
|
902
|
+
{
|
903
|
+
"name": "van-action-sheet",
|
904
|
+
"slots": [
|
905
|
+
{
|
906
|
+
"name": "default",
|
907
|
+
"description": "Custom content"
|
908
|
+
},
|
909
|
+
{
|
910
|
+
"name": "description",
|
911
|
+
"description": "Custom description above the options"
|
912
|
+
},
|
913
|
+
{
|
914
|
+
"name": "cancel",
|
915
|
+
"description": "Custom the content of cancel button"
|
916
|
+
},
|
917
|
+
{
|
918
|
+
"name": "action",
|
919
|
+
"description": "Custom the content of action"
|
920
|
+
}
|
921
|
+
],
|
922
|
+
"events": [
|
923
|
+
{
|
924
|
+
"name": "select",
|
925
|
+
"description": "Emitted when an option is clicked",
|
926
|
+
"arguments": [
|
927
|
+
{
|
928
|
+
"name": "action",
|
929
|
+
"type": "ActionSheetAction"
|
930
|
+
},
|
931
|
+
{
|
932
|
+
"name": "index",
|
933
|
+
"type": "number"
|
934
|
+
}
|
935
|
+
]
|
936
|
+
},
|
937
|
+
{
|
938
|
+
"name": "cancel",
|
939
|
+
"description": "Emitted when the cancel button is clicked",
|
940
|
+
"arguments": []
|
941
|
+
},
|
942
|
+
{
|
943
|
+
"name": "open",
|
944
|
+
"description": "Emitted when opening ActionSheet",
|
945
|
+
"arguments": []
|
946
|
+
},
|
947
|
+
{
|
948
|
+
"name": "close",
|
949
|
+
"description": "Emitted when closing ActionSheet",
|
950
|
+
"arguments": []
|
951
|
+
},
|
952
|
+
{
|
953
|
+
"name": "opened",
|
954
|
+
"description": "Emitted when ActionSheet is opened",
|
955
|
+
"arguments": []
|
956
|
+
},
|
957
|
+
{
|
958
|
+
"name": "closed",
|
959
|
+
"description": "Emitted when ActionSheet is closed",
|
960
|
+
"arguments": []
|
961
|
+
},
|
962
|
+
{
|
963
|
+
"name": "click-overlay",
|
964
|
+
"description": "Emitted when overlay is clicked",
|
965
|
+
"arguments": [
|
966
|
+
{
|
967
|
+
"name": "event",
|
968
|
+
"type": "MouseEvent"
|
969
|
+
}
|
970
|
+
]
|
971
|
+
}
|
972
|
+
],
|
973
|
+
"attributes": [
|
974
|
+
{
|
975
|
+
"name": "v-model:show",
|
976
|
+
"default": "`false`",
|
977
|
+
"description": "Whether to show ActionSheet",
|
978
|
+
"options": [],
|
979
|
+
"value": {
|
980
|
+
"type": "boolean",
|
981
|
+
"kind": "expression"
|
982
|
+
}
|
983
|
+
},
|
984
|
+
{
|
985
|
+
"name": "actions",
|
986
|
+
"default": "`[]`",
|
987
|
+
"description": "Options",
|
988
|
+
"options": [],
|
989
|
+
"value": {
|
990
|
+
"type": "ActionSheetAction[]",
|
991
|
+
"kind": "expression"
|
992
|
+
}
|
993
|
+
},
|
994
|
+
{
|
995
|
+
"name": "title",
|
996
|
+
"default": "-",
|
997
|
+
"description": "Title",
|
998
|
+
"options": [],
|
999
|
+
"value": {
|
1000
|
+
"type": "string",
|
1001
|
+
"kind": "expression"
|
1002
|
+
}
|
1003
|
+
},
|
1004
|
+
{
|
1005
|
+
"name": "cancel-text",
|
1006
|
+
"default": "-",
|
1007
|
+
"description": "Text of cancel button",
|
1008
|
+
"options": [],
|
1009
|
+
"value": {
|
1010
|
+
"type": "string",
|
1011
|
+
"kind": "expression"
|
1012
|
+
}
|
1013
|
+
},
|
1014
|
+
{
|
1015
|
+
"name": "description",
|
1016
|
+
"default": "-",
|
1017
|
+
"description": "Description above the options",
|
1018
|
+
"options": [],
|
1019
|
+
"value": {
|
1020
|
+
"type": "string",
|
1021
|
+
"kind": "expression"
|
1022
|
+
}
|
1023
|
+
},
|
1024
|
+
{
|
1025
|
+
"name": "closeable",
|
1026
|
+
"default": "`true`",
|
1027
|
+
"description": "Whether to show close icon",
|
1028
|
+
"options": [],
|
1029
|
+
"value": {
|
1030
|
+
"type": "boolean",
|
1031
|
+
"kind": "expression"
|
1032
|
+
}
|
1033
|
+
},
|
1034
|
+
{
|
1035
|
+
"name": "close-icon",
|
1036
|
+
"default": "`cross`",
|
1037
|
+
"description": "Close icon name",
|
1038
|
+
"options": [],
|
1039
|
+
"value": {
|
1040
|
+
"type": "string",
|
1041
|
+
"kind": "expression"
|
1042
|
+
}
|
1043
|
+
},
|
1044
|
+
{
|
1045
|
+
"name": "duration",
|
1046
|
+
"default": "`0.3`",
|
1047
|
+
"description": "Transition duration, unit second",
|
1048
|
+
"options": [],
|
1049
|
+
"value": {
|
1050
|
+
"type": "number | string",
|
1001
1051
|
"kind": "expression"
|
1002
1052
|
}
|
1003
|
-
}
|
1004
|
-
]
|
1005
|
-
},
|
1006
|
-
{
|
1007
|
-
"name": "van-badge",
|
1008
|
-
"slots": [
|
1009
|
-
{
|
1010
|
-
"name": "default",
|
1011
|
-
"description": "Default slot"
|
1012
1053
|
},
|
1013
1054
|
{
|
1014
|
-
"name": "
|
1015
|
-
"
|
1016
|
-
|
1017
|
-
],
|
1018
|
-
"events": [],
|
1019
|
-
"attributes": [
|
1020
|
-
{
|
1021
|
-
"name": "content",
|
1022
|
-
"default": "-",
|
1023
|
-
"description": "Badge content",
|
1055
|
+
"name": "z-index",
|
1056
|
+
"default": "`2000+`",
|
1057
|
+
"description": "Set the z-index to a fixed value",
|
1024
1058
|
"options": [],
|
1025
1059
|
"value": {
|
1026
1060
|
"type": "number | string",
|
@@ -1028,19 +1062,19 @@
|
|
1028
1062
|
}
|
1029
1063
|
},
|
1030
1064
|
{
|
1031
|
-
"name": "
|
1032
|
-
"default": "
|
1033
|
-
"description": "
|
1065
|
+
"name": "round",
|
1066
|
+
"default": "`true`",
|
1067
|
+
"description": "Whether to show round corner",
|
1034
1068
|
"options": [],
|
1035
1069
|
"value": {
|
1036
|
-
"type": "
|
1070
|
+
"type": "boolean",
|
1037
1071
|
"kind": "expression"
|
1038
1072
|
}
|
1039
1073
|
},
|
1040
1074
|
{
|
1041
|
-
"name": "
|
1042
|
-
"default": "`
|
1043
|
-
"description": "Whether to show
|
1075
|
+
"name": "overlay",
|
1076
|
+
"default": "`true`",
|
1077
|
+
"description": "Whether to show overlay",
|
1044
1078
|
"options": [],
|
1045
1079
|
"value": {
|
1046
1080
|
"type": "boolean",
|
@@ -1048,29 +1082,29 @@
|
|
1048
1082
|
}
|
1049
1083
|
},
|
1050
1084
|
{
|
1051
|
-
"name": "
|
1085
|
+
"name": "overlay-class",
|
1052
1086
|
"default": "-",
|
1053
|
-
"description": "
|
1087
|
+
"description": "Custom overlay class",
|
1054
1088
|
"options": [],
|
1055
1089
|
"value": {
|
1056
|
-
"type": "
|
1090
|
+
"type": "string | Array | object",
|
1057
1091
|
"kind": "expression"
|
1058
1092
|
}
|
1059
1093
|
},
|
1060
1094
|
{
|
1061
|
-
"name": "
|
1095
|
+
"name": "overlay-style",
|
1062
1096
|
"default": "-",
|
1063
|
-
"description": "
|
1097
|
+
"description": "Custom overlay style",
|
1064
1098
|
"options": [],
|
1065
1099
|
"value": {
|
1066
|
-
"type": "
|
1100
|
+
"type": "object",
|
1067
1101
|
"kind": "expression"
|
1068
1102
|
}
|
1069
1103
|
},
|
1070
1104
|
{
|
1071
|
-
"name": "
|
1105
|
+
"name": "lock-scroll",
|
1072
1106
|
"default": "`true`",
|
1073
|
-
"description": "Whether to
|
1107
|
+
"description": "Whether to lock background scroll",
|
1074
1108
|
"options": [],
|
1075
1109
|
"value": {
|
1076
1110
|
"type": "boolean",
|
@@ -1078,149 +1112,115 @@
|
|
1078
1112
|
}
|
1079
1113
|
},
|
1080
1114
|
{
|
1081
|
-
"name": "
|
1082
|
-
"default": "`
|
1083
|
-
"description": "
|
1115
|
+
"name": "lazy-render",
|
1116
|
+
"default": "`true`",
|
1117
|
+
"description": "Whether to lazy render util appeared",
|
1084
1118
|
"options": [],
|
1085
1119
|
"value": {
|
1086
|
-
"type": "
|
1120
|
+
"type": "boolean",
|
1087
1121
|
"kind": "expression"
|
1088
1122
|
}
|
1089
|
-
}
|
1090
|
-
]
|
1091
|
-
},
|
1092
|
-
{
|
1093
|
-
"name": "van-area",
|
1094
|
-
"slots": [
|
1095
|
-
{
|
1096
|
-
"name": "toolbar",
|
1097
|
-
"description": "Custom toolbar content"
|
1098
|
-
},
|
1099
|
-
{
|
1100
|
-
"name": "title",
|
1101
|
-
"description": "Custom title"
|
1102
|
-
},
|
1103
|
-
{
|
1104
|
-
"name": "confirm",
|
1105
|
-
"description": "Custom confirm button text"
|
1106
|
-
},
|
1107
|
-
{
|
1108
|
-
"name": "cancel",
|
1109
|
-
"description": "Custom cancel button text"
|
1110
|
-
},
|
1111
|
-
{
|
1112
|
-
"name": "columns-top",
|
1113
|
-
"description": "Custom content above columns"
|
1114
|
-
},
|
1115
|
-
{
|
1116
|
-
"name": "columns-bottom",
|
1117
|
-
"description": "Custom content below columns"
|
1118
|
-
}
|
1119
|
-
],
|
1120
|
-
"events": [
|
1121
|
-
{
|
1122
|
-
"name": "confirm",
|
1123
|
-
"description": "Emitted when the confirm button is clicked",
|
1124
|
-
"arguments": [
|
1125
|
-
{
|
1126
|
-
"name": "{ selectedValues, selectedOptions }"
|
1127
|
-
}
|
1128
|
-
]
|
1129
1123
|
},
|
1130
1124
|
{
|
1131
|
-
"name": "
|
1132
|
-
"
|
1133
|
-
"
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1125
|
+
"name": "close-on-popstate",
|
1126
|
+
"default": "`true`",
|
1127
|
+
"description": "Whether to close when popstate",
|
1128
|
+
"options": [],
|
1129
|
+
"value": {
|
1130
|
+
"type": "boolean",
|
1131
|
+
"kind": "expression"
|
1132
|
+
}
|
1138
1133
|
},
|
1139
1134
|
{
|
1140
|
-
"name": "
|
1141
|
-
"
|
1142
|
-
"
|
1143
|
-
{
|
1144
|
-
"name": "{ selectedValues, selectedOptions, columnIndex }"
|
1145
|
-
}
|
1146
|
-
]
|
1147
|
-
}
|
1148
|
-
],
|
1149
|
-
"attributes": [
|
1150
|
-
{
|
1151
|
-
"name": "v-model",
|
1152
|
-
"default": "-",
|
1153
|
-
"description": "the `code` of selected area",
|
1135
|
+
"name": "close-on-click-action",
|
1136
|
+
"default": "`false`",
|
1137
|
+
"description": "Whether to close when an action is clicked",
|
1154
1138
|
"options": [],
|
1155
1139
|
"value": {
|
1156
|
-
"type": "
|
1140
|
+
"type": "boolean",
|
1157
1141
|
"kind": "expression"
|
1158
1142
|
}
|
1159
1143
|
},
|
1160
1144
|
{
|
1161
|
-
"name": "
|
1162
|
-
"default": "
|
1163
|
-
"description": "
|
1145
|
+
"name": "close-on-click-overlay",
|
1146
|
+
"default": "`true`",
|
1147
|
+
"description": "Whether to close when overlay is clicked",
|
1164
1148
|
"options": [],
|
1165
1149
|
"value": {
|
1166
|
-
"type": "
|
1150
|
+
"type": "boolean",
|
1167
1151
|
"kind": "expression"
|
1168
1152
|
}
|
1169
1153
|
},
|
1170
1154
|
{
|
1171
|
-
"name": "
|
1172
|
-
"default": "`
|
1173
|
-
"description": "
|
1155
|
+
"name": "safe-area-inset-bottom",
|
1156
|
+
"default": "`true`",
|
1157
|
+
"description": "Whether to enable bottom safe area adaptation",
|
1174
1158
|
"options": [],
|
1175
1159
|
"value": {
|
1176
|
-
"type": "
|
1160
|
+
"type": "boolean",
|
1177
1161
|
"kind": "expression"
|
1178
1162
|
}
|
1179
1163
|
},
|
1180
1164
|
{
|
1181
|
-
"name": "
|
1182
|
-
"default": "
|
1183
|
-
"description": "
|
1165
|
+
"name": "teleport",
|
1166
|
+
"default": "-",
|
1167
|
+
"description": "Specifies a target element where ActionSheet will be mounted",
|
1184
1168
|
"options": [],
|
1185
1169
|
"value": {
|
1186
|
-
"type": "string",
|
1170
|
+
"type": "string | Element",
|
1187
1171
|
"kind": "expression"
|
1188
1172
|
}
|
1189
1173
|
},
|
1190
1174
|
{
|
1191
|
-
"name": "
|
1175
|
+
"name": "before-close",
|
1192
1176
|
"default": "-",
|
1193
|
-
"description": "
|
1177
|
+
"description": "Callback function before close",
|
1194
1178
|
"options": [],
|
1195
1179
|
"value": {
|
1196
|
-
"type": "
|
1180
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
1197
1181
|
"kind": "expression"
|
1198
1182
|
}
|
1183
|
+
}
|
1184
|
+
]
|
1185
|
+
},
|
1186
|
+
{
|
1187
|
+
"name": "van-badge",
|
1188
|
+
"slots": [
|
1189
|
+
{
|
1190
|
+
"name": "default",
|
1191
|
+
"description": "Default slot"
|
1199
1192
|
},
|
1200
1193
|
{
|
1201
|
-
"name": "
|
1202
|
-
"
|
1203
|
-
|
1194
|
+
"name": "content",
|
1195
|
+
"description": "Custom badge content"
|
1196
|
+
}
|
1197
|
+
],
|
1198
|
+
"events": [],
|
1199
|
+
"attributes": [
|
1200
|
+
{
|
1201
|
+
"name": "content",
|
1202
|
+
"default": "-",
|
1203
|
+
"description": "Badge content",
|
1204
1204
|
"options": [],
|
1205
1205
|
"value": {
|
1206
|
-
"type": "string
|
1206
|
+
"type": "number | string",
|
1207
1207
|
"kind": "expression"
|
1208
1208
|
}
|
1209
1209
|
},
|
1210
1210
|
{
|
1211
|
-
"name": "
|
1212
|
-
"default": "`
|
1213
|
-
"description": "
|
1211
|
+
"name": "color",
|
1212
|
+
"default": "`#ee0a24`",
|
1213
|
+
"description": "Background color",
|
1214
1214
|
"options": [],
|
1215
1215
|
"value": {
|
1216
|
-
"type": "
|
1216
|
+
"type": "string",
|
1217
1217
|
"kind": "expression"
|
1218
1218
|
}
|
1219
1219
|
},
|
1220
1220
|
{
|
1221
|
-
"name": "
|
1221
|
+
"name": "dot",
|
1222
1222
|
"default": "`false`",
|
1223
|
-
"description": "Whether to
|
1223
|
+
"description": "Whether to show dot",
|
1224
1224
|
"options": [],
|
1225
1225
|
"value": {
|
1226
1226
|
"type": "boolean",
|
@@ -1228,9 +1228,9 @@
|
|
1228
1228
|
}
|
1229
1229
|
},
|
1230
1230
|
{
|
1231
|
-
"name": "
|
1232
|
-
"default": "
|
1233
|
-
"description": "
|
1231
|
+
"name": "max",
|
1232
|
+
"default": "-",
|
1233
|
+
"description": "Max value, show `{max}+` when exceed, only works when content is number",
|
1234
1234
|
"options": [],
|
1235
1235
|
"value": {
|
1236
1236
|
"type": "number | string",
|
@@ -1238,32 +1238,32 @@
|
|
1238
1238
|
}
|
1239
1239
|
},
|
1240
1240
|
{
|
1241
|
-
"name": "
|
1242
|
-
"default": "
|
1243
|
-
"description": "
|
1241
|
+
"name": "offset",
|
1242
|
+
"default": "-",
|
1243
|
+
"description": "Offset of badge dot",
|
1244
1244
|
"options": [],
|
1245
1245
|
"value": {
|
1246
|
-
"type": "number | string",
|
1246
|
+
"type": "[number | string, number | string]",
|
1247
1247
|
"kind": "expression"
|
1248
1248
|
}
|
1249
1249
|
},
|
1250
1250
|
{
|
1251
|
-
"name": "
|
1252
|
-
"default": "`
|
1253
|
-
"description": "
|
1251
|
+
"name": "show-zero",
|
1252
|
+
"default": "`true`",
|
1253
|
+
"description": "Whether to show badge when content is zero",
|
1254
1254
|
"options": [],
|
1255
1255
|
"value": {
|
1256
|
-
"type": "
|
1256
|
+
"type": "boolean",
|
1257
1257
|
"kind": "expression"
|
1258
1258
|
}
|
1259
1259
|
},
|
1260
1260
|
{
|
1261
|
-
"name": "
|
1262
|
-
"default": "`
|
1263
|
-
"description": "
|
1261
|
+
"name": "position",
|
1262
|
+
"default": "`top-right`",
|
1263
|
+
"description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`",
|
1264
1264
|
"options": [],
|
1265
1265
|
"value": {
|
1266
|
-
"type": "
|
1266
|
+
"type": "string",
|
1267
1267
|
"kind": "expression"
|
1268
1268
|
}
|
1269
1269
|
}
|
@@ -5134,7 +5134,7 @@
|
|
5134
5134
|
{
|
5135
5135
|
"name": "label-align",
|
5136
5136
|
"default": "`left`",
|
5137
|
-
"description": "Label align, can be set to `center` `right`",
|
5137
|
+
"description": "Label align, can be set to `center` `right` `top`",
|
5138
5138
|
"options": [],
|
5139
5139
|
"value": {
|
5140
5140
|
"type": "FieldTextAlign",
|
@@ -5267,7 +5267,7 @@
|
|
5267
5267
|
{
|
5268
5268
|
"name": "label-align",
|
5269
5269
|
"default": "`left`",
|
5270
|
-
"description": "Field label align, can be set to `center` `right`",
|
5270
|
+
"description": "Field label align, can be set to `center` `right` `top`",
|
5271
5271
|
"options": [],
|
5272
5272
|
"value": {
|
5273
5273
|
"type": "string",
|
@@ -6401,6 +6401,10 @@
|
|
6401
6401
|
{
|
6402
6402
|
"name": "default",
|
6403
6403
|
"description": "Loading text"
|
6404
|
+
},
|
6405
|
+
{
|
6406
|
+
"name": "icon",
|
6407
|
+
"description": "Custom loading icon"
|
6404
6408
|
}
|
6405
6409
|
],
|
6406
6410
|
"events": [],
|
@@ -6595,6 +6599,16 @@
|
|
6595
6599
|
"type": "boolean",
|
6596
6600
|
"kind": "expression"
|
6597
6601
|
}
|
6602
|
+
},
|
6603
|
+
{
|
6604
|
+
"name": "clickable",
|
6605
|
+
"default": "`true`",
|
6606
|
+
"description": "Whether to show click feedback when the left or right content is clicked",
|
6607
|
+
"options": [],
|
6608
|
+
"value": {
|
6609
|
+
"type": "boolean",
|
6610
|
+
"kind": "expression"
|
6611
|
+
}
|
6598
6612
|
}
|
6599
6613
|
]
|
6600
6614
|
},
|
@@ -9757,6 +9771,16 @@
|
|
9757
9771
|
"kind": "expression"
|
9758
9772
|
}
|
9759
9773
|
},
|
9774
|
+
{
|
9775
|
+
"name": "auto-fixed",
|
9776
|
+
"default": "`true`",
|
9777
|
+
"description": "Whether to auto fix value that is out of range, set to `false` and value that is out of range won’t be auto fixed",
|
9778
|
+
"options": [],
|
9779
|
+
"value": {
|
9780
|
+
"type": "boolean",
|
9781
|
+
"kind": "expression"
|
9782
|
+
}
|
9783
|
+
},
|
9760
9784
|
{
|
9761
9785
|
"name": "default-value",
|
9762
9786
|
"default": "`1`",
|