vant 2.12.36 → 2.12.37
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/datetime-picker/index.js +1 -1
- package/es/datetime-picker/shared.js +25 -3
- package/es/image-preview/ImagePreview.js +1 -0
- package/es/image-preview/index.js +1 -0
- package/es/index.js +1 -1
- package/lib/datetime-picker/index.js +1 -1
- package/lib/datetime-picker/shared.js +25 -3
- package/lib/image-preview/ImagePreview.js +1 -0
- package/lib/image-preview/index.js +1 -0
- package/lib/index.js +1 -1
- package/lib/vant.js +34 -10
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/types/image-preview.d.ts +1 -0
- package/vetur/attributes.json +202 -198
- package/vetur/tags.json +68 -67
- package/vetur/web-types.json +607 -598
package/package.json
CHANGED
package/types/image-preview.d.ts
CHANGED
package/vetur/attributes.json
CHANGED
@@ -87,58 +87,6 @@
|
|
87
87
|
"type": "(key, val) => string",
|
88
88
|
"description": "自定义校验函数, 默认值: -"
|
89
89
|
},
|
90
|
-
"van-area/value": {
|
91
|
-
"type": "string",
|
92
|
-
"description": "当前选中的省市区`code`, 默认值: -"
|
93
|
-
},
|
94
|
-
"van-area/title": {
|
95
|
-
"type": "string",
|
96
|
-
"description": "顶部栏标题, 默认值: -"
|
97
|
-
},
|
98
|
-
"van-area/confirm-button-text": {
|
99
|
-
"type": "string",
|
100
|
-
"description": "确认按钮文字, 默认值: `确认`"
|
101
|
-
},
|
102
|
-
"van-area/cancel-button-text": {
|
103
|
-
"type": "string",
|
104
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
105
|
-
},
|
106
|
-
"van-area/area-list": {
|
107
|
-
"type": "object",
|
108
|
-
"description": "省市区数据,格式见下方, 默认值: -"
|
109
|
-
},
|
110
|
-
"van-area/columns-placeholder": {
|
111
|
-
"type": "string[]",
|
112
|
-
"description": "列占位提示文字, 默认值: `[]`"
|
113
|
-
},
|
114
|
-
"van-area/loading": {
|
115
|
-
"type": "boolean",
|
116
|
-
"description": "是否显示加载状态, 默认值: `false`"
|
117
|
-
},
|
118
|
-
"van-area/readonly": {
|
119
|
-
"type": "boolean",
|
120
|
-
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
121
|
-
},
|
122
|
-
"van-area/item-height": {
|
123
|
-
"type": "number | string",
|
124
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
125
|
-
},
|
126
|
-
"van-area/columns-num": {
|
127
|
-
"type": "number | string",
|
128
|
-
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
129
|
-
},
|
130
|
-
"van-area/visible-item-count": {
|
131
|
-
"type": "number | string",
|
132
|
-
"description": "可见的选项个数, 默认值: `6`"
|
133
|
-
},
|
134
|
-
"van-area/swipe-duration": {
|
135
|
-
"type": "number | string",
|
136
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
137
|
-
},
|
138
|
-
"van-area/is-oversea-code": {
|
139
|
-
"type": "() => boolean",
|
140
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
141
|
-
},
|
142
90
|
"van-address-list/v-model": {
|
143
91
|
"type": "string",
|
144
92
|
"description": "当前选中地址的 id, 默认值: -"
|
@@ -167,73 +115,21 @@
|
|
167
115
|
"type": "string",
|
168
116
|
"description": "默认地址标签文字, 默认值: -"
|
169
117
|
},
|
170
|
-
"van-
|
171
|
-
"type": "
|
172
|
-
"description": "
|
173
|
-
},
|
174
|
-
"van-action-sheet/actions": {
|
175
|
-
"type": "Action[]",
|
176
|
-
"description": "面板选项列表, 默认值: `[]`"
|
177
|
-
},
|
178
|
-
"van-action-sheet/title": {
|
179
|
-
"type": "string",
|
180
|
-
"description": "顶部标题, 默认值: -"
|
181
|
-
},
|
182
|
-
"van-action-sheet/cancel-text": {
|
183
|
-
"type": "string",
|
184
|
-
"description": "取消按钮文字, 默认值: -"
|
118
|
+
"van-badge/content": {
|
119
|
+
"type": "number | string",
|
120
|
+
"description": "徽标内容, 默认值: -"
|
185
121
|
},
|
186
|
-
"van-
|
122
|
+
"van-badge/color": {
|
187
123
|
"type": "string",
|
188
|
-
"description": "
|
124
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
189
125
|
},
|
190
|
-
"van-
|
126
|
+
"van-badge/dot": {
|
191
127
|
"type": "boolean",
|
192
|
-
"description": "
|
193
|
-
},
|
194
|
-
"van-action-sheet/close-icon": {
|
195
|
-
"type": "string",
|
196
|
-
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
128
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
197
129
|
},
|
198
|
-
"van-
|
130
|
+
"van-badge/max": {
|
199
131
|
"type": "number | string",
|
200
|
-
"description": "
|
201
|
-
},
|
202
|
-
"van-action-sheet/round": {
|
203
|
-
"type": "boolean",
|
204
|
-
"description": "是否显示圆角, 默认值: `true`"
|
205
|
-
},
|
206
|
-
"van-action-sheet/overlay": {
|
207
|
-
"type": "boolean",
|
208
|
-
"description": "是否显示遮罩层, 默认值: `true`"
|
209
|
-
},
|
210
|
-
"van-action-sheet/lock-scroll": {
|
211
|
-
"type": "boolean",
|
212
|
-
"description": "是否锁定背景滚动, 默认值: `true`"
|
213
|
-
},
|
214
|
-
"van-action-sheet/lazy-render": {
|
215
|
-
"type": "boolean",
|
216
|
-
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
217
|
-
},
|
218
|
-
"van-action-sheet/close-on-popstate": {
|
219
|
-
"type": "boolean",
|
220
|
-
"description": "是否在页面回退时自动关闭, 默认值: `false`"
|
221
|
-
},
|
222
|
-
"van-action-sheet/close-on-click-action": {
|
223
|
-
"type": "boolean",
|
224
|
-
"description": "是否在点击选项后关闭, 默认值: `false`"
|
225
|
-
},
|
226
|
-
"van-action-sheet/close-on-click-overlay": {
|
227
|
-
"type": "boolean",
|
228
|
-
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
229
|
-
},
|
230
|
-
"van-action-sheet/safe-area-inset-bottom": {
|
231
|
-
"type": "boolean",
|
232
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
233
|
-
},
|
234
|
-
"van-action-sheet/get-container": {
|
235
|
-
"type": "string | () => Element",
|
236
|
-
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
132
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
237
133
|
},
|
238
134
|
"van-button/type": {
|
239
135
|
"type": "string",
|
@@ -323,6 +219,58 @@
|
|
323
219
|
"type": "boolean",
|
324
220
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
325
221
|
},
|
222
|
+
"van-area/value": {
|
223
|
+
"type": "string",
|
224
|
+
"description": "当前选中的省市区`code`, 默认值: -"
|
225
|
+
},
|
226
|
+
"van-area/title": {
|
227
|
+
"type": "string",
|
228
|
+
"description": "顶部栏标题, 默认值: -"
|
229
|
+
},
|
230
|
+
"van-area/confirm-button-text": {
|
231
|
+
"type": "string",
|
232
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
233
|
+
},
|
234
|
+
"van-area/cancel-button-text": {
|
235
|
+
"type": "string",
|
236
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
237
|
+
},
|
238
|
+
"van-area/area-list": {
|
239
|
+
"type": "object",
|
240
|
+
"description": "省市区数据,格式见下方, 默认值: -"
|
241
|
+
},
|
242
|
+
"van-area/columns-placeholder": {
|
243
|
+
"type": "string[]",
|
244
|
+
"description": "列占位提示文字, 默认值: `[]`"
|
245
|
+
},
|
246
|
+
"van-area/loading": {
|
247
|
+
"type": "boolean",
|
248
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
249
|
+
},
|
250
|
+
"van-area/readonly": {
|
251
|
+
"type": "boolean",
|
252
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
253
|
+
},
|
254
|
+
"van-area/item-height": {
|
255
|
+
"type": "number | string",
|
256
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
257
|
+
},
|
258
|
+
"van-area/columns-num": {
|
259
|
+
"type": "number | string",
|
260
|
+
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
261
|
+
},
|
262
|
+
"van-area/visible-item-count": {
|
263
|
+
"type": "number | string",
|
264
|
+
"description": "可见的选项个数, 默认值: `6`"
|
265
|
+
},
|
266
|
+
"van-area/swipe-duration": {
|
267
|
+
"type": "number | string",
|
268
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
269
|
+
},
|
270
|
+
"van-area/is-oversea-code": {
|
271
|
+
"type": "() => boolean",
|
272
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
273
|
+
},
|
326
274
|
"van-calendar/type": {
|
327
275
|
"type": "string",
|
328
276
|
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
|
@@ -443,21 +391,73 @@
|
|
443
391
|
"type": "string",
|
444
392
|
"description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
445
393
|
},
|
446
|
-
"van-
|
447
|
-
"type": "
|
448
|
-
"description": "
|
394
|
+
"van-action-sheet/v-model (value)": {
|
395
|
+
"type": "boolean",
|
396
|
+
"description": "是否显示动作面板, 默认值: `false`"
|
449
397
|
},
|
450
|
-
"van-
|
398
|
+
"van-action-sheet/actions": {
|
399
|
+
"type": "Action[]",
|
400
|
+
"description": "面板选项列表, 默认值: `[]`"
|
401
|
+
},
|
402
|
+
"van-action-sheet/title": {
|
451
403
|
"type": "string",
|
452
|
-
"description": "
|
404
|
+
"description": "顶部标题, 默认值: -"
|
453
405
|
},
|
454
|
-
"van-
|
406
|
+
"van-action-sheet/cancel-text": {
|
407
|
+
"type": "string",
|
408
|
+
"description": "取消按钮文字, 默认值: -"
|
409
|
+
},
|
410
|
+
"van-action-sheet/description": {
|
411
|
+
"type": "string",
|
412
|
+
"description": "选项上方的描述信息, 默认值: -"
|
413
|
+
},
|
414
|
+
"van-action-sheet/closeable": {
|
455
415
|
"type": "boolean",
|
456
|
-
"description": "
|
416
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
457
417
|
},
|
458
|
-
"van-
|
418
|
+
"van-action-sheet/close-icon": {
|
419
|
+
"type": "string",
|
420
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
421
|
+
},
|
422
|
+
"van-action-sheet/duration": {
|
459
423
|
"type": "number | string",
|
460
|
-
"description": "
|
424
|
+
"description": "动画时长,单位秒, 默认值: `0.3`"
|
425
|
+
},
|
426
|
+
"van-action-sheet/round": {
|
427
|
+
"type": "boolean",
|
428
|
+
"description": "是否显示圆角, 默认值: `true`"
|
429
|
+
},
|
430
|
+
"van-action-sheet/overlay": {
|
431
|
+
"type": "boolean",
|
432
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
433
|
+
},
|
434
|
+
"van-action-sheet/lock-scroll": {
|
435
|
+
"type": "boolean",
|
436
|
+
"description": "是否锁定背景滚动, 默认值: `true`"
|
437
|
+
},
|
438
|
+
"van-action-sheet/lazy-render": {
|
439
|
+
"type": "boolean",
|
440
|
+
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
441
|
+
},
|
442
|
+
"van-action-sheet/close-on-popstate": {
|
443
|
+
"type": "boolean",
|
444
|
+
"description": "是否在页面回退时自动关闭, 默认值: `false`"
|
445
|
+
},
|
446
|
+
"van-action-sheet/close-on-click-action": {
|
447
|
+
"type": "boolean",
|
448
|
+
"description": "是否在点击选项后关闭, 默认值: `false`"
|
449
|
+
},
|
450
|
+
"van-action-sheet/close-on-click-overlay": {
|
451
|
+
"type": "boolean",
|
452
|
+
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
453
|
+
},
|
454
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
455
|
+
"type": "boolean",
|
456
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
457
|
+
},
|
458
|
+
"van-action-sheet/get-container": {
|
459
|
+
"type": "string | () => Element",
|
460
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
461
461
|
},
|
462
462
|
"van-card/thumb": {
|
463
463
|
"type": "string",
|
@@ -1715,6 +1715,10 @@
|
|
1715
1715
|
"type": "string",
|
1716
1716
|
"description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: `van-fade`"
|
1717
1717
|
},
|
1718
|
+
"van-image-preview/overlay-style": {
|
1719
|
+
"type": "object",
|
1720
|
+
"description": "自定义遮罩层样式, 默认值: -"
|
1721
|
+
},
|
1718
1722
|
"van-image-preview/get-container": {
|
1719
1723
|
"type": "string | () => Element",
|
1720
1724
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
@@ -3083,82 +3087,6 @@
|
|
3083
3087
|
"type": "any",
|
3084
3088
|
"description": "关闭时的值, 默认值: `false`"
|
3085
3089
|
},
|
3086
|
-
"van-tabbar/v-model": {
|
3087
|
-
"type": "number | string",
|
3088
|
-
"description": "当前选中标签的名称或索引值, 默认值: `0`"
|
3089
|
-
},
|
3090
|
-
"van-tabbar/fixed": {
|
3091
|
-
"type": "boolean",
|
3092
|
-
"description": "是否固定在底部, 默认值: `true`"
|
3093
|
-
},
|
3094
|
-
"van-tabbar/border": {
|
3095
|
-
"type": "boolean",
|
3096
|
-
"description": "是否显示外边框, 默认值: `true`"
|
3097
|
-
},
|
3098
|
-
"van-tabbar/z-index": {
|
3099
|
-
"type": "number | string",
|
3100
|
-
"description": "元素 z-index, 默认值: `1`"
|
3101
|
-
},
|
3102
|
-
"van-tabbar/active-color": {
|
3103
|
-
"type": "string",
|
3104
|
-
"description": "选中标签的颜色, 默认值: `#1989fa`"
|
3105
|
-
},
|
3106
|
-
"van-tabbar/inactive-color": {
|
3107
|
-
"type": "string",
|
3108
|
-
"description": "未选中标签的颜色, 默认值: `#7d7e80`"
|
3109
|
-
},
|
3110
|
-
"van-tabbar/route": {
|
3111
|
-
"type": "boolean",
|
3112
|
-
"description": "是否开启路由模式, 默认值: `false`"
|
3113
|
-
},
|
3114
|
-
"van-tabbar/placeholder": {
|
3115
|
-
"type": "boolean",
|
3116
|
-
"description": "固定在底部时,是否在标签位置生成一个等高的占位元素, 默认值: `false`"
|
3117
|
-
},
|
3118
|
-
"van-tabbar/safe-area-inset-bottom": {
|
3119
|
-
"type": "boolean",
|
3120
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启, 默认值: `false`"
|
3121
|
-
},
|
3122
|
-
"van-tabbar/before-change": {
|
3123
|
-
"type": "(name) => boolean | Promise",
|
3124
|
-
"description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise, 默认值: -"
|
3125
|
-
},
|
3126
|
-
"van-tabbar-item/name": {
|
3127
|
-
"type": "number | string",
|
3128
|
-
"description": "标签名称,作为匹配的标识符, 默认值: 当前标签的索引值"
|
3129
|
-
},
|
3130
|
-
"van-tabbar-item/icon": {
|
3131
|
-
"type": "string",
|
3132
|
-
"description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
3133
|
-
},
|
3134
|
-
"van-tabbar-item/icon-prefix": {
|
3135
|
-
"type": "string",
|
3136
|
-
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
3137
|
-
},
|
3138
|
-
"van-tabbar-item/dot": {
|
3139
|
-
"type": "boolean",
|
3140
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
3141
|
-
},
|
3142
|
-
"van-tabbar-item/badge": {
|
3143
|
-
"type": "number | string",
|
3144
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
3145
|
-
},
|
3146
|
-
"van-tabbar-item/info": {
|
3147
|
-
"type": "number | string",
|
3148
|
-
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
3149
|
-
},
|
3150
|
-
"van-tabbar-item/url": {
|
3151
|
-
"type": "string",
|
3152
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
3153
|
-
},
|
3154
|
-
"van-tabbar-item/to": {
|
3155
|
-
"type": "string | object",
|
3156
|
-
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
3157
|
-
},
|
3158
|
-
"van-tabbar-item/replace": {
|
3159
|
-
"type": "boolean",
|
3160
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
3161
|
-
},
|
3162
3090
|
"van-tabs/v-model": {
|
3163
3091
|
"type": "number | string",
|
3164
3092
|
"description": "绑定当前选中标签的标识符, 默认值: `0`"
|
@@ -3279,6 +3207,82 @@
|
|
3279
3207
|
"type": "any",
|
3280
3208
|
"description": "自定义标题类名, 默认值: -"
|
3281
3209
|
},
|
3210
|
+
"van-tabbar/v-model": {
|
3211
|
+
"type": "number | string",
|
3212
|
+
"description": "当前选中标签的名称或索引值, 默认值: `0`"
|
3213
|
+
},
|
3214
|
+
"van-tabbar/fixed": {
|
3215
|
+
"type": "boolean",
|
3216
|
+
"description": "是否固定在底部, 默认值: `true`"
|
3217
|
+
},
|
3218
|
+
"van-tabbar/border": {
|
3219
|
+
"type": "boolean",
|
3220
|
+
"description": "是否显示外边框, 默认值: `true`"
|
3221
|
+
},
|
3222
|
+
"van-tabbar/z-index": {
|
3223
|
+
"type": "number | string",
|
3224
|
+
"description": "元素 z-index, 默认值: `1`"
|
3225
|
+
},
|
3226
|
+
"van-tabbar/active-color": {
|
3227
|
+
"type": "string",
|
3228
|
+
"description": "选中标签的颜色, 默认值: `#1989fa`"
|
3229
|
+
},
|
3230
|
+
"van-tabbar/inactive-color": {
|
3231
|
+
"type": "string",
|
3232
|
+
"description": "未选中标签的颜色, 默认值: `#7d7e80`"
|
3233
|
+
},
|
3234
|
+
"van-tabbar/route": {
|
3235
|
+
"type": "boolean",
|
3236
|
+
"description": "是否开启路由模式, 默认值: `false`"
|
3237
|
+
},
|
3238
|
+
"van-tabbar/placeholder": {
|
3239
|
+
"type": "boolean",
|
3240
|
+
"description": "固定在底部时,是否在标签位置生成一个等高的占位元素, 默认值: `false`"
|
3241
|
+
},
|
3242
|
+
"van-tabbar/safe-area-inset-bottom": {
|
3243
|
+
"type": "boolean",
|
3244
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启, 默认值: `false`"
|
3245
|
+
},
|
3246
|
+
"van-tabbar/before-change": {
|
3247
|
+
"type": "(name) => boolean | Promise",
|
3248
|
+
"description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise, 默认值: -"
|
3249
|
+
},
|
3250
|
+
"van-tabbar-item/name": {
|
3251
|
+
"type": "number | string",
|
3252
|
+
"description": "标签名称,作为匹配的标识符, 默认值: 当前标签的索引值"
|
3253
|
+
},
|
3254
|
+
"van-tabbar-item/icon": {
|
3255
|
+
"type": "string",
|
3256
|
+
"description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
3257
|
+
},
|
3258
|
+
"van-tabbar-item/icon-prefix": {
|
3259
|
+
"type": "string",
|
3260
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
3261
|
+
},
|
3262
|
+
"van-tabbar-item/dot": {
|
3263
|
+
"type": "boolean",
|
3264
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
3265
|
+
},
|
3266
|
+
"van-tabbar-item/badge": {
|
3267
|
+
"type": "number | string",
|
3268
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
3269
|
+
},
|
3270
|
+
"van-tabbar-item/info": {
|
3271
|
+
"type": "number | string",
|
3272
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
3273
|
+
},
|
3274
|
+
"van-tabbar-item/url": {
|
3275
|
+
"type": "string",
|
3276
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
3277
|
+
},
|
3278
|
+
"van-tabbar-item/to": {
|
3279
|
+
"type": "string | object",
|
3280
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
3281
|
+
},
|
3282
|
+
"van-tabbar-item/replace": {
|
3283
|
+
"type": "boolean",
|
3284
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
3285
|
+
},
|
3282
3286
|
"van-tag/type": {
|
3283
3287
|
"type": "string",
|
3284
3288
|
"description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
|
package/vetur/tags.json
CHANGED
@@ -25,23 +25,6 @@
|
|
25
25
|
"validator"
|
26
26
|
]
|
27
27
|
},
|
28
|
-
"van-area": {
|
29
|
-
"attributes": [
|
30
|
-
"value",
|
31
|
-
"title",
|
32
|
-
"confirm-button-text",
|
33
|
-
"cancel-button-text",
|
34
|
-
"area-list",
|
35
|
-
"columns-placeholder",
|
36
|
-
"loading",
|
37
|
-
"readonly",
|
38
|
-
"item-height",
|
39
|
-
"columns-num",
|
40
|
-
"visible-item-count",
|
41
|
-
"swipe-duration",
|
42
|
-
"is-oversea-code"
|
43
|
-
]
|
44
|
-
},
|
45
28
|
"van-address-list": {
|
46
29
|
"attributes": [
|
47
30
|
"v-model",
|
@@ -53,25 +36,12 @@
|
|
53
36
|
"default-tag-text"
|
54
37
|
]
|
55
38
|
},
|
56
|
-
"van-
|
39
|
+
"van-badge": {
|
57
40
|
"attributes": [
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"description",
|
63
|
-
"closeable",
|
64
|
-
"close-icon",
|
65
|
-
"duration",
|
66
|
-
"round",
|
67
|
-
"overlay",
|
68
|
-
"lock-scroll",
|
69
|
-
"lazy-render",
|
70
|
-
"close-on-popstate",
|
71
|
-
"close-on-click-action",
|
72
|
-
"close-on-click-overlay",
|
73
|
-
"safe-area-inset-bottom",
|
74
|
-
"get-container"
|
41
|
+
"content",
|
42
|
+
"color",
|
43
|
+
"dot",
|
44
|
+
"max"
|
75
45
|
]
|
76
46
|
},
|
77
47
|
"van-button": {
|
@@ -100,6 +70,23 @@
|
|
100
70
|
"replace"
|
101
71
|
]
|
102
72
|
},
|
73
|
+
"van-area": {
|
74
|
+
"attributes": [
|
75
|
+
"value",
|
76
|
+
"title",
|
77
|
+
"confirm-button-text",
|
78
|
+
"cancel-button-text",
|
79
|
+
"area-list",
|
80
|
+
"columns-placeholder",
|
81
|
+
"loading",
|
82
|
+
"readonly",
|
83
|
+
"item-height",
|
84
|
+
"columns-num",
|
85
|
+
"visible-item-count",
|
86
|
+
"swipe-duration",
|
87
|
+
"is-oversea-code"
|
88
|
+
]
|
89
|
+
},
|
103
90
|
"van-calendar": {
|
104
91
|
"attributes": [
|
105
92
|
"type",
|
@@ -146,12 +133,25 @@
|
|
146
133
|
"range-prompt"
|
147
134
|
]
|
148
135
|
},
|
149
|
-
"van-
|
136
|
+
"van-action-sheet": {
|
150
137
|
"attributes": [
|
151
|
-
"
|
152
|
-
"
|
153
|
-
"
|
154
|
-
"
|
138
|
+
"v-model (value)",
|
139
|
+
"actions",
|
140
|
+
"title",
|
141
|
+
"cancel-text",
|
142
|
+
"description",
|
143
|
+
"closeable",
|
144
|
+
"close-icon",
|
145
|
+
"duration",
|
146
|
+
"round",
|
147
|
+
"overlay",
|
148
|
+
"lock-scroll",
|
149
|
+
"lazy-render",
|
150
|
+
"close-on-popstate",
|
151
|
+
"close-on-click-action",
|
152
|
+
"close-on-click-overlay",
|
153
|
+
"safe-area-inset-bottom",
|
154
|
+
"get-container"
|
155
155
|
]
|
156
156
|
},
|
157
157
|
"van-card": {
|
@@ -606,6 +606,7 @@
|
|
606
606
|
"close-icon",
|
607
607
|
"close-icon-position",
|
608
608
|
"transition",
|
609
|
+
"overlay-style",
|
609
610
|
"get-container"
|
610
611
|
]
|
611
612
|
},
|
@@ -1092,33 +1093,6 @@
|
|
1092
1093
|
"inactive-value"
|
1093
1094
|
]
|
1094
1095
|
},
|
1095
|
-
"van-tabbar": {
|
1096
|
-
"attributes": [
|
1097
|
-
"v-model",
|
1098
|
-
"fixed",
|
1099
|
-
"border",
|
1100
|
-
"z-index",
|
1101
|
-
"active-color",
|
1102
|
-
"inactive-color",
|
1103
|
-
"route",
|
1104
|
-
"placeholder",
|
1105
|
-
"safe-area-inset-bottom",
|
1106
|
-
"before-change"
|
1107
|
-
]
|
1108
|
-
},
|
1109
|
-
"van-tabbar-item": {
|
1110
|
-
"attributes": [
|
1111
|
-
"name",
|
1112
|
-
"icon",
|
1113
|
-
"icon-prefix",
|
1114
|
-
"dot",
|
1115
|
-
"badge",
|
1116
|
-
"info",
|
1117
|
-
"url",
|
1118
|
-
"to",
|
1119
|
-
"replace"
|
1120
|
-
]
|
1121
|
-
},
|
1122
1096
|
"van-tabs": {
|
1123
1097
|
"attributes": [
|
1124
1098
|
"v-model",
|
@@ -1157,6 +1131,33 @@
|
|
1157
1131
|
"title-class"
|
1158
1132
|
]
|
1159
1133
|
},
|
1134
|
+
"van-tabbar": {
|
1135
|
+
"attributes": [
|
1136
|
+
"v-model",
|
1137
|
+
"fixed",
|
1138
|
+
"border",
|
1139
|
+
"z-index",
|
1140
|
+
"active-color",
|
1141
|
+
"inactive-color",
|
1142
|
+
"route",
|
1143
|
+
"placeholder",
|
1144
|
+
"safe-area-inset-bottom",
|
1145
|
+
"before-change"
|
1146
|
+
]
|
1147
|
+
},
|
1148
|
+
"van-tabbar-item": {
|
1149
|
+
"attributes": [
|
1150
|
+
"name",
|
1151
|
+
"icon",
|
1152
|
+
"icon-prefix",
|
1153
|
+
"dot",
|
1154
|
+
"badge",
|
1155
|
+
"info",
|
1156
|
+
"url",
|
1157
|
+
"to",
|
1158
|
+
"replace"
|
1159
|
+
]
|
1160
|
+
},
|
1160
1161
|
"van-tag": {
|
1161
1162
|
"attributes": [
|
1162
1163
|
"type",
|