vant 4.0.0-alpha.0 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.generated.md +197 -0
- package/es/calendar/Calendar.d.ts +4 -0
- package/es/calendar/Calendar.js +2 -0
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +3 -0
- package/es/calendar/index.less +1 -0
- package/es/config-provider/ConfigProvider.js +2 -0
- package/es/date-picker/DatePicker.js +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +2 -0
- package/es/index-bar/IndexBar.js +25 -4
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/la-LA.d.ts +64 -0
- package/es/locale/lang/la-LA.js +66 -0
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/NavBar.js +3 -3
- package/es/nav-bar/index.d.ts +1 -1
- package/es/picker/index.css +1 -1
- package/es/picker/index.less +1 -0
- package/es/popup/Popup.d.ts +4 -0
- package/es/popup/Popup.js +3 -0
- package/es/popup/index.d.ts +3 -0
- package/es/skeleton/Skeleton.js +6 -4
- package/es/style/base.css +1 -1
- package/es/style/base.less +5 -0
- package/es/swipe-cell/SwipeCell.js +1 -1
- package/es/toast/Toast.js +1 -0
- package/lib/calendar/Calendar.d.ts +4 -0
- package/lib/calendar/Calendar.js +2 -0
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/index.less +1 -0
- package/lib/config-provider/ConfigProvider.js +2 -0
- package/lib/date-picker/DatePicker.js +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.less +2 -0
- package/lib/index-bar/IndexBar.js +25 -4
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/la-LA.d.ts +64 -0
- package/lib/locale/lang/la-LA.js +90 -0
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/NavBar.js +3 -3
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.less +1 -0
- package/lib/popup/Popup.d.ts +4 -0
- package/lib/popup/Popup.js +3 -0
- package/lib/popup/index.d.ts +3 -0
- package/lib/skeleton/Skeleton.js +5 -3
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +5 -0
- package/lib/swipe-cell/SwipeCell.js +1 -1
- package/lib/toast/Toast.js +1 -0
- package/lib/vant.cjs.js +44 -13
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +44 -13
- package/lib/vant.es.min.js +44 -13
- package/lib/vant.js +44 -13
- package/lib/vant.min.js +1 -1
- package/package.json +2 -2
- package/vetur/attributes.json +203 -195
- package/vetur/tags.json +70 -68
- package/vetur/web-types.json +644 -624
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vant",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.1",
|
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.6"
|
70
70
|
},
|
71
71
|
"peerDependencies": {
|
72
72
|
"vue": "^3.0.0"
|
package/vetur/attributes.json
CHANGED
@@ -86,89 +86,6 @@
|
|
86
86
|
"type": "boolean",
|
87
87
|
"description": "If true, the navigation will not leave a history record, Default: `false`"
|
88
88
|
},
|
89
|
-
"van-action-sheet/v-model:show": {
|
90
|
-
"type": "boolean",
|
91
|
-
"description": "Whether to show ActionSheet, Default: `false`"
|
92
|
-
},
|
93
|
-
"van-action-sheet/actions": {
|
94
|
-
"type": "ActionSheetAction[]",
|
95
|
-
"description": "Options, Default: `[]`"
|
96
|
-
},
|
97
|
-
"van-action-sheet/title": {
|
98
|
-
"type": "string",
|
99
|
-
"description": "Title, Default: -"
|
100
|
-
},
|
101
|
-
"van-action-sheet/cancel-text": {
|
102
|
-
"type": "string",
|
103
|
-
"description": "Text of cancel button, Default: -"
|
104
|
-
},
|
105
|
-
"van-action-sheet/description": {
|
106
|
-
"type": "string",
|
107
|
-
"description": "Description above the options, Default: -"
|
108
|
-
},
|
109
|
-
"van-action-sheet/closeable": {
|
110
|
-
"type": "boolean",
|
111
|
-
"description": "Whether to show close icon, Default: `true`"
|
112
|
-
},
|
113
|
-
"van-action-sheet/close-icon": {
|
114
|
-
"type": "string",
|
115
|
-
"description": "Close icon name, Default: `cross`"
|
116
|
-
},
|
117
|
-
"van-action-sheet/duration": {
|
118
|
-
"type": "number | string",
|
119
|
-
"description": "Transition duration, unit second, Default: `0.3`"
|
120
|
-
},
|
121
|
-
"van-action-sheet/round": {
|
122
|
-
"type": "boolean",
|
123
|
-
"description": "Whether to show round corner, Default: `true`"
|
124
|
-
},
|
125
|
-
"van-action-sheet/overlay": {
|
126
|
-
"type": "boolean",
|
127
|
-
"description": "Whether to show overlay, Default: `true`"
|
128
|
-
},
|
129
|
-
"van-action-sheet/overlay-class": {
|
130
|
-
"type": "string | Array \\",
|
131
|
-
"description": "Custom overlay class, Default: object_",
|
132
|
-
"options": [
|
133
|
-
"-"
|
134
|
-
]
|
135
|
-
},
|
136
|
-
"van-action-sheet/overlay-style": {
|
137
|
-
"type": "object",
|
138
|
-
"description": "Custom overlay style, Default: -"
|
139
|
-
},
|
140
|
-
"van-action-sheet/lock-scroll": {
|
141
|
-
"type": "boolean",
|
142
|
-
"description": "Whether to lock background scroll, Default: `true`"
|
143
|
-
},
|
144
|
-
"van-action-sheet/lazy-render": {
|
145
|
-
"type": "boolean",
|
146
|
-
"description": "Whether to lazy render util appeared, Default: `true`"
|
147
|
-
},
|
148
|
-
"van-action-sheet/close-on-popstate": {
|
149
|
-
"type": "boolean",
|
150
|
-
"description": "Whether to close when popstate, Default: `true`"
|
151
|
-
},
|
152
|
-
"van-action-sheet/close-on-click-action": {
|
153
|
-
"type": "boolean",
|
154
|
-
"description": "Whether to close when an action is clicked, Default: `false`"
|
155
|
-
},
|
156
|
-
"van-action-sheet/close-on-click-overlay": {
|
157
|
-
"type": "boolean",
|
158
|
-
"description": "Whether to close when overlay is clicked, Default: `true`"
|
159
|
-
},
|
160
|
-
"van-action-sheet/safe-area-inset-bottom": {
|
161
|
-
"type": "boolean",
|
162
|
-
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
163
|
-
},
|
164
|
-
"van-action-sheet/teleport": {
|
165
|
-
"type": "string | Element",
|
166
|
-
"description": "Specifies a target element where ActionSheet will be mounted, Default: -"
|
167
|
-
},
|
168
|
-
"van-action-sheet/before-close": {
|
169
|
-
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
170
|
-
"description": "Callback function before close, Default: -"
|
171
|
-
},
|
172
89
|
"van-address-edit/area-list": {
|
173
90
|
"type": "object",
|
174
91
|
"description": "Area List, Default: -"
|
@@ -333,6 +250,89 @@
|
|
333
250
|
"type": "number | string",
|
334
251
|
"description": "Duration of the momentum animation,unit `ms`, Default: `1000`"
|
335
252
|
},
|
253
|
+
"van-action-sheet/v-model:show": {
|
254
|
+
"type": "boolean",
|
255
|
+
"description": "Whether to show ActionSheet, Default: `false`"
|
256
|
+
},
|
257
|
+
"van-action-sheet/actions": {
|
258
|
+
"type": "ActionSheetAction[]",
|
259
|
+
"description": "Options, Default: `[]`"
|
260
|
+
},
|
261
|
+
"van-action-sheet/title": {
|
262
|
+
"type": "string",
|
263
|
+
"description": "Title, Default: -"
|
264
|
+
},
|
265
|
+
"van-action-sheet/cancel-text": {
|
266
|
+
"type": "string",
|
267
|
+
"description": "Text of cancel button, Default: -"
|
268
|
+
},
|
269
|
+
"van-action-sheet/description": {
|
270
|
+
"type": "string",
|
271
|
+
"description": "Description above the options, Default: -"
|
272
|
+
},
|
273
|
+
"van-action-sheet/closeable": {
|
274
|
+
"type": "boolean",
|
275
|
+
"description": "Whether to show close icon, Default: `true`"
|
276
|
+
},
|
277
|
+
"van-action-sheet/close-icon": {
|
278
|
+
"type": "string",
|
279
|
+
"description": "Close icon name, Default: `cross`"
|
280
|
+
},
|
281
|
+
"van-action-sheet/duration": {
|
282
|
+
"type": "number | string",
|
283
|
+
"description": "Transition duration, unit second, Default: `0.3`"
|
284
|
+
},
|
285
|
+
"van-action-sheet/round": {
|
286
|
+
"type": "boolean",
|
287
|
+
"description": "Whether to show round corner, Default: `true`"
|
288
|
+
},
|
289
|
+
"van-action-sheet/overlay": {
|
290
|
+
"type": "boolean",
|
291
|
+
"description": "Whether to show overlay, Default: `true`"
|
292
|
+
},
|
293
|
+
"van-action-sheet/overlay-class": {
|
294
|
+
"type": "string | Array \\",
|
295
|
+
"description": "Custom overlay class, Default: object_",
|
296
|
+
"options": [
|
297
|
+
"-"
|
298
|
+
]
|
299
|
+
},
|
300
|
+
"van-action-sheet/overlay-style": {
|
301
|
+
"type": "object",
|
302
|
+
"description": "Custom overlay style, Default: -"
|
303
|
+
},
|
304
|
+
"van-action-sheet/lock-scroll": {
|
305
|
+
"type": "boolean",
|
306
|
+
"description": "Whether to lock background scroll, Default: `true`"
|
307
|
+
},
|
308
|
+
"van-action-sheet/lazy-render": {
|
309
|
+
"type": "boolean",
|
310
|
+
"description": "Whether to lazy render util appeared, Default: `true`"
|
311
|
+
},
|
312
|
+
"van-action-sheet/close-on-popstate": {
|
313
|
+
"type": "boolean",
|
314
|
+
"description": "Whether to close when popstate, Default: `true`"
|
315
|
+
},
|
316
|
+
"van-action-sheet/close-on-click-action": {
|
317
|
+
"type": "boolean",
|
318
|
+
"description": "Whether to close when an action is clicked, Default: `false`"
|
319
|
+
},
|
320
|
+
"van-action-sheet/close-on-click-overlay": {
|
321
|
+
"type": "boolean",
|
322
|
+
"description": "Whether to close when overlay is clicked, Default: `true`"
|
323
|
+
},
|
324
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
325
|
+
"type": "boolean",
|
326
|
+
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
327
|
+
},
|
328
|
+
"van-action-sheet/teleport": {
|
329
|
+
"type": "string | Element",
|
330
|
+
"description": "Specifies a target element where ActionSheet will be mounted, Default: -"
|
331
|
+
},
|
332
|
+
"van-action-sheet/before-close": {
|
333
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
334
|
+
"description": "Callback function before close, Default: -"
|
335
|
+
},
|
336
336
|
"van-badge/content": {
|
337
337
|
"type": "number | string",
|
338
338
|
"description": "Badge content, Default: -"
|
@@ -543,6 +543,10 @@
|
|
543
543
|
"type": "boolean",
|
544
544
|
"description": "Whether to close when overlay is clicked, Default: `true`"
|
545
545
|
},
|
546
|
+
"van-calendar/safe-area-inset-top": {
|
547
|
+
"type": "boolean",
|
548
|
+
"description": "Whether to enable top safe area adaptation, Default: `false`"
|
549
|
+
},
|
546
550
|
"van-calendar/safe-area-inset-bottom": {
|
547
551
|
"type": "boolean",
|
548
552
|
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
@@ -962,38 +966,6 @@
|
|
962
966
|
"type": "string",
|
963
967
|
"description": "Label className, Default: -"
|
964
968
|
},
|
965
|
-
"van-config-provider/theme": {
|
966
|
-
"type": "ConfigProviderTheme",
|
967
|
-
"description": "Theme mode, can be set to `dark`, Default: `light`"
|
968
|
-
},
|
969
|
-
"van-config-provider/theme-vars": {
|
970
|
-
"type": "object",
|
971
|
-
"description": "Theme variables, Default: -"
|
972
|
-
},
|
973
|
-
"van-config-provider/tag": {
|
974
|
-
"type": "string",
|
975
|
-
"description": "HTML Tag of root element, Default: `div`"
|
976
|
-
},
|
977
|
-
"van-config-provider/icon-prefix": {
|
978
|
-
"type": "string",
|
979
|
-
"description": "Icon className prefix, Default: `van-icon`"
|
980
|
-
},
|
981
|
-
"van-contact-card/type": {
|
982
|
-
"type": "string",
|
983
|
-
"description": "Can be set to `edit`, Default: `add`"
|
984
|
-
},
|
985
|
-
"van-contact-card/name": {
|
986
|
-
"type": "string",
|
987
|
-
"description": "Name, Default: -"
|
988
|
-
},
|
989
|
-
"van-contact-card/tel": {
|
990
|
-
"type": "string",
|
991
|
-
"description": "Phone, Default: -"
|
992
|
-
},
|
993
|
-
"van-contact-card/add-text": {
|
994
|
-
"type": "string",
|
995
|
-
"description": "Add card text, Default: `Add contact info`"
|
996
|
-
},
|
997
969
|
"van-contact-edit/contact-info": {
|
998
970
|
"type": "Contact",
|
999
971
|
"description": "Contact Info, Default: `[]`"
|
@@ -1022,6 +994,38 @@
|
|
1022
994
|
"type": "string",
|
1023
995
|
"description": "default contact switch label, Default: -"
|
1024
996
|
},
|
997
|
+
"van-contact-card/type": {
|
998
|
+
"type": "string",
|
999
|
+
"description": "Can be set to `edit`, Default: `add`"
|
1000
|
+
},
|
1001
|
+
"van-contact-card/name": {
|
1002
|
+
"type": "string",
|
1003
|
+
"description": "Name, Default: -"
|
1004
|
+
},
|
1005
|
+
"van-contact-card/tel": {
|
1006
|
+
"type": "string",
|
1007
|
+
"description": "Phone, Default: -"
|
1008
|
+
},
|
1009
|
+
"van-contact-card/add-text": {
|
1010
|
+
"type": "string",
|
1011
|
+
"description": "Add card text, Default: `Add contact info`"
|
1012
|
+
},
|
1013
|
+
"van-config-provider/theme": {
|
1014
|
+
"type": "ConfigProviderTheme",
|
1015
|
+
"description": "Theme mode, can be set to `dark`, Default: `light`"
|
1016
|
+
},
|
1017
|
+
"van-config-provider/theme-vars": {
|
1018
|
+
"type": "object",
|
1019
|
+
"description": "Theme variables, Default: -"
|
1020
|
+
},
|
1021
|
+
"van-config-provider/tag": {
|
1022
|
+
"type": "string",
|
1023
|
+
"description": "HTML Tag of root element, Default: `div`"
|
1024
|
+
},
|
1025
|
+
"van-config-provider/icon-prefix": {
|
1026
|
+
"type": "string",
|
1027
|
+
"description": "Icon className prefix, Default: `van-icon`"
|
1028
|
+
},
|
1025
1029
|
"van-contact-list/v-model": {
|
1026
1030
|
"type": "number | string",
|
1027
1031
|
"description": "Id of chosen contact, Default: -"
|
@@ -2344,6 +2348,10 @@
|
|
2344
2348
|
"type": "string | Element",
|
2345
2349
|
"description": "Specifies a target element where Popup will be mounted, Default: -"
|
2346
2350
|
},
|
2351
|
+
"van-popup/safe-area-inset-top": {
|
2352
|
+
"type": "boolean",
|
2353
|
+
"description": "Whether to enable top safe area adaptation, Default: `false`"
|
2354
|
+
},
|
2347
2355
|
"van-popup/safe-area-inset-bottom": {
|
2348
2356
|
"type": "boolean",
|
2349
2357
|
"description": "Whether to enable bottom safe area adaptation, Default: `false`"
|
@@ -3025,54 +3033,6 @@
|
|
3025
3033
|
"type": "boolean",
|
3026
3034
|
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
3027
3035
|
},
|
3028
|
-
"van-swipe/autoplay": {
|
3029
|
-
"type": "number | string",
|
3030
|
-
"description": "Autoplay interval (ms), Default: -"
|
3031
|
-
},
|
3032
|
-
"van-swipe/duration": {
|
3033
|
-
"type": "number | string",
|
3034
|
-
"description": "Animation duration (ms), Default: `500`"
|
3035
|
-
},
|
3036
|
-
"van-swipe/initial-swipe": {
|
3037
|
-
"type": "number | string",
|
3038
|
-
"description": "Index of initial swipe, start from 0, Default: `0`"
|
3039
|
-
},
|
3040
|
-
"van-swipe/width": {
|
3041
|
-
"type": "number | string",
|
3042
|
-
"description": "Width of swipe item, Default: `0`"
|
3043
|
-
},
|
3044
|
-
"van-swipe/height": {
|
3045
|
-
"type": "number | string",
|
3046
|
-
"description": "Height of swipe item, Default: `0`"
|
3047
|
-
},
|
3048
|
-
"van-swipe/loop": {
|
3049
|
-
"type": "boolean",
|
3050
|
-
"description": "Whether to enable loop, Default: `true`"
|
3051
|
-
},
|
3052
|
-
"van-swipe/show-indicators": {
|
3053
|
-
"type": "boolean",
|
3054
|
-
"description": "Whether to show indicators, Default: `true`"
|
3055
|
-
},
|
3056
|
-
"van-swipe/vertical": {
|
3057
|
-
"type": "boolean",
|
3058
|
-
"description": "Whether to be vertical Scrolling, Default: `false`"
|
3059
|
-
},
|
3060
|
-
"van-swipe/touchable": {
|
3061
|
-
"type": "boolean",
|
3062
|
-
"description": "Whether to allow swipe by touch gesture, Default: `true`"
|
3063
|
-
},
|
3064
|
-
"van-swipe/stop-propagation": {
|
3065
|
-
"type": "boolean",
|
3066
|
-
"description": "Whether to stop touchmove event propagation, Default: `false`"
|
3067
|
-
},
|
3068
|
-
"van-swipe/lazy-render": {
|
3069
|
-
"type": "boolean",
|
3070
|
-
"description": "Whether to enable lazy render, Default: `false`"
|
3071
|
-
},
|
3072
|
-
"van-swipe/indicator-color": {
|
3073
|
-
"type": "string",
|
3074
|
-
"description": "Indicator color, Default: `#1989fa`"
|
3075
|
-
},
|
3076
3036
|
"van-swipe-cell/name": {
|
3077
3037
|
"type": "number | string",
|
3078
3038
|
"description": "Identifier of SwipeCell, Default: -"
|
@@ -3097,38 +3057,6 @@
|
|
3097
3057
|
"type": "boolean",
|
3098
3058
|
"description": "Whether to stop touchmove event propagation, Default: `false`"
|
3099
3059
|
},
|
3100
|
-
"van-switch/v-model": {
|
3101
|
-
"type": "ActiveValue | InactiveValue",
|
3102
|
-
"description": "Check status of Switch, Default: `false`"
|
3103
|
-
},
|
3104
|
-
"van-switch/loading": {
|
3105
|
-
"type": "boolean",
|
3106
|
-
"description": "Whether to show loading icon, Default: `false`"
|
3107
|
-
},
|
3108
|
-
"van-switch/disabled": {
|
3109
|
-
"type": "boolean",
|
3110
|
-
"description": "Whether to disable switch, Default: `false`"
|
3111
|
-
},
|
3112
|
-
"van-switch/size": {
|
3113
|
-
"type": "number | string",
|
3114
|
-
"description": "Size of switch button, Default: `26px`"
|
3115
|
-
},
|
3116
|
-
"van-switch/active-color": {
|
3117
|
-
"type": "string",
|
3118
|
-
"description": "Background color when active, Default: `#1989fa`"
|
3119
|
-
},
|
3120
|
-
"van-switch/inactive-color": {
|
3121
|
-
"type": "string",
|
3122
|
-
"description": "Background color when inactive, Default: `rgba(120, 120, 128, 0.16)`"
|
3123
|
-
},
|
3124
|
-
"van-switch/active-value": {
|
3125
|
-
"type": "any",
|
3126
|
-
"description": "Value when active, Default: `true`"
|
3127
|
-
},
|
3128
|
-
"van-switch/inactive-value": {
|
3129
|
-
"type": "any",
|
3130
|
-
"description": "Value when inactive, Default: `false`"
|
3131
|
-
},
|
3132
3060
|
"van-tabs/v-model:active": {
|
3133
3061
|
"type": "number | string",
|
3134
3062
|
"description": "Index of active tab, Default: `0`"
|
@@ -3262,6 +3190,38 @@
|
|
3262
3190
|
"type": "boolean",
|
3263
3191
|
"description": "Whether to show badge when the value is zero, Default: `true`"
|
3264
3192
|
},
|
3193
|
+
"van-switch/v-model": {
|
3194
|
+
"type": "ActiveValue | InactiveValue",
|
3195
|
+
"description": "Check status of Switch, Default: `false`"
|
3196
|
+
},
|
3197
|
+
"van-switch/loading": {
|
3198
|
+
"type": "boolean",
|
3199
|
+
"description": "Whether to show loading icon, Default: `false`"
|
3200
|
+
},
|
3201
|
+
"van-switch/disabled": {
|
3202
|
+
"type": "boolean",
|
3203
|
+
"description": "Whether to disable switch, Default: `false`"
|
3204
|
+
},
|
3205
|
+
"van-switch/size": {
|
3206
|
+
"type": "number | string",
|
3207
|
+
"description": "Size of switch button, Default: `26px`"
|
3208
|
+
},
|
3209
|
+
"van-switch/active-color": {
|
3210
|
+
"type": "string",
|
3211
|
+
"description": "Background color when active, Default: `#1989fa`"
|
3212
|
+
},
|
3213
|
+
"van-switch/inactive-color": {
|
3214
|
+
"type": "string",
|
3215
|
+
"description": "Background color when inactive, Default: `rgba(120, 120, 128, 0.16)`"
|
3216
|
+
},
|
3217
|
+
"van-switch/active-value": {
|
3218
|
+
"type": "any",
|
3219
|
+
"description": "Value when active, Default: `true`"
|
3220
|
+
},
|
3221
|
+
"van-switch/inactive-value": {
|
3222
|
+
"type": "any",
|
3223
|
+
"description": "Value when inactive, Default: `false`"
|
3224
|
+
},
|
3265
3225
|
"van-tabbar/v-model": {
|
3266
3226
|
"type": "number | string",
|
3267
3227
|
"description": "Identifier of current tab, Default: `0`"
|
@@ -3341,6 +3301,54 @@
|
|
3341
3301
|
"type": "boolean",
|
3342
3302
|
"description": "If true, the navigation will not leave a history record, Default: `false`"
|
3343
3303
|
},
|
3304
|
+
"van-swipe/autoplay": {
|
3305
|
+
"type": "number | string",
|
3306
|
+
"description": "Autoplay interval (ms), Default: -"
|
3307
|
+
},
|
3308
|
+
"van-swipe/duration": {
|
3309
|
+
"type": "number | string",
|
3310
|
+
"description": "Animation duration (ms), Default: `500`"
|
3311
|
+
},
|
3312
|
+
"van-swipe/initial-swipe": {
|
3313
|
+
"type": "number | string",
|
3314
|
+
"description": "Index of initial swipe, start from 0, Default: `0`"
|
3315
|
+
},
|
3316
|
+
"van-swipe/width": {
|
3317
|
+
"type": "number | string",
|
3318
|
+
"description": "Width of swipe item, Default: `0`"
|
3319
|
+
},
|
3320
|
+
"van-swipe/height": {
|
3321
|
+
"type": "number | string",
|
3322
|
+
"description": "Height of swipe item, Default: `0`"
|
3323
|
+
},
|
3324
|
+
"van-swipe/loop": {
|
3325
|
+
"type": "boolean",
|
3326
|
+
"description": "Whether to enable loop, Default: `true`"
|
3327
|
+
},
|
3328
|
+
"van-swipe/show-indicators": {
|
3329
|
+
"type": "boolean",
|
3330
|
+
"description": "Whether to show indicators, Default: `true`"
|
3331
|
+
},
|
3332
|
+
"van-swipe/vertical": {
|
3333
|
+
"type": "boolean",
|
3334
|
+
"description": "Whether to be vertical Scrolling, Default: `false`"
|
3335
|
+
},
|
3336
|
+
"van-swipe/touchable": {
|
3337
|
+
"type": "boolean",
|
3338
|
+
"description": "Whether to allow swipe by touch gesture, Default: `true`"
|
3339
|
+
},
|
3340
|
+
"van-swipe/stop-propagation": {
|
3341
|
+
"type": "boolean",
|
3342
|
+
"description": "Whether to stop touchmove event propagation, Default: `false`"
|
3343
|
+
},
|
3344
|
+
"van-swipe/lazy-render": {
|
3345
|
+
"type": "boolean",
|
3346
|
+
"description": "Whether to enable lazy render, Default: `false`"
|
3347
|
+
},
|
3348
|
+
"van-swipe/indicator-color": {
|
3349
|
+
"type": "string",
|
3350
|
+
"description": "Indicator color, Default: `#1989fa`"
|
3351
|
+
},
|
3344
3352
|
"van-tag/type": {
|
3345
3353
|
"type": "string",
|
3346
3354
|
"description": "Type, can be set to `primary` `success` `danger` `warning`, Default: `default`"
|
package/vetur/tags.json
CHANGED
@@ -32,30 +32,6 @@
|
|
32
32
|
"replace"
|
33
33
|
]
|
34
34
|
},
|
35
|
-
"van-action-sheet": {
|
36
|
-
"attributes": [
|
37
|
-
"v-model:show",
|
38
|
-
"actions",
|
39
|
-
"title",
|
40
|
-
"cancel-text",
|
41
|
-
"description",
|
42
|
-
"closeable",
|
43
|
-
"close-icon",
|
44
|
-
"duration",
|
45
|
-
"round",
|
46
|
-
"overlay",
|
47
|
-
"overlay-class",
|
48
|
-
"overlay-style",
|
49
|
-
"lock-scroll",
|
50
|
-
"lazy-render",
|
51
|
-
"close-on-popstate",
|
52
|
-
"close-on-click-action",
|
53
|
-
"close-on-click-overlay",
|
54
|
-
"safe-area-inset-bottom",
|
55
|
-
"teleport",
|
56
|
-
"before-close"
|
57
|
-
]
|
58
|
-
},
|
59
35
|
"van-address-edit": {
|
60
36
|
"attributes": [
|
61
37
|
"area-list",
|
@@ -109,6 +85,30 @@
|
|
109
85
|
"swipe-duration"
|
110
86
|
]
|
111
87
|
},
|
88
|
+
"van-action-sheet": {
|
89
|
+
"attributes": [
|
90
|
+
"v-model:show",
|
91
|
+
"actions",
|
92
|
+
"title",
|
93
|
+
"cancel-text",
|
94
|
+
"description",
|
95
|
+
"closeable",
|
96
|
+
"close-icon",
|
97
|
+
"duration",
|
98
|
+
"round",
|
99
|
+
"overlay",
|
100
|
+
"overlay-class",
|
101
|
+
"overlay-style",
|
102
|
+
"lock-scroll",
|
103
|
+
"lazy-render",
|
104
|
+
"close-on-popstate",
|
105
|
+
"close-on-click-action",
|
106
|
+
"close-on-click-overlay",
|
107
|
+
"safe-area-inset-bottom",
|
108
|
+
"teleport",
|
109
|
+
"before-close"
|
110
|
+
]
|
111
|
+
},
|
112
112
|
"van-badge": {
|
113
113
|
"attributes": [
|
114
114
|
"content",
|
@@ -170,6 +170,7 @@
|
|
170
170
|
"round",
|
171
171
|
"close-on-popstate",
|
172
172
|
"close-on-click-overlay",
|
173
|
+
"safe-area-inset-top",
|
173
174
|
"safe-area-inset-bottom",
|
174
175
|
"teleport",
|
175
176
|
"max-range",
|
@@ -319,12 +320,15 @@
|
|
319
320
|
"label-class"
|
320
321
|
]
|
321
322
|
},
|
322
|
-
"van-
|
323
|
+
"van-contact-edit": {
|
323
324
|
"attributes": [
|
324
|
-
"
|
325
|
-
"
|
326
|
-
"
|
327
|
-
"
|
325
|
+
"contact-info",
|
326
|
+
"is-edit",
|
327
|
+
"is-saving",
|
328
|
+
"is-deleting",
|
329
|
+
"tel-validator",
|
330
|
+
"show-set-default",
|
331
|
+
"set-default-label"
|
328
332
|
]
|
329
333
|
},
|
330
334
|
"van-contact-card": {
|
@@ -335,15 +339,12 @@
|
|
335
339
|
"add-text"
|
336
340
|
]
|
337
341
|
},
|
338
|
-
"van-
|
342
|
+
"van-config-provider": {
|
339
343
|
"attributes": [
|
340
|
-
"
|
341
|
-
"
|
342
|
-
"
|
343
|
-
"
|
344
|
-
"tel-validator",
|
345
|
-
"show-set-default",
|
346
|
-
"set-default-label"
|
344
|
+
"theme",
|
345
|
+
"theme-vars",
|
346
|
+
"tag",
|
347
|
+
"icon-prefix"
|
347
348
|
]
|
348
349
|
},
|
349
350
|
"van-contact-list": {
|
@@ -790,6 +791,7 @@
|
|
790
791
|
"transition",
|
791
792
|
"transition-appear",
|
792
793
|
"teleport",
|
794
|
+
"safe-area-inset-top",
|
793
795
|
"safe-area-inset-bottom"
|
794
796
|
]
|
795
797
|
},
|
@@ -1023,25 +1025,6 @@
|
|
1023
1025
|
"safe-area-inset-bottom"
|
1024
1026
|
]
|
1025
1027
|
},
|
1026
|
-
"van-swipe": {
|
1027
|
-
"attributes": [
|
1028
|
-
"autoplay",
|
1029
|
-
"duration",
|
1030
|
-
"initial-swipe",
|
1031
|
-
"width",
|
1032
|
-
"height",
|
1033
|
-
"loop",
|
1034
|
-
"show-indicators",
|
1035
|
-
"vertical",
|
1036
|
-
"touchable",
|
1037
|
-
"stop-propagation",
|
1038
|
-
"lazy-render",
|
1039
|
-
"indicator-color"
|
1040
|
-
]
|
1041
|
-
},
|
1042
|
-
"van-swipe-item": {
|
1043
|
-
"attributes": []
|
1044
|
-
},
|
1045
1028
|
"van-swipe-cell": {
|
1046
1029
|
"attributes": [
|
1047
1030
|
"name",
|
@@ -1052,18 +1035,6 @@
|
|
1052
1035
|
"stop-propagation"
|
1053
1036
|
]
|
1054
1037
|
},
|
1055
|
-
"van-switch": {
|
1056
|
-
"attributes": [
|
1057
|
-
"v-model",
|
1058
|
-
"loading",
|
1059
|
-
"disabled",
|
1060
|
-
"size",
|
1061
|
-
"active-color",
|
1062
|
-
"inactive-color",
|
1063
|
-
"active-value",
|
1064
|
-
"inactive-value"
|
1065
|
-
]
|
1066
|
-
},
|
1067
1038
|
"van-tabs": {
|
1068
1039
|
"attributes": [
|
1069
1040
|
"v-model:active",
|
@@ -1103,6 +1074,18 @@
|
|
1103
1074
|
"show-zero-badge"
|
1104
1075
|
]
|
1105
1076
|
},
|
1077
|
+
"van-switch": {
|
1078
|
+
"attributes": [
|
1079
|
+
"v-model",
|
1080
|
+
"loading",
|
1081
|
+
"disabled",
|
1082
|
+
"size",
|
1083
|
+
"active-color",
|
1084
|
+
"inactive-color",
|
1085
|
+
"active-value",
|
1086
|
+
"inactive-value"
|
1087
|
+
]
|
1088
|
+
},
|
1106
1089
|
"van-tabbar": {
|
1107
1090
|
"attributes": [
|
1108
1091
|
"v-model",
|
@@ -1130,6 +1113,25 @@
|
|
1130
1113
|
"replace"
|
1131
1114
|
]
|
1132
1115
|
},
|
1116
|
+
"van-swipe": {
|
1117
|
+
"attributes": [
|
1118
|
+
"autoplay",
|
1119
|
+
"duration",
|
1120
|
+
"initial-swipe",
|
1121
|
+
"width",
|
1122
|
+
"height",
|
1123
|
+
"loop",
|
1124
|
+
"show-indicators",
|
1125
|
+
"vertical",
|
1126
|
+
"touchable",
|
1127
|
+
"stop-propagation",
|
1128
|
+
"lazy-render",
|
1129
|
+
"indicator-color"
|
1130
|
+
]
|
1131
|
+
},
|
1132
|
+
"van-swipe-item": {
|
1133
|
+
"attributes": []
|
1134
|
+
},
|
1133
1135
|
"van-tag": {
|
1134
1136
|
"attributes": [
|
1135
1137
|
"type",
|