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.
- package/es/address-edit/AddressEditDetail.js +4 -3
- package/es/calendar/CalendarMonth.js +1 -1
- package/es/contact-card/ContactCard.js +1 -1
- package/es/contact-list/ContactList.js +1 -1
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.less +0 -1
- package/es/icon/index.css +1 -1
- package/es/icon/index.less +1 -0
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.less +0 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/de-DE-formal.d.ts +2 -11
- package/es/locale/lang/de-DE-formal.js +2 -11
- package/es/locale/lang/de-DE.d.ts +2 -11
- package/es/locale/lang/de-DE.js +2 -11
- package/es/locale/lang/en-US.d.ts +2 -11
- package/es/locale/lang/en-US.js +2 -11
- package/es/locale/lang/es-ES.d.ts +2 -11
- package/es/locale/lang/es-ES.js +2 -11
- package/es/locale/lang/fr-FR.d.ts +2 -11
- package/es/locale/lang/fr-FR.js +2 -11
- package/es/locale/lang/hi-IN.d.ts +64 -0
- package/es/locale/lang/hi-IN.js +74 -0
- package/es/locale/lang/ja-JP.d.ts +2 -12
- package/es/locale/lang/ja-JP.js +4 -14
- package/es/locale/lang/ko-KR.d.ts +64 -0
- package/es/locale/lang/ko-KR.js +74 -0
- package/es/locale/lang/nb-NO.d.ts +2 -11
- package/es/locale/lang/nb-NO.js +2 -11
- package/es/locale/lang/pt-BR.d.ts +2 -11
- package/es/locale/lang/pt-BR.js +2 -11
- package/es/locale/lang/ro-RO.d.ts +2 -11
- package/es/locale/lang/ro-RO.js +2 -11
- package/es/locale/lang/ru-RU.d.ts +2 -11
- package/es/locale/lang/ru-RU.js +2 -11
- package/es/locale/lang/th-TH.d.ts +2 -12
- package/es/locale/lang/th-TH.js +4 -14
- package/es/locale/lang/tr-TR.d.ts +2 -11
- package/es/locale/lang/tr-TR.js +2 -11
- package/es/locale/lang/zh-CN.d.ts +2 -12
- package/es/locale/lang/zh-CN.js +5 -15
- package/es/locale/lang/zh-HK.d.ts +2 -12
- package/es/locale/lang/zh-HK.js +5 -15
- package/es/locale/lang/zh-TW.d.ts +2 -12
- package/es/locale/lang/zh-TW.js +5 -15
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.less +0 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.less +0 -1
- package/es/picker/index.css +1 -1
- package/es/picker/index.less +0 -1
- package/es/popup/index.css +1 -1
- package/es/popup/index.less +0 -1
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +0 -1
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.less +0 -1
- package/es/style/base.css +1 -1
- package/es/style/base.less +6 -2
- package/es/tag/Tag.js +2 -2
- package/es/tag/index.css +1 -1
- package/es/tag/index.less +0 -1
- package/es/tree-select/TreeSelect.js +3 -2
- package/lib/address-edit/AddressEditDetail.js +4 -3
- package/lib/calendar/CalendarMonth.js +1 -1
- package/lib/contact-card/ContactCard.js +1 -1
- package/lib/contact-list/ContactList.js +1 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.less +0 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.less +1 -0
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.less +0 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/de-DE-formal.d.ts +2 -11
- package/lib/locale/lang/de-DE-formal.js +2 -11
- package/lib/locale/lang/de-DE.d.ts +2 -11
- package/lib/locale/lang/de-DE.js +2 -11
- package/lib/locale/lang/en-US.d.ts +2 -11
- package/lib/locale/lang/en-US.js +2 -11
- package/lib/locale/lang/es-ES.d.ts +2 -11
- package/lib/locale/lang/es-ES.js +2 -11
- package/lib/locale/lang/fr-FR.d.ts +2 -11
- package/lib/locale/lang/fr-FR.js +2 -11
- package/lib/locale/lang/hi-IN.d.ts +64 -0
- package/lib/locale/lang/hi-IN.js +81 -0
- package/lib/locale/lang/ja-JP.d.ts +2 -12
- package/lib/locale/lang/ja-JP.js +4 -14
- package/lib/locale/lang/ko-KR.d.ts +64 -0
- package/lib/locale/lang/ko-KR.js +81 -0
- package/lib/locale/lang/nb-NO.d.ts +2 -11
- package/lib/locale/lang/nb-NO.js +2 -11
- package/lib/locale/lang/pt-BR.d.ts +2 -11
- package/lib/locale/lang/pt-BR.js +2 -11
- package/lib/locale/lang/ro-RO.d.ts +2 -11
- package/lib/locale/lang/ro-RO.js +2 -11
- package/lib/locale/lang/ru-RU.d.ts +2 -11
- package/lib/locale/lang/ru-RU.js +2 -11
- package/lib/locale/lang/th-TH.d.ts +2 -12
- package/lib/locale/lang/th-TH.js +4 -14
- package/lib/locale/lang/tr-TR.d.ts +2 -11
- package/lib/locale/lang/tr-TR.js +2 -11
- package/lib/locale/lang/zh-CN.d.ts +2 -12
- package/lib/locale/lang/zh-CN.js +5 -15
- package/lib/locale/lang/zh-HK.d.ts +2 -12
- package/lib/locale/lang/zh-HK.js +5 -15
- package/lib/locale/lang/zh-TW.d.ts +2 -12
- package/lib/locale/lang/zh-TW.js +5 -15
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.less +0 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.less +0 -1
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.less +0 -1
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.less +0 -1
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.less +0 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.less +0 -1
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +6 -2
- package/lib/tag/Tag.js +1 -1
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.less +0 -1
- package/lib/tree-select/TreeSelect.js +3 -2
- package/lib/vant.cjs.js +17 -25
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +17 -25
- package/lib/vant.es.min.js +17 -25
- package/lib/vant.js +18 -25
- package/lib/vant.min.js +1 -1
- package/package.json +2 -2
- package/vetur/attributes.json +31 -31
- package/vetur/tags.json +11 -11
- 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.
|
|
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.
|
|
69
|
+
"@vant/use": "^1.3.5"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"vue": "^3.0.0"
|
package/vetur/attributes.json
CHANGED
|
@@ -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",
|
package/vetur/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "vant",
|
|
5
|
-
"version": "3.4.
|
|
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": [
|