vant 3.4.2 → 3.4.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 (139) hide show
  1. package/es/address-edit/AddressEditDetail.js +4 -3
  2. package/es/calendar/CalendarMonth.js +1 -1
  3. package/es/contact-card/ContactCard.js +1 -1
  4. package/es/contact-list/ContactList.js +1 -1
  5. package/es/dropdown-menu/index.css +1 -1
  6. package/es/dropdown-menu/index.less +0 -1
  7. package/es/icon/index.css +1 -1
  8. package/es/icon/index.less +1 -0
  9. package/es/image-preview/index.css +1 -1
  10. package/es/image-preview/index.less +0 -1
  11. package/es/index.d.ts +1 -1
  12. package/es/index.js +1 -1
  13. package/es/locale/lang/de-DE-formal.d.ts +2 -11
  14. package/es/locale/lang/de-DE-formal.js +2 -11
  15. package/es/locale/lang/de-DE.d.ts +2 -11
  16. package/es/locale/lang/de-DE.js +2 -11
  17. package/es/locale/lang/en-US.d.ts +2 -11
  18. package/es/locale/lang/en-US.js +2 -11
  19. package/es/locale/lang/es-ES.d.ts +2 -11
  20. package/es/locale/lang/es-ES.js +2 -11
  21. package/es/locale/lang/fr-FR.d.ts +2 -11
  22. package/es/locale/lang/fr-FR.js +2 -11
  23. package/es/locale/lang/hi-IN.d.ts +64 -0
  24. package/es/locale/lang/hi-IN.js +74 -0
  25. package/es/locale/lang/ja-JP.d.ts +2 -12
  26. package/es/locale/lang/ja-JP.js +4 -14
  27. package/es/locale/lang/ko-KR.d.ts +64 -0
  28. package/es/locale/lang/ko-KR.js +74 -0
  29. package/es/locale/lang/nb-NO.d.ts +2 -11
  30. package/es/locale/lang/nb-NO.js +2 -11
  31. package/es/locale/lang/pt-BR.d.ts +2 -11
  32. package/es/locale/lang/pt-BR.js +2 -11
  33. package/es/locale/lang/ro-RO.d.ts +2 -11
  34. package/es/locale/lang/ro-RO.js +2 -11
  35. package/es/locale/lang/ru-RU.d.ts +2 -11
  36. package/es/locale/lang/ru-RU.js +2 -11
  37. package/es/locale/lang/th-TH.d.ts +2 -12
  38. package/es/locale/lang/th-TH.js +4 -14
  39. package/es/locale/lang/tr-TR.d.ts +2 -11
  40. package/es/locale/lang/tr-TR.js +2 -11
  41. package/es/locale/lang/zh-CN.d.ts +2 -12
  42. package/es/locale/lang/zh-CN.js +5 -15
  43. package/es/locale/lang/zh-HK.d.ts +2 -12
  44. package/es/locale/lang/zh-HK.js +5 -15
  45. package/es/locale/lang/zh-TW.d.ts +2 -12
  46. package/es/locale/lang/zh-TW.js +5 -15
  47. package/es/nav-bar/index.css +1 -1
  48. package/es/nav-bar/index.less +0 -1
  49. package/es/number-keyboard/index.css +1 -1
  50. package/es/number-keyboard/index.less +0 -1
  51. package/es/picker/index.css +1 -1
  52. package/es/picker/index.less +0 -1
  53. package/es/popup/index.css +1 -1
  54. package/es/popup/index.less +0 -1
  55. package/es/share-sheet/index.css +1 -1
  56. package/es/share-sheet/index.less +0 -1
  57. package/es/stepper/index.css +1 -1
  58. package/es/stepper/index.less +0 -1
  59. package/es/style/base.css +1 -1
  60. package/es/style/base.less +6 -2
  61. package/es/tag/Tag.js +2 -2
  62. package/es/tag/index.css +1 -1
  63. package/es/tag/index.less +0 -1
  64. package/es/tree-select/TreeSelect.js +3 -2
  65. package/lib/address-edit/AddressEditDetail.js +4 -3
  66. package/lib/calendar/CalendarMonth.js +1 -1
  67. package/lib/contact-card/ContactCard.js +1 -1
  68. package/lib/contact-list/ContactList.js +1 -1
  69. package/lib/dropdown-menu/index.css +1 -1
  70. package/lib/dropdown-menu/index.less +0 -1
  71. package/lib/icon/index.css +1 -1
  72. package/lib/icon/index.less +1 -0
  73. package/lib/image-preview/index.css +1 -1
  74. package/lib/image-preview/index.less +0 -1
  75. package/lib/index.css +1 -1
  76. package/lib/index.d.ts +1 -1
  77. package/lib/index.js +1 -1
  78. package/lib/locale/lang/de-DE-formal.d.ts +2 -11
  79. package/lib/locale/lang/de-DE-formal.js +2 -11
  80. package/lib/locale/lang/de-DE.d.ts +2 -11
  81. package/lib/locale/lang/de-DE.js +2 -11
  82. package/lib/locale/lang/en-US.d.ts +2 -11
  83. package/lib/locale/lang/en-US.js +2 -11
  84. package/lib/locale/lang/es-ES.d.ts +2 -11
  85. package/lib/locale/lang/es-ES.js +2 -11
  86. package/lib/locale/lang/fr-FR.d.ts +2 -11
  87. package/lib/locale/lang/fr-FR.js +2 -11
  88. package/lib/locale/lang/hi-IN.d.ts +64 -0
  89. package/lib/locale/lang/hi-IN.js +81 -0
  90. package/lib/locale/lang/ja-JP.d.ts +2 -12
  91. package/lib/locale/lang/ja-JP.js +4 -14
  92. package/lib/locale/lang/ko-KR.d.ts +64 -0
  93. package/lib/locale/lang/ko-KR.js +81 -0
  94. package/lib/locale/lang/nb-NO.d.ts +2 -11
  95. package/lib/locale/lang/nb-NO.js +2 -11
  96. package/lib/locale/lang/pt-BR.d.ts +2 -11
  97. package/lib/locale/lang/pt-BR.js +2 -11
  98. package/lib/locale/lang/ro-RO.d.ts +2 -11
  99. package/lib/locale/lang/ro-RO.js +2 -11
  100. package/lib/locale/lang/ru-RU.d.ts +2 -11
  101. package/lib/locale/lang/ru-RU.js +2 -11
  102. package/lib/locale/lang/th-TH.d.ts +2 -12
  103. package/lib/locale/lang/th-TH.js +4 -14
  104. package/lib/locale/lang/tr-TR.d.ts +2 -11
  105. package/lib/locale/lang/tr-TR.js +2 -11
  106. package/lib/locale/lang/zh-CN.d.ts +2 -12
  107. package/lib/locale/lang/zh-CN.js +5 -15
  108. package/lib/locale/lang/zh-HK.d.ts +2 -12
  109. package/lib/locale/lang/zh-HK.js +5 -15
  110. package/lib/locale/lang/zh-TW.d.ts +2 -12
  111. package/lib/locale/lang/zh-TW.js +5 -15
  112. package/lib/nav-bar/index.css +1 -1
  113. package/lib/nav-bar/index.less +0 -1
  114. package/lib/number-keyboard/index.css +1 -1
  115. package/lib/number-keyboard/index.less +0 -1
  116. package/lib/picker/index.css +1 -1
  117. package/lib/picker/index.less +0 -1
  118. package/lib/popup/index.css +1 -1
  119. package/lib/popup/index.less +0 -1
  120. package/lib/share-sheet/index.css +1 -1
  121. package/lib/share-sheet/index.less +0 -1
  122. package/lib/stepper/index.css +1 -1
  123. package/lib/stepper/index.less +0 -1
  124. package/lib/style/base.css +1 -1
  125. package/lib/style/base.less +6 -2
  126. package/lib/tag/Tag.js +1 -1
  127. package/lib/tag/index.css +1 -1
  128. package/lib/tag/index.less +0 -1
  129. package/lib/tree-select/TreeSelect.js +3 -2
  130. package/lib/vant.cjs.js +17 -25
  131. package/lib/vant.cjs.min.js +1 -1
  132. package/lib/vant.es.js +17 -25
  133. package/lib/vant.es.min.js +17 -25
  134. package/lib/vant.js +18 -25
  135. package/lib/vant.min.js +1 -1
  136. package/package.json +2 -2
  137. package/vetur/attributes.json +31 -31
  138. package/vetur/tags.json +11 -11
  139. package/vetur/web-types.json +89 -89
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/vant.cjs.js",
6
6
  "module": "es/index.js",
@@ -66,7 +66,7 @@
66
66
  "dependencies": {
67
67
  "@vant/icons": "^1.7.1",
68
68
  "@vant/popperjs": "^1.1.0",
69
- "@vant/use": "^1.3.4"
69
+ "@vant/use": "^1.3.5"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "vue": "^3.0.0"
@@ -285,6 +285,37 @@
285
285
  "type": "(key, val) => string",
286
286
  "description": "Custom validator, Default: -"
287
287
  },
288
+ "van-badge/content": {
289
+ "type": "number | string",
290
+ "description": "Badge content, Default: -"
291
+ },
292
+ "van-badge/color": {
293
+ "type": "string",
294
+ "description": "Background color, Default: `#ee0a24`"
295
+ },
296
+ "van-badge/dot": {
297
+ "type": "boolean",
298
+ "description": "Whether to show dot, Default: `false`"
299
+ },
300
+ "van-badge/max": {
301
+ "type": "number | string",
302
+ "description": "Max value,show `{max}+` when exceed,only works when content is number, Default: -"
303
+ },
304
+ "van-badge/offset": {
305
+ "type": "[number | string, number \\",
306
+ "description": "Offset of badge dot, Default: string]_",
307
+ "options": [
308
+ "-"
309
+ ]
310
+ },
311
+ "van-badge/show-zero": {
312
+ "type": "boolean",
313
+ "description": "Whether to show badge when content is zero, Default: `true`"
314
+ },
315
+ "van-badge/position": {
316
+ "type": "string",
317
+ "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
318
+ },
288
319
  "van-area/value": {
289
320
  "type": "string",
290
321
  "description": "the `code` of selected area, Default: -"
@@ -337,37 +368,6 @@
337
368
  "type": "() => boolean",
338
369
  "description": "The method to validate oversea code, Default: -"
339
370
  },
340
- "van-badge/content": {
341
- "type": "number | string",
342
- "description": "Badge content, Default: -"
343
- },
344
- "van-badge/color": {
345
- "type": "string",
346
- "description": "Background color, Default: `#ee0a24`"
347
- },
348
- "van-badge/dot": {
349
- "type": "boolean",
350
- "description": "Whether to show dot, Default: `false`"
351
- },
352
- "van-badge/max": {
353
- "type": "number | string",
354
- "description": "Max value,show `{max}+` when exceed,only works when content is number, Default: -"
355
- },
356
- "van-badge/offset": {
357
- "type": "[number | string, number \\",
358
- "description": "Offset of badge dot, Default: string]_",
359
- "options": [
360
- "-"
361
- ]
362
- },
363
- "van-badge/show-zero": {
364
- "type": "boolean",
365
- "description": "Whether to show badge when content is zero, Default: `true`"
366
- },
367
- "van-badge/position": {
368
- "type": "string",
369
- "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
370
- },
371
371
  "van-button/type": {
372
372
  "type": "string",
373
373
  "description": "Can be set to `primary` `success` `warning` `danger`, Default: `default`"
package/vetur/tags.json CHANGED
@@ -93,6 +93,17 @@
93
93
  "validator"
94
94
  ]
95
95
  },
96
+ "van-badge": {
97
+ "attributes": [
98
+ "content",
99
+ "color",
100
+ "dot",
101
+ "max",
102
+ "offset",
103
+ "show-zero",
104
+ "position"
105
+ ]
106
+ },
96
107
  "van-area": {
97
108
  "attributes": [
98
109
  "value",
@@ -110,17 +121,6 @@
110
121
  "is-oversea-code"
111
122
  ]
112
123
  },
113
- "van-badge": {
114
- "attributes": [
115
- "content",
116
- "color",
117
- "dot",
118
- "max",
119
- "offset",
120
- "show-zero",
121
- "position"
122
- ]
123
- },
124
124
  "van-button": {
125
125
  "attributes": [
126
126
  "type",
@@ -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": "3.4.2",
5
+ "version": "3.4.3",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -892,6 +892,94 @@
892
892
  }
893
893
  ]
894
894
  },
895
+ {
896
+ "name": "van-badge",
897
+ "slots": [
898
+ {
899
+ "name": "default",
900
+ "description": "Default slot"
901
+ },
902
+ {
903
+ "name": "content",
904
+ "description": "Custom badge content"
905
+ }
906
+ ],
907
+ "events": [],
908
+ "attributes": [
909
+ {
910
+ "name": "content",
911
+ "default": "-",
912
+ "description": "Badge content",
913
+ "options": [],
914
+ "value": {
915
+ "type": "number | string",
916
+ "kind": "expression"
917
+ }
918
+ },
919
+ {
920
+ "name": "color",
921
+ "default": "`#ee0a24`",
922
+ "description": "Background color",
923
+ "options": [],
924
+ "value": {
925
+ "type": "string",
926
+ "kind": "expression"
927
+ }
928
+ },
929
+ {
930
+ "name": "dot",
931
+ "default": "`false`",
932
+ "description": "Whether to show dot",
933
+ "options": [],
934
+ "value": {
935
+ "type": "boolean",
936
+ "kind": "expression"
937
+ }
938
+ },
939
+ {
940
+ "name": "max",
941
+ "default": "-",
942
+ "description": "Max value,show `{max}+` when exceed,only works when content is number",
943
+ "options": [],
944
+ "value": {
945
+ "type": "number | string",
946
+ "kind": "expression"
947
+ }
948
+ },
949
+ {
950
+ "name": "offset",
951
+ "default": "string]_",
952
+ "description": "Offset of badge dot",
953
+ "options": [
954
+ "-"
955
+ ],
956
+ "value": {
957
+ "type": "[number | string, number \\",
958
+ "kind": "expression"
959
+ }
960
+ },
961
+ {
962
+ "name": "show-zero",
963
+ "default": "`true`",
964
+ "description": "Whether to show badge when content is zero",
965
+ "options": [],
966
+ "value": {
967
+ "type": "boolean",
968
+ "kind": "expression"
969
+ }
970
+ },
971
+ {
972
+ "name": "position",
973
+ "default": "`top-right`",
974
+ "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`",
975
+ "options": [],
976
+ "value": {
977
+ "type": "string",
978
+ "kind": "expression"
979
+ }
980
+ }
981
+ ]
982
+ },
895
983
  {
896
984
  "name": "van-area",
897
985
  "slots": [
@@ -1067,94 +1155,6 @@
1067
1155
  }
1068
1156
  ]
1069
1157
  },
1070
- {
1071
- "name": "van-badge",
1072
- "slots": [
1073
- {
1074
- "name": "default",
1075
- "description": "Default slot"
1076
- },
1077
- {
1078
- "name": "content",
1079
- "description": "Custom badge content"
1080
- }
1081
- ],
1082
- "events": [],
1083
- "attributes": [
1084
- {
1085
- "name": "content",
1086
- "default": "-",
1087
- "description": "Badge content",
1088
- "options": [],
1089
- "value": {
1090
- "type": "number | string",
1091
- "kind": "expression"
1092
- }
1093
- },
1094
- {
1095
- "name": "color",
1096
- "default": "`#ee0a24`",
1097
- "description": "Background color",
1098
- "options": [],
1099
- "value": {
1100
- "type": "string",
1101
- "kind": "expression"
1102
- }
1103
- },
1104
- {
1105
- "name": "dot",
1106
- "default": "`false`",
1107
- "description": "Whether to show dot",
1108
- "options": [],
1109
- "value": {
1110
- "type": "boolean",
1111
- "kind": "expression"
1112
- }
1113
- },
1114
- {
1115
- "name": "max",
1116
- "default": "-",
1117
- "description": "Max value,show `{max}+` when exceed,only works when content is number",
1118
- "options": [],
1119
- "value": {
1120
- "type": "number | string",
1121
- "kind": "expression"
1122
- }
1123
- },
1124
- {
1125
- "name": "offset",
1126
- "default": "string]_",
1127
- "description": "Offset of badge dot",
1128
- "options": [
1129
- "-"
1130
- ],
1131
- "value": {
1132
- "type": "[number | string, number \\",
1133
- "kind": "expression"
1134
- }
1135
- },
1136
- {
1137
- "name": "show-zero",
1138
- "default": "`true`",
1139
- "description": "Whether to show badge when content is zero",
1140
- "options": [],
1141
- "value": {
1142
- "type": "boolean",
1143
- "kind": "expression"
1144
- }
1145
- },
1146
- {
1147
- "name": "position",
1148
- "default": "`top-right`",
1149
- "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`",
1150
- "options": [],
1151
- "value": {
1152
- "type": "string",
1153
- "kind": "expression"
1154
- }
1155
- }
1156
- ]
1157
- },
1158
1158
  {
1159
1159
  "name": "van-button",
1160
1160
  "slots": [