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
package/vetur/tags.json CHANGED
@@ -56,33 +56,6 @@
56
56
  "before-close"
57
57
  ]
58
58
  },
59
- "van-address-list": {
60
- "attributes": [
61
- "v-model",
62
- "list",
63
- "disabled-list",
64
- "disabled-text",
65
- "switchable",
66
- "add-button-text",
67
- "default-tag-text"
68
- ]
69
- },
70
- "van-area": {
71
- "attributes": [
72
- "v-model",
73
- "title",
74
- "confirm-button-text",
75
- "cancel-button-text",
76
- "area-list",
77
- "columns-placeholder",
78
- "loading",
79
- "readonly",
80
- "option-height",
81
- "columns-num",
82
- "visible-option-num",
83
- "swipe-duration"
84
- ]
85
- },
86
59
  "van-address-edit": {
87
60
  "attributes": [
88
61
  "area-list",
@@ -107,6 +80,17 @@
107
80
  "validator"
108
81
  ]
109
82
  },
83
+ "van-address-list": {
84
+ "attributes": [
85
+ "v-model",
86
+ "list",
87
+ "disabled-list",
88
+ "disabled-text",
89
+ "switchable",
90
+ "add-button-text",
91
+ "default-tag-text"
92
+ ]
93
+ },
110
94
  "van-badge": {
111
95
  "attributes": [
112
96
  "content",
@@ -118,6 +102,22 @@
118
102
  "position"
119
103
  ]
120
104
  },
105
+ "van-area": {
106
+ "attributes": [
107
+ "v-model",
108
+ "title",
109
+ "confirm-button-text",
110
+ "cancel-button-text",
111
+ "area-list",
112
+ "columns-placeholder",
113
+ "loading",
114
+ "readonly",
115
+ "option-height",
116
+ "columns-num",
117
+ "visible-option-num",
118
+ "swipe-duration"
119
+ ]
120
+ },
121
121
  "van-button": {
122
122
  "attributes": [
123
123
  "type",
@@ -318,13 +318,12 @@
318
318
  "label-class"
319
319
  ]
320
320
  },
321
- "van-contact-card": {
321
+ "van-config-provider": {
322
322
  "attributes": [
323
- "type",
324
- "name",
325
- "tel",
326
- "add-text",
327
- "editable"
323
+ "theme",
324
+ "theme-vars",
325
+ "tag",
326
+ "icon-prefix"
328
327
  ]
329
328
  },
330
329
  "van-contact-edit": {
@@ -338,12 +337,13 @@
338
337
  "set-default-label"
339
338
  ]
340
339
  },
341
- "van-config-provider": {
340
+ "van-contact-card": {
342
341
  "attributes": [
343
- "theme",
344
- "theme-vars",
345
- "tag",
346
- "icon-prefix"
342
+ "type",
343
+ "name",
344
+ "tel",
345
+ "add-text",
346
+ "editable"
347
347
  ]
348
348
  },
349
349
  "van-contact-list": {
@@ -411,6 +411,13 @@
411
411
  "swipe-duration"
412
412
  ]
413
413
  },
414
+ "van-divider": {
415
+ "attributes": [
416
+ "dashed",
417
+ "hairline",
418
+ "content-position"
419
+ ]
420
+ },
414
421
  "van-dialog": {
415
422
  "attributes": [
416
423
  "v-model:show",
@@ -438,13 +445,6 @@
438
445
  "teleport"
439
446
  ]
440
447
  },
441
- "van-divider": {
442
- "attributes": [
443
- "dashed",
444
- "hairline",
445
- "content-position"
446
- ]
447
- },
448
448
  "van-dropdown-menu": {
449
449
  "attributes": [
450
450
  "active-color",
@@ -509,31 +509,23 @@
509
509
  "enterkeyhint"
510
510
  ]
511
511
  },
512
- "van-grid": {
512
+ "van-empty": {
513
513
  "attributes": [
514
- "column-num",
515
- "icon-size",
516
- "gutter",
517
- "border",
518
- "center",
519
- "square",
520
- "clickable",
521
- "direction",
522
- "reverse"
514
+ "image",
515
+ "image-size",
516
+ "description"
523
517
  ]
524
518
  },
525
- "van-grid-item": {
519
+ "van-icon": {
526
520
  "attributes": [
527
- "text",
528
- "icon",
529
- "icon-prefix",
530
- "icon-color",
521
+ "name",
531
522
  "dot",
532
523
  "badge",
533
524
  "badge-props",
534
- "url",
535
- "to",
536
- "replace"
525
+ "color",
526
+ "size",
527
+ "class-prefix",
528
+ "tag"
537
529
  ]
538
530
  },
539
531
  "van-form": {
@@ -553,25 +545,6 @@
553
545
  "submit-on-enter"
554
546
  ]
555
547
  },
556
- "van-empty": {
557
- "attributes": [
558
- "image",
559
- "image-size",
560
- "description"
561
- ]
562
- },
563
- "van-icon": {
564
- "attributes": [
565
- "name",
566
- "dot",
567
- "badge",
568
- "badge-props",
569
- "color",
570
- "size",
571
- "class-prefix",
572
- "tag"
573
- ]
574
- },
575
548
  "van-image": {
576
549
  "attributes": [
577
550
  "src",
@@ -591,6 +564,33 @@
591
564
  "icon-prefix"
592
565
  ]
593
566
  },
567
+ "van-grid": {
568
+ "attributes": [
569
+ "column-num",
570
+ "icon-size",
571
+ "gutter",
572
+ "border",
573
+ "center",
574
+ "square",
575
+ "clickable",
576
+ "direction",
577
+ "reverse"
578
+ ]
579
+ },
580
+ "van-grid-item": {
581
+ "attributes": [
582
+ "text",
583
+ "icon",
584
+ "icon-prefix",
585
+ "icon-color",
586
+ "dot",
587
+ "badge",
588
+ "badge-props",
589
+ "url",
590
+ "to",
591
+ "replace"
592
+ ]
593
+ },
594
594
  "van-image-preview": {
595
595
  "attributes": [
596
596
  "v-model:show",
@@ -642,16 +642,6 @@
642
642
  "direction"
643
643
  ]
644
644
  },
645
- "van-loading": {
646
- "attributes": [
647
- "color",
648
- "type",
649
- "size",
650
- "text-size",
651
- "text-color",
652
- "vertical"
653
- ]
654
- },
655
645
  "van-nav-bar": {
656
646
  "attributes": [
657
647
  "title",
@@ -665,6 +655,16 @@
665
655
  "safe-area-inset-top"
666
656
  ]
667
657
  },
658
+ "van-loading": {
659
+ "attributes": [
660
+ "color",
661
+ "type",
662
+ "size",
663
+ "text-size",
664
+ "text-color",
665
+ "vertical"
666
+ ]
667
+ },
668
668
  "van-notice-bar": {
669
669
  "attributes": [
670
670
  "mode",
@@ -699,6 +699,17 @@
699
699
  "random-key-order"
700
700
  ]
701
701
  },
702
+ "van-overlay": {
703
+ "attributes": [
704
+ "show",
705
+ "z-index",
706
+ "duration",
707
+ "class-name",
708
+ "custom-class",
709
+ "lock-scroll",
710
+ "lazy-render"
711
+ ]
712
+ },
702
713
  "van-pagination": {
703
714
  "attributes": [
704
715
  "v-model",
@@ -712,6 +723,17 @@
712
723
  "force-ellipses"
713
724
  ]
714
725
  },
726
+ "van-password-input": {
727
+ "attributes": [
728
+ "value",
729
+ "info",
730
+ "error-info",
731
+ "length",
732
+ "gutter",
733
+ "mask",
734
+ "focused"
735
+ ]
736
+ },
715
737
  "van-picker": {
716
738
  "attributes": [
717
739
  "columns",
@@ -773,17 +795,6 @@
773
795
  "safe-area-inset-bottom"
774
796
  ]
775
797
  },
776
- "van-password-input": {
777
- "attributes": [
778
- "value",
779
- "info",
780
- "error-info",
781
- "length",
782
- "gutter",
783
- "mask",
784
- "focused"
785
- ]
786
- },
787
798
  "van-progress": {
788
799
  "attributes": [
789
800
  "percentage",
@@ -797,15 +808,18 @@
797
808
  "show-pivot"
798
809
  ]
799
810
  },
800
- "van-overlay": {
811
+ "van-pull-refresh": {
801
812
  "attributes": [
802
- "show",
803
- "z-index",
804
- "duration",
805
- "class-name",
806
- "custom-class",
807
- "lock-scroll",
808
- "lazy-render"
813
+ "v-model",
814
+ "pulling-text",
815
+ "loosing-text",
816
+ "loading-text",
817
+ "success-text",
818
+ "success-duration",
819
+ "animation-duration",
820
+ "head-height",
821
+ "pull-distance",
822
+ "disabled"
809
823
  ]
810
824
  },
811
825
  "van-radio": {
@@ -828,20 +842,6 @@
828
842
  "checked-color"
829
843
  ]
830
844
  },
831
- "van-pull-refresh": {
832
- "attributes": [
833
- "v-model",
834
- "pulling-text",
835
- "loosing-text",
836
- "loading-text",
837
- "success-text",
838
- "success-duration",
839
- "animation-duration",
840
- "head-height",
841
- "pull-distance",
842
- "disabled"
843
- ]
844
- },
845
845
  "van-rate": {
846
846
  "attributes": [
847
847
  "v-model",
@@ -888,6 +888,27 @@
888
888
  "autocomplete"
889
889
  ]
890
890
  },
891
+ "van-share-sheet": {
892
+ "attributes": [
893
+ "v-model:show",
894
+ "options",
895
+ "title",
896
+ "cancel-text",
897
+ "description",
898
+ "duration",
899
+ "round",
900
+ "overlay",
901
+ "overlay-class",
902
+ "overlay-style",
903
+ "lock-scroll",
904
+ "lazy-render",
905
+ "close-on-popstate",
906
+ "close-on-click-overlay",
907
+ "safe-area-inset-bottom",
908
+ "teleport",
909
+ "before-close"
910
+ ]
911
+ },
891
912
  "van-sidebar": {
892
913
  "attributes": [
893
914
  "v-model"
@@ -919,27 +940,6 @@
919
940
  "avatar-shape"
920
941
  ]
921
942
  },
922
- "van-share-sheet": {
923
- "attributes": [
924
- "v-model:show",
925
- "options",
926
- "title",
927
- "cancel-text",
928
- "description",
929
- "duration",
930
- "round",
931
- "overlay",
932
- "overlay-class",
933
- "overlay-style",
934
- "lock-scroll",
935
- "lazy-render",
936
- "close-on-popstate",
937
- "close-on-click-overlay",
938
- "safe-area-inset-bottom",
939
- "teleport",
940
- "before-close"
941
- ]
942
- },
943
943
  "van-slider": {
944
944
  "attributes": [
945
945
  "v-model",
@@ -983,6 +983,30 @@
983
983
  "allow-empty"
984
984
  ]
985
985
  },
986
+ "van-steps": {
987
+ "attributes": [
988
+ "active",
989
+ "direction",
990
+ "active-color",
991
+ "inactive-color",
992
+ "active-icon",
993
+ "inactive-icon",
994
+ "finish-icon",
995
+ "icon-prefix"
996
+ ]
997
+ },
998
+ "van-step": {
999
+ "attributes": []
1000
+ },
1001
+ "van-sticky": {
1002
+ "attributes": [
1003
+ "position",
1004
+ "offset-top",
1005
+ "offset-bottom",
1006
+ "z-index",
1007
+ "container"
1008
+ ]
1009
+ },
986
1010
  "van-submit-bar": {
987
1011
  "attributes": [
988
1012
  "price",
@@ -1001,21 +1025,6 @@
1001
1025
  "safe-area-inset-bottom"
1002
1026
  ]
1003
1027
  },
1004
- "van-steps": {
1005
- "attributes": [
1006
- "active",
1007
- "direction",
1008
- "active-color",
1009
- "inactive-color",
1010
- "active-icon",
1011
- "inactive-icon",
1012
- "finish-icon",
1013
- "icon-prefix"
1014
- ]
1015
- },
1016
- "van-step": {
1017
- "attributes": []
1018
- },
1019
1028
  "van-swipe": {
1020
1029
  "attributes": [
1021
1030
  "autoplay",
@@ -1035,13 +1044,14 @@
1035
1044
  "van-swipe-item": {
1036
1045
  "attributes": []
1037
1046
  },
1038
- "van-sticky": {
1047
+ "van-swipe-cell": {
1039
1048
  "attributes": [
1040
- "position",
1041
- "offset-top",
1042
- "offset-bottom",
1043
- "z-index",
1044
- "container"
1049
+ "name",
1050
+ "left-width",
1051
+ "right-width",
1052
+ "before-close",
1053
+ "disabled",
1054
+ "stop-propagation"
1045
1055
  ]
1046
1056
  },
1047
1057
  "van-switch": {
@@ -1056,14 +1066,31 @@
1056
1066
  "inactive-value"
1057
1067
  ]
1058
1068
  },
1059
- "van-swipe-cell": {
1069
+ "van-tabbar": {
1070
+ "attributes": [
1071
+ "v-model",
1072
+ "fixed",
1073
+ "border",
1074
+ "z-index",
1075
+ "active-color",
1076
+ "inactive-color",
1077
+ "route",
1078
+ "placeholder",
1079
+ "safe-area-inset-bottom",
1080
+ "before-change"
1081
+ ]
1082
+ },
1083
+ "van-tabbar-item": {
1060
1084
  "attributes": [
1061
1085
  "name",
1062
- "left-width",
1063
- "right-width",
1064
- "before-close",
1065
- "disabled",
1066
- "stop-propagation"
1086
+ "icon",
1087
+ "icon-prefix",
1088
+ "dot",
1089
+ "badge",
1090
+ "badge-props",
1091
+ "url",
1092
+ "to",
1093
+ "replace"
1067
1094
  ]
1068
1095
  },
1069
1096
  "van-tabs": {
@@ -1105,33 +1132,6 @@
1105
1132
  "show-zero-badge"
1106
1133
  ]
1107
1134
  },
1108
- "van-tabbar": {
1109
- "attributes": [
1110
- "v-model",
1111
- "fixed",
1112
- "border",
1113
- "z-index",
1114
- "active-color",
1115
- "inactive-color",
1116
- "route",
1117
- "placeholder",
1118
- "safe-area-inset-bottom",
1119
- "before-change"
1120
- ]
1121
- },
1122
- "van-tabbar-item": {
1123
- "attributes": [
1124
- "name",
1125
- "icon",
1126
- "icon-prefix",
1127
- "dot",
1128
- "badge",
1129
- "badge-props",
1130
- "url",
1131
- "to",
1132
- "replace"
1133
- ]
1134
- },
1135
1135
  "van-tag": {
1136
1136
  "attributes": [
1137
1137
  "type",