vant 2.12.35 → 2.12.36
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/calendar/components/Month.js +2 -4
- package/es/calendar/index.js +10 -1
- package/es/index.js +1 -1
- package/es/uploader/index.js +15 -1
- package/lib/calendar/components/Month.js +2 -4
- package/lib/calendar/index.js +10 -1
- package/lib/index.js +1 -1
- package/lib/uploader/index.js +15 -1
- package/lib/vant.js +28 -7
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +296 -296
- package/vetur/tags.json +102 -102
- package/vetur/web-types.json +827 -827
package/vetur/attributes.json
CHANGED
@@ -1,72 +1,4 @@
|
|
1
1
|
{
|
2
|
-
"van-action-sheet/v-model (value)": {
|
3
|
-
"type": "boolean",
|
4
|
-
"description": "是否显示动作面板, 默认值: `false`"
|
5
|
-
},
|
6
|
-
"van-action-sheet/actions": {
|
7
|
-
"type": "Action[]",
|
8
|
-
"description": "面板选项列表, 默认值: `[]`"
|
9
|
-
},
|
10
|
-
"van-action-sheet/title": {
|
11
|
-
"type": "string",
|
12
|
-
"description": "顶部标题, 默认值: -"
|
13
|
-
},
|
14
|
-
"van-action-sheet/cancel-text": {
|
15
|
-
"type": "string",
|
16
|
-
"description": "取消按钮文字, 默认值: -"
|
17
|
-
},
|
18
|
-
"van-action-sheet/description": {
|
19
|
-
"type": "string",
|
20
|
-
"description": "选项上方的描述信息, 默认值: -"
|
21
|
-
},
|
22
|
-
"van-action-sheet/closeable": {
|
23
|
-
"type": "boolean",
|
24
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
25
|
-
},
|
26
|
-
"van-action-sheet/close-icon": {
|
27
|
-
"type": "string",
|
28
|
-
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
29
|
-
},
|
30
|
-
"van-action-sheet/duration": {
|
31
|
-
"type": "number | string",
|
32
|
-
"description": "动画时长,单位秒, 默认值: `0.3`"
|
33
|
-
},
|
34
|
-
"van-action-sheet/round": {
|
35
|
-
"type": "boolean",
|
36
|
-
"description": "是否显示圆角, 默认值: `true`"
|
37
|
-
},
|
38
|
-
"van-action-sheet/overlay": {
|
39
|
-
"type": "boolean",
|
40
|
-
"description": "是否显示遮罩层, 默认值: `true`"
|
41
|
-
},
|
42
|
-
"van-action-sheet/lock-scroll": {
|
43
|
-
"type": "boolean",
|
44
|
-
"description": "是否锁定背景滚动, 默认值: `true`"
|
45
|
-
},
|
46
|
-
"van-action-sheet/lazy-render": {
|
47
|
-
"type": "boolean",
|
48
|
-
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
49
|
-
},
|
50
|
-
"van-action-sheet/close-on-popstate": {
|
51
|
-
"type": "boolean",
|
52
|
-
"description": "是否在页面回退时自动关闭, 默认值: `false`"
|
53
|
-
},
|
54
|
-
"van-action-sheet/close-on-click-action": {
|
55
|
-
"type": "boolean",
|
56
|
-
"description": "是否在点击选项后关闭, 默认值: `false`"
|
57
|
-
},
|
58
|
-
"van-action-sheet/close-on-click-overlay": {
|
59
|
-
"type": "boolean",
|
60
|
-
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
61
|
-
},
|
62
|
-
"van-action-sheet/safe-area-inset-bottom": {
|
63
|
-
"type": "boolean",
|
64
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
65
|
-
},
|
66
|
-
"van-action-sheet/get-container": {
|
67
|
-
"type": "string | () => Element",
|
68
|
-
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
69
|
-
},
|
70
2
|
"van-address-edit/area-list": {
|
71
3
|
"type": "object",
|
72
4
|
"description": "地区列表, 默认值: -"
|
@@ -155,6 +87,58 @@
|
|
155
87
|
"type": "(key, val) => string",
|
156
88
|
"description": "自定义校验函数, 默认值: -"
|
157
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
|
+
},
|
158
142
|
"van-address-list/v-model": {
|
159
143
|
"type": "string",
|
160
144
|
"description": "当前选中地址的 id, 默认值: -"
|
@@ -183,142 +167,74 @@
|
|
183
167
|
"type": "string",
|
184
168
|
"description": "默认地址标签文字, 默认值: -"
|
185
169
|
},
|
186
|
-
"van-
|
187
|
-
"type": "number | string",
|
188
|
-
"description": "徽标内容, 默认值: -"
|
189
|
-
},
|
190
|
-
"van-badge/color": {
|
191
|
-
"type": "string",
|
192
|
-
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
193
|
-
},
|
194
|
-
"van-badge/dot": {
|
170
|
+
"van-action-sheet/v-model (value)": {
|
195
171
|
"type": "boolean",
|
196
|
-
"description": "
|
172
|
+
"description": "是否显示动作面板, 默认值: `false`"
|
197
173
|
},
|
198
|
-
"van-
|
199
|
-
"type": "
|
200
|
-
"description": "
|
174
|
+
"van-action-sheet/actions": {
|
175
|
+
"type": "Action[]",
|
176
|
+
"description": "面板选项列表, 默认值: `[]`"
|
201
177
|
},
|
202
|
-
"van-
|
178
|
+
"van-action-sheet/title": {
|
203
179
|
"type": "string",
|
204
|
-
"description": "
|
180
|
+
"description": "顶部标题, 默认值: -"
|
205
181
|
},
|
206
|
-
"van-
|
182
|
+
"van-action-sheet/cancel-text": {
|
207
183
|
"type": "string",
|
208
|
-
"description": "
|
184
|
+
"description": "取消按钮文字, 默认值: -"
|
209
185
|
},
|
210
|
-
"van-
|
186
|
+
"van-action-sheet/description": {
|
211
187
|
"type": "string",
|
212
|
-
"description": "
|
213
|
-
},
|
214
|
-
"van-calendar/min-date": {
|
215
|
-
"type": "Date",
|
216
|
-
"description": "可选择的最小日期, 默认值: 当前日期"
|
217
|
-
},
|
218
|
-
"van-calendar/max-date": {
|
219
|
-
"type": "Date",
|
220
|
-
"description": "可选择的最大日期, 默认值: 当前日期的六个月后"
|
221
|
-
},
|
222
|
-
"van-calendar/default-date": {
|
223
|
-
"type": "Date | Date[] \\",
|
224
|
-
"description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择, 默认值: null_"
|
225
|
-
},
|
226
|
-
"van-calendar/row-height": {
|
227
|
-
"type": "number | string",
|
228
|
-
"description": "日期行高, 默认值: `64`"
|
229
|
-
},
|
230
|
-
"van-calendar/formatter": {
|
231
|
-
"type": "(day: Day) => Day",
|
232
|
-
"description": "日期格式化函数, 默认值: -"
|
233
|
-
},
|
234
|
-
"van-calendar/poppable": {
|
235
|
-
"type": "boolean",
|
236
|
-
"description": "是否以弹层的形式展示日历, 默认值: `true`"
|
188
|
+
"description": "选项上方的描述信息, 默认值: -"
|
237
189
|
},
|
238
|
-
"van-
|
190
|
+
"van-action-sheet/closeable": {
|
239
191
|
"type": "boolean",
|
240
|
-
"description": "
|
192
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
241
193
|
},
|
242
|
-
"van-
|
243
|
-
"type": "
|
244
|
-
"description": "
|
194
|
+
"van-action-sheet/close-icon": {
|
195
|
+
"type": "string",
|
196
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
245
197
|
},
|
246
|
-
"van-
|
247
|
-
"type": "
|
248
|
-
"description": "
|
198
|
+
"van-action-sheet/duration": {
|
199
|
+
"type": "number | string",
|
200
|
+
"description": "动画时长,单位秒, 默认值: `0.3`"
|
249
201
|
},
|
250
|
-
"van-
|
202
|
+
"van-action-sheet/round": {
|
251
203
|
"type": "boolean",
|
252
|
-
"description": "
|
204
|
+
"description": "是否显示圆角, 默认值: `true`"
|
253
205
|
},
|
254
|
-
"van-
|
206
|
+
"van-action-sheet/overlay": {
|
255
207
|
"type": "boolean",
|
256
|
-
"description": "
|
208
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
257
209
|
},
|
258
|
-
"van-
|
210
|
+
"van-action-sheet/lock-scroll": {
|
259
211
|
"type": "boolean",
|
260
|
-
"description": "
|
261
|
-
},
|
262
|
-
"van-calendar/confirm-text": {
|
263
|
-
"type": "string",
|
264
|
-
"description": "确认按钮的文字, 默认值: `确定`"
|
265
|
-
},
|
266
|
-
"van-calendar/confirm-disabled-text": {
|
267
|
-
"type": "string",
|
268
|
-
"description": "确认按钮处于禁用状态时的文字, 默认值: `确定`"
|
269
|
-
},
|
270
|
-
"van-calendar/first-day-of-week": {
|
271
|
-
"type": "0-6",
|
272
|
-
"description": "设置周起始日, 默认值: `0`"
|
212
|
+
"description": "是否锁定背景滚动, 默认值: `true`"
|
273
213
|
},
|
274
|
-
"van-
|
214
|
+
"van-action-sheet/lazy-render": {
|
275
215
|
"type": "boolean",
|
276
|
-
"description": "
|
277
|
-
},
|
278
|
-
"van-poppable/position": {
|
279
|
-
"type": "string",
|
280
|
-
"description": "弹出位置,可选值为 `top` `right` `left`, 默认值: `bottom`"
|
216
|
+
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
281
217
|
},
|
282
|
-
"van-
|
218
|
+
"van-action-sheet/close-on-popstate": {
|
283
219
|
"type": "boolean",
|
284
|
-
"description": "
|
220
|
+
"description": "是否在页面回退时自动关闭, 默认值: `false`"
|
285
221
|
},
|
286
|
-
"van-
|
222
|
+
"van-action-sheet/close-on-click-action": {
|
287
223
|
"type": "boolean",
|
288
|
-
"description": "
|
224
|
+
"description": "是否在点击选项后关闭, 默认值: `false`"
|
289
225
|
},
|
290
|
-
"van-
|
226
|
+
"van-action-sheet/close-on-click-overlay": {
|
291
227
|
"type": "boolean",
|
292
228
|
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
293
229
|
},
|
294
|
-
"van-
|
230
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
295
231
|
"type": "boolean",
|
296
232
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
297
233
|
},
|
298
|
-
"van-
|
234
|
+
"van-action-sheet/get-container": {
|
299
235
|
"type": "string | () => Element",
|
300
236
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
301
237
|
},
|
302
|
-
"van-range/max-range": {
|
303
|
-
"type": "number | string",
|
304
|
-
"description": "日期区间最多可选天数, 默认值: 无限制"
|
305
|
-
},
|
306
|
-
"van-range/range-prompt": {
|
307
|
-
"type": "string",
|
308
|
-
"description": "范围选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
309
|
-
},
|
310
|
-
"van-range/allow-same-day": {
|
311
|
-
"type": "boolean",
|
312
|
-
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
313
|
-
},
|
314
|
-
"van-multiple/max-range": {
|
315
|
-
"type": "number | string",
|
316
|
-
"description": "日期最多可选天数, 默认值: 无限制"
|
317
|
-
},
|
318
|
-
"van-multiple/range-prompt": {
|
319
|
-
"type": "string",
|
320
|
-
"description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
321
|
-
},
|
322
238
|
"van-button/type": {
|
323
239
|
"type": "string",
|
324
240
|
"description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
@@ -407,85 +323,141 @@
|
|
407
323
|
"type": "boolean",
|
408
324
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
409
325
|
},
|
410
|
-
"van-
|
326
|
+
"van-calendar/type": {
|
411
327
|
"type": "string",
|
412
|
-
"description": "
|
328
|
+
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
|
413
329
|
},
|
414
|
-
"van-
|
330
|
+
"van-calendar/title": {
|
415
331
|
"type": "string",
|
416
|
-
"description": "
|
332
|
+
"description": "日历标题, 默认值: `日期选择`"
|
417
333
|
},
|
418
|
-
"van-
|
334
|
+
"van-calendar/color": {
|
419
335
|
"type": "string",
|
420
|
-
"description": "
|
336
|
+
"description": "主题色,对底部按钮和选中日期生效, 默认值: `#ee0a24`"
|
421
337
|
},
|
422
|
-
"van-
|
338
|
+
"van-calendar/min-date": {
|
339
|
+
"type": "Date",
|
340
|
+
"description": "可选择的最小日期, 默认值: 当前日期"
|
341
|
+
},
|
342
|
+
"van-calendar/max-date": {
|
343
|
+
"type": "Date",
|
344
|
+
"description": "可选择的最大日期, 默认值: 当前日期的六个月后"
|
345
|
+
},
|
346
|
+
"van-calendar/default-date": {
|
347
|
+
"type": "Date | Date[] \\",
|
348
|
+
"description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择, 默认值: null_"
|
349
|
+
},
|
350
|
+
"van-calendar/row-height": {
|
351
|
+
"type": "number | string",
|
352
|
+
"description": "日期行高, 默认值: `64`"
|
353
|
+
},
|
354
|
+
"van-calendar/formatter": {
|
355
|
+
"type": "(day: Day) => Day",
|
356
|
+
"description": "日期格式化函数, 默认值: -"
|
357
|
+
},
|
358
|
+
"van-calendar/poppable": {
|
359
|
+
"type": "boolean",
|
360
|
+
"description": "是否以弹层的形式展示日历, 默认值: `true`"
|
361
|
+
},
|
362
|
+
"van-calendar/lazy-render": {
|
363
|
+
"type": "boolean",
|
364
|
+
"description": "是否只渲染可视区域的内容, 默认值: `true`"
|
365
|
+
},
|
366
|
+
"van-calendar/show-mark": {
|
367
|
+
"type": "boolean",
|
368
|
+
"description": "是否显示月份背景水印, 默认值: `true`"
|
369
|
+
},
|
370
|
+
"van-calendar/show-title": {
|
371
|
+
"type": "boolean",
|
372
|
+
"description": "是否展示日历标题, 默认值: `true`"
|
373
|
+
},
|
374
|
+
"van-calendar/show-subtitle": {
|
375
|
+
"type": "boolean",
|
376
|
+
"description": "是否展示日历副标题(年月), 默认值: `true`"
|
377
|
+
},
|
378
|
+
"van-calendar/show-confirm": {
|
379
|
+
"type": "boolean",
|
380
|
+
"description": "是否展示确认按钮, 默认值: `true`"
|
381
|
+
},
|
382
|
+
"van-calendar/readonly": {
|
383
|
+
"type": "boolean",
|
384
|
+
"description": "是否为只读状态,只读状态下不能选择日期, 默认值: `false`"
|
385
|
+
},
|
386
|
+
"van-calendar/confirm-text": {
|
423
387
|
"type": "string",
|
424
|
-
"description": "
|
388
|
+
"description": "确认按钮的文字, 默认值: `确定`"
|
425
389
|
},
|
426
|
-
"van-
|
427
|
-
"type": "
|
428
|
-
"description": "
|
390
|
+
"van-calendar/confirm-disabled-text": {
|
391
|
+
"type": "string",
|
392
|
+
"description": "确认按钮处于禁用状态时的文字, 默认值: `确定`"
|
429
393
|
},
|
430
|
-
"van-
|
431
|
-
"type": "
|
432
|
-
"description": "
|
394
|
+
"van-calendar/first-day-of-week": {
|
395
|
+
"type": "0-6",
|
396
|
+
"description": "设置周起始日, 默认值: `0`"
|
397
|
+
},
|
398
|
+
"van-poppable/v-model": {
|
399
|
+
"type": "boolean",
|
400
|
+
"description": "是否显示日历弹窗, 默认值: `false`"
|
433
401
|
},
|
434
|
-
"van-
|
402
|
+
"van-poppable/position": {
|
403
|
+
"type": "string",
|
404
|
+
"description": "弹出位置,可选值为 `top` `right` `left`, 默认值: `bottom`"
|
405
|
+
},
|
406
|
+
"van-poppable/round": {
|
435
407
|
"type": "boolean",
|
436
|
-
"description": "
|
408
|
+
"description": "是否显示圆角弹窗, 默认值: `true`"
|
437
409
|
},
|
438
|
-
"van-
|
410
|
+
"van-poppable/close-on-popstate": {
|
439
411
|
"type": "boolean",
|
440
|
-
"description": "
|
412
|
+
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
441
413
|
},
|
442
|
-
"van-
|
443
|
-
"type": "
|
444
|
-
"description": "
|
414
|
+
"van-poppable/close-on-click-overlay": {
|
415
|
+
"type": "boolean",
|
416
|
+
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
445
417
|
},
|
446
|
-
"van-
|
447
|
-
"type": "
|
448
|
-
"description": "
|
418
|
+
"van-poppable/safe-area-inset-bottom": {
|
419
|
+
"type": "boolean",
|
420
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
449
421
|
},
|
450
|
-
"van-
|
451
|
-
"type": "
|
452
|
-
"description": "
|
422
|
+
"van-poppable/get-container": {
|
423
|
+
"type": "string | () => Element",
|
424
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
453
425
|
},
|
454
|
-
"van-
|
426
|
+
"van-range/max-range": {
|
455
427
|
"type": "number | string",
|
456
|
-
"description": "
|
457
|
-
},
|
458
|
-
"van-area/is-oversea-code": {
|
459
|
-
"type": "() => boolean",
|
460
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
428
|
+
"description": "日期区间最多可选天数, 默认值: 无限制"
|
461
429
|
},
|
462
|
-
"van-
|
430
|
+
"van-range/range-prompt": {
|
463
431
|
"type": "string",
|
464
|
-
"description": "
|
432
|
+
"description": "范围选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
465
433
|
},
|
466
|
-
"van-
|
467
|
-
"type": "
|
468
|
-
"description": "
|
434
|
+
"van-range/allow-same-day": {
|
435
|
+
"type": "boolean",
|
436
|
+
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
469
437
|
},
|
470
|
-
"van-
|
471
|
-
"type": "
|
472
|
-
"description": "
|
438
|
+
"van-multiple/max-range": {
|
439
|
+
"type": "number | string",
|
440
|
+
"description": "日期最多可选天数, 默认值: 无限制"
|
473
441
|
},
|
474
|
-
"van-
|
442
|
+
"van-multiple/range-prompt": {
|
475
443
|
"type": "string",
|
476
|
-
"description": "
|
444
|
+
"description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
477
445
|
},
|
478
|
-
"van-
|
446
|
+
"van-badge/content": {
|
447
|
+
"type": "number | string",
|
448
|
+
"description": "徽标内容, 默认值: -"
|
449
|
+
},
|
450
|
+
"van-badge/color": {
|
479
451
|
"type": "string",
|
480
|
-
"description": "
|
452
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
481
453
|
},
|
482
|
-
"van-
|
454
|
+
"van-badge/dot": {
|
483
455
|
"type": "boolean",
|
484
|
-
"description": "
|
456
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
485
457
|
},
|
486
|
-
"van-
|
487
|
-
"type": "
|
488
|
-
"description": "
|
458
|
+
"van-badge/max": {
|
459
|
+
"type": "number | string",
|
460
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
489
461
|
},
|
490
462
|
"van-card/thumb": {
|
491
463
|
"type": "string",
|
@@ -531,6 +503,34 @@
|
|
531
503
|
"type": "boolean",
|
532
504
|
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
533
505
|
},
|
506
|
+
"van-cascader/title": {
|
507
|
+
"type": "string",
|
508
|
+
"description": "顶部标题, 默认值: -"
|
509
|
+
},
|
510
|
+
"van-cascader/value": {
|
511
|
+
"type": "string | number",
|
512
|
+
"description": "选中项的值, 默认值: -"
|
513
|
+
},
|
514
|
+
"van-cascader/options": {
|
515
|
+
"type": "Option[]",
|
516
|
+
"description": "可选项数据源, 默认值: `[]`"
|
517
|
+
},
|
518
|
+
"van-cascader/placeholder": {
|
519
|
+
"type": "string",
|
520
|
+
"description": "未选中时的提示文案, 默认值: `请选择`"
|
521
|
+
},
|
522
|
+
"van-cascader/active-color": {
|
523
|
+
"type": "string",
|
524
|
+
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
525
|
+
},
|
526
|
+
"van-cascader/closeable": {
|
527
|
+
"type": "boolean",
|
528
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
529
|
+
},
|
530
|
+
"van-cascader/field-names": {
|
531
|
+
"type": "object",
|
532
|
+
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
533
|
+
},
|
534
534
|
"van-cell-group/title": {
|
535
535
|
"type": "string",
|
536
536
|
"description": "分组标题, 默认值: `-`"
|
@@ -3083,6 +3083,82 @@
|
|
3083
3083
|
"type": "any",
|
3084
3084
|
"description": "关闭时的值, 默认值: `false`"
|
3085
3085
|
},
|
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
|
+
},
|
3086
3162
|
"van-tabs/v-model": {
|
3087
3163
|
"type": "number | string",
|
3088
3164
|
"description": "绑定当前选中标签的标识符, 默认值: `0`"
|
@@ -3203,82 +3279,6 @@
|
|
3203
3279
|
"type": "any",
|
3204
3280
|
"description": "自定义标题类名, 默认值: -"
|
3205
3281
|
},
|
3206
|
-
"van-tabbar/v-model": {
|
3207
|
-
"type": "number | string",
|
3208
|
-
"description": "当前选中标签的名称或索引值, 默认值: `0`"
|
3209
|
-
},
|
3210
|
-
"van-tabbar/fixed": {
|
3211
|
-
"type": "boolean",
|
3212
|
-
"description": "是否固定在底部, 默认值: `true`"
|
3213
|
-
},
|
3214
|
-
"van-tabbar/border": {
|
3215
|
-
"type": "boolean",
|
3216
|
-
"description": "是否显示外边框, 默认值: `true`"
|
3217
|
-
},
|
3218
|
-
"van-tabbar/z-index": {
|
3219
|
-
"type": "number | string",
|
3220
|
-
"description": "元素 z-index, 默认值: `1`"
|
3221
|
-
},
|
3222
|
-
"van-tabbar/active-color": {
|
3223
|
-
"type": "string",
|
3224
|
-
"description": "选中标签的颜色, 默认值: `#1989fa`"
|
3225
|
-
},
|
3226
|
-
"van-tabbar/inactive-color": {
|
3227
|
-
"type": "string",
|
3228
|
-
"description": "未选中标签的颜色, 默认值: `#7d7e80`"
|
3229
|
-
},
|
3230
|
-
"van-tabbar/route": {
|
3231
|
-
"type": "boolean",
|
3232
|
-
"description": "是否开启路由模式, 默认值: `false`"
|
3233
|
-
},
|
3234
|
-
"van-tabbar/placeholder": {
|
3235
|
-
"type": "boolean",
|
3236
|
-
"description": "固定在底部时,是否在标签位置生成一个等高的占位元素, 默认值: `false`"
|
3237
|
-
},
|
3238
|
-
"van-tabbar/safe-area-inset-bottom": {
|
3239
|
-
"type": "boolean",
|
3240
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启, 默认值: `false`"
|
3241
|
-
},
|
3242
|
-
"van-tabbar/before-change": {
|
3243
|
-
"type": "(name) => boolean | Promise",
|
3244
|
-
"description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise, 默认值: -"
|
3245
|
-
},
|
3246
|
-
"van-tabbar-item/name": {
|
3247
|
-
"type": "number | string",
|
3248
|
-
"description": "标签名称,作为匹配的标识符, 默认值: 当前标签的索引值"
|
3249
|
-
},
|
3250
|
-
"van-tabbar-item/icon": {
|
3251
|
-
"type": "string",
|
3252
|
-
"description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
3253
|
-
},
|
3254
|
-
"van-tabbar-item/icon-prefix": {
|
3255
|
-
"type": "string",
|
3256
|
-
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
3257
|
-
},
|
3258
|
-
"van-tabbar-item/dot": {
|
3259
|
-
"type": "boolean",
|
3260
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
3261
|
-
},
|
3262
|
-
"van-tabbar-item/badge": {
|
3263
|
-
"type": "number | string",
|
3264
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
3265
|
-
},
|
3266
|
-
"van-tabbar-item/info": {
|
3267
|
-
"type": "number | string",
|
3268
|
-
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
3269
|
-
},
|
3270
|
-
"van-tabbar-item/url": {
|
3271
|
-
"type": "string",
|
3272
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
3273
|
-
},
|
3274
|
-
"van-tabbar-item/to": {
|
3275
|
-
"type": "string | object",
|
3276
|
-
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
3277
|
-
},
|
3278
|
-
"van-tabbar-item/replace": {
|
3279
|
-
"type": "boolean",
|
3280
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
3281
|
-
},
|
3282
3282
|
"van-tag/type": {
|
3283
3283
|
"type": "string",
|
3284
3284
|
"description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
|