vant 4.0.0-alpha.2 → 4.0.0-alpha.3

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.
Files changed (52) hide show
  1. package/changelog.generated.md +33 -29
  2. package/es/empty/Empty.js +10 -13
  3. package/es/empty/Images.d.ts +4 -0
  4. package/es/empty/Images.js +271 -0
  5. package/es/field/Field.js +6 -3
  6. package/es/field/types.d.ts +1 -1
  7. package/es/form/Form.d.ts +13 -13
  8. package/es/form/Form.js +6 -3
  9. package/es/form/index.d.ts +9 -9
  10. package/es/index.d.ts +1 -1
  11. package/es/index.js +1 -1
  12. package/es/loading/Loading.js +3 -1
  13. package/es/search/index.css +1 -1
  14. package/es/search/index.less +1 -1
  15. package/es/uploader/Uploader.js +2 -2
  16. package/es/uploader/utils.d.ts +0 -1
  17. package/es/uploader/utils.js +2 -4
  18. package/es/utils/basic.d.ts +1 -0
  19. package/es/utils/basic.js +3 -1
  20. package/lib/empty/Empty.js +10 -13
  21. package/lib/empty/Images.d.ts +4 -0
  22. package/lib/empty/Images.js +290 -0
  23. package/lib/field/Field.js +5 -2
  24. package/lib/field/types.d.ts +1 -1
  25. package/lib/form/Form.d.ts +13 -13
  26. package/lib/form/Form.js +5 -2
  27. package/lib/form/index.d.ts +9 -9
  28. package/lib/index.css +1 -1
  29. package/lib/index.d.ts +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/loading/Loading.js +3 -1
  32. package/lib/search/index.css +1 -1
  33. package/lib/search/index.less +1 -1
  34. package/lib/uploader/Uploader.js +1 -1
  35. package/lib/uploader/utils.d.ts +0 -1
  36. package/lib/uploader/utils.js +2 -4
  37. package/lib/utils/basic.d.ts +1 -0
  38. package/lib/utils/basic.js +3 -1
  39. package/lib/vant.cjs.js +233 -49
  40. package/lib/vant.cjs.min.js +1 -1
  41. package/lib/vant.es.js +233 -49
  42. package/lib/vant.es.min.js +233 -49
  43. package/lib/vant.js +233 -49
  44. package/lib/vant.min.js +1 -1
  45. package/package.json +1 -1
  46. package/vetur/attributes.json +551 -551
  47. package/vetur/tags.json +200 -200
  48. package/vetur/web-types.json +1778 -1778
  49. package/es/empty/Network.d.ts +0 -1
  50. package/es/empty/Network.js +0 -89
  51. package/lib/empty/Network.d.ts +0 -1
  52. package/lib/empty/Network.js +0 -108
@@ -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-alpha.2",
5
+ "version": "4.0.0-alpha.3",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -526,267 +526,205 @@
526
526
  ]
527
527
  },
528
528
  {
529
- "name": "van-address-list",
529
+ "name": "van-address-edit",
530
530
  "slots": [
531
531
  {
532
532
  "name": "default",
533
- "description": "Custom content after list"
534
- },
535
- {
536
- "name": "top",
537
- "description": "Custom content before list"
538
- },
539
- {
540
- "name": "item-bottom",
541
- "description": "Custom content after list item"
542
- },
543
- {
544
- "name": "tag",
545
- "description": "Custom tag of list item"
533
+ "description": "Custom content below address detail"
546
534
  }
547
535
  ],
548
536
  "events": [
549
537
  {
550
- "name": "add",
551
- "description": "Emitted when the add button is clicked",
552
- "arguments": []
538
+ "name": "save",
539
+ "description": "Emitted when the save button is clicked",
540
+ "arguments": [
541
+ {
542
+ "name": "info",
543
+ "type": "AddressEditInfo"
544
+ }
545
+ ]
553
546
  },
554
547
  {
555
- "name": "edit",
556
- "description": "Emitted when the edit icon of address is clicked",
548
+ "name": "focus",
549
+ "description": "Emitted when field is focused",
557
550
  "arguments": [
558
551
  {
559
- "name": "item",
560
- "type": "Address"
561
- },
562
- {
563
- "name": "index",
564
- "type": "number"
552
+ "name": "key",
553
+ "type": "string"
565
554
  }
566
555
  ]
567
556
  },
568
557
  {
569
- "name": "select",
570
- "description": "Emitted when an address is selected",
558
+ "name": "delete",
559
+ "description": "Emitted when confirming delete",
571
560
  "arguments": [
572
561
  {
573
- "name": "item",
574
- "type": "Address"
575
- },
576
- {
577
- "name": "index",
578
- "type": "number"
562
+ "name": "info",
563
+ "type": "AddressEditInfo"
579
564
  }
580
565
  ]
581
566
  },
582
567
  {
583
- "name": "edit-disabled",
584
- "description": "Emitted when the edit icon of disabled address is clicked",
568
+ "name": "select-search",
569
+ "description": "Emitted when a search result is selected",
585
570
  "arguments": [
586
571
  {
587
- "name": "item",
588
- "type": "Address"
589
- },
590
- {
591
- "name": "index",
592
- "type": "number"
572
+ "name": "value",
573
+ "type": "string"
593
574
  }
594
575
  ]
595
576
  },
596
577
  {
597
- "name": "select-disabled",
598
- "description": "Emitted when a disabled address is selected",
578
+ "name": "click-area",
579
+ "description": "Emitted when the area field is clicked",
580
+ "arguments": []
581
+ },
582
+ {
583
+ "name": "change-area",
584
+ "description": "Emitted when area changed",
599
585
  "arguments": [
600
586
  {
601
- "name": "item",
602
- "type": "Address"
603
- },
604
- {
605
- "name": "index",
606
- "type": "number"
587
+ "name": "selectedOptions",
588
+ "type": "PickerOption[]"
607
589
  }
608
590
  ]
609
591
  },
610
592
  {
611
- "name": "click-item",
612
- "description": "Emitted when an address item is clicked",
593
+ "name": "change-detail",
594
+ "description": "Emitted when address detail changed",
613
595
  "arguments": [
614
596
  {
615
- "name": "item",
616
- "type": "Address"
617
- },
597
+ "name": "value",
598
+ "type": "string"
599
+ }
600
+ ]
601
+ },
602
+ {
603
+ "name": "change-default",
604
+ "description": "Emitted when switching default address",
605
+ "arguments": [
618
606
  {
619
- "name": "index",
620
- "type": "number"
607
+ "name": "checked",
608
+ "type": "boolean"
621
609
  }
622
610
  ]
623
611
  }
624
612
  ],
625
613
  "attributes": [
626
614
  {
627
- "name": "v-model",
615
+ "name": "area-list",
628
616
  "default": "-",
629
- "description": "Id of chosen address",
617
+ "description": "Area List",
630
618
  "options": [],
631
619
  "value": {
632
- "type": "string",
620
+ "type": "object",
633
621
  "kind": "expression"
634
622
  }
635
623
  },
636
624
  {
637
- "name": "list",
625
+ "name": "area-columns-placeholder",
638
626
  "default": "`[]`",
639
- "description": "Address list",
627
+ "description": "placeholder of area columns",
640
628
  "options": [],
641
629
  "value": {
642
- "type": "Address[]",
630
+ "type": "string[]",
643
631
  "kind": "expression"
644
632
  }
645
633
  },
646
634
  {
647
- "name": "disabled-list",
648
- "default": "`[]`",
649
- "description": "Disabled address list",
635
+ "name": "area-placeholder",
636
+ "default": "`Area`",
637
+ "description": "placeholder of area input field",
650
638
  "options": [],
651
639
  "value": {
652
- "type": "Address[]",
640
+ "type": "string",
653
641
  "kind": "expression"
654
642
  }
655
643
  },
656
644
  {
657
- "name": "disabled-text",
658
- "default": "-",
659
- "description": "Disabled text",
645
+ "name": "address-info",
646
+ "default": "`{}`",
647
+ "description": "Address Info",
660
648
  "options": [],
661
649
  "value": {
662
- "type": "string",
650
+ "type": "AddressEditInfo",
663
651
  "kind": "expression"
664
652
  }
665
653
  },
666
654
  {
667
- "name": "switchable",
668
- "default": "`true`",
669
- "description": "Whether to allow switch address",
655
+ "name": "search-result",
656
+ "default": "`[]`",
657
+ "description": "Address search result",
670
658
  "options": [],
671
659
  "value": {
672
- "type": "boolean",
660
+ "type": "AddressEditSearchItem[]",
673
661
  "kind": "expression"
674
662
  }
675
663
  },
676
664
  {
677
- "name": "add-button-text",
678
- "default": "`Add new address`",
679
- "description": "Add button text",
665
+ "name": "show-delete",
666
+ "default": "`false`",
667
+ "description": "Whether to show delete button",
680
668
  "options": [],
681
669
  "value": {
682
- "type": "string",
670
+ "type": "boolean",
683
671
  "kind": "expression"
684
672
  }
685
673
  },
686
674
  {
687
- "name": "default-tag-text",
688
- "default": "-",
689
- "description": "Default tag text",
675
+ "name": "show-set-default",
676
+ "default": "`false`",
677
+ "description": "Whether to show default address switch",
690
678
  "options": [],
691
679
  "value": {
692
- "type": "string",
680
+ "type": "boolean",
693
681
  "kind": "expression"
694
682
  }
695
- }
696
- ]
697
- },
698
- {
699
- "name": "van-area",
700
- "slots": [
701
- {
702
- "name": "toolbar",
703
- "description": "Custom toolbar content"
704
- },
705
- {
706
- "name": "title",
707
- "description": "Custom title"
708
- },
709
- {
710
- "name": "confirm",
711
- "description": "Custom confirm button text"
712
- },
713
- {
714
- "name": "cancel",
715
- "description": "Custom cancel button text"
716
- },
717
- {
718
- "name": "columns-top",
719
- "description": "Custom content above columns"
720
- },
721
- {
722
- "name": "columns-bottom",
723
- "description": "Custom content below columns"
724
- }
725
- ],
726
- "events": [
727
- {
728
- "name": "confirm",
729
- "description": "Emitted when the confirm button is clicked",
730
- "arguments": [
731
- {
732
- "name": "{ selectedValues, selectedOptions }"
733
- }
734
- ]
735
683
  },
736
684
  {
737
- "name": "cancel",
738
- "description": "Emitted when the cancel button is clicked",
739
- "arguments": [
740
- {
741
- "name": "{ selectedValues, selectedOptions }"
742
- }
743
- ]
685
+ "name": "show-search-result",
686
+ "default": "`false`",
687
+ "description": "Whether to show address search result",
688
+ "options": [],
689
+ "value": {
690
+ "type": "boolean",
691
+ "kind": "expression"
692
+ }
744
693
  },
745
694
  {
746
- "name": "change",
747
- "description": "Emitted when current option is changed",
748
- "arguments": [
749
- {
750
- "name": "{ selectedValues, selectedOptions, columnIndex }"
751
- }
752
- ]
753
- }
754
- ],
755
- "attributes": [
756
- {
757
- "name": "v-model",
758
- "default": "-",
759
- "description": "the `code` of selected area",
695
+ "name": "show-area",
696
+ "default": "`true`",
697
+ "description": "Whether to show area cell",
760
698
  "options": [],
761
699
  "value": {
762
- "type": "string",
700
+ "type": "boolean",
763
701
  "kind": "expression"
764
702
  }
765
703
  },
766
704
  {
767
- "name": "title",
768
- "default": "-",
769
- "description": "Toolbar title",
705
+ "name": "show-detail",
706
+ "default": "`true`",
707
+ "description": "Whether to show detail field",
770
708
  "options": [],
771
709
  "value": {
772
- "type": "string",
710
+ "type": "boolean",
773
711
  "kind": "expression"
774
712
  }
775
713
  },
776
714
  {
777
- "name": "confirm-button-text",
778
- "default": "`Confirm`",
779
- "description": "Text of confirm button",
715
+ "name": "disable-area",
716
+ "default": "`false`",
717
+ "description": "Whether to disable area select",
780
718
  "options": [],
781
719
  "value": {
782
- "type": "string",
720
+ "type": "boolean",
783
721
  "kind": "expression"
784
722
  }
785
723
  },
786
724
  {
787
- "name": "cancel-button-text",
788
- "default": "`Cancel`",
789
- "description": "Text of cancel button",
725
+ "name": "save-button-text",
726
+ "default": "`Save`",
727
+ "description": "Save button text",
790
728
  "options": [],
791
729
  "value": {
792
730
  "type": "string",
@@ -794,39 +732,39 @@
794
732
  }
795
733
  },
796
734
  {
797
- "name": "area-list",
798
- "default": "-",
799
- "description": "Area list data",
735
+ "name": "delete-button-text",
736
+ "default": "`Delete`",
737
+ "description": "Delete button text",
800
738
  "options": [],
801
739
  "value": {
802
- "type": "object",
740
+ "type": "string",
803
741
  "kind": "expression"
804
742
  }
805
743
  },
806
744
  {
807
- "name": "columns-placeholder",
808
- "default": "`[]`",
809
- "description": "Placeholder of columns",
745
+ "name": "detail-rows",
746
+ "default": "`1`",
747
+ "description": "Detail input rows",
810
748
  "options": [],
811
749
  "value": {
812
- "type": "string[]",
750
+ "type": "number | string",
813
751
  "kind": "expression"
814
752
  }
815
753
  },
816
754
  {
817
- "name": "loading",
818
- "default": "`false`",
819
- "description": "Whether to show loading prompt",
755
+ "name": "detail-maxlength",
756
+ "default": "`200`",
757
+ "description": "Detail maxlength",
820
758
  "options": [],
821
759
  "value": {
822
- "type": "boolean",
760
+ "type": "number | string",
823
761
  "kind": "expression"
824
762
  }
825
763
  },
826
764
  {
827
- "name": "readonly",
765
+ "name": "is-saving",
828
766
  "default": "`false`",
829
- "description": "Whether to be readonly",
767
+ "description": "Whether to show save button loading status",
830
768
  "options": [],
831
769
  "value": {
832
770
  "type": "boolean",
@@ -834,29 +772,29 @@
834
772
  }
835
773
  },
836
774
  {
837
- "name": "option-height",
838
- "default": "`44`",
839
- "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
775
+ "name": "is-deleting",
776
+ "default": "`false`",
777
+ "description": "Whether to show delete button loading status",
840
778
  "options": [],
841
779
  "value": {
842
- "type": "number | string",
780
+ "type": "boolean",
843
781
  "kind": "expression"
844
782
  }
845
783
  },
846
784
  {
847
- "name": "columns-num",
848
- "default": "`3`",
849
- "description": "Level of picker",
785
+ "name": "tel-validator",
786
+ "default": "-",
787
+ "description": "The method to validate tel",
850
788
  "options": [],
851
789
  "value": {
852
- "type": "number | string",
790
+ "type": "(tel: string) => boolean",
853
791
  "kind": "expression"
854
792
  }
855
793
  },
856
794
  {
857
- "name": "visible-option-num",
858
- "default": "`6`",
859
- "description": "Count of visible columns",
795
+ "name": "tel-maxlength",
796
+ "default": "-",
797
+ "description": "Tel maxlength",
860
798
  "options": [],
861
799
  "value": {
862
800
  "type": "number | string",
@@ -864,127 +802,149 @@
864
802
  }
865
803
  },
866
804
  {
867
- "name": "swipe-duration",
868
- "default": "`1000`",
869
- "description": "Duration of the momentum animation, unit `ms`",
805
+ "name": "validator",
806
+ "default": "-",
807
+ "description": "Custom validator",
870
808
  "options": [],
871
809
  "value": {
872
- "type": "number | string",
810
+ "type": "(key, val) => string",
873
811
  "kind": "expression"
874
812
  }
875
813
  }
876
814
  ]
877
815
  },
878
816
  {
879
- "name": "van-address-edit",
817
+ "name": "van-address-list",
880
818
  "slots": [
881
819
  {
882
820
  "name": "default",
883
- "description": "Custom content below address detail"
821
+ "description": "Custom content after list"
822
+ },
823
+ {
824
+ "name": "top",
825
+ "description": "Custom content before list"
826
+ },
827
+ {
828
+ "name": "item-bottom",
829
+ "description": "Custom content after list item"
830
+ },
831
+ {
832
+ "name": "tag",
833
+ "description": "Custom tag of list item"
884
834
  }
885
835
  ],
886
836
  "events": [
887
837
  {
888
- "name": "save",
889
- "description": "Emitted when the save button is clicked",
890
- "arguments": [
891
- {
892
- "name": "info",
893
- "type": "AddressEditInfo"
894
- }
895
- ]
838
+ "name": "add",
839
+ "description": "Emitted when the add button is clicked",
840
+ "arguments": []
896
841
  },
897
842
  {
898
- "name": "focus",
899
- "description": "Emitted when field is focused",
843
+ "name": "edit",
844
+ "description": "Emitted when the edit icon of address is clicked",
900
845
  "arguments": [
901
846
  {
902
- "name": "key",
903
- "type": "string"
904
- }
905
- ]
906
- },
907
- {
908
- "name": "delete",
909
- "description": "Emitted when confirming delete",
910
- "arguments": [
847
+ "name": "item",
848
+ "type": "Address"
849
+ },
911
850
  {
912
- "name": "info",
913
- "type": "AddressEditInfo"
851
+ "name": "index",
852
+ "type": "number"
914
853
  }
915
854
  ]
916
855
  },
917
856
  {
918
- "name": "select-search",
919
- "description": "Emitted when a search result is selected",
857
+ "name": "select",
858
+ "description": "Emitted when an address is selected",
920
859
  "arguments": [
921
860
  {
922
- "name": "value",
923
- "type": "string"
861
+ "name": "item",
862
+ "type": "Address"
863
+ },
864
+ {
865
+ "name": "index",
866
+ "type": "number"
924
867
  }
925
868
  ]
926
869
  },
927
870
  {
928
- "name": "click-area",
929
- "description": "Emitted when the area field is clicked",
930
- "arguments": []
931
- },
932
- {
933
- "name": "change-area",
934
- "description": "Emitted when area changed",
871
+ "name": "edit-disabled",
872
+ "description": "Emitted when the edit icon of disabled address is clicked",
935
873
  "arguments": [
936
874
  {
937
- "name": "selectedOptions",
938
- "type": "PickerOption[]"
875
+ "name": "item",
876
+ "type": "Address"
877
+ },
878
+ {
879
+ "name": "index",
880
+ "type": "number"
939
881
  }
940
882
  ]
941
883
  },
942
884
  {
943
- "name": "change-detail",
944
- "description": "Emitted when address detail changed",
885
+ "name": "select-disabled",
886
+ "description": "Emitted when a disabled address is selected",
945
887
  "arguments": [
946
888
  {
947
- "name": "value",
948
- "type": "string"
889
+ "name": "item",
890
+ "type": "Address"
891
+ },
892
+ {
893
+ "name": "index",
894
+ "type": "number"
949
895
  }
950
896
  ]
951
897
  },
952
898
  {
953
- "name": "change-default",
954
- "description": "Emitted when switching default address",
899
+ "name": "click-item",
900
+ "description": "Emitted when an address item is clicked",
955
901
  "arguments": [
956
902
  {
957
- "name": "checked",
958
- "type": "boolean"
903
+ "name": "item",
904
+ "type": "Address"
905
+ },
906
+ {
907
+ "name": "index",
908
+ "type": "number"
959
909
  }
960
910
  ]
961
911
  }
962
912
  ],
963
913
  "attributes": [
964
914
  {
965
- "name": "area-list",
915
+ "name": "v-model",
966
916
  "default": "-",
967
- "description": "Area List",
917
+ "description": "Id of chosen address",
968
918
  "options": [],
969
919
  "value": {
970
- "type": "object",
920
+ "type": "string",
971
921
  "kind": "expression"
972
922
  }
973
923
  },
974
924
  {
975
- "name": "area-columns-placeholder",
925
+ "name": "list",
976
926
  "default": "`[]`",
977
- "description": "placeholder of area columns",
927
+ "description": "Address list",
978
928
  "options": [],
979
929
  "value": {
980
- "type": "string[]",
930
+ "type": "Address[]",
981
931
  "kind": "expression"
982
932
  }
983
933
  },
984
934
  {
985
- "name": "area-placeholder",
986
- "default": "`Area`",
987
- "description": "placeholder of area input field",
935
+ "name": "disabled-list",
936
+ "default": "`[]`",
937
+ "description": "Disabled address list",
938
+ "options": [],
939
+ "value": {
940
+ "type": "Address[]",
941
+ "kind": "expression"
942
+ }
943
+ },
944
+ {
945
+ "name": "disabled-text",
946
+ "default": "-",
947
+ "description": "Disabled text",
988
948
  "options": [],
989
949
  "value": {
990
950
  "type": "string",
@@ -992,49 +952,75 @@
992
952
  }
993
953
  },
994
954
  {
995
- "name": "address-info",
996
- "default": "`{}`",
997
- "description": "Address Info",
955
+ "name": "switchable",
956
+ "default": "`true`",
957
+ "description": "Whether to allow switch address",
998
958
  "options": [],
999
959
  "value": {
1000
- "type": "AddressEditInfo",
960
+ "type": "boolean",
1001
961
  "kind": "expression"
1002
962
  }
1003
963
  },
1004
964
  {
1005
- "name": "search-result",
1006
- "default": "`[]`",
1007
- "description": "Address search result",
965
+ "name": "add-button-text",
966
+ "default": "`Add new address`",
967
+ "description": "Add button text",
1008
968
  "options": [],
1009
969
  "value": {
1010
- "type": "AddressEditSearchItem[]",
970
+ "type": "string",
1011
971
  "kind": "expression"
1012
972
  }
1013
973
  },
1014
974
  {
1015
- "name": "show-delete",
1016
- "default": "`false`",
1017
- "description": "Whether to show delete button",
975
+ "name": "default-tag-text",
976
+ "default": "-",
977
+ "description": "Default tag text",
978
+ "options": [],
979
+ "value": {
980
+ "type": "string",
981
+ "kind": "expression"
982
+ }
983
+ }
984
+ ]
985
+ },
986
+ {
987
+ "name": "van-badge",
988
+ "slots": [
989
+ {
990
+ "name": "default",
991
+ "description": "Default slot"
992
+ },
993
+ {
994
+ "name": "content",
995
+ "description": "Custom badge content"
996
+ }
997
+ ],
998
+ "events": [],
999
+ "attributes": [
1000
+ {
1001
+ "name": "content",
1002
+ "default": "-",
1003
+ "description": "Badge content",
1018
1004
  "options": [],
1019
1005
  "value": {
1020
- "type": "boolean",
1006
+ "type": "number | string",
1021
1007
  "kind": "expression"
1022
1008
  }
1023
1009
  },
1024
1010
  {
1025
- "name": "show-set-default",
1026
- "default": "`false`",
1027
- "description": "Whether to show default address switch",
1011
+ "name": "color",
1012
+ "default": "`#ee0a24`",
1013
+ "description": "Background color",
1028
1014
  "options": [],
1029
1015
  "value": {
1030
- "type": "boolean",
1016
+ "type": "string",
1031
1017
  "kind": "expression"
1032
1018
  }
1033
1019
  },
1034
1020
  {
1035
- "name": "show-search-result",
1021
+ "name": "dot",
1036
1022
  "default": "`false`",
1037
- "description": "Whether to show address search result",
1023
+ "description": "Whether to show dot",
1038
1024
  "options": [],
1039
1025
  "value": {
1040
1026
  "type": "boolean",
@@ -1042,29 +1028,29 @@
1042
1028
  }
1043
1029
  },
1044
1030
  {
1045
- "name": "show-area",
1046
- "default": "`true`",
1047
- "description": "Whether to show area cell",
1031
+ "name": "max",
1032
+ "default": "-",
1033
+ "description": "Max value, show `{max}+` when exceed, only works when content is number",
1048
1034
  "options": [],
1049
1035
  "value": {
1050
- "type": "boolean",
1036
+ "type": "number | string",
1051
1037
  "kind": "expression"
1052
1038
  }
1053
1039
  },
1054
1040
  {
1055
- "name": "show-detail",
1056
- "default": "`true`",
1057
- "description": "Whether to show detail field",
1041
+ "name": "offset",
1042
+ "default": "-",
1043
+ "description": "Offset of badge dot",
1058
1044
  "options": [],
1059
1045
  "value": {
1060
- "type": "boolean",
1046
+ "type": "[number | string, number | string]",
1061
1047
  "kind": "expression"
1062
1048
  }
1063
1049
  },
1064
1050
  {
1065
- "name": "disable-area",
1066
- "default": "`false`",
1067
- "description": "Whether to disable area select",
1051
+ "name": "show-zero",
1052
+ "default": "`true`",
1053
+ "description": "Whether to show badge when content is zero",
1068
1054
  "options": [],
1069
1055
  "value": {
1070
1056
  "type": "boolean",
@@ -1072,135 +1058,149 @@
1072
1058
  }
1073
1059
  },
1074
1060
  {
1075
- "name": "save-button-text",
1076
- "default": "`Save`",
1077
- "description": "Save button text",
1061
+ "name": "position",
1062
+ "default": "`top-right`",
1063
+ "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`",
1078
1064
  "options": [],
1079
1065
  "value": {
1080
1066
  "type": "string",
1081
1067
  "kind": "expression"
1082
1068
  }
1069
+ }
1070
+ ]
1071
+ },
1072
+ {
1073
+ "name": "van-area",
1074
+ "slots": [
1075
+ {
1076
+ "name": "toolbar",
1077
+ "description": "Custom toolbar content"
1083
1078
  },
1084
1079
  {
1085
- "name": "delete-button-text",
1086
- "default": "`Delete`",
1087
- "description": "Delete button text",
1088
- "options": [],
1089
- "value": {
1090
- "type": "string",
1091
- "kind": "expression"
1092
- }
1080
+ "name": "title",
1081
+ "description": "Custom title"
1093
1082
  },
1094
1083
  {
1095
- "name": "detail-rows",
1096
- "default": "`1`",
1097
- "description": "Detail input rows",
1098
- "options": [],
1099
- "value": {
1100
- "type": "number | string",
1101
- "kind": "expression"
1102
- }
1084
+ "name": "confirm",
1085
+ "description": "Custom confirm button text"
1103
1086
  },
1104
1087
  {
1105
- "name": "detail-maxlength",
1106
- "default": "`200`",
1107
- "description": "Detail maxlength",
1108
- "options": [],
1109
- "value": {
1110
- "type": "number | string",
1111
- "kind": "expression"
1112
- }
1088
+ "name": "cancel",
1089
+ "description": "Custom cancel button text"
1113
1090
  },
1114
1091
  {
1115
- "name": "is-saving",
1116
- "default": "`false`",
1117
- "description": "Whether to show save button loading status",
1092
+ "name": "columns-top",
1093
+ "description": "Custom content above columns"
1094
+ },
1095
+ {
1096
+ "name": "columns-bottom",
1097
+ "description": "Custom content below columns"
1098
+ }
1099
+ ],
1100
+ "events": [
1101
+ {
1102
+ "name": "confirm",
1103
+ "description": "Emitted when the confirm button is clicked",
1104
+ "arguments": [
1105
+ {
1106
+ "name": "{ selectedValues, selectedOptions }"
1107
+ }
1108
+ ]
1109
+ },
1110
+ {
1111
+ "name": "cancel",
1112
+ "description": "Emitted when the cancel button is clicked",
1113
+ "arguments": [
1114
+ {
1115
+ "name": "{ selectedValues, selectedOptions }"
1116
+ }
1117
+ ]
1118
+ },
1119
+ {
1120
+ "name": "change",
1121
+ "description": "Emitted when current option is changed",
1122
+ "arguments": [
1123
+ {
1124
+ "name": "{ selectedValues, selectedOptions, columnIndex }"
1125
+ }
1126
+ ]
1127
+ }
1128
+ ],
1129
+ "attributes": [
1130
+ {
1131
+ "name": "v-model",
1132
+ "default": "-",
1133
+ "description": "the `code` of selected area",
1118
1134
  "options": [],
1119
1135
  "value": {
1120
- "type": "boolean",
1136
+ "type": "string",
1121
1137
  "kind": "expression"
1122
1138
  }
1123
1139
  },
1124
1140
  {
1125
- "name": "is-deleting",
1126
- "default": "`false`",
1127
- "description": "Whether to show delete button loading status",
1141
+ "name": "title",
1142
+ "default": "-",
1143
+ "description": "Toolbar title",
1128
1144
  "options": [],
1129
1145
  "value": {
1130
- "type": "boolean",
1146
+ "type": "string",
1131
1147
  "kind": "expression"
1132
1148
  }
1133
1149
  },
1134
1150
  {
1135
- "name": "tel-validator",
1136
- "default": "-",
1137
- "description": "The method to validate tel",
1151
+ "name": "confirm-button-text",
1152
+ "default": "`Confirm`",
1153
+ "description": "Text of confirm button",
1138
1154
  "options": [],
1139
1155
  "value": {
1140
- "type": "(tel: string) => boolean",
1156
+ "type": "string",
1141
1157
  "kind": "expression"
1142
1158
  }
1143
1159
  },
1144
1160
  {
1145
- "name": "tel-maxlength",
1146
- "default": "-",
1147
- "description": "Tel maxlength",
1161
+ "name": "cancel-button-text",
1162
+ "default": "`Cancel`",
1163
+ "description": "Text of cancel button",
1148
1164
  "options": [],
1149
1165
  "value": {
1150
- "type": "number | string",
1166
+ "type": "string",
1151
1167
  "kind": "expression"
1152
1168
  }
1153
1169
  },
1154
1170
  {
1155
- "name": "validator",
1171
+ "name": "area-list",
1156
1172
  "default": "-",
1157
- "description": "Custom validator",
1173
+ "description": "Area list data",
1158
1174
  "options": [],
1159
1175
  "value": {
1160
- "type": "(key, val) => string",
1176
+ "type": "object",
1161
1177
  "kind": "expression"
1162
1178
  }
1163
- }
1164
- ]
1165
- },
1166
- {
1167
- "name": "van-badge",
1168
- "slots": [
1169
- {
1170
- "name": "default",
1171
- "description": "Default slot"
1172
1179
  },
1173
1180
  {
1174
- "name": "content",
1175
- "description": "Custom badge content"
1176
- }
1177
- ],
1178
- "events": [],
1179
- "attributes": [
1180
- {
1181
- "name": "content",
1182
- "default": "-",
1183
- "description": "Badge content",
1181
+ "name": "columns-placeholder",
1182
+ "default": "`[]`",
1183
+ "description": "Placeholder of columns",
1184
1184
  "options": [],
1185
1185
  "value": {
1186
- "type": "number | string",
1186
+ "type": "string[]",
1187
1187
  "kind": "expression"
1188
1188
  }
1189
1189
  },
1190
1190
  {
1191
- "name": "color",
1192
- "default": "`#ee0a24`",
1193
- "description": "Background color",
1191
+ "name": "loading",
1192
+ "default": "`false`",
1193
+ "description": "Whether to show loading prompt",
1194
1194
  "options": [],
1195
1195
  "value": {
1196
- "type": "string",
1196
+ "type": "boolean",
1197
1197
  "kind": "expression"
1198
1198
  }
1199
1199
  },
1200
1200
  {
1201
- "name": "dot",
1201
+ "name": "readonly",
1202
1202
  "default": "`false`",
1203
- "description": "Whether to show dot",
1203
+ "description": "Whether to be readonly",
1204
1204
  "options": [],
1205
1205
  "value": {
1206
1206
  "type": "boolean",
@@ -1208,9 +1208,9 @@
1208
1208
  }
1209
1209
  },
1210
1210
  {
1211
- "name": "max",
1212
- "default": "-",
1213
- "description": "Max value, show `{max}+` when exceed, only works when content is number",
1211
+ "name": "option-height",
1212
+ "default": "`44`",
1213
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
1214
1214
  "options": [],
1215
1215
  "value": {
1216
1216
  "type": "number | string",
@@ -1218,32 +1218,32 @@
1218
1218
  }
1219
1219
  },
1220
1220
  {
1221
- "name": "offset",
1222
- "default": "-",
1223
- "description": "Offset of badge dot",
1221
+ "name": "columns-num",
1222
+ "default": "`3`",
1223
+ "description": "Level of picker",
1224
1224
  "options": [],
1225
1225
  "value": {
1226
- "type": "[number | string, number | string]",
1226
+ "type": "number | string",
1227
1227
  "kind": "expression"
1228
1228
  }
1229
1229
  },
1230
1230
  {
1231
- "name": "show-zero",
1232
- "default": "`true`",
1233
- "description": "Whether to show badge when content is zero",
1231
+ "name": "visible-option-num",
1232
+ "default": "`6`",
1233
+ "description": "Count of visible columns",
1234
1234
  "options": [],
1235
1235
  "value": {
1236
- "type": "boolean",
1236
+ "type": "number | string",
1237
1237
  "kind": "expression"
1238
1238
  }
1239
1239
  },
1240
1240
  {
1241
- "name": "position",
1242
- "default": "`top-right`",
1243
- "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`",
1241
+ "name": "swipe-duration",
1242
+ "default": "`1000`",
1243
+ "description": "Duration of the momentum animation, unit `ms`",
1244
1244
  "options": [],
1245
1245
  "value": {
1246
- "type": "string",
1246
+ "type": "number | string",
1247
1247
  "kind": "expression"
1248
1248
  }
1249
1249
  }
@@ -3226,55 +3226,34 @@
3226
3226
  ]
3227
3227
  },
3228
3228
  {
3229
- "name": "van-contact-card",
3229
+ "name": "van-config-provider",
3230
3230
  "slots": [],
3231
- "events": [
3232
- {
3233
- "name": "click",
3234
- "description": "Emitted when component is clicked",
3235
- "arguments": [
3236
- {
3237
- "name": "event",
3238
- "type": "MouseEvent"
3239
- }
3240
- ]
3241
- }
3242
- ],
3231
+ "events": [],
3243
3232
  "attributes": [
3244
3233
  {
3245
- "name": "type",
3246
- "default": "`add`",
3247
- "description": "Can be set to `edit`",
3248
- "options": [],
3249
- "value": {
3250
- "type": "string",
3251
- "kind": "expression"
3252
- }
3253
- },
3254
- {
3255
- "name": "name",
3256
- "default": "-",
3257
- "description": "Name",
3234
+ "name": "theme",
3235
+ "default": "`light`",
3236
+ "description": "Theme mode, can be set to `dark`",
3258
3237
  "options": [],
3259
3238
  "value": {
3260
- "type": "string",
3239
+ "type": "ConfigProviderTheme",
3261
3240
  "kind": "expression"
3262
3241
  }
3263
3242
  },
3264
3243
  {
3265
- "name": "tel",
3244
+ "name": "theme-vars",
3266
3245
  "default": "-",
3267
- "description": "Phone",
3246
+ "description": "Theme variables",
3268
3247
  "options": [],
3269
3248
  "value": {
3270
- "type": "string",
3249
+ "type": "object",
3271
3250
  "kind": "expression"
3272
3251
  }
3273
3252
  },
3274
3253
  {
3275
- "name": "add-text",
3276
- "default": "`Add contact info`",
3277
- "description": "Add card text",
3254
+ "name": "tag",
3255
+ "default": "`div`",
3256
+ "description": "HTML Tag of root element",
3278
3257
  "options": [],
3279
3258
  "value": {
3280
3259
  "type": "string",
@@ -3282,12 +3261,12 @@
3282
3261
  }
3283
3262
  },
3284
3263
  {
3285
- "name": "editable",
3286
- "default": "`true`",
3287
- "description": "Whether to allow editing of contacts",
3264
+ "name": "icon-prefix",
3265
+ "default": "`van-icon`",
3266
+ "description": "Icon className prefix",
3288
3267
  "options": [],
3289
3268
  "value": {
3290
- "type": "boolean",
3269
+ "type": "string",
3291
3270
  "kind": "expression"
3292
3271
  }
3293
3272
  }
@@ -3392,34 +3371,45 @@
3392
3371
  ]
3393
3372
  },
3394
3373
  {
3395
- "name": "van-config-provider",
3374
+ "name": "van-contact-card",
3396
3375
  "slots": [],
3397
- "events": [],
3376
+ "events": [
3377
+ {
3378
+ "name": "click",
3379
+ "description": "Emitted when component is clicked",
3380
+ "arguments": [
3381
+ {
3382
+ "name": "event",
3383
+ "type": "MouseEvent"
3384
+ }
3385
+ ]
3386
+ }
3387
+ ],
3398
3388
  "attributes": [
3399
3389
  {
3400
- "name": "theme",
3401
- "default": "`light`",
3402
- "description": "Theme mode, can be set to `dark`",
3390
+ "name": "type",
3391
+ "default": "`add`",
3392
+ "description": "Can be set to `edit`",
3403
3393
  "options": [],
3404
3394
  "value": {
3405
- "type": "ConfigProviderTheme",
3395
+ "type": "string",
3406
3396
  "kind": "expression"
3407
3397
  }
3408
3398
  },
3409
3399
  {
3410
- "name": "theme-vars",
3400
+ "name": "name",
3411
3401
  "default": "-",
3412
- "description": "Theme variables",
3402
+ "description": "Name",
3413
3403
  "options": [],
3414
3404
  "value": {
3415
- "type": "object",
3405
+ "type": "string",
3416
3406
  "kind": "expression"
3417
3407
  }
3418
3408
  },
3419
3409
  {
3420
- "name": "tag",
3421
- "default": "`div`",
3422
- "description": "HTML Tag of root element",
3410
+ "name": "tel",
3411
+ "default": "-",
3412
+ "description": "Phone",
3423
3413
  "options": [],
3424
3414
  "value": {
3425
3415
  "type": "string",
@@ -3427,14 +3417,24 @@
3427
3417
  }
3428
3418
  },
3429
3419
  {
3430
- "name": "icon-prefix",
3431
- "default": "`van-icon`",
3432
- "description": "Icon className prefix",
3420
+ "name": "add-text",
3421
+ "default": "`Add contact info`",
3422
+ "description": "Add card text",
3433
3423
  "options": [],
3434
3424
  "value": {
3435
3425
  "type": "string",
3436
3426
  "kind": "expression"
3437
3427
  }
3428
+ },
3429
+ {
3430
+ "name": "editable",
3431
+ "default": "`true`",
3432
+ "description": "Whether to allow editing of contacts",
3433
+ "options": [],
3434
+ "value": {
3435
+ "type": "boolean",
3436
+ "kind": "expression"
3437
+ }
3438
3438
  }
3439
3439
  ]
3440
3440
  },
@@ -4065,6 +4065,48 @@
4065
4065
  }
4066
4066
  ]
4067
4067
  },
4068
+ {
4069
+ "name": "van-divider",
4070
+ "slots": [
4071
+ {
4072
+ "name": "default",
4073
+ "description": "content"
4074
+ }
4075
+ ],
4076
+ "events": [],
4077
+ "attributes": [
4078
+ {
4079
+ "name": "dashed",
4080
+ "default": "`false`",
4081
+ "description": "Whether to use dashed border",
4082
+ "options": [],
4083
+ "value": {
4084
+ "type": "boolean",
4085
+ "kind": "expression"
4086
+ }
4087
+ },
4088
+ {
4089
+ "name": "hairline",
4090
+ "default": "`true`",
4091
+ "description": "Whether to use hairline",
4092
+ "options": [],
4093
+ "value": {
4094
+ "type": "boolean",
4095
+ "kind": "expression"
4096
+ }
4097
+ },
4098
+ {
4099
+ "name": "content-position",
4100
+ "default": "`center`",
4101
+ "description": "Content position, can be set to `left` `right`",
4102
+ "options": [],
4103
+ "value": {
4104
+ "type": "string",
4105
+ "kind": "expression"
4106
+ }
4107
+ }
4108
+ ]
4109
+ },
4068
4110
  {
4069
4111
  "name": "van-dialog",
4070
4112
  "slots": [
@@ -4346,48 +4388,6 @@
4346
4388
  }
4347
4389
  ]
4348
4390
  },
4349
- {
4350
- "name": "van-divider",
4351
- "slots": [
4352
- {
4353
- "name": "default",
4354
- "description": "content"
4355
- }
4356
- ],
4357
- "events": [],
4358
- "attributes": [
4359
- {
4360
- "name": "dashed",
4361
- "default": "`false`",
4362
- "description": "Whether to use dashed border",
4363
- "options": [],
4364
- "value": {
4365
- "type": "boolean",
4366
- "kind": "expression"
4367
- }
4368
- },
4369
- {
4370
- "name": "hairline",
4371
- "default": "`true`",
4372
- "description": "Whether to use hairline",
4373
- "options": [],
4374
- "value": {
4375
- "type": "boolean",
4376
- "kind": "expression"
4377
- }
4378
- },
4379
- {
4380
- "name": "content-position",
4381
- "default": "`center`",
4382
- "description": "Content position, can be set to `left` `right`",
4383
- "options": [],
4384
- "value": {
4385
- "type": "string",
4386
- "kind": "expression"
4387
- }
4388
- }
4389
- ]
4390
- },
4391
4391
  {
4392
4392
  "name": "van-dropdown-menu",
4393
4393
  "slots": [],
@@ -5073,142 +5073,34 @@
5073
5073
  "description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>",
5074
5074
  "options": [],
5075
5075
  "value": {
5076
- "type": "string",
5077
- "kind": "expression"
5078
- }
5079
- }
5080
- ]
5081
- },
5082
- {
5083
- "name": "van-grid",
5084
- "slots": [],
5085
- "events": [],
5086
- "attributes": [
5087
- {
5088
- "name": "column-num",
5089
- "default": "`4`",
5090
- "description": "Column Num",
5091
- "options": [],
5092
- "value": {
5093
- "type": "number | string",
5094
- "kind": "expression"
5095
- }
5096
- },
5097
- {
5098
- "name": "icon-size",
5099
- "default": "`28px`",
5100
- "description": "Icon size",
5101
- "options": [],
5102
- "value": {
5103
- "type": "number | string",
5104
- "kind": "expression"
5105
- }
5106
- },
5107
- {
5108
- "name": "gutter",
5109
- "default": "`0`",
5110
- "description": "Gutter",
5111
- "options": [],
5112
- "value": {
5113
- "type": "number | string",
5114
- "kind": "expression"
5115
- }
5116
- },
5117
- {
5118
- "name": "border",
5119
- "default": "`true`",
5120
- "description": "Whether to show border",
5121
- "options": [],
5122
- "value": {
5123
- "type": "boolean",
5124
- "kind": "expression"
5125
- }
5126
- },
5127
- {
5128
- "name": "center",
5129
- "default": "`true`",
5130
- "description": "Whether to center content",
5131
- "options": [],
5132
- "value": {
5133
- "type": "boolean",
5134
- "kind": "expression"
5135
- }
5136
- },
5137
- {
5138
- "name": "square",
5139
- "default": "`false`",
5140
- "description": "Whether to be square shape",
5141
- "options": [],
5142
- "value": {
5143
- "type": "boolean",
5144
- "kind": "expression"
5145
- }
5146
- },
5147
- {
5148
- "name": "clickable",
5149
- "default": "`false`",
5150
- "description": "Whether to show click feedback when clicked",
5151
- "options": [],
5152
- "value": {
5153
- "type": "boolean",
5154
- "kind": "expression"
5155
- }
5156
- },
5157
- {
5158
- "name": "direction",
5159
- "default": "`vertical`",
5160
- "description": "Content arrangement direction, can be set to `horizontal`",
5161
- "options": [],
5162
- "value": {
5163
- "type": "string",
5164
- "kind": "expression"
5165
- }
5166
- },
5167
- {
5168
- "name": "reverse",
5169
- "default": "`false`",
5170
- "description": "Whether to reverse the position of icon and text",
5171
- "options": [],
5172
- "value": {
5173
- "type": "boolean",
5076
+ "type": "string",
5174
5077
  "kind": "expression"
5175
5078
  }
5176
5079
  }
5177
5080
  ]
5178
5081
  },
5179
5082
  {
5180
- "name": "van-grid-item",
5083
+ "name": "van-empty",
5181
5084
  "slots": [
5182
5085
  {
5183
5086
  "name": "default",
5184
- "description": "Custom content"
5087
+ "description": "Custom bottom content"
5185
5088
  },
5186
5089
  {
5187
- "name": "icon",
5188
- "description": "Custom icon"
5090
+ "name": "image",
5091
+ "description": "Custom image"
5189
5092
  },
5190
5093
  {
5191
- "name": "text",
5192
- "description": "Custom text"
5193
- }
5194
- ],
5195
- "events": [
5196
- {
5197
- "name": "click",
5198
- "description": "Emitted when component is clicked",
5199
- "arguments": [
5200
- {
5201
- "name": "event",
5202
- "type": "MouseEvent"
5203
- }
5204
- ]
5094
+ "name": "description",
5095
+ "description": "Custom description"
5205
5096
  }
5206
5097
  ],
5098
+ "events": [],
5207
5099
  "attributes": [
5208
5100
  {
5209
- "name": "text",
5210
- "default": "-",
5211
- "description": "Text",
5101
+ "name": "image",
5102
+ "default": "`default`",
5103
+ "description": "Image type, can be set to `error` `network` `search` or image URL",
5212
5104
  "options": [],
5213
5105
  "value": {
5214
5106
  "type": "string",
@@ -5216,29 +5108,47 @@
5216
5108
  }
5217
5109
  },
5218
5110
  {
5219
- "name": "icon",
5111
+ "name": "image-size",
5220
5112
  "default": "-",
5221
- "description": "Icon name or URL",
5113
+ "description": "Image size",
5222
5114
  "options": [],
5223
5115
  "value": {
5224
- "type": "string",
5116
+ "type": "number | string | Array",
5225
5117
  "kind": "expression"
5226
5118
  }
5227
5119
  },
5228
5120
  {
5229
- "name": "icon-prefix",
5230
- "default": "`van-icon`",
5231
- "description": "Icon className prefix",
5121
+ "name": "description",
5122
+ "default": "-",
5123
+ "description": "Description",
5232
5124
  "options": [],
5233
5125
  "value": {
5234
5126
  "type": "string",
5235
5127
  "kind": "expression"
5236
5128
  }
5237
- },
5129
+ }
5130
+ ]
5131
+ },
5132
+ {
5133
+ "name": "van-icon",
5134
+ "slots": [],
5135
+ "events": [
5238
5136
  {
5239
- "name": "icon-color",
5240
- "default": "-",
5241
- "description": "Icon color",
5137
+ "name": "click",
5138
+ "description": "Emitted when icon is clicked",
5139
+ "arguments": [
5140
+ {
5141
+ "name": "event",
5142
+ "type": "MouseEvent"
5143
+ }
5144
+ ]
5145
+ }
5146
+ ],
5147
+ "attributes": [
5148
+ {
5149
+ "name": "name",
5150
+ "default": "`''`",
5151
+ "description": "Icon name or URL",
5242
5152
  "options": [],
5243
5153
  "value": {
5244
5154
  "type": "string",
@@ -5257,7 +5167,7 @@
5257
5167
  },
5258
5168
  {
5259
5169
  "name": "badge",
5260
- "default": "-",
5170
+ "default": "`''`",
5261
5171
  "description": "Content of the badge",
5262
5172
  "options": [],
5263
5173
  "value": {
@@ -5276,9 +5186,9 @@
5276
5186
  }
5277
5187
  },
5278
5188
  {
5279
- "name": "url",
5280
- "default": "-",
5281
- "description": "Link URL",
5189
+ "name": "color",
5190
+ "default": "`inherit`",
5191
+ "description": "Icon color",
5282
5192
  "options": [],
5283
5193
  "value": {
5284
5194
  "type": "string",
@@ -5286,22 +5196,32 @@
5286
5196
  }
5287
5197
  },
5288
5198
  {
5289
- "name": "to",
5290
- "default": "-",
5291
- "description": "Target route of the link, same as to of vue-router",
5199
+ "name": "size",
5200
+ "default": "`inherit`",
5201
+ "description": "Icon size",
5292
5202
  "options": [],
5293
5203
  "value": {
5294
- "type": "string | object",
5204
+ "type": "number | string",
5295
5205
  "kind": "expression"
5296
5206
  }
5297
5207
  },
5298
5208
  {
5299
- "name": "replace",
5300
- "default": "`false`",
5301
- "description": "If true, the navigation will not leave a history record",
5209
+ "name": "class-prefix",
5210
+ "default": "`van-icon`",
5211
+ "description": "ClassName prefix",
5302
5212
  "options": [],
5303
5213
  "value": {
5304
- "type": "boolean",
5214
+ "type": "string",
5215
+ "kind": "expression"
5216
+ }
5217
+ },
5218
+ {
5219
+ "name": "tag",
5220
+ "default": "`i`",
5221
+ "description": "HTML Tag of root element",
5222
+ "options": [],
5223
+ "value": {
5224
+ "type": "string",
5305
5225
  "kind": "expression"
5306
5226
  }
5307
5227
  }
@@ -5381,10 +5301,10 @@
5381
5301
  {
5382
5302
  "name": "validate-trigger",
5383
5303
  "default": "`onBlur`",
5384
- "description": "When to validate the form, can be set to `onChange`、`onSubmit`",
5304
+ "description": "When to validate the form, can be set to `onChange`、`onSubmit`, supports using array to set multiple values",
5385
5305
  "options": [],
5386
5306
  "value": {
5387
- "type": "string",
5307
+ "type": "string | string[]",
5388
5308
  "kind": "expression"
5389
5309
  }
5390
5310
  },
@@ -5430,189 +5350,41 @@
5430
5350
  },
5431
5351
  {
5432
5352
  "name": "scroll-to-error",
5433
- "default": "`false`",
5434
- "description": "Whether to scroll to the error field when validation failed",
5435
- "options": [],
5436
- "value": {
5437
- "type": "boolean",
5438
- "kind": "expression"
5439
- }
5440
- },
5441
- {
5442
- "name": "show-error",
5443
- "default": "`false`",
5444
- "description": "Whether to highlight input when validation failed",
5445
- "options": [],
5446
- "value": {
5447
- "type": "boolean",
5448
- "kind": "expression"
5449
- }
5450
- },
5451
- {
5452
- "name": "show-error-message",
5453
- "default": "`true`",
5454
- "description": "Whether to show error message when validation failed",
5455
- "options": [],
5456
- "value": {
5457
- "type": "boolean",
5458
- "kind": "expression"
5459
- }
5460
- },
5461
- {
5462
- "name": "submit-on-enter",
5463
- "default": "`true`",
5464
- "description": "Whether to submit form on enter",
5465
- "options": [],
5466
- "value": {
5467
- "type": "boolean",
5468
- "kind": "expression"
5469
- }
5470
- }
5471
- ]
5472
- },
5473
- {
5474
- "name": "van-empty",
5475
- "slots": [
5476
- {
5477
- "name": "default",
5478
- "description": "Custom bottom content"
5479
- },
5480
- {
5481
- "name": "image",
5482
- "description": "Custom image"
5483
- },
5484
- {
5485
- "name": "description",
5486
- "description": "Custom description"
5487
- }
5488
- ],
5489
- "events": [],
5490
- "attributes": [
5491
- {
5492
- "name": "image",
5493
- "default": "`default`",
5494
- "description": "Image type, can be set to `error` `network` `search` or image URL",
5495
- "options": [],
5496
- "value": {
5497
- "type": "string",
5498
- "kind": "expression"
5499
- }
5500
- },
5501
- {
5502
- "name": "image-size",
5503
- "default": "-",
5504
- "description": "Image size",
5505
- "options": [],
5506
- "value": {
5507
- "type": "number | string | Array",
5508
- "kind": "expression"
5509
- }
5510
- },
5511
- {
5512
- "name": "description",
5513
- "default": "-",
5514
- "description": "Description",
5515
- "options": [],
5516
- "value": {
5517
- "type": "string",
5518
- "kind": "expression"
5519
- }
5520
- }
5521
- ]
5522
- },
5523
- {
5524
- "name": "van-icon",
5525
- "slots": [],
5526
- "events": [
5527
- {
5528
- "name": "click",
5529
- "description": "Emitted when icon is clicked",
5530
- "arguments": [
5531
- {
5532
- "name": "event",
5533
- "type": "MouseEvent"
5534
- }
5535
- ]
5536
- }
5537
- ],
5538
- "attributes": [
5539
- {
5540
- "name": "name",
5541
- "default": "`''`",
5542
- "description": "Icon name or URL",
5543
- "options": [],
5544
- "value": {
5545
- "type": "string",
5546
- "kind": "expression"
5547
- }
5548
- },
5549
- {
5550
- "name": "dot",
5551
- "default": "`false`",
5552
- "description": "Whether to show red dot",
5553
- "options": [],
5554
- "value": {
5555
- "type": "boolean",
5556
- "kind": "expression"
5557
- }
5558
- },
5559
- {
5560
- "name": "badge",
5561
- "default": "`''`",
5562
- "description": "Content of the badge",
5563
- "options": [],
5564
- "value": {
5565
- "type": "number | string",
5566
- "kind": "expression"
5567
- }
5568
- },
5569
- {
5570
- "name": "badge-props",
5571
- "default": "-",
5572
- "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
5573
- "options": [],
5574
- "value": {
5575
- "type": "BadgeProps",
5576
- "kind": "expression"
5577
- }
5578
- },
5579
- {
5580
- "name": "color",
5581
- "default": "`inherit`",
5582
- "description": "Icon color",
5353
+ "default": "`false`",
5354
+ "description": "Whether to scroll to the error field when validation failed",
5583
5355
  "options": [],
5584
5356
  "value": {
5585
- "type": "string",
5357
+ "type": "boolean",
5586
5358
  "kind": "expression"
5587
5359
  }
5588
5360
  },
5589
5361
  {
5590
- "name": "size",
5591
- "default": "`inherit`",
5592
- "description": "Icon size",
5362
+ "name": "show-error",
5363
+ "default": "`false`",
5364
+ "description": "Whether to highlight input when validation failed",
5593
5365
  "options": [],
5594
5366
  "value": {
5595
- "type": "number | string",
5367
+ "type": "boolean",
5596
5368
  "kind": "expression"
5597
5369
  }
5598
5370
  },
5599
5371
  {
5600
- "name": "class-prefix",
5601
- "default": "`van-icon`",
5602
- "description": "ClassName prefix",
5372
+ "name": "show-error-message",
5373
+ "default": "`true`",
5374
+ "description": "Whether to show error message when validation failed",
5603
5375
  "options": [],
5604
5376
  "value": {
5605
- "type": "string",
5377
+ "type": "boolean",
5606
5378
  "kind": "expression"
5607
5379
  }
5608
5380
  },
5609
5381
  {
5610
- "name": "tag",
5611
- "default": "`i`",
5612
- "description": "HTML Tag of root element",
5382
+ "name": "submit-on-enter",
5383
+ "default": "`true`",
5384
+ "description": "Whether to submit form on enter",
5613
5385
  "options": [],
5614
5386
  "value": {
5615
- "type": "string",
5387
+ "type": "boolean",
5616
5388
  "kind": "expression"
5617
5389
  }
5618
5390
  }
@@ -5778,9 +5550,237 @@
5778
5550
  }
5779
5551
  },
5780
5552
  {
5781
- "name": "loading-icon",
5782
- "default": "`photo`",
5783
- "description": "Loading icon",
5553
+ "name": "loading-icon",
5554
+ "default": "`photo`",
5555
+ "description": "Loading icon",
5556
+ "options": [],
5557
+ "value": {
5558
+ "type": "string",
5559
+ "kind": "expression"
5560
+ }
5561
+ },
5562
+ {
5563
+ "name": "icon-size",
5564
+ "default": "`32px`",
5565
+ "description": "Icon size",
5566
+ "options": [],
5567
+ "value": {
5568
+ "type": "number | string",
5569
+ "kind": "expression"
5570
+ }
5571
+ },
5572
+ {
5573
+ "name": "icon-prefix",
5574
+ "default": "`van-icon`",
5575
+ "description": "Icon className prefix",
5576
+ "options": [],
5577
+ "value": {
5578
+ "type": "string",
5579
+ "kind": "expression"
5580
+ }
5581
+ }
5582
+ ]
5583
+ },
5584
+ {
5585
+ "name": "van-grid",
5586
+ "slots": [],
5587
+ "events": [],
5588
+ "attributes": [
5589
+ {
5590
+ "name": "column-num",
5591
+ "default": "`4`",
5592
+ "description": "Column Num",
5593
+ "options": [],
5594
+ "value": {
5595
+ "type": "number | string",
5596
+ "kind": "expression"
5597
+ }
5598
+ },
5599
+ {
5600
+ "name": "icon-size",
5601
+ "default": "`28px`",
5602
+ "description": "Icon size",
5603
+ "options": [],
5604
+ "value": {
5605
+ "type": "number | string",
5606
+ "kind": "expression"
5607
+ }
5608
+ },
5609
+ {
5610
+ "name": "gutter",
5611
+ "default": "`0`",
5612
+ "description": "Gutter",
5613
+ "options": [],
5614
+ "value": {
5615
+ "type": "number | string",
5616
+ "kind": "expression"
5617
+ }
5618
+ },
5619
+ {
5620
+ "name": "border",
5621
+ "default": "`true`",
5622
+ "description": "Whether to show border",
5623
+ "options": [],
5624
+ "value": {
5625
+ "type": "boolean",
5626
+ "kind": "expression"
5627
+ }
5628
+ },
5629
+ {
5630
+ "name": "center",
5631
+ "default": "`true`",
5632
+ "description": "Whether to center content",
5633
+ "options": [],
5634
+ "value": {
5635
+ "type": "boolean",
5636
+ "kind": "expression"
5637
+ }
5638
+ },
5639
+ {
5640
+ "name": "square",
5641
+ "default": "`false`",
5642
+ "description": "Whether to be square shape",
5643
+ "options": [],
5644
+ "value": {
5645
+ "type": "boolean",
5646
+ "kind": "expression"
5647
+ }
5648
+ },
5649
+ {
5650
+ "name": "clickable",
5651
+ "default": "`false`",
5652
+ "description": "Whether to show click feedback when clicked",
5653
+ "options": [],
5654
+ "value": {
5655
+ "type": "boolean",
5656
+ "kind": "expression"
5657
+ }
5658
+ },
5659
+ {
5660
+ "name": "direction",
5661
+ "default": "`vertical`",
5662
+ "description": "Content arrangement direction, can be set to `horizontal`",
5663
+ "options": [],
5664
+ "value": {
5665
+ "type": "string",
5666
+ "kind": "expression"
5667
+ }
5668
+ },
5669
+ {
5670
+ "name": "reverse",
5671
+ "default": "`false`",
5672
+ "description": "Whether to reverse the position of icon and text",
5673
+ "options": [],
5674
+ "value": {
5675
+ "type": "boolean",
5676
+ "kind": "expression"
5677
+ }
5678
+ }
5679
+ ]
5680
+ },
5681
+ {
5682
+ "name": "van-grid-item",
5683
+ "slots": [
5684
+ {
5685
+ "name": "default",
5686
+ "description": "Custom content"
5687
+ },
5688
+ {
5689
+ "name": "icon",
5690
+ "description": "Custom icon"
5691
+ },
5692
+ {
5693
+ "name": "text",
5694
+ "description": "Custom text"
5695
+ }
5696
+ ],
5697
+ "events": [
5698
+ {
5699
+ "name": "click",
5700
+ "description": "Emitted when component is clicked",
5701
+ "arguments": [
5702
+ {
5703
+ "name": "event",
5704
+ "type": "MouseEvent"
5705
+ }
5706
+ ]
5707
+ }
5708
+ ],
5709
+ "attributes": [
5710
+ {
5711
+ "name": "text",
5712
+ "default": "-",
5713
+ "description": "Text",
5714
+ "options": [],
5715
+ "value": {
5716
+ "type": "string",
5717
+ "kind": "expression"
5718
+ }
5719
+ },
5720
+ {
5721
+ "name": "icon",
5722
+ "default": "-",
5723
+ "description": "Icon name or URL",
5724
+ "options": [],
5725
+ "value": {
5726
+ "type": "string",
5727
+ "kind": "expression"
5728
+ }
5729
+ },
5730
+ {
5731
+ "name": "icon-prefix",
5732
+ "default": "`van-icon`",
5733
+ "description": "Icon className prefix",
5734
+ "options": [],
5735
+ "value": {
5736
+ "type": "string",
5737
+ "kind": "expression"
5738
+ }
5739
+ },
5740
+ {
5741
+ "name": "icon-color",
5742
+ "default": "-",
5743
+ "description": "Icon color",
5744
+ "options": [],
5745
+ "value": {
5746
+ "type": "string",
5747
+ "kind": "expression"
5748
+ }
5749
+ },
5750
+ {
5751
+ "name": "dot",
5752
+ "default": "`false`",
5753
+ "description": "Whether to show red dot",
5754
+ "options": [],
5755
+ "value": {
5756
+ "type": "boolean",
5757
+ "kind": "expression"
5758
+ }
5759
+ },
5760
+ {
5761
+ "name": "badge",
5762
+ "default": "-",
5763
+ "description": "Content of the badge",
5764
+ "options": [],
5765
+ "value": {
5766
+ "type": "number | string",
5767
+ "kind": "expression"
5768
+ }
5769
+ },
5770
+ {
5771
+ "name": "badge-props",
5772
+ "default": "-",
5773
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
5774
+ "options": [],
5775
+ "value": {
5776
+ "type": "BadgeProps",
5777
+ "kind": "expression"
5778
+ }
5779
+ },
5780
+ {
5781
+ "name": "url",
5782
+ "default": "-",
5783
+ "description": "Link URL",
5784
5784
  "options": [],
5785
5785
  "value": {
5786
5786
  "type": "string",
@@ -5788,22 +5788,22 @@
5788
5788
  }
5789
5789
  },
5790
5790
  {
5791
- "name": "icon-size",
5792
- "default": "`32px`",
5793
- "description": "Icon size",
5791
+ "name": "to",
5792
+ "default": "-",
5793
+ "description": "Target route of the link, same as to of vue-router",
5794
5794
  "options": [],
5795
5795
  "value": {
5796
- "type": "number | string",
5796
+ "type": "string | object",
5797
5797
  "kind": "expression"
5798
5798
  }
5799
5799
  },
5800
5800
  {
5801
- "name": "icon-prefix",
5802
- "default": "`van-icon`",
5803
- "description": "Icon className prefix",
5801
+ "name": "replace",
5802
+ "default": "`false`",
5803
+ "description": "If true, the navigation will not leave a history record",
5804
5804
  "options": [],
5805
5805
  "value": {
5806
- "type": "string",
5806
+ "type": "boolean",
5807
5807
  "kind": "expression"
5808
5808
  }
5809
5809
  }
@@ -6291,78 +6291,6 @@
6291
6291
  }
6292
6292
  ]
6293
6293
  },
6294
- {
6295
- "name": "van-loading",
6296
- "slots": [
6297
- {
6298
- "name": "default",
6299
- "description": "Loading text"
6300
- }
6301
- ],
6302
- "events": [],
6303
- "attributes": [
6304
- {
6305
- "name": "color",
6306
- "default": "`#c9c9c9`",
6307
- "description": "Loading color",
6308
- "options": [],
6309
- "value": {
6310
- "type": "string",
6311
- "kind": "expression"
6312
- }
6313
- },
6314
- {
6315
- "name": "type",
6316
- "default": "`circular`",
6317
- "description": "Can be set to `spinner`",
6318
- "options": [],
6319
- "value": {
6320
- "type": "string",
6321
- "kind": "expression"
6322
- }
6323
- },
6324
- {
6325
- "name": "size",
6326
- "default": "`30px`",
6327
- "description": "Icon size",
6328
- "options": [],
6329
- "value": {
6330
- "type": "number | string",
6331
- "kind": "expression"
6332
- }
6333
- },
6334
- {
6335
- "name": "text-size",
6336
- "default": "`14px`",
6337
- "description": "Text font size",
6338
- "options": [],
6339
- "value": {
6340
- "type": "number | string",
6341
- "kind": "expression"
6342
- }
6343
- },
6344
- {
6345
- "name": "text-color",
6346
- "default": "`#c9c9c9`",
6347
- "description": "Text color",
6348
- "options": [],
6349
- "value": {
6350
- "type": "string",
6351
- "kind": "expression"
6352
- }
6353
- },
6354
- {
6355
- "name": "vertical",
6356
- "default": "`false`",
6357
- "description": "Whether to arrange icons and text content vertically",
6358
- "options": [],
6359
- "value": {
6360
- "type": "boolean",
6361
- "kind": "expression"
6362
- }
6363
- }
6364
- ]
6365
- },
6366
6294
  {
6367
6295
  "name": "van-nav-bar",
6368
6296
  "slots": [
@@ -6494,6 +6422,78 @@
6494
6422
  }
6495
6423
  ]
6496
6424
  },
6425
+ {
6426
+ "name": "van-loading",
6427
+ "slots": [
6428
+ {
6429
+ "name": "default",
6430
+ "description": "Loading text"
6431
+ }
6432
+ ],
6433
+ "events": [],
6434
+ "attributes": [
6435
+ {
6436
+ "name": "color",
6437
+ "default": "`#c9c9c9`",
6438
+ "description": "Loading color",
6439
+ "options": [],
6440
+ "value": {
6441
+ "type": "string",
6442
+ "kind": "expression"
6443
+ }
6444
+ },
6445
+ {
6446
+ "name": "type",
6447
+ "default": "`circular`",
6448
+ "description": "Can be set to `spinner`",
6449
+ "options": [],
6450
+ "value": {
6451
+ "type": "string",
6452
+ "kind": "expression"
6453
+ }
6454
+ },
6455
+ {
6456
+ "name": "size",
6457
+ "default": "`30px`",
6458
+ "description": "Icon size",
6459
+ "options": [],
6460
+ "value": {
6461
+ "type": "number | string",
6462
+ "kind": "expression"
6463
+ }
6464
+ },
6465
+ {
6466
+ "name": "text-size",
6467
+ "default": "`14px`",
6468
+ "description": "Text font size",
6469
+ "options": [],
6470
+ "value": {
6471
+ "type": "number | string",
6472
+ "kind": "expression"
6473
+ }
6474
+ },
6475
+ {
6476
+ "name": "text-color",
6477
+ "default": "`#c9c9c9`",
6478
+ "description": "Text color",
6479
+ "options": [],
6480
+ "value": {
6481
+ "type": "string",
6482
+ "kind": "expression"
6483
+ }
6484
+ },
6485
+ {
6486
+ "name": "vertical",
6487
+ "default": "`false`",
6488
+ "description": "Whether to arrange icons and text content vertically",
6489
+ "options": [],
6490
+ "value": {
6491
+ "type": "boolean",
6492
+ "kind": "expression"
6493
+ }
6494
+ }
6495
+ ]
6496
+ },
6497
6497
  {
6498
6498
  "name": "van-notice-bar",
6499
6499
  "slots": [
@@ -6800,44 +6800,137 @@
6800
6800
  "description": "Whether to show delete button",
6801
6801
  "options": [],
6802
6802
  "value": {
6803
- "type": "boolean",
6803
+ "type": "boolean",
6804
+ "kind": "expression"
6805
+ }
6806
+ },
6807
+ {
6808
+ "name": "blur-on-close",
6809
+ "default": "`true`",
6810
+ "description": "Whether to emit blur event when clicking close button",
6811
+ "options": [],
6812
+ "value": {
6813
+ "type": "boolean",
6814
+ "kind": "expression"
6815
+ }
6816
+ },
6817
+ {
6818
+ "name": "hide-on-click-outside",
6819
+ "default": "`true`",
6820
+ "description": "Whether to hide keyboard when outside is clicked",
6821
+ "options": [],
6822
+ "value": {
6823
+ "type": "boolean",
6824
+ "kind": "expression"
6825
+ }
6826
+ },
6827
+ {
6828
+ "name": "teleport",
6829
+ "default": "-",
6830
+ "description": "Specifies a target element where NumberKeyboard will be mounted",
6831
+ "options": [],
6832
+ "value": {
6833
+ "type": "string | Element",
6834
+ "kind": "expression"
6835
+ }
6836
+ },
6837
+ {
6838
+ "name": "safe-area-inset-bottom",
6839
+ "default": "`true`",
6840
+ "description": "Whether to enable bottom safe area adaptation",
6841
+ "options": [],
6842
+ "value": {
6843
+ "type": "boolean",
6844
+ "kind": "expression"
6845
+ }
6846
+ },
6847
+ {
6848
+ "name": "random-key-order",
6849
+ "default": "`false`",
6850
+ "description": "Whether to shuffle the order of keys",
6851
+ "options": [],
6852
+ "value": {
6853
+ "type": "boolean",
6854
+ "kind": "expression"
6855
+ }
6856
+ }
6857
+ ]
6858
+ },
6859
+ {
6860
+ "name": "van-overlay",
6861
+ "slots": [
6862
+ {
6863
+ "name": "default",
6864
+ "description": "Default slot"
6865
+ }
6866
+ ],
6867
+ "events": [
6868
+ {
6869
+ "name": "click",
6870
+ "description": "Emitted when component is clicked",
6871
+ "arguments": [
6872
+ {
6873
+ "name": "event",
6874
+ "type": "MouseEvent"
6875
+ }
6876
+ ]
6877
+ }
6878
+ ],
6879
+ "attributes": [
6880
+ {
6881
+ "name": "show",
6882
+ "default": "`false`",
6883
+ "description": "Whether to show overlay",
6884
+ "options": [],
6885
+ "value": {
6886
+ "type": "boolean",
6887
+ "kind": "expression"
6888
+ }
6889
+ },
6890
+ {
6891
+ "name": "z-index",
6892
+ "default": "`1`",
6893
+ "description": "z-index",
6894
+ "options": [],
6895
+ "value": {
6896
+ "type": "number | string",
6804
6897
  "kind": "expression"
6805
6898
  }
6806
6899
  },
6807
6900
  {
6808
- "name": "blur-on-close",
6809
- "default": "`true`",
6810
- "description": "Whether to emit blur event when clicking close button",
6901
+ "name": "duration",
6902
+ "default": "`0.3`",
6903
+ "description": "Animation duration",
6811
6904
  "options": [],
6812
6905
  "value": {
6813
- "type": "boolean",
6906
+ "type": "number | string",
6814
6907
  "kind": "expression"
6815
6908
  }
6816
6909
  },
6817
6910
  {
6818
- "name": "hide-on-click-outside",
6819
- "default": "`true`",
6820
- "description": "Whether to hide keyboard when outside is clicked",
6911
+ "name": "class-name",
6912
+ "default": "-",
6913
+ "description": "ClassName",
6821
6914
  "options": [],
6822
6915
  "value": {
6823
- "type": "boolean",
6916
+ "type": "string",
6824
6917
  "kind": "expression"
6825
6918
  }
6826
6919
  },
6827
6920
  {
6828
- "name": "teleport",
6921
+ "name": "custom-class",
6829
6922
  "default": "-",
6830
- "description": "Specifies a target element where NumberKeyboard will be mounted",
6923
+ "description": "Custom style",
6831
6924
  "options": [],
6832
6925
  "value": {
6833
- "type": "string | Element",
6926
+ "type": "object",
6834
6927
  "kind": "expression"
6835
6928
  }
6836
6929
  },
6837
6930
  {
6838
- "name": "safe-area-inset-bottom",
6931
+ "name": "lock-scroll",
6839
6932
  "default": "`true`",
6840
- "description": "Whether to enable bottom safe area adaptation",
6933
+ "description": "Whether to lock background scroll",
6841
6934
  "options": [],
6842
6935
  "value": {
6843
6936
  "type": "boolean",
@@ -6845,9 +6938,9 @@
6845
6938
  }
6846
6939
  },
6847
6940
  {
6848
- "name": "random-key-order",
6849
- "default": "`false`",
6850
- "description": "Whether to shuffle the order of keys",
6941
+ "name": "lazy-render",
6942
+ "default": "`true`",
6943
+ "description": "Whether to lazy render util appeared",
6851
6944
  "options": [],
6852
6945
  "value": {
6853
6946
  "type": "boolean",
@@ -6972,6 +7065,89 @@
6972
7065
  }
6973
7066
  ]
6974
7067
  },
7068
+ {
7069
+ "name": "van-password-input",
7070
+ "slots": [],
7071
+ "events": [
7072
+ {
7073
+ "name": "focus",
7074
+ "description": "Emitted when input is focused",
7075
+ "arguments": []
7076
+ }
7077
+ ],
7078
+ "attributes": [
7079
+ {
7080
+ "name": "value",
7081
+ "default": "`''`",
7082
+ "description": "Password value",
7083
+ "options": [],
7084
+ "value": {
7085
+ "type": "string",
7086
+ "kind": "expression"
7087
+ }
7088
+ },
7089
+ {
7090
+ "name": "info",
7091
+ "default": "-",
7092
+ "description": "Bottom info",
7093
+ "options": [],
7094
+ "value": {
7095
+ "type": "string",
7096
+ "kind": "expression"
7097
+ }
7098
+ },
7099
+ {
7100
+ "name": "error-info",
7101
+ "default": "-",
7102
+ "description": "Bottom error info",
7103
+ "options": [],
7104
+ "value": {
7105
+ "type": "string",
7106
+ "kind": "expression"
7107
+ }
7108
+ },
7109
+ {
7110
+ "name": "length",
7111
+ "default": "`6`",
7112
+ "description": "Maxlength of password",
7113
+ "options": [],
7114
+ "value": {
7115
+ "type": "number | string",
7116
+ "kind": "expression"
7117
+ }
7118
+ },
7119
+ {
7120
+ "name": "gutter",
7121
+ "default": "`0`",
7122
+ "description": "Gutter of input",
7123
+ "options": [],
7124
+ "value": {
7125
+ "type": "number | string",
7126
+ "kind": "expression"
7127
+ }
7128
+ },
7129
+ {
7130
+ "name": "mask",
7131
+ "default": "`true`",
7132
+ "description": "Whether to mask value",
7133
+ "options": [],
7134
+ "value": {
7135
+ "type": "boolean",
7136
+ "kind": "expression"
7137
+ }
7138
+ },
7139
+ {
7140
+ "name": "focused",
7141
+ "default": "`false`",
7142
+ "description": "Whether to show focused cursor",
7143
+ "options": [],
7144
+ "value": {
7145
+ "type": "boolean",
7146
+ "kind": "expression"
7147
+ }
7148
+ }
7149
+ ]
7150
+ },
6975
7151
  {
6976
7152
  "name": "van-picker",
6977
7153
  "slots": [
@@ -7658,89 +7834,6 @@
7658
7834
  }
7659
7835
  ]
7660
7836
  },
7661
- {
7662
- "name": "van-password-input",
7663
- "slots": [],
7664
- "events": [
7665
- {
7666
- "name": "focus",
7667
- "description": "Emitted when input is focused",
7668
- "arguments": []
7669
- }
7670
- ],
7671
- "attributes": [
7672
- {
7673
- "name": "value",
7674
- "default": "`''`",
7675
- "description": "Password value",
7676
- "options": [],
7677
- "value": {
7678
- "type": "string",
7679
- "kind": "expression"
7680
- }
7681
- },
7682
- {
7683
- "name": "info",
7684
- "default": "-",
7685
- "description": "Bottom info",
7686
- "options": [],
7687
- "value": {
7688
- "type": "string",
7689
- "kind": "expression"
7690
- }
7691
- },
7692
- {
7693
- "name": "error-info",
7694
- "default": "-",
7695
- "description": "Bottom error info",
7696
- "options": [],
7697
- "value": {
7698
- "type": "string",
7699
- "kind": "expression"
7700
- }
7701
- },
7702
- {
7703
- "name": "length",
7704
- "default": "`6`",
7705
- "description": "Maxlength of password",
7706
- "options": [],
7707
- "value": {
7708
- "type": "number | string",
7709
- "kind": "expression"
7710
- }
7711
- },
7712
- {
7713
- "name": "gutter",
7714
- "default": "`0`",
7715
- "description": "Gutter of input",
7716
- "options": [],
7717
- "value": {
7718
- "type": "number | string",
7719
- "kind": "expression"
7720
- }
7721
- },
7722
- {
7723
- "name": "mask",
7724
- "default": "`true`",
7725
- "description": "Whether to mask value",
7726
- "options": [],
7727
- "value": {
7728
- "type": "boolean",
7729
- "kind": "expression"
7730
- }
7731
- },
7732
- {
7733
- "name": "focused",
7734
- "default": "`false`",
7735
- "description": "Whether to show focused cursor",
7736
- "options": [],
7737
- "value": {
7738
- "type": "boolean",
7739
- "kind": "expression"
7740
- }
7741
- }
7742
- ]
7743
- },
7744
7837
  {
7745
7838
  "name": "van-progress",
7746
7839
  "slots": [],
@@ -7839,50 +7932,95 @@
7839
7932
  ]
7840
7933
  },
7841
7934
  {
7842
- "name": "van-overlay",
7935
+ "name": "van-pull-refresh",
7843
7936
  "slots": [
7844
7937
  {
7845
7938
  "name": "default",
7846
7939
  "description": "Default slot"
7940
+ },
7941
+ {
7942
+ "name": "normal",
7943
+ "description": "Content of head when at normal status"
7944
+ },
7945
+ {
7946
+ "name": "pulling",
7947
+ "description": "Content of head when at pulling"
7948
+ },
7949
+ {
7950
+ "name": "loosing",
7951
+ "description": "Content of head when at loosing"
7952
+ },
7953
+ {
7954
+ "name": "loading",
7955
+ "description": "Content of head when at loading"
7956
+ },
7957
+ {
7958
+ "name": "success",
7959
+ "description": "Content of head when succeed"
7847
7960
  }
7848
7961
  ],
7849
7962
  "events": [
7850
7963
  {
7851
- "name": "click",
7852
- "description": "Emitted when component is clicked",
7853
- "arguments": [
7854
- {
7855
- "name": "event",
7856
- "type": "MouseEvent"
7857
- }
7858
- ]
7964
+ "name": "refresh",
7965
+ "description": "Emitted after pulling refresh",
7966
+ "arguments": []
7859
7967
  }
7860
7968
  ],
7861
7969
  "attributes": [
7862
7970
  {
7863
- "name": "show",
7864
- "default": "`false`",
7865
- "description": "Whether to show overlay",
7971
+ "name": "v-model",
7972
+ "default": "-",
7973
+ "description": "Loading status",
7974
+ "options": [],
7975
+ "value": {
7976
+ "type": "boolean",
7977
+ "kind": "expression"
7978
+ }
7979
+ },
7980
+ {
7981
+ "name": "pulling-text",
7982
+ "default": "`Pull to refresh...`",
7983
+ "description": "Text to show when pulling",
7984
+ "options": [],
7985
+ "value": {
7986
+ "type": "string",
7987
+ "kind": "expression"
7988
+ }
7989
+ },
7990
+ {
7991
+ "name": "loosing-text",
7992
+ "default": "`Loose to refresh...`",
7993
+ "description": "Text to show when loosing",
7866
7994
  "options": [],
7867
7995
  "value": {
7868
- "type": "boolean",
7996
+ "type": "string",
7869
7997
  "kind": "expression"
7870
7998
  }
7871
7999
  },
7872
8000
  {
7873
- "name": "z-index",
7874
- "default": "`1`",
7875
- "description": "z-index",
8001
+ "name": "loading-text",
8002
+ "default": "`Loading...`",
8003
+ "description": "Text to show when loading",
7876
8004
  "options": [],
7877
8005
  "value": {
7878
- "type": "number | string",
8006
+ "type": "string",
7879
8007
  "kind": "expression"
7880
8008
  }
7881
8009
  },
7882
8010
  {
7883
- "name": "duration",
7884
- "default": "`0.3`",
7885
- "description": "Animation duration",
8011
+ "name": "success-text",
8012
+ "default": "-",
8013
+ "description": "Text to show when loading success",
8014
+ "options": [],
8015
+ "value": {
8016
+ "type": "string",
8017
+ "kind": "expression"
8018
+ }
8019
+ },
8020
+ {
8021
+ "name": "success-duration",
8022
+ "default": "`500`",
8023
+ "description": "Success text display duration(ms)",
7886
8024
  "options": [],
7887
8025
  "value": {
7888
8026
  "type": "number | string",
@@ -7890,39 +8028,39 @@
7890
8028
  }
7891
8029
  },
7892
8030
  {
7893
- "name": "class-name",
7894
- "default": "-",
7895
- "description": "ClassName",
8031
+ "name": "animation-duration",
8032
+ "default": "`300`",
8033
+ "description": "Animation duration",
7896
8034
  "options": [],
7897
8035
  "value": {
7898
- "type": "string",
8036
+ "type": "number | string",
7899
8037
  "kind": "expression"
7900
8038
  }
7901
8039
  },
7902
8040
  {
7903
- "name": "custom-class",
7904
- "default": "-",
7905
- "description": "Custom style",
8041
+ "name": "head-height",
8042
+ "default": "`50`",
8043
+ "description": "Height of head",
7906
8044
  "options": [],
7907
8045
  "value": {
7908
- "type": "object",
8046
+ "type": "number | string",
7909
8047
  "kind": "expression"
7910
8048
  }
7911
8049
  },
7912
8050
  {
7913
- "name": "lock-scroll",
7914
- "default": "`true`",
7915
- "description": "Whether to lock background scroll",
8051
+ "name": "pull-distance",
8052
+ "default": "same as `head-height`",
8053
+ "description": "The distance to trigger the pull refresh",
7916
8054
  "options": [],
7917
8055
  "value": {
7918
- "type": "boolean",
8056
+ "type": "number | string",
7919
8057
  "kind": "expression"
7920
8058
  }
7921
8059
  },
7922
8060
  {
7923
- "name": "lazy-render",
7924
- "default": "`true`",
7925
- "description": "Whether to lazy render util appeared",
8061
+ "name": "disabled",
8062
+ "default": "`false`",
8063
+ "description": "Whether to disable pull refresh",
7926
8064
  "options": [],
7927
8065
  "value": {
7928
8066
  "type": "boolean",
@@ -8096,144 +8234,6 @@
8096
8234
  }
8097
8235
  ]
8098
8236
  },
8099
- {
8100
- "name": "van-pull-refresh",
8101
- "slots": [
8102
- {
8103
- "name": "default",
8104
- "description": "Default slot"
8105
- },
8106
- {
8107
- "name": "normal",
8108
- "description": "Content of head when at normal status"
8109
- },
8110
- {
8111
- "name": "pulling",
8112
- "description": "Content of head when at pulling"
8113
- },
8114
- {
8115
- "name": "loosing",
8116
- "description": "Content of head when at loosing"
8117
- },
8118
- {
8119
- "name": "loading",
8120
- "description": "Content of head when at loading"
8121
- },
8122
- {
8123
- "name": "success",
8124
- "description": "Content of head when succeed"
8125
- }
8126
- ],
8127
- "events": [
8128
- {
8129
- "name": "refresh",
8130
- "description": "Emitted after pulling refresh",
8131
- "arguments": []
8132
- }
8133
- ],
8134
- "attributes": [
8135
- {
8136
- "name": "v-model",
8137
- "default": "-",
8138
- "description": "Loading status",
8139
- "options": [],
8140
- "value": {
8141
- "type": "boolean",
8142
- "kind": "expression"
8143
- }
8144
- },
8145
- {
8146
- "name": "pulling-text",
8147
- "default": "`Pull to refresh...`",
8148
- "description": "Text to show when pulling",
8149
- "options": [],
8150
- "value": {
8151
- "type": "string",
8152
- "kind": "expression"
8153
- }
8154
- },
8155
- {
8156
- "name": "loosing-text",
8157
- "default": "`Loose to refresh...`",
8158
- "description": "Text to show when loosing",
8159
- "options": [],
8160
- "value": {
8161
- "type": "string",
8162
- "kind": "expression"
8163
- }
8164
- },
8165
- {
8166
- "name": "loading-text",
8167
- "default": "`Loading...`",
8168
- "description": "Text to show when loading",
8169
- "options": [],
8170
- "value": {
8171
- "type": "string",
8172
- "kind": "expression"
8173
- }
8174
- },
8175
- {
8176
- "name": "success-text",
8177
- "default": "-",
8178
- "description": "Text to show when loading success",
8179
- "options": [],
8180
- "value": {
8181
- "type": "string",
8182
- "kind": "expression"
8183
- }
8184
- },
8185
- {
8186
- "name": "success-duration",
8187
- "default": "`500`",
8188
- "description": "Success text display duration(ms)",
8189
- "options": [],
8190
- "value": {
8191
- "type": "number | string",
8192
- "kind": "expression"
8193
- }
8194
- },
8195
- {
8196
- "name": "animation-duration",
8197
- "default": "`300`",
8198
- "description": "Animation duration",
8199
- "options": [],
8200
- "value": {
8201
- "type": "number | string",
8202
- "kind": "expression"
8203
- }
8204
- },
8205
- {
8206
- "name": "head-height",
8207
- "default": "`50`",
8208
- "description": "Height of head",
8209
- "options": [],
8210
- "value": {
8211
- "type": "number | string",
8212
- "kind": "expression"
8213
- }
8214
- },
8215
- {
8216
- "name": "pull-distance",
8217
- "default": "same as `head-height`",
8218
- "description": "The distance to trigger the pull refresh",
8219
- "options": [],
8220
- "value": {
8221
- "type": "number | string",
8222
- "kind": "expression"
8223
- }
8224
- },
8225
- {
8226
- "name": "disabled",
8227
- "default": "`false`",
8228
- "description": "Whether to disable pull refresh",
8229
- "options": [],
8230
- "value": {
8231
- "type": "boolean",
8232
- "kind": "expression"
8233
- }
8234
- }
8235
- ]
8236
- },
8237
8237
  {
8238
8238
  "name": "van-rate",
8239
8239
  "slots": [],
@@ -8747,68 +8747,77 @@
8747
8747
  ]
8748
8748
  },
8749
8749
  {
8750
- "name": "van-sidebar",
8751
- "slots": [],
8750
+ "name": "van-share-sheet",
8751
+ "slots": [
8752
+ {
8753
+ "name": "title",
8754
+ "description": "Custom title"
8755
+ },
8756
+ {
8757
+ "name": "description",
8758
+ "description": "Custom description"
8759
+ },
8760
+ {
8761
+ "name": "cancel",
8762
+ "description": "Custom the content of cancel button"
8763
+ }
8764
+ ],
8752
8765
  "events": [
8753
8766
  {
8754
- "name": "change",
8755
- "description": "Emitted when chosen item changed",
8767
+ "name": "select",
8768
+ "description": "Emitted when an option is clicked",
8756
8769
  "arguments": [
8770
+ {
8771
+ "name": "option",
8772
+ "type": "Option"
8773
+ },
8757
8774
  {
8758
8775
  "name": "index",
8759
8776
  "type": "number"
8760
8777
  }
8761
8778
  ]
8762
- }
8763
- ],
8764
- "attributes": [
8779
+ },
8765
8780
  {
8766
- "name": "v-model",
8767
- "default": "`0`",
8768
- "description": "Index of chosen item",
8769
- "options": [],
8770
- "value": {
8771
- "type": "number | string",
8772
- "kind": "expression"
8773
- }
8774
- }
8775
- ]
8776
- },
8777
- {
8778
- "name": "van-sidebar-item",
8779
- "slots": [
8781
+ "name": "cancel",
8782
+ "description": "Emitted when the cancel button is clicked",
8783
+ "arguments": []
8784
+ },
8785
+ {
8786
+ "name": "open",
8787
+ "description": "Emitted when opening ShareSheet",
8788
+ "arguments": []
8789
+ },
8790
+ {
8791
+ "name": "close",
8792
+ "description": "Emitted when closing ShareSheet",
8793
+ "arguments": []
8794
+ },
8780
8795
  {
8781
- "name": "title",
8782
- "description": "Custom item title"
8783
- }
8784
- ],
8785
- "events": [
8796
+ "name": "opened",
8797
+ "description": "Emitted when ShareSheet is opened",
8798
+ "arguments": []
8799
+ },
8786
8800
  {
8787
- "name": "click",
8788
- "description": "Emitted when an item is clicked",
8801
+ "name": "closed",
8802
+ "description": "Emitted when ShareSheet is closed",
8803
+ "arguments": []
8804
+ },
8805
+ {
8806
+ "name": "click-overlay",
8807
+ "description": "Emitted when overlay is clicked",
8789
8808
  "arguments": [
8790
8809
  {
8791
- "name": "index",
8792
- "type": "number"
8810
+ "name": "event",
8811
+ "type": "MouseEvent"
8793
8812
  }
8794
8813
  ]
8795
8814
  }
8796
8815
  ],
8797
8816
  "attributes": [
8798
8817
  {
8799
- "name": "title",
8800
- "default": "`''`",
8801
- "description": "Content",
8802
- "options": [],
8803
- "value": {
8804
- "type": "string",
8805
- "kind": "expression"
8806
- }
8807
- },
8808
- {
8809
- "name": "dot",
8818
+ "name": "v-model:show",
8810
8819
  "default": "`false`",
8811
- "description": "Whether to show red dot",
8820
+ "description": "Whether to show ShareSheet",
8812
8821
  "options": [],
8813
8822
  "value": {
8814
8823
  "type": "boolean",
@@ -8816,39 +8825,39 @@
8816
8825
  }
8817
8826
  },
8818
8827
  {
8819
- "name": "badge",
8820
- "default": "`''`",
8821
- "description": "Content of the badge",
8828
+ "name": "options",
8829
+ "default": "`[]`",
8830
+ "description": "Share options",
8822
8831
  "options": [],
8823
8832
  "value": {
8824
- "type": "number | string",
8833
+ "type": "Option[]",
8825
8834
  "kind": "expression"
8826
8835
  }
8827
8836
  },
8828
8837
  {
8829
- "name": "badge-props",
8838
+ "name": "title",
8830
8839
  "default": "-",
8831
- "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
8840
+ "description": "Title",
8832
8841
  "options": [],
8833
8842
  "value": {
8834
- "type": "BadgeProps",
8843
+ "type": "string",
8835
8844
  "kind": "expression"
8836
8845
  }
8837
8846
  },
8838
8847
  {
8839
- "name": "disabled",
8840
- "default": "`false`",
8841
- "description": "Whether to be disabled",
8848
+ "name": "cancel-text",
8849
+ "default": "`'Cancel'`",
8850
+ "description": "Cancel button text",
8842
8851
  "options": [],
8843
8852
  "value": {
8844
- "type": "boolean",
8853
+ "type": "string",
8845
8854
  "kind": "expression"
8846
8855
  }
8847
8856
  },
8848
8857
  {
8849
- "name": "url",
8858
+ "name": "description",
8850
8859
  "default": "-",
8851
- "description": "Link",
8860
+ "description": "Description",
8852
8861
  "options": [],
8853
8862
  "value": {
8854
8863
  "type": "string",
@@ -8856,66 +8865,59 @@
8856
8865
  }
8857
8866
  },
8858
8867
  {
8859
- "name": "to",
8860
- "default": "-",
8861
- "description": "Target route of the link, same as to of vue-router",
8868
+ "name": "duration",
8869
+ "default": "`0.3`",
8870
+ "description": "Transition duration, unit second",
8862
8871
  "options": [],
8863
8872
  "value": {
8864
- "type": "string | object",
8873
+ "type": "number | string",
8865
8874
  "kind": "expression"
8866
8875
  }
8867
8876
  },
8868
8877
  {
8869
- "name": "replace",
8870
- "default": "`false`",
8871
- "description": "If true, the navigation will not leave a history record",
8878
+ "name": "round",
8879
+ "default": "`true`",
8880
+ "description": "Whether to show round corner",
8872
8881
  "options": [],
8873
8882
  "value": {
8874
8883
  "type": "boolean",
8875
8884
  "kind": "expression"
8876
8885
  }
8877
- }
8878
- ]
8879
- },
8880
- {
8881
- "name": "van-skeleton",
8882
- "slots": [],
8883
- "events": [],
8884
- "attributes": [
8886
+ },
8885
8887
  {
8886
- "name": "row",
8887
- "default": "`0`",
8888
- "description": "Row count",
8888
+ "name": "overlay",
8889
+ "default": "`true`",
8890
+ "description": "Whether to show overlay",
8889
8891
  "options": [],
8890
8892
  "value": {
8891
- "type": "number | string",
8893
+ "type": "boolean",
8892
8894
  "kind": "expression"
8893
8895
  }
8894
8896
  },
8895
8897
  {
8896
- "name": "row-width",
8897
- "default": "`100%`",
8898
- "description": "Row width, can be array",
8898
+ "name": "overlay-class",
8899
+ "default": "-",
8900
+ "description": "Custom overlay class",
8899
8901
  "options": [],
8900
8902
  "value": {
8901
- "type": "number | string |<br>(number | string)[]",
8903
+ "type": "string | Array | object",
8902
8904
  "kind": "expression"
8903
8905
  }
8904
8906
  },
8905
8907
  {
8906
- "name": "title",
8907
- "default": "`false`",
8908
- "description": "Whether to show title placeholder",
8908
+ "name": "overlay-style",
8909
+ "default": "-",
8910
+ "description": "Custom overlay style",
8909
8911
  "options": [],
8910
8912
  "value": {
8911
- "type": "boolean",
8913
+ "type": "object",
8912
8914
  "kind": "expression"
8913
8915
  }
8914
8916
  },
8915
8917
  {
8916
- "name": "avatar",
8917
- "default": "`false`",
8918
- "description": "Whether to show avatar placeholder",
8918
+ "name": "lock-scroll",
8919
+ "default": "`true`",
8920
+ "description": "Whether to lock background scroll",
8919
8921
  "options": [],
8920
8922
  "value": {
8921
8923
  "type": "boolean",
@@ -8923,9 +8925,9 @@
8923
8925
  }
8924
8926
  },
8925
8927
  {
8926
- "name": "loading",
8928
+ "name": "lazy-render",
8927
8929
  "default": "`true`",
8928
- "description": "Whether to show skeleton, pass `false` to show child component",
8930
+ "description": "Whether to lazy render util appeared",
8929
8931
  "options": [],
8930
8932
  "value": {
8931
8933
  "type": "boolean",
@@ -8933,9 +8935,9 @@
8933
8935
  }
8934
8936
  },
8935
8937
  {
8936
- "name": "animate",
8938
+ "name": "close-on-popstate",
8937
8939
  "default": "`true`",
8938
- "description": "Whether to enable animation",
8940
+ "description": "Whether to close when popstate",
8939
8941
  "options": [],
8940
8942
  "value": {
8941
8943
  "type": "boolean",
@@ -8943,9 +8945,9 @@
8943
8945
  }
8944
8946
  },
8945
8947
  {
8946
- "name": "round",
8947
- "default": "`false`",
8948
- "description": "Whether to show round title and row",
8948
+ "name": "close-on-click-overlay",
8949
+ "default": "`true`",
8950
+ "description": "Whether to close when overlay is clicked",
8949
8951
  "options": [],
8950
8952
  "value": {
8951
8953
  "type": "boolean",
@@ -8953,109 +8955,100 @@
8953
8955
  }
8954
8956
  },
8955
8957
  {
8956
- "name": "title-width",
8957
- "default": "`40%`",
8958
- "description": "Title width",
8958
+ "name": "safe-area-inset-bottom",
8959
+ "default": "`true`",
8960
+ "description": "Whether to enable bottom safe area adaptation",
8959
8961
  "options": [],
8960
8962
  "value": {
8961
- "type": "number | string",
8963
+ "type": "boolean",
8962
8964
  "kind": "expression"
8963
8965
  }
8964
8966
  },
8965
8967
  {
8966
- "name": "avatar-size",
8967
- "default": "`32px`",
8968
- "description": "Size of avatar placeholder",
8968
+ "name": "teleport",
8969
+ "default": "-",
8970
+ "description": "Specifies a target element where ShareSheet will be mounted",
8969
8971
  "options": [],
8970
8972
  "value": {
8971
- "type": "number | string",
8973
+ "type": "string | Element",
8972
8974
  "kind": "expression"
8973
8975
  }
8974
8976
  },
8975
8977
  {
8976
- "name": "avatar-shape",
8977
- "default": "`round`",
8978
- "description": "Shape of avatar placeholder, can be set to `square`",
8978
+ "name": "before-close",
8979
+ "default": "-",
8980
+ "description": "Callback function before close",
8979
8981
  "options": [],
8980
8982
  "value": {
8981
- "type": "string",
8983
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
8982
8984
  "kind": "expression"
8983
8985
  }
8984
8986
  }
8985
8987
  ]
8986
8988
  },
8987
8989
  {
8988
- "name": "van-share-sheet",
8989
- "slots": [
8990
- {
8991
- "name": "title",
8992
- "description": "Custom title"
8993
- },
8994
- {
8995
- "name": "description",
8996
- "description": "Custom description"
8997
- },
8998
- {
8999
- "name": "cancel",
9000
- "description": "Custom the content of cancel button"
9001
- }
9002
- ],
8990
+ "name": "van-sidebar",
8991
+ "slots": [],
9003
8992
  "events": [
9004
8993
  {
9005
- "name": "select",
9006
- "description": "Emitted when an option is clicked",
8994
+ "name": "change",
8995
+ "description": "Emitted when chosen item changed",
9007
8996
  "arguments": [
9008
- {
9009
- "name": "option",
9010
- "type": "Option"
9011
- },
9012
8997
  {
9013
8998
  "name": "index",
9014
8999
  "type": "number"
9015
9000
  }
9016
9001
  ]
9017
- },
9018
- {
9019
- "name": "cancel",
9020
- "description": "Emitted when the cancel button is clicked",
9021
- "arguments": []
9022
- },
9023
- {
9024
- "name": "open",
9025
- "description": "Emitted when opening ShareSheet",
9026
- "arguments": []
9027
- },
9028
- {
9029
- "name": "close",
9030
- "description": "Emitted when closing ShareSheet",
9031
- "arguments": []
9032
- },
9002
+ }
9003
+ ],
9004
+ "attributes": [
9033
9005
  {
9034
- "name": "opened",
9035
- "description": "Emitted when ShareSheet is opened",
9036
- "arguments": []
9037
- },
9006
+ "name": "v-model",
9007
+ "default": "`0`",
9008
+ "description": "Index of chosen item",
9009
+ "options": [],
9010
+ "value": {
9011
+ "type": "number | string",
9012
+ "kind": "expression"
9013
+ }
9014
+ }
9015
+ ]
9016
+ },
9017
+ {
9018
+ "name": "van-sidebar-item",
9019
+ "slots": [
9038
9020
  {
9039
- "name": "closed",
9040
- "description": "Emitted when ShareSheet is closed",
9041
- "arguments": []
9042
- },
9021
+ "name": "title",
9022
+ "description": "Custom item title"
9023
+ }
9024
+ ],
9025
+ "events": [
9043
9026
  {
9044
- "name": "click-overlay",
9045
- "description": "Emitted when overlay is clicked",
9027
+ "name": "click",
9028
+ "description": "Emitted when an item is clicked",
9046
9029
  "arguments": [
9047
9030
  {
9048
- "name": "event",
9049
- "type": "MouseEvent"
9031
+ "name": "index",
9032
+ "type": "number"
9050
9033
  }
9051
9034
  ]
9052
9035
  }
9053
9036
  ],
9054
9037
  "attributes": [
9055
9038
  {
9056
- "name": "v-model:show",
9039
+ "name": "title",
9040
+ "default": "`''`",
9041
+ "description": "Content",
9042
+ "options": [],
9043
+ "value": {
9044
+ "type": "string",
9045
+ "kind": "expression"
9046
+ }
9047
+ },
9048
+ {
9049
+ "name": "dot",
9057
9050
  "default": "`false`",
9058
- "description": "Whether to show ShareSheet",
9051
+ "description": "Whether to show red dot",
9059
9052
  "options": [],
9060
9053
  "value": {
9061
9054
  "type": "boolean",
@@ -9063,39 +9056,39 @@
9063
9056
  }
9064
9057
  },
9065
9058
  {
9066
- "name": "options",
9067
- "default": "`[]`",
9068
- "description": "Share options",
9059
+ "name": "badge",
9060
+ "default": "`''`",
9061
+ "description": "Content of the badge",
9069
9062
  "options": [],
9070
9063
  "value": {
9071
- "type": "Option[]",
9064
+ "type": "number | string",
9072
9065
  "kind": "expression"
9073
9066
  }
9074
9067
  },
9075
9068
  {
9076
- "name": "title",
9069
+ "name": "badge-props",
9077
9070
  "default": "-",
9078
- "description": "Title",
9071
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
9079
9072
  "options": [],
9080
9073
  "value": {
9081
- "type": "string",
9074
+ "type": "BadgeProps",
9082
9075
  "kind": "expression"
9083
9076
  }
9084
9077
  },
9085
9078
  {
9086
- "name": "cancel-text",
9087
- "default": "`'Cancel'`",
9088
- "description": "Cancel button text",
9079
+ "name": "disabled",
9080
+ "default": "`false`",
9081
+ "description": "Whether to be disabled",
9089
9082
  "options": [],
9090
9083
  "value": {
9091
- "type": "string",
9084
+ "type": "boolean",
9092
9085
  "kind": "expression"
9093
9086
  }
9094
9087
  },
9095
9088
  {
9096
- "name": "description",
9089
+ "name": "url",
9097
9090
  "default": "-",
9098
- "description": "Description",
9091
+ "description": "Link",
9099
9092
  "options": [],
9100
9093
  "value": {
9101
9094
  "type": "string",
@@ -9103,59 +9096,66 @@
9103
9096
  }
9104
9097
  },
9105
9098
  {
9106
- "name": "duration",
9107
- "default": "`0.3`",
9108
- "description": "Transition duration, unit second",
9099
+ "name": "to",
9100
+ "default": "-",
9101
+ "description": "Target route of the link, same as to of vue-router",
9109
9102
  "options": [],
9110
9103
  "value": {
9111
- "type": "number | string",
9104
+ "type": "string | object",
9112
9105
  "kind": "expression"
9113
9106
  }
9114
9107
  },
9115
9108
  {
9116
- "name": "round",
9117
- "default": "`true`",
9118
- "description": "Whether to show round corner",
9109
+ "name": "replace",
9110
+ "default": "`false`",
9111
+ "description": "If true, the navigation will not leave a history record",
9119
9112
  "options": [],
9120
9113
  "value": {
9121
9114
  "type": "boolean",
9122
9115
  "kind": "expression"
9123
9116
  }
9124
- },
9117
+ }
9118
+ ]
9119
+ },
9120
+ {
9121
+ "name": "van-skeleton",
9122
+ "slots": [],
9123
+ "events": [],
9124
+ "attributes": [
9125
9125
  {
9126
- "name": "overlay",
9127
- "default": "`true`",
9128
- "description": "Whether to show overlay",
9126
+ "name": "row",
9127
+ "default": "`0`",
9128
+ "description": "Row count",
9129
9129
  "options": [],
9130
9130
  "value": {
9131
- "type": "boolean",
9131
+ "type": "number | string",
9132
9132
  "kind": "expression"
9133
9133
  }
9134
9134
  },
9135
9135
  {
9136
- "name": "overlay-class",
9137
- "default": "-",
9138
- "description": "Custom overlay class",
9136
+ "name": "row-width",
9137
+ "default": "`100%`",
9138
+ "description": "Row width, can be array",
9139
9139
  "options": [],
9140
9140
  "value": {
9141
- "type": "string | Array | object",
9141
+ "type": "number | string |<br>(number | string)[]",
9142
9142
  "kind": "expression"
9143
9143
  }
9144
9144
  },
9145
9145
  {
9146
- "name": "overlay-style",
9147
- "default": "-",
9148
- "description": "Custom overlay style",
9146
+ "name": "title",
9147
+ "default": "`false`",
9148
+ "description": "Whether to show title placeholder",
9149
9149
  "options": [],
9150
9150
  "value": {
9151
- "type": "object",
9151
+ "type": "boolean",
9152
9152
  "kind": "expression"
9153
9153
  }
9154
9154
  },
9155
9155
  {
9156
- "name": "lock-scroll",
9157
- "default": "`true`",
9158
- "description": "Whether to lock background scroll",
9156
+ "name": "avatar",
9157
+ "default": "`false`",
9158
+ "description": "Whether to show avatar placeholder",
9159
9159
  "options": [],
9160
9160
  "value": {
9161
9161
  "type": "boolean",
@@ -9163,9 +9163,9 @@
9163
9163
  }
9164
9164
  },
9165
9165
  {
9166
- "name": "lazy-render",
9166
+ "name": "loading",
9167
9167
  "default": "`true`",
9168
- "description": "Whether to lazy render util appeared",
9168
+ "description": "Whether to show skeleton, pass `false` to show child component",
9169
9169
  "options": [],
9170
9170
  "value": {
9171
9171
  "type": "boolean",
@@ -9173,9 +9173,9 @@
9173
9173
  }
9174
9174
  },
9175
9175
  {
9176
- "name": "close-on-popstate",
9176
+ "name": "animate",
9177
9177
  "default": "`true`",
9178
- "description": "Whether to close when popstate",
9178
+ "description": "Whether to enable animation",
9179
9179
  "options": [],
9180
9180
  "value": {
9181
9181
  "type": "boolean",
@@ -9183,9 +9183,9 @@
9183
9183
  }
9184
9184
  },
9185
9185
  {
9186
- "name": "close-on-click-overlay",
9187
- "default": "`true`",
9188
- "description": "Whether to close when overlay is clicked",
9186
+ "name": "round",
9187
+ "default": "`false`",
9188
+ "description": "Whether to show round title and row",
9189
9189
  "options": [],
9190
9190
  "value": {
9191
9191
  "type": "boolean",
@@ -9193,32 +9193,32 @@
9193
9193
  }
9194
9194
  },
9195
9195
  {
9196
- "name": "safe-area-inset-bottom",
9197
- "default": "`true`",
9198
- "description": "Whether to enable bottom safe area adaptation",
9196
+ "name": "title-width",
9197
+ "default": "`40%`",
9198
+ "description": "Title width",
9199
9199
  "options": [],
9200
9200
  "value": {
9201
- "type": "boolean",
9201
+ "type": "number | string",
9202
9202
  "kind": "expression"
9203
9203
  }
9204
9204
  },
9205
9205
  {
9206
- "name": "teleport",
9207
- "default": "-",
9208
- "description": "Specifies a target element where ShareSheet will be mounted",
9206
+ "name": "avatar-size",
9207
+ "default": "`32px`",
9208
+ "description": "Size of avatar placeholder",
9209
9209
  "options": [],
9210
9210
  "value": {
9211
- "type": "string | Element",
9211
+ "type": "number | string",
9212
9212
  "kind": "expression"
9213
9213
  }
9214
9214
  },
9215
9215
  {
9216
- "name": "before-close",
9217
- "default": "-",
9218
- "description": "Callback function before close",
9216
+ "name": "avatar-shape",
9217
+ "default": "`round`",
9218
+ "description": "Shape of avatar placeholder, can be set to `square`",
9219
9219
  "options": [],
9220
9220
  "value": {
9221
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
9221
+ "type": "string",
9222
9222
  "kind": "expression"
9223
9223
  }
9224
9224
  }
@@ -9620,72 +9620,270 @@
9620
9620
  }
9621
9621
  },
9622
9622
  {
9623
- "name": "disable-input",
9624
- "default": "`false`",
9625
- "description": "Whether to disable input",
9623
+ "name": "disable-input",
9624
+ "default": "`false`",
9625
+ "description": "Whether to disable input",
9626
+ "options": [],
9627
+ "value": {
9628
+ "type": "boolean",
9629
+ "kind": "expression"
9630
+ }
9631
+ },
9632
+ {
9633
+ "name": "before-change",
9634
+ "default": "`false`",
9635
+ "description": "Callback function before changing, return `false` to prevent change, support return Promise",
9636
+ "options": [],
9637
+ "value": {
9638
+ "type": "(value: number | string) => boolean | Promise\\<boolean\\>",
9639
+ "kind": "expression"
9640
+ }
9641
+ },
9642
+ {
9643
+ "name": "show-plus",
9644
+ "default": "`true`",
9645
+ "description": "Whether to show plus button",
9646
+ "options": [],
9647
+ "value": {
9648
+ "type": "boolean",
9649
+ "kind": "expression"
9650
+ }
9651
+ },
9652
+ {
9653
+ "name": "show-minus",
9654
+ "default": "`true`",
9655
+ "description": "Whether to show minus button",
9656
+ "options": [],
9657
+ "value": {
9658
+ "type": "boolean",
9659
+ "kind": "expression"
9660
+ }
9661
+ },
9662
+ {
9663
+ "name": "show-input",
9664
+ "default": "`true`",
9665
+ "description": "Whether to show input",
9666
+ "options": [],
9667
+ "value": {
9668
+ "type": "boolean",
9669
+ "kind": "expression"
9670
+ }
9671
+ },
9672
+ {
9673
+ "name": "long-press",
9674
+ "default": "`true`",
9675
+ "description": "Whether to allow long press",
9676
+ "options": [],
9677
+ "value": {
9678
+ "type": "boolean",
9679
+ "kind": "expression"
9680
+ }
9681
+ },
9682
+ {
9683
+ "name": "allow-empty",
9684
+ "default": "`false`",
9685
+ "description": "Whether to allow the input to be empty",
9686
+ "options": [],
9687
+ "value": {
9688
+ "type": "boolean",
9689
+ "kind": "expression"
9690
+ }
9691
+ }
9692
+ ]
9693
+ },
9694
+ {
9695
+ "name": "van-steps",
9696
+ "slots": [],
9697
+ "events": [
9698
+ {
9699
+ "name": "click-step",
9700
+ "description": "Emitted when a step's title or icon is clicked",
9701
+ "arguments": [
9702
+ {
9703
+ "name": "index",
9704
+ "type": "number"
9705
+ }
9706
+ ]
9707
+ }
9708
+ ],
9709
+ "attributes": [
9710
+ {
9711
+ "name": "active",
9712
+ "default": "`0`",
9713
+ "description": "Active step",
9714
+ "options": [],
9715
+ "value": {
9716
+ "type": "number | string",
9717
+ "kind": "expression"
9718
+ }
9719
+ },
9720
+ {
9721
+ "name": "direction",
9722
+ "default": "`horizontal`",
9723
+ "description": "Can be set to `vertical`",
9724
+ "options": [],
9725
+ "value": {
9726
+ "type": "string",
9727
+ "kind": "expression"
9728
+ }
9729
+ },
9730
+ {
9731
+ "name": "active-color",
9732
+ "default": "`#07c160`",
9733
+ "description": "Active step color",
9734
+ "options": [],
9735
+ "value": {
9736
+ "type": "string",
9737
+ "kind": "expression"
9738
+ }
9739
+ },
9740
+ {
9741
+ "name": "inactive-color",
9742
+ "default": "`#969799`",
9743
+ "description": "Inactive step color",
9744
+ "options": [],
9745
+ "value": {
9746
+ "type": "string",
9747
+ "kind": "expression"
9748
+ }
9749
+ },
9750
+ {
9751
+ "name": "active-icon",
9752
+ "default": "`checked`",
9753
+ "description": "Active icon name",
9754
+ "options": [],
9755
+ "value": {
9756
+ "type": "string",
9757
+ "kind": "expression"
9758
+ }
9759
+ },
9760
+ {
9761
+ "name": "inactive-icon",
9762
+ "default": "-",
9763
+ "description": "Inactive icon name",
9764
+ "options": [],
9765
+ "value": {
9766
+ "type": "string",
9767
+ "kind": "expression"
9768
+ }
9769
+ },
9770
+ {
9771
+ "name": "finish-icon",
9772
+ "default": "-",
9773
+ "description": "Finish icon name",
9626
9774
  "options": [],
9627
9775
  "value": {
9628
- "type": "boolean",
9776
+ "type": "string",
9629
9777
  "kind": "expression"
9630
9778
  }
9631
9779
  },
9632
9780
  {
9633
- "name": "before-change",
9634
- "default": "`false`",
9635
- "description": "Callback function before changing, return `false` to prevent change, support return Promise",
9781
+ "name": "icon-prefix",
9782
+ "default": "`van-icon`",
9783
+ "description": "Icon className prefix",
9636
9784
  "options": [],
9637
9785
  "value": {
9638
- "type": "(value: number | string) => boolean | Promise\\<boolean\\>",
9786
+ "type": "string",
9639
9787
  "kind": "expression"
9640
9788
  }
9789
+ }
9790
+ ]
9791
+ },
9792
+ {
9793
+ "name": "van-step",
9794
+ "slots": [
9795
+ {
9796
+ "name": "default",
9797
+ "description": "Step content"
9641
9798
  },
9642
9799
  {
9643
- "name": "show-plus",
9644
- "default": "`true`",
9645
- "description": "Whether to show plus button",
9800
+ "name": "active-icon",
9801
+ "description": "Custom active icon"
9802
+ },
9803
+ {
9804
+ "name": "inactive-icon",
9805
+ "description": "Custom inactive icon"
9806
+ },
9807
+ {
9808
+ "name": "finish-icon",
9809
+ "description": "Custom finish icon"
9810
+ }
9811
+ ],
9812
+ "events": [],
9813
+ "attributes": []
9814
+ },
9815
+ {
9816
+ "name": "van-sticky",
9817
+ "slots": [],
9818
+ "events": [
9819
+ {
9820
+ "name": "change",
9821
+ "description": "Emitted when sticky status changed",
9822
+ "arguments": [
9823
+ {
9824
+ "name": "isFixed",
9825
+ "type": "boolean"
9826
+ }
9827
+ ]
9828
+ },
9829
+ {
9830
+ "name": "scroll",
9831
+ "description": "Emitted when scrolling",
9832
+ "arguments": [
9833
+ {
9834
+ "name": "{ scrollTop: number, isFixed: boolean }"
9835
+ }
9836
+ ]
9837
+ }
9838
+ ],
9839
+ "attributes": [
9840
+ {
9841
+ "name": "position",
9842
+ "default": "`top`",
9843
+ "description": "Offset position, can be set to `bottom`",
9646
9844
  "options": [],
9647
9845
  "value": {
9648
- "type": "boolean",
9846
+ "type": "string",
9649
9847
  "kind": "expression"
9650
9848
  }
9651
9849
  },
9652
9850
  {
9653
- "name": "show-minus",
9654
- "default": "`true`",
9655
- "description": "Whether to show minus button",
9851
+ "name": "offset-top",
9852
+ "default": "`0`",
9853
+ "description": "Offset top, supports `px` `vw` `vh` `rem` unit, default `px`",
9656
9854
  "options": [],
9657
9855
  "value": {
9658
- "type": "boolean",
9856
+ "type": "number | string",
9659
9857
  "kind": "expression"
9660
9858
  }
9661
9859
  },
9662
9860
  {
9663
- "name": "show-input",
9664
- "default": "`true`",
9665
- "description": "Whether to show input",
9861
+ "name": "offset-bottom",
9862
+ "default": "`0`",
9863
+ "description": "Offset bottom, supports `px` `vw` `vh` `rem` unit, default `px`",
9666
9864
  "options": [],
9667
9865
  "value": {
9668
- "type": "boolean",
9866
+ "type": "number | string",
9669
9867
  "kind": "expression"
9670
9868
  }
9671
9869
  },
9672
9870
  {
9673
- "name": "long-press",
9674
- "default": "`true`",
9675
- "description": "Whether to allow long press",
9871
+ "name": "z-index",
9872
+ "default": "`99`",
9873
+ "description": "z-index when sticky",
9676
9874
  "options": [],
9677
9875
  "value": {
9678
- "type": "boolean",
9876
+ "type": "number | string",
9679
9877
  "kind": "expression"
9680
9878
  }
9681
9879
  },
9682
9880
  {
9683
- "name": "allow-empty",
9684
- "default": "`false`",
9685
- "description": "Whether to allow the input to be empty",
9881
+ "name": "container",
9882
+ "default": "-",
9883
+ "description": "Container DOM",
9686
9884
  "options": [],
9687
9885
  "value": {
9688
- "type": "boolean",
9886
+ "type": "Element",
9689
9887
  "kind": "expression"
9690
9888
  }
9691
9889
  }
@@ -9861,127 +10059,6 @@
9861
10059
  }
9862
10060
  ]
9863
10061
  },
9864
- {
9865
- "name": "van-steps",
9866
- "slots": [],
9867
- "events": [
9868
- {
9869
- "name": "click-step",
9870
- "description": "Emitted when a step's title or icon is clicked",
9871
- "arguments": [
9872
- {
9873
- "name": "index",
9874
- "type": "number"
9875
- }
9876
- ]
9877
- }
9878
- ],
9879
- "attributes": [
9880
- {
9881
- "name": "active",
9882
- "default": "`0`",
9883
- "description": "Active step",
9884
- "options": [],
9885
- "value": {
9886
- "type": "number | string",
9887
- "kind": "expression"
9888
- }
9889
- },
9890
- {
9891
- "name": "direction",
9892
- "default": "`horizontal`",
9893
- "description": "Can be set to `vertical`",
9894
- "options": [],
9895
- "value": {
9896
- "type": "string",
9897
- "kind": "expression"
9898
- }
9899
- },
9900
- {
9901
- "name": "active-color",
9902
- "default": "`#07c160`",
9903
- "description": "Active step color",
9904
- "options": [],
9905
- "value": {
9906
- "type": "string",
9907
- "kind": "expression"
9908
- }
9909
- },
9910
- {
9911
- "name": "inactive-color",
9912
- "default": "`#969799`",
9913
- "description": "Inactive step color",
9914
- "options": [],
9915
- "value": {
9916
- "type": "string",
9917
- "kind": "expression"
9918
- }
9919
- },
9920
- {
9921
- "name": "active-icon",
9922
- "default": "`checked`",
9923
- "description": "Active icon name",
9924
- "options": [],
9925
- "value": {
9926
- "type": "string",
9927
- "kind": "expression"
9928
- }
9929
- },
9930
- {
9931
- "name": "inactive-icon",
9932
- "default": "-",
9933
- "description": "Inactive icon name",
9934
- "options": [],
9935
- "value": {
9936
- "type": "string",
9937
- "kind": "expression"
9938
- }
9939
- },
9940
- {
9941
- "name": "finish-icon",
9942
- "default": "-",
9943
- "description": "Finish icon name",
9944
- "options": [],
9945
- "value": {
9946
- "type": "string",
9947
- "kind": "expression"
9948
- }
9949
- },
9950
- {
9951
- "name": "icon-prefix",
9952
- "default": "`van-icon`",
9953
- "description": "Icon className prefix",
9954
- "options": [],
9955
- "value": {
9956
- "type": "string",
9957
- "kind": "expression"
9958
- }
9959
- }
9960
- ]
9961
- },
9962
- {
9963
- "name": "van-step",
9964
- "slots": [
9965
- {
9966
- "name": "default",
9967
- "description": "Step content"
9968
- },
9969
- {
9970
- "name": "active-icon",
9971
- "description": "Custom active icon"
9972
- },
9973
- {
9974
- "name": "inactive-icon",
9975
- "description": "Custom inactive icon"
9976
- },
9977
- {
9978
- "name": "finish-icon",
9979
- "description": "Custom finish icon"
9980
- }
9981
- ],
9982
- "events": [],
9983
- "attributes": []
9984
- },
9985
10062
  {
9986
10063
  "name": "van-swipe",
9987
10064
  "slots": [
@@ -10135,56 +10212,80 @@
10135
10212
  "events": [
10136
10213
  {
10137
10214
  "name": "click",
10138
- "description": "Emitted when component is clicked",
10215
+ "description": "Emitted when component is clicked",
10216
+ "arguments": [
10217
+ {
10218
+ "name": "event",
10219
+ "type": "MouseEvent"
10220
+ }
10221
+ ]
10222
+ }
10223
+ ],
10224
+ "attributes": []
10225
+ },
10226
+ {
10227
+ "name": "van-swipe-cell",
10228
+ "slots": [
10229
+ {
10230
+ "name": "default",
10231
+ "description": "custom content"
10232
+ },
10233
+ {
10234
+ "name": "left",
10235
+ "description": "content of left scrollable area"
10236
+ },
10237
+ {
10238
+ "name": "right",
10239
+ "description": "content of right scrollable area"
10240
+ }
10241
+ ],
10242
+ "events": [
10243
+ {
10244
+ "name": "click",
10245
+ "description": "Emitted when SwipeCell is clicked",
10139
10246
  "arguments": [
10140
10247
  {
10141
- "name": "event",
10142
- "type": "MouseEvent"
10248
+ "name": "position",
10249
+ "type": "'left' | 'right' | 'cell' | 'outside'"
10143
10250
  }
10144
10251
  ]
10145
- }
10146
- ],
10147
- "attributes": []
10148
- },
10149
- {
10150
- "name": "van-sticky",
10151
- "slots": [],
10152
- "events": [
10252
+ },
10153
10253
  {
10154
- "name": "change",
10155
- "description": "Emitted when sticky status changed",
10254
+ "name": "open",
10255
+ "description": "Emitted when SwipeCell is opened",
10156
10256
  "arguments": [
10157
10257
  {
10158
- "name": "isFixed",
10159
- "type": "boolean"
10258
+ "name": "value",
10259
+ "type": "{ name: string | number, position: 'left' | 'right' }"
10160
10260
  }
10161
10261
  ]
10162
10262
  },
10163
10263
  {
10164
- "name": "scroll",
10165
- "description": "Emitted when scrolling",
10264
+ "name": "close",
10265
+ "description": "Emitted when SwipeCell is closed",
10166
10266
  "arguments": [
10167
10267
  {
10168
- "name": "{ scrollTop: number, isFixed: boolean }"
10268
+ "name": "value",
10269
+ "type": "{ name: string | number, position: 'left' | 'right' | 'cell' | 'outside' }"
10169
10270
  }
10170
10271
  ]
10171
10272
  }
10172
10273
  ],
10173
10274
  "attributes": [
10174
10275
  {
10175
- "name": "position",
10176
- "default": "`top`",
10177
- "description": "Offset position, can be set to `bottom`",
10276
+ "name": "name",
10277
+ "default": "-",
10278
+ "description": "Identifier of SwipeCell",
10178
10279
  "options": [],
10179
10280
  "value": {
10180
- "type": "string",
10281
+ "type": "number | string",
10181
10282
  "kind": "expression"
10182
10283
  }
10183
10284
  },
10184
10285
  {
10185
- "name": "offset-top",
10186
- "default": "`0`",
10187
- "description": "Offset top, supports `px` `vw` `vh` `rem` unit, default `px`",
10286
+ "name": "left-width",
10287
+ "default": "`auto`",
10288
+ "description": "Width of the left swipe area",
10188
10289
  "options": [],
10189
10290
  "value": {
10190
10291
  "type": "number | string",
@@ -10192,9 +10293,9 @@
10192
10293
  }
10193
10294
  },
10194
10295
  {
10195
- "name": "offset-bottom",
10196
- "default": "`0`",
10197
- "description": "Offset bottom, supports `px` `vw` `vh` `rem` unit, default `px`",
10296
+ "name": "right-width",
10297
+ "default": "`auto`",
10298
+ "description": "Width of the right swipe area",
10198
10299
  "options": [],
10199
10300
  "value": {
10200
10301
  "type": "number | string",
@@ -10202,22 +10303,32 @@
10202
10303
  }
10203
10304
  },
10204
10305
  {
10205
- "name": "z-index",
10206
- "default": "`99`",
10207
- "description": "z-index when sticky",
10306
+ "name": "before-close",
10307
+ "default": "-",
10308
+ "description": "Callback function before close",
10208
10309
  "options": [],
10209
10310
  "value": {
10210
- "type": "number | string",
10311
+ "type": "(args) => boolean | Promise\\<boolean\\>",
10211
10312
  "kind": "expression"
10212
10313
  }
10213
10314
  },
10214
10315
  {
10215
- "name": "container",
10216
- "default": "-",
10217
- "description": "Container DOM",
10316
+ "name": "disabled",
10317
+ "default": "`false`",
10318
+ "description": "Whether to disabled swipe",
10218
10319
  "options": [],
10219
10320
  "value": {
10220
- "type": "Element",
10321
+ "type": "boolean",
10322
+ "kind": "expression"
10323
+ }
10324
+ },
10325
+ {
10326
+ "name": "stop-propagation",
10327
+ "default": "`false`",
10328
+ "description": "Whether to stop touchmove event propagation",
10329
+ "options": [],
10330
+ "value": {
10331
+ "type": "boolean",
10221
10332
  "kind": "expression"
10222
10333
  }
10223
10334
  }
@@ -10332,68 +10443,177 @@
10332
10443
  ]
10333
10444
  },
10334
10445
  {
10335
- "name": "van-swipe-cell",
10336
- "slots": [
10337
- {
10338
- "name": "default",
10339
- "description": "custom content"
10340
- },
10341
- {
10342
- "name": "left",
10343
- "description": "content of left scrollable area"
10344
- },
10345
- {
10346
- "name": "right",
10347
- "description": "content of right scrollable area"
10348
- }
10349
- ],
10446
+ "name": "van-tabbar",
10447
+ "slots": [],
10350
10448
  "events": [
10351
10449
  {
10352
- "name": "click",
10353
- "description": "Emitted when SwipeCell is clicked",
10450
+ "name": "change",
10451
+ "description": "Emitted when changing active tab",
10354
10452
  "arguments": [
10355
10453
  {
10356
- "name": "position",
10357
- "type": "'left' | 'right' | 'cell' | 'outside'"
10454
+ "name": "active",
10455
+ "type": "number | string"
10358
10456
  }
10359
10457
  ]
10458
+ }
10459
+ ],
10460
+ "attributes": [
10461
+ {
10462
+ "name": "v-model",
10463
+ "default": "`0`",
10464
+ "description": "Identifier of current tab",
10465
+ "options": [],
10466
+ "value": {
10467
+ "type": "number | string",
10468
+ "kind": "expression"
10469
+ }
10360
10470
  },
10361
10471
  {
10362
- "name": "open",
10363
- "description": "Emitted when SwipeCell is opened",
10364
- "arguments": [
10365
- {
10366
- "name": "value",
10367
- "type": "{ name: string | number, position: 'left' | 'right' }"
10368
- }
10369
- ]
10472
+ "name": "fixed",
10473
+ "default": "`true`",
10474
+ "description": "Whether to fixed bottom",
10475
+ "options": [],
10476
+ "value": {
10477
+ "type": "boolean",
10478
+ "kind": "expression"
10479
+ }
10370
10480
  },
10371
10481
  {
10372
- "name": "close",
10373
- "description": "Emitted when SwipeCell is closed",
10374
- "arguments": [
10375
- {
10376
- "name": "value",
10377
- "type": "{ name: string | number, position: 'left' | 'right' | 'cell' | 'outside' }"
10378
- }
10379
- ]
10482
+ "name": "border",
10483
+ "default": "`true`",
10484
+ "description": "Whether to show border",
10485
+ "options": [],
10486
+ "value": {
10487
+ "type": "boolean",
10488
+ "kind": "expression"
10489
+ }
10490
+ },
10491
+ {
10492
+ "name": "z-index",
10493
+ "default": "`1`",
10494
+ "description": "Z-index",
10495
+ "options": [],
10496
+ "value": {
10497
+ "type": "number | string",
10498
+ "kind": "expression"
10499
+ }
10500
+ },
10501
+ {
10502
+ "name": "active-color",
10503
+ "default": "`#1989fa`",
10504
+ "description": "Color of active tab item",
10505
+ "options": [],
10506
+ "value": {
10507
+ "type": "string",
10508
+ "kind": "expression"
10509
+ }
10510
+ },
10511
+ {
10512
+ "name": "inactive-color",
10513
+ "default": "`#7d7e80`",
10514
+ "description": "Color of inactive tab item",
10515
+ "options": [],
10516
+ "value": {
10517
+ "type": "string",
10518
+ "kind": "expression"
10519
+ }
10520
+ },
10521
+ {
10522
+ "name": "route",
10523
+ "default": "`false`",
10524
+ "description": "Whether to enable route mode",
10525
+ "options": [],
10526
+ "value": {
10527
+ "type": "boolean",
10528
+ "kind": "expression"
10529
+ }
10530
+ },
10531
+ {
10532
+ "name": "placeholder",
10533
+ "default": "`false`",
10534
+ "description": "Whether to generate a placeholder element when fixed",
10535
+ "options": [],
10536
+ "value": {
10537
+ "type": "boolean",
10538
+ "kind": "expression"
10539
+ }
10540
+ },
10541
+ {
10542
+ "name": "safe-area-inset-bottom",
10543
+ "default": "`false`",
10544
+ "description": "Whether to enable bottom safe area adaptation",
10545
+ "options": [],
10546
+ "value": {
10547
+ "type": "boolean",
10548
+ "kind": "expression"
10549
+ }
10550
+ },
10551
+ {
10552
+ "name": "before-change",
10553
+ "default": "-",
10554
+ "description": "Callback function before changing tab, return `false` to prevent change, support return Promise",
10555
+ "options": [],
10556
+ "value": {
10557
+ "type": "(name: number | string) => boolean | Promise\\<boolean\\>",
10558
+ "kind": "expression"
10559
+ }
10560
+ }
10561
+ ]
10562
+ },
10563
+ {
10564
+ "name": "van-tabbar-item",
10565
+ "slots": [
10566
+ {
10567
+ "name": "icon",
10568
+ "description": "Custom icon"
10380
10569
  }
10381
10570
  ],
10571
+ "events": [],
10382
10572
  "attributes": [
10383
10573
  {
10384
10574
  "name": "name",
10575
+ "default": "Item index",
10576
+ "description": "Identifier",
10577
+ "options": [],
10578
+ "value": {
10579
+ "type": "number | string",
10580
+ "kind": "expression"
10581
+ }
10582
+ },
10583
+ {
10584
+ "name": "icon",
10585
+ "default": "-",
10586
+ "description": "Icon name",
10587
+ "options": [],
10588
+ "value": {
10589
+ "type": "string",
10590
+ "kind": "expression"
10591
+ }
10592
+ },
10593
+ {
10594
+ "name": "icon-prefix",
10595
+ "default": "`van-icon`",
10596
+ "description": "Icon className prefix",
10597
+ "options": [],
10598
+ "value": {
10599
+ "type": "string",
10600
+ "kind": "expression"
10601
+ }
10602
+ },
10603
+ {
10604
+ "name": "dot",
10385
10605
  "default": "-",
10386
- "description": "Identifier of SwipeCell",
10606
+ "description": "Whether to show red dot",
10387
10607
  "options": [],
10388
10608
  "value": {
10389
- "type": "number | string",
10609
+ "type": "boolean",
10390
10610
  "kind": "expression"
10391
10611
  }
10392
10612
  },
10393
10613
  {
10394
- "name": "left-width",
10395
- "default": "`auto`",
10396
- "description": "Width of the left swipe area",
10614
+ "name": "badge",
10615
+ "default": "`''`",
10616
+ "description": "Content of the badge",
10397
10617
  "options": [],
10398
10618
  "value": {
10399
10619
  "type": "number | string",
@@ -10401,39 +10621,39 @@
10401
10621
  }
10402
10622
  },
10403
10623
  {
10404
- "name": "right-width",
10405
- "default": "`auto`",
10406
- "description": "Width of the right swipe area",
10624
+ "name": "badge-props",
10625
+ "default": "-",
10626
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
10407
10627
  "options": [],
10408
10628
  "value": {
10409
- "type": "number | string",
10629
+ "type": "BadgeProps",
10410
10630
  "kind": "expression"
10411
10631
  }
10412
10632
  },
10413
10633
  {
10414
- "name": "before-close",
10634
+ "name": "url",
10415
10635
  "default": "-",
10416
- "description": "Callback function before close",
10636
+ "description": "Link",
10417
10637
  "options": [],
10418
10638
  "value": {
10419
- "type": "(args) => boolean | Promise\\<boolean\\>",
10639
+ "type": "string",
10420
10640
  "kind": "expression"
10421
10641
  }
10422
10642
  },
10423
10643
  {
10424
- "name": "disabled",
10425
- "default": "`false`",
10426
- "description": "Whether to disabled swipe",
10644
+ "name": "to",
10645
+ "default": "-",
10646
+ "description": "Target route of the link, same as to of vue-router",
10427
10647
  "options": [],
10428
10648
  "value": {
10429
- "type": "boolean",
10649
+ "type": "string | object",
10430
10650
  "kind": "expression"
10431
10651
  }
10432
10652
  },
10433
10653
  {
10434
- "name": "stop-propagation",
10654
+ "name": "replace",
10435
10655
  "default": "`false`",
10436
- "description": "Whether to stop touchmove event propagation",
10656
+ "description": "If true, the navigation will not leave a history record",
10437
10657
  "options": [],
10438
10658
  "value": {
10439
10659
  "type": "boolean",
@@ -10835,226 +11055,6 @@
10835
11055
  }
10836
11056
  ]
10837
11057
  },
10838
- {
10839
- "name": "van-tabbar",
10840
- "slots": [],
10841
- "events": [
10842
- {
10843
- "name": "change",
10844
- "description": "Emitted when changing active tab",
10845
- "arguments": [
10846
- {
10847
- "name": "active",
10848
- "type": "number | string"
10849
- }
10850
- ]
10851
- }
10852
- ],
10853
- "attributes": [
10854
- {
10855
- "name": "v-model",
10856
- "default": "`0`",
10857
- "description": "Identifier of current tab",
10858
- "options": [],
10859
- "value": {
10860
- "type": "number | string",
10861
- "kind": "expression"
10862
- }
10863
- },
10864
- {
10865
- "name": "fixed",
10866
- "default": "`true`",
10867
- "description": "Whether to fixed bottom",
10868
- "options": [],
10869
- "value": {
10870
- "type": "boolean",
10871
- "kind": "expression"
10872
- }
10873
- },
10874
- {
10875
- "name": "border",
10876
- "default": "`true`",
10877
- "description": "Whether to show border",
10878
- "options": [],
10879
- "value": {
10880
- "type": "boolean",
10881
- "kind": "expression"
10882
- }
10883
- },
10884
- {
10885
- "name": "z-index",
10886
- "default": "`1`",
10887
- "description": "Z-index",
10888
- "options": [],
10889
- "value": {
10890
- "type": "number | string",
10891
- "kind": "expression"
10892
- }
10893
- },
10894
- {
10895
- "name": "active-color",
10896
- "default": "`#1989fa`",
10897
- "description": "Color of active tab item",
10898
- "options": [],
10899
- "value": {
10900
- "type": "string",
10901
- "kind": "expression"
10902
- }
10903
- },
10904
- {
10905
- "name": "inactive-color",
10906
- "default": "`#7d7e80`",
10907
- "description": "Color of inactive tab item",
10908
- "options": [],
10909
- "value": {
10910
- "type": "string",
10911
- "kind": "expression"
10912
- }
10913
- },
10914
- {
10915
- "name": "route",
10916
- "default": "`false`",
10917
- "description": "Whether to enable route mode",
10918
- "options": [],
10919
- "value": {
10920
- "type": "boolean",
10921
- "kind": "expression"
10922
- }
10923
- },
10924
- {
10925
- "name": "placeholder",
10926
- "default": "`false`",
10927
- "description": "Whether to generate a placeholder element when fixed",
10928
- "options": [],
10929
- "value": {
10930
- "type": "boolean",
10931
- "kind": "expression"
10932
- }
10933
- },
10934
- {
10935
- "name": "safe-area-inset-bottom",
10936
- "default": "`false`",
10937
- "description": "Whether to enable bottom safe area adaptation",
10938
- "options": [],
10939
- "value": {
10940
- "type": "boolean",
10941
- "kind": "expression"
10942
- }
10943
- },
10944
- {
10945
- "name": "before-change",
10946
- "default": "-",
10947
- "description": "Callback function before changing tab, return `false` to prevent change, support return Promise",
10948
- "options": [],
10949
- "value": {
10950
- "type": "(name: number | string) => boolean | Promise\\<boolean\\>",
10951
- "kind": "expression"
10952
- }
10953
- }
10954
- ]
10955
- },
10956
- {
10957
- "name": "van-tabbar-item",
10958
- "slots": [
10959
- {
10960
- "name": "icon",
10961
- "description": "Custom icon"
10962
- }
10963
- ],
10964
- "events": [],
10965
- "attributes": [
10966
- {
10967
- "name": "name",
10968
- "default": "Item index",
10969
- "description": "Identifier",
10970
- "options": [],
10971
- "value": {
10972
- "type": "number | string",
10973
- "kind": "expression"
10974
- }
10975
- },
10976
- {
10977
- "name": "icon",
10978
- "default": "-",
10979
- "description": "Icon name",
10980
- "options": [],
10981
- "value": {
10982
- "type": "string",
10983
- "kind": "expression"
10984
- }
10985
- },
10986
- {
10987
- "name": "icon-prefix",
10988
- "default": "`van-icon`",
10989
- "description": "Icon className prefix",
10990
- "options": [],
10991
- "value": {
10992
- "type": "string",
10993
- "kind": "expression"
10994
- }
10995
- },
10996
- {
10997
- "name": "dot",
10998
- "default": "-",
10999
- "description": "Whether to show red dot",
11000
- "options": [],
11001
- "value": {
11002
- "type": "boolean",
11003
- "kind": "expression"
11004
- }
11005
- },
11006
- {
11007
- "name": "badge",
11008
- "default": "`''`",
11009
- "description": "Content of the badge",
11010
- "options": [],
11011
- "value": {
11012
- "type": "number | string",
11013
- "kind": "expression"
11014
- }
11015
- },
11016
- {
11017
- "name": "badge-props",
11018
- "default": "-",
11019
- "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
11020
- "options": [],
11021
- "value": {
11022
- "type": "BadgeProps",
11023
- "kind": "expression"
11024
- }
11025
- },
11026
- {
11027
- "name": "url",
11028
- "default": "-",
11029
- "description": "Link",
11030
- "options": [],
11031
- "value": {
11032
- "type": "string",
11033
- "kind": "expression"
11034
- }
11035
- },
11036
- {
11037
- "name": "to",
11038
- "default": "-",
11039
- "description": "Target route of the link, same as to of vue-router",
11040
- "options": [],
11041
- "value": {
11042
- "type": "string | object",
11043
- "kind": "expression"
11044
- }
11045
- },
11046
- {
11047
- "name": "replace",
11048
- "default": "`false`",
11049
- "description": "If true, the navigation will not leave a history record",
11050
- "options": [],
11051
- "value": {
11052
- "type": "boolean",
11053
- "kind": "expression"
11054
- }
11055
- }
11056
- ]
11057
- },
11058
11058
  {
11059
11059
  "name": "van-tag",
11060
11060
  "slots": [