vant 3.3.2 → 3.3.5
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/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/pt-BR.d.ts +73 -0
- package/es/locale/lang/pt-BR.js +72 -0
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.less +2 -0
- package/es/uploader/Uploader.js +13 -2
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/pt-BR.d.ts +73 -0
- package/lib/locale/lang/pt-BR.js +77 -0
- package/lib/ssr.js +7 -0
- package/lib/ssr.mjs +1 -0
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.less +2 -0
- package/lib/uploader/Uploader.js +12 -1
- package/lib/vant.cjs.js +12 -2
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +12 -2
- package/lib/vant.es.min.js +12 -2
- package/lib/vant.js +12 -2
- package/lib/vant.min.js +1 -1
- package/package.json +10 -4
- package/vetur/attributes.json +580 -580
- package/vetur/tags.json +207 -207
- package/vetur/web-types.json +1859 -1859
package/vetur/attributes.json
CHANGED
@@ -1,4 +1,87 @@
|
|
1
1
|
{
|
2
|
+
"van-action-sheet/v-model:show": {
|
3
|
+
"type": "boolean",
|
4
|
+
"description": "是否显示动作面板, 默认值: `false`"
|
5
|
+
},
|
6
|
+
"van-action-sheet/actions": {
|
7
|
+
"type": "ActionSheetAction[]",
|
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 可以禁用动画, 默认值: `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/overlay-class": {
|
43
|
+
"type": "string | Array \\",
|
44
|
+
"description": "自定义遮罩层类名, 默认值: object_",
|
45
|
+
"options": [
|
46
|
+
"-"
|
47
|
+
]
|
48
|
+
},
|
49
|
+
"van-action-sheet/overlay-style": {
|
50
|
+
"type": "object",
|
51
|
+
"description": "自定义遮罩层样式, 默认值: -"
|
52
|
+
},
|
53
|
+
"van-action-sheet/lock-scroll": {
|
54
|
+
"type": "boolean",
|
55
|
+
"description": "是否锁定背景滚动, 默认值: `true`"
|
56
|
+
},
|
57
|
+
"van-action-sheet/lazy-render": {
|
58
|
+
"type": "boolean",
|
59
|
+
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
60
|
+
},
|
61
|
+
"van-action-sheet/close-on-popstate": {
|
62
|
+
"type": "boolean",
|
63
|
+
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
64
|
+
},
|
65
|
+
"van-action-sheet/close-on-click-action": {
|
66
|
+
"type": "boolean",
|
67
|
+
"description": "是否在点击选项后关闭, 默认值: `false`"
|
68
|
+
},
|
69
|
+
"van-action-sheet/close-on-click-overlay": {
|
70
|
+
"type": "boolean",
|
71
|
+
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
72
|
+
},
|
73
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
74
|
+
"type": "boolean",
|
75
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
76
|
+
},
|
77
|
+
"van-action-sheet/teleport": {
|
78
|
+
"type": "string | Element",
|
79
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
80
|
+
},
|
81
|
+
"van-action-sheet/before-close": {
|
82
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
83
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
84
|
+
},
|
2
85
|
"van-action-bar/safe-area-inset-bottom": {
|
3
86
|
"type": "boolean",
|
4
87
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
@@ -82,6 +165,34 @@
|
|
82
165
|
"type": "boolean",
|
83
166
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
84
167
|
},
|
168
|
+
"van-address-list/v-model": {
|
169
|
+
"type": "string",
|
170
|
+
"description": "当前选中地址的 id, 默认值: -"
|
171
|
+
},
|
172
|
+
"van-address-list/list": {
|
173
|
+
"type": "AddressListAddress[]",
|
174
|
+
"description": "地址列表, 默认值: `[]`"
|
175
|
+
},
|
176
|
+
"van-address-list/disabled-list": {
|
177
|
+
"type": "AddressListAddress[]",
|
178
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
179
|
+
},
|
180
|
+
"van-address-list/disabled-text": {
|
181
|
+
"type": "string",
|
182
|
+
"description": "不可配送提示文案, 默认值: -"
|
183
|
+
},
|
184
|
+
"van-address-list/switchable": {
|
185
|
+
"type": "boolean",
|
186
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
187
|
+
},
|
188
|
+
"van-address-list/add-button-text": {
|
189
|
+
"type": "string",
|
190
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
191
|
+
},
|
192
|
+
"van-address-list/default-tag-text": {
|
193
|
+
"type": "string",
|
194
|
+
"description": "默认地址标签文字, 默认值: -"
|
195
|
+
},
|
85
196
|
"van-address-edit/area-list": {
|
86
197
|
"type": "object",
|
87
198
|
"description": "地区列表, 默认值: -"
|
@@ -170,34 +281,6 @@
|
|
170
281
|
"type": "(key, val) => string",
|
171
282
|
"description": "自定义校验函数, 默认值: -"
|
172
283
|
},
|
173
|
-
"van-address-list/v-model": {
|
174
|
-
"type": "string",
|
175
|
-
"description": "当前选中地址的 id, 默认值: -"
|
176
|
-
},
|
177
|
-
"van-address-list/list": {
|
178
|
-
"type": "AddressListAddress[]",
|
179
|
-
"description": "地址列表, 默认值: `[]`"
|
180
|
-
},
|
181
|
-
"van-address-list/disabled-list": {
|
182
|
-
"type": "AddressListAddress[]",
|
183
|
-
"description": "不可配送地址列表, 默认值: `[]`"
|
184
|
-
},
|
185
|
-
"van-address-list/disabled-text": {
|
186
|
-
"type": "string",
|
187
|
-
"description": "不可配送提示文案, 默认值: -"
|
188
|
-
},
|
189
|
-
"van-address-list/switchable": {
|
190
|
-
"type": "boolean",
|
191
|
-
"description": "是否允许切换地址, 默认值: `true`"
|
192
|
-
},
|
193
|
-
"van-address-list/add-button-text": {
|
194
|
-
"type": "string",
|
195
|
-
"description": "底部按钮文字, 默认值: `新增地址`"
|
196
|
-
},
|
197
|
-
"van-address-list/default-tag-text": {
|
198
|
-
"type": "string",
|
199
|
-
"description": "默认地址标签文字, 默认值: -"
|
200
|
-
},
|
201
284
|
"van-area/value": {
|
202
285
|
"type": "string",
|
203
286
|
"description": "当前选中项对应的地区码, 默认值: -"
|
@@ -250,89 +333,6 @@
|
|
250
333
|
"type": "() => boolean",
|
251
334
|
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
252
335
|
},
|
253
|
-
"van-action-sheet/v-model:show": {
|
254
|
-
"type": "boolean",
|
255
|
-
"description": "是否显示动作面板, 默认值: `false`"
|
256
|
-
},
|
257
|
-
"van-action-sheet/actions": {
|
258
|
-
"type": "ActionSheetAction[]",
|
259
|
-
"description": "面板选项列表, 默认值: `[]`"
|
260
|
-
},
|
261
|
-
"van-action-sheet/title": {
|
262
|
-
"type": "string",
|
263
|
-
"description": "顶部标题, 默认值: -"
|
264
|
-
},
|
265
|
-
"van-action-sheet/cancel-text": {
|
266
|
-
"type": "string",
|
267
|
-
"description": "取消按钮文字, 默认值: -"
|
268
|
-
},
|
269
|
-
"van-action-sheet/description": {
|
270
|
-
"type": "string",
|
271
|
-
"description": "选项上方的描述信息, 默认值: -"
|
272
|
-
},
|
273
|
-
"van-action-sheet/closeable": {
|
274
|
-
"type": "boolean",
|
275
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
276
|
-
},
|
277
|
-
"van-action-sheet/close-icon": {
|
278
|
-
"type": "string",
|
279
|
-
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
280
|
-
},
|
281
|
-
"van-action-sheet/duration": {
|
282
|
-
"type": "number | string",
|
283
|
-
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
284
|
-
},
|
285
|
-
"van-action-sheet/round": {
|
286
|
-
"type": "boolean",
|
287
|
-
"description": "是否显示圆角, 默认值: `true`"
|
288
|
-
},
|
289
|
-
"van-action-sheet/overlay": {
|
290
|
-
"type": "boolean",
|
291
|
-
"description": "是否显示遮罩层, 默认值: `true`"
|
292
|
-
},
|
293
|
-
"van-action-sheet/overlay-class": {
|
294
|
-
"type": "string | Array \\",
|
295
|
-
"description": "自定义遮罩层类名, 默认值: object_",
|
296
|
-
"options": [
|
297
|
-
"-"
|
298
|
-
]
|
299
|
-
},
|
300
|
-
"van-action-sheet/overlay-style": {
|
301
|
-
"type": "object",
|
302
|
-
"description": "自定义遮罩层样式, 默认值: -"
|
303
|
-
},
|
304
|
-
"van-action-sheet/lock-scroll": {
|
305
|
-
"type": "boolean",
|
306
|
-
"description": "是否锁定背景滚动, 默认值: `true`"
|
307
|
-
},
|
308
|
-
"van-action-sheet/lazy-render": {
|
309
|
-
"type": "boolean",
|
310
|
-
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
311
|
-
},
|
312
|
-
"van-action-sheet/close-on-popstate": {
|
313
|
-
"type": "boolean",
|
314
|
-
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
315
|
-
},
|
316
|
-
"van-action-sheet/close-on-click-action": {
|
317
|
-
"type": "boolean",
|
318
|
-
"description": "是否在点击选项后关闭, 默认值: `false`"
|
319
|
-
},
|
320
|
-
"van-action-sheet/close-on-click-overlay": {
|
321
|
-
"type": "boolean",
|
322
|
-
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
323
|
-
},
|
324
|
-
"van-action-sheet/safe-area-inset-bottom": {
|
325
|
-
"type": "boolean",
|
326
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
327
|
-
},
|
328
|
-
"van-action-sheet/teleport": {
|
329
|
-
"type": "string | Element",
|
330
|
-
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
331
|
-
},
|
332
|
-
"van-action-sheet/before-close": {
|
333
|
-
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
334
|
-
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
335
|
-
},
|
336
336
|
"van-badge/content": {
|
337
337
|
"type": "number | string",
|
338
338
|
"description": "徽标内容, 默认值: -"
|
@@ -448,38 +448,82 @@
|
|
448
448
|
"type": "boolean",
|
449
449
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
450
450
|
},
|
451
|
-
"van-
|
451
|
+
"van-card/thumb": {
|
452
452
|
"type": "string",
|
453
|
-
"description": "
|
453
|
+
"description": "左侧图片 URL, 默认值: -"
|
454
454
|
},
|
455
|
-
"van-
|
455
|
+
"van-card/title": {
|
456
456
|
"type": "string",
|
457
|
-
"description": "
|
457
|
+
"description": "标题, 默认值: -"
|
458
458
|
},
|
459
|
-
"van-
|
459
|
+
"van-card/desc": {
|
460
460
|
"type": "string",
|
461
|
-
"description": "
|
462
|
-
},
|
463
|
-
"van-calendar/min-date": {
|
464
|
-
"type": "Date",
|
465
|
-
"description": "可选择的最小日期, 默认值: 当前日期"
|
466
|
-
},
|
467
|
-
"van-calendar/max-date": {
|
468
|
-
"type": "Date",
|
469
|
-
"description": "可选择的最大日期, 默认值: 当前日期的六个月后"
|
461
|
+
"description": "描述, 默认值: -"
|
470
462
|
},
|
471
|
-
"van-
|
472
|
-
"type": "
|
473
|
-
"description": "
|
474
|
-
"options": [
|
475
|
-
"今天"
|
476
|
-
]
|
463
|
+
"van-card/tag": {
|
464
|
+
"type": "string",
|
465
|
+
"description": "图片角标, 默认值: -"
|
477
466
|
},
|
478
|
-
"van-
|
467
|
+
"van-card/num": {
|
479
468
|
"type": "number | string",
|
480
|
-
"description": "
|
469
|
+
"description": "商品数量, 默认值: -"
|
481
470
|
},
|
482
|
-
"van-
|
471
|
+
"van-card/price": {
|
472
|
+
"type": "number | string",
|
473
|
+
"description": "商品价格, 默认值: -"
|
474
|
+
},
|
475
|
+
"van-card/origin-price": {
|
476
|
+
"type": "number | string",
|
477
|
+
"description": "商品划线原价, 默认值: -"
|
478
|
+
},
|
479
|
+
"van-card/centered": {
|
480
|
+
"type": "boolean",
|
481
|
+
"description": "内容是否垂直居中, 默认值: `false`"
|
482
|
+
},
|
483
|
+
"van-card/currency": {
|
484
|
+
"type": "string",
|
485
|
+
"description": "货币符号, 默认值: `¥`"
|
486
|
+
},
|
487
|
+
"van-card/thumb-link": {
|
488
|
+
"type": "string",
|
489
|
+
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
490
|
+
},
|
491
|
+
"van-card/lazy-load": {
|
492
|
+
"type": "boolean",
|
493
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
494
|
+
},
|
495
|
+
"van-calendar/type": {
|
496
|
+
"type": "string",
|
497
|
+
"description": "选择类型:<br>`single` 表示选择单个日期,<br>`multiple` 表示选择多个日期,<br>`range` 表示选择日期区间, 默认值: `single`"
|
498
|
+
},
|
499
|
+
"van-calendar/title": {
|
500
|
+
"type": "string",
|
501
|
+
"description": "日历标题, 默认值: `日期选择`"
|
502
|
+
},
|
503
|
+
"van-calendar/color": {
|
504
|
+
"type": "string",
|
505
|
+
"description": "主题色,对底部按钮和选中日期生效, 默认值: `#ee0a24`"
|
506
|
+
},
|
507
|
+
"van-calendar/min-date": {
|
508
|
+
"type": "Date",
|
509
|
+
"description": "可选择的最小日期, 默认值: 当前日期"
|
510
|
+
},
|
511
|
+
"van-calendar/max-date": {
|
512
|
+
"type": "Date",
|
513
|
+
"description": "可选择的最大日期, 默认值: 当前日期的六个月后"
|
514
|
+
},
|
515
|
+
"van-calendar/default-date": {
|
516
|
+
"type": "Date | Date[] \\",
|
517
|
+
"description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择, 默认值: null_",
|
518
|
+
"options": [
|
519
|
+
"今天"
|
520
|
+
]
|
521
|
+
},
|
522
|
+
"van-calendar/row-height": {
|
523
|
+
"type": "number | string",
|
524
|
+
"description": "日期行高, 默认值: `64`"
|
525
|
+
},
|
526
|
+
"van-calendar/formatter": {
|
483
527
|
"type": "(day: Day) => Day",
|
484
528
|
"description": "日期格式化函数, 默认值: -"
|
485
529
|
},
|
@@ -567,50 +611,6 @@
|
|
567
611
|
"type": "boolean",
|
568
612
|
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
569
613
|
},
|
570
|
-
"van-card/thumb": {
|
571
|
-
"type": "string",
|
572
|
-
"description": "左侧图片 URL, 默认值: -"
|
573
|
-
},
|
574
|
-
"van-card/title": {
|
575
|
-
"type": "string",
|
576
|
-
"description": "标题, 默认值: -"
|
577
|
-
},
|
578
|
-
"van-card/desc": {
|
579
|
-
"type": "string",
|
580
|
-
"description": "描述, 默认值: -"
|
581
|
-
},
|
582
|
-
"van-card/tag": {
|
583
|
-
"type": "string",
|
584
|
-
"description": "图片角标, 默认值: -"
|
585
|
-
},
|
586
|
-
"van-card/num": {
|
587
|
-
"type": "number | string",
|
588
|
-
"description": "商品数量, 默认值: -"
|
589
|
-
},
|
590
|
-
"van-card/price": {
|
591
|
-
"type": "number | string",
|
592
|
-
"description": "商品价格, 默认值: -"
|
593
|
-
},
|
594
|
-
"van-card/origin-price": {
|
595
|
-
"type": "number | string",
|
596
|
-
"description": "商品划线原价, 默认值: -"
|
597
|
-
},
|
598
|
-
"van-card/centered": {
|
599
|
-
"type": "boolean",
|
600
|
-
"description": "内容是否垂直居中, 默认值: `false`"
|
601
|
-
},
|
602
|
-
"van-card/currency": {
|
603
|
-
"type": "string",
|
604
|
-
"description": "货币符号, 默认值: `¥`"
|
605
|
-
},
|
606
|
-
"van-card/thumb-link": {
|
607
|
-
"type": "string",
|
608
|
-
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
609
|
-
},
|
610
|
-
"van-card/lazy-load": {
|
611
|
-
"type": "boolean",
|
612
|
-
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
613
|
-
},
|
614
614
|
"van-cascader/title": {
|
615
615
|
"type": "string",
|
616
616
|
"description": "顶部标题, 默认值: -"
|
@@ -747,66 +747,6 @@
|
|
747
747
|
"-"
|
748
748
|
]
|
749
749
|
},
|
750
|
-
"van-checkbox/v-model": {
|
751
|
-
"type": "boolean",
|
752
|
-
"description": "是否为选中状态, 默认值: `false`"
|
753
|
-
},
|
754
|
-
"van-checkbox/name": {
|
755
|
-
"type": "any",
|
756
|
-
"description": "标识符, 默认值: -"
|
757
|
-
},
|
758
|
-
"van-checkbox/shape": {
|
759
|
-
"type": "string",
|
760
|
-
"description": "形状,可选值为 `square`, 默认值: `round`"
|
761
|
-
},
|
762
|
-
"van-checkbox/disabled": {
|
763
|
-
"type": "boolean",
|
764
|
-
"description": "是否禁用复选框, 默认值: `false`"
|
765
|
-
},
|
766
|
-
"van-checkbox/label-disabled": {
|
767
|
-
"type": "boolean",
|
768
|
-
"description": "是否禁用复选框文本点击, 默认值: `false`"
|
769
|
-
},
|
770
|
-
"van-checkbox/label-position": {
|
771
|
-
"type": "string",
|
772
|
-
"description": "文本位置,可选值为 `left`, 默认值: `right`"
|
773
|
-
},
|
774
|
-
"van-checkbox/icon-size": {
|
775
|
-
"type": "number | string",
|
776
|
-
"description": "图标大小,默认单位为 `px`, 默认值: `20px`"
|
777
|
-
},
|
778
|
-
"van-checkbox/checked-color": {
|
779
|
-
"type": "string",
|
780
|
-
"description": "选中状态颜色, 默认值: `#1989fa`"
|
781
|
-
},
|
782
|
-
"van-checkbox/bind-group": {
|
783
|
-
"type": "boolean",
|
784
|
-
"description": "是否与复选框组绑定, 默认值: `true`"
|
785
|
-
},
|
786
|
-
"van-checkbox-group/v-model": {
|
787
|
-
"type": "any[]",
|
788
|
-
"description": "所有选中项的标识符, 默认值: -"
|
789
|
-
},
|
790
|
-
"van-checkbox-group/disabled": {
|
791
|
-
"type": "boolean",
|
792
|
-
"description": "是否禁用所有复选框, 默认值: `false`"
|
793
|
-
},
|
794
|
-
"van-checkbox-group/max": {
|
795
|
-
"type": "number | string",
|
796
|
-
"description": "最大可选数,`0` 为无限制, 默认值: `0`"
|
797
|
-
},
|
798
|
-
"van-checkbox-group/direction": {
|
799
|
-
"type": "string",
|
800
|
-
"description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
|
801
|
-
},
|
802
|
-
"van-checkbox-group/icon-size": {
|
803
|
-
"type": "number | string",
|
804
|
-
"description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
|
805
|
-
},
|
806
|
-
"van-checkbox-group/checked-color": {
|
807
|
-
"type": "string",
|
808
|
-
"description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
|
809
|
-
},
|
810
750
|
"van-circle/v-model:current-rate": {
|
811
751
|
"type": "number",
|
812
752
|
"description": "当前进度, 默认值: -"
|
@@ -887,6 +827,66 @@
|
|
887
827
|
"type": "string",
|
888
828
|
"description": "自定义元素标签, 默认值: `div`"
|
889
829
|
},
|
830
|
+
"van-checkbox/v-model": {
|
831
|
+
"type": "boolean",
|
832
|
+
"description": "是否为选中状态, 默认值: `false`"
|
833
|
+
},
|
834
|
+
"van-checkbox/name": {
|
835
|
+
"type": "any",
|
836
|
+
"description": "标识符, 默认值: -"
|
837
|
+
},
|
838
|
+
"van-checkbox/shape": {
|
839
|
+
"type": "string",
|
840
|
+
"description": "形状,可选值为 `square`, 默认值: `round`"
|
841
|
+
},
|
842
|
+
"van-checkbox/disabled": {
|
843
|
+
"type": "boolean",
|
844
|
+
"description": "是否禁用复选框, 默认值: `false`"
|
845
|
+
},
|
846
|
+
"van-checkbox/label-disabled": {
|
847
|
+
"type": "boolean",
|
848
|
+
"description": "是否禁用复选框文本点击, 默认值: `false`"
|
849
|
+
},
|
850
|
+
"van-checkbox/label-position": {
|
851
|
+
"type": "string",
|
852
|
+
"description": "文本位置,可选值为 `left`, 默认值: `right`"
|
853
|
+
},
|
854
|
+
"van-checkbox/icon-size": {
|
855
|
+
"type": "number | string",
|
856
|
+
"description": "图标大小,默认单位为 `px`, 默认值: `20px`"
|
857
|
+
},
|
858
|
+
"van-checkbox/checked-color": {
|
859
|
+
"type": "string",
|
860
|
+
"description": "选中状态颜色, 默认值: `#1989fa`"
|
861
|
+
},
|
862
|
+
"van-checkbox/bind-group": {
|
863
|
+
"type": "boolean",
|
864
|
+
"description": "是否与复选框组绑定, 默认值: `true`"
|
865
|
+
},
|
866
|
+
"van-checkbox-group/v-model": {
|
867
|
+
"type": "any[]",
|
868
|
+
"description": "所有选中项的标识符, 默认值: -"
|
869
|
+
},
|
870
|
+
"van-checkbox-group/disabled": {
|
871
|
+
"type": "boolean",
|
872
|
+
"description": "是否禁用所有复选框, 默认值: `false`"
|
873
|
+
},
|
874
|
+
"van-checkbox-group/max": {
|
875
|
+
"type": "number | string",
|
876
|
+
"description": "最大可选数,`0` 为无限制, 默认值: `0`"
|
877
|
+
},
|
878
|
+
"van-checkbox-group/direction": {
|
879
|
+
"type": "string",
|
880
|
+
"description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
|
881
|
+
},
|
882
|
+
"van-checkbox-group/icon-size": {
|
883
|
+
"type": "number | string",
|
884
|
+
"description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
|
885
|
+
},
|
886
|
+
"van-checkbox-group/checked-color": {
|
887
|
+
"type": "string",
|
888
|
+
"description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
|
889
|
+
},
|
890
890
|
"van-collapse/v-model": {
|
891
891
|
"type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
|
892
892
|
"description": "当前展开面板的 name, 默认值: string)[]_",
|
@@ -966,21 +966,21 @@
|
|
966
966
|
"type": "string",
|
967
967
|
"description": "所有图标的类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
968
968
|
},
|
969
|
-
"van-contact-
|
970
|
-
"type": "string",
|
971
|
-
"description": "
|
969
|
+
"van-contact-list/v-model": {
|
970
|
+
"type": "number | string",
|
971
|
+
"description": "当前选中联系人的 id, 默认值: -"
|
972
972
|
},
|
973
|
-
"van-contact-
|
974
|
-
"type": "
|
975
|
-
"description": "
|
973
|
+
"van-contact-list/list": {
|
974
|
+
"type": "Contact[]",
|
975
|
+
"description": "联系人列表, 默认值: `[]`"
|
976
976
|
},
|
977
|
-
"van-contact-
|
977
|
+
"van-contact-list/add-text": {
|
978
978
|
"type": "string",
|
979
|
-
"description": "
|
979
|
+
"description": "新建按钮文案, 默认值: `新建联系人`"
|
980
980
|
},
|
981
|
-
"van-contact-
|
981
|
+
"van-contact-list/default-tag-text": {
|
982
982
|
"type": "string",
|
983
|
-
"description": "
|
983
|
+
"description": "默认联系人标签文案, 默认值: -"
|
984
984
|
},
|
985
985
|
"van-contact-edit/contact-info": {
|
986
986
|
"type": "Contact",
|
@@ -1010,21 +1010,21 @@
|
|
1010
1010
|
"type": "string",
|
1011
1011
|
"description": "默认联系人栏文案, 默认值: -"
|
1012
1012
|
},
|
1013
|
-
"van-contact-
|
1014
|
-
"type": "number | string",
|
1015
|
-
"description": "当前选中联系人的 id, 默认值: -"
|
1016
|
-
},
|
1017
|
-
"van-contact-list/list": {
|
1018
|
-
"type": "Contact[]",
|
1019
|
-
"description": "联系人列表, 默认值: `[]`"
|
1020
|
-
},
|
1021
|
-
"van-contact-list/add-text": {
|
1013
|
+
"van-contact-card/type": {
|
1022
1014
|
"type": "string",
|
1023
|
-
"description": "
|
1015
|
+
"description": "卡片类型,可选值为 `edit`, 默认值: `add`"
|
1024
1016
|
},
|
1025
|
-
"van-contact-
|
1017
|
+
"van-contact-card/name": {
|
1026
1018
|
"type": "string",
|
1027
|
-
"description": "
|
1019
|
+
"description": "联系人姓名, 默认值: -"
|
1020
|
+
},
|
1021
|
+
"van-contact-card/tel": {
|
1022
|
+
"type": "string",
|
1023
|
+
"description": "联系人手机号, 默认值: -"
|
1024
|
+
},
|
1025
|
+
"van-contact-card/add-text": {
|
1026
|
+
"type": "string",
|
1027
|
+
"description": "添加时的文案提示, 默认值: `添加联系人`"
|
1028
1028
|
},
|
1029
1029
|
"van-count-down/time": {
|
1030
1030
|
"type": "number | string",
|
@@ -1214,6 +1214,77 @@
|
|
1214
1214
|
"type": "number | string",
|
1215
1215
|
"description": "可选的最大分钟, 默认值: `59`"
|
1216
1216
|
},
|
1217
|
+
"van-divider/dashed": {
|
1218
|
+
"type": "boolean",
|
1219
|
+
"description": "是否使用虚线, 默认值: `false`"
|
1220
|
+
},
|
1221
|
+
"van-divider/hairline": {
|
1222
|
+
"type": "boolean",
|
1223
|
+
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1224
|
+
},
|
1225
|
+
"van-divider/content-position": {
|
1226
|
+
"type": "string",
|
1227
|
+
"description": "内容位置,可选值为 `left` `right`, 默认值: `center`"
|
1228
|
+
},
|
1229
|
+
"van-dropdown-menu/active-color": {
|
1230
|
+
"type": "string",
|
1231
|
+
"description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
|
1232
|
+
},
|
1233
|
+
"van-dropdown-menu/direction": {
|
1234
|
+
"type": "string",
|
1235
|
+
"description": "菜单展开方向,可选值为`up`, 默认值: `down`"
|
1236
|
+
},
|
1237
|
+
"van-dropdown-menu/z-index": {
|
1238
|
+
"type": "number | string",
|
1239
|
+
"description": "菜单栏 z-index 层级, 默认值: `10`"
|
1240
|
+
},
|
1241
|
+
"van-dropdown-menu/duration": {
|
1242
|
+
"type": "number | string",
|
1243
|
+
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.2`"
|
1244
|
+
},
|
1245
|
+
"van-dropdown-menu/overlay": {
|
1246
|
+
"type": "boolean",
|
1247
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
1248
|
+
},
|
1249
|
+
"van-dropdown-menu/close-on-click-overlay": {
|
1250
|
+
"type": "boolean",
|
1251
|
+
"description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
|
1252
|
+
},
|
1253
|
+
"van-dropdown-menu/close-on-click-outside": {
|
1254
|
+
"type": "boolean",
|
1255
|
+
"description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
|
1256
|
+
},
|
1257
|
+
"van-dropdown-item/v-model": {
|
1258
|
+
"type": "number | string",
|
1259
|
+
"description": "当前选中项对应的 value, 默认值: -"
|
1260
|
+
},
|
1261
|
+
"van-dropdown-item/title": {
|
1262
|
+
"type": "string",
|
1263
|
+
"description": "菜单项标题, 默认值: 当前选中项文字"
|
1264
|
+
},
|
1265
|
+
"van-dropdown-item/options": {
|
1266
|
+
"type": "Option[]",
|
1267
|
+
"description": "选项数组, 默认值: `[]`"
|
1268
|
+
},
|
1269
|
+
"van-dropdown-item/disabled": {
|
1270
|
+
"type": "boolean",
|
1271
|
+
"description": "是否禁用菜单, 默认值: `false`"
|
1272
|
+
},
|
1273
|
+
"van-dropdown-item/lazy-render": {
|
1274
|
+
"type": "boolean",
|
1275
|
+
"description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
|
1276
|
+
},
|
1277
|
+
"van-dropdown-item/title-class": {
|
1278
|
+
"type": "string | Array \\",
|
1279
|
+
"description": "标题额外类名, 默认值: object_",
|
1280
|
+
"options": [
|
1281
|
+
"-"
|
1282
|
+
]
|
1283
|
+
},
|
1284
|
+
"van-dropdown-item/teleport": {
|
1285
|
+
"type": "string | Element",
|
1286
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1287
|
+
},
|
1217
1288
|
"van-dialog/v-model:show": {
|
1218
1289
|
"type": "boolean",
|
1219
1290
|
"description": "是否显示弹窗, 默认值: -"
|
@@ -1306,77 +1377,6 @@
|
|
1306
1377
|
"type": "string | Element",
|
1307
1378
|
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1308
1379
|
},
|
1309
|
-
"van-divider/dashed": {
|
1310
|
-
"type": "boolean",
|
1311
|
-
"description": "是否使用虚线, 默认值: `false`"
|
1312
|
-
},
|
1313
|
-
"van-divider/hairline": {
|
1314
|
-
"type": "boolean",
|
1315
|
-
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1316
|
-
},
|
1317
|
-
"van-divider/content-position": {
|
1318
|
-
"type": "string",
|
1319
|
-
"description": "内容位置,可选值为 `left` `right`, 默认值: `center`"
|
1320
|
-
},
|
1321
|
-
"van-dropdown-menu/active-color": {
|
1322
|
-
"type": "string",
|
1323
|
-
"description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
|
1324
|
-
},
|
1325
|
-
"van-dropdown-menu/direction": {
|
1326
|
-
"type": "string",
|
1327
|
-
"description": "菜单展开方向,可选值为`up`, 默认值: `down`"
|
1328
|
-
},
|
1329
|
-
"van-dropdown-menu/z-index": {
|
1330
|
-
"type": "number | string",
|
1331
|
-
"description": "菜单栏 z-index 层级, 默认值: `10`"
|
1332
|
-
},
|
1333
|
-
"van-dropdown-menu/duration": {
|
1334
|
-
"type": "number | string",
|
1335
|
-
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.2`"
|
1336
|
-
},
|
1337
|
-
"van-dropdown-menu/overlay": {
|
1338
|
-
"type": "boolean",
|
1339
|
-
"description": "是否显示遮罩层, 默认值: `true`"
|
1340
|
-
},
|
1341
|
-
"van-dropdown-menu/close-on-click-overlay": {
|
1342
|
-
"type": "boolean",
|
1343
|
-
"description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
|
1344
|
-
},
|
1345
|
-
"van-dropdown-menu/close-on-click-outside": {
|
1346
|
-
"type": "boolean",
|
1347
|
-
"description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
|
1348
|
-
},
|
1349
|
-
"van-dropdown-item/v-model": {
|
1350
|
-
"type": "number | string",
|
1351
|
-
"description": "当前选中项对应的 value, 默认值: -"
|
1352
|
-
},
|
1353
|
-
"van-dropdown-item/title": {
|
1354
|
-
"type": "string",
|
1355
|
-
"description": "菜单项标题, 默认值: 当前选中项文字"
|
1356
|
-
},
|
1357
|
-
"van-dropdown-item/options": {
|
1358
|
-
"type": "Option[]",
|
1359
|
-
"description": "选项数组, 默认值: `[]`"
|
1360
|
-
},
|
1361
|
-
"van-dropdown-item/disabled": {
|
1362
|
-
"type": "boolean",
|
1363
|
-
"description": "是否禁用菜单, 默认值: `false`"
|
1364
|
-
},
|
1365
|
-
"van-dropdown-item/lazy-render": {
|
1366
|
-
"type": "boolean",
|
1367
|
-
"description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
|
1368
|
-
},
|
1369
|
-
"van-dropdown-item/title-class": {
|
1370
|
-
"type": "string | Array \\",
|
1371
|
-
"description": "标题额外类名, 默认值: object_",
|
1372
|
-
"options": [
|
1373
|
-
"-"
|
1374
|
-
]
|
1375
|
-
},
|
1376
|
-
"van-dropdown-item/teleport": {
|
1377
|
-
"type": "string | Element",
|
1378
|
-
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1379
|
-
},
|
1380
1380
|
"van-empty/image": {
|
1381
1381
|
"type": "string",
|
1382
1382
|
"description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
|
@@ -1692,6 +1692,34 @@
|
|
1692
1692
|
"type": "string",
|
1693
1693
|
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1694
1694
|
},
|
1695
|
+
"van-index-bar/index-list": {
|
1696
|
+
"type": "string[] | number[]",
|
1697
|
+
"description": "索引字符列表, 默认值: `A-Z`"
|
1698
|
+
},
|
1699
|
+
"van-index-bar/z-index": {
|
1700
|
+
"type": "number | string",
|
1701
|
+
"description": "z-index 层级, 默认值: `1`"
|
1702
|
+
},
|
1703
|
+
"van-index-bar/sticky": {
|
1704
|
+
"type": "boolean",
|
1705
|
+
"description": "是否开启锚点自动吸顶, 默认值: `true`"
|
1706
|
+
},
|
1707
|
+
"van-index-bar/sticky-offset-top": {
|
1708
|
+
"type": "number",
|
1709
|
+
"description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
|
1710
|
+
},
|
1711
|
+
"van-index-bar/highlight-color": {
|
1712
|
+
"type": "string",
|
1713
|
+
"description": "索引字符高亮颜色, 默认值: `#ee0a24`"
|
1714
|
+
},
|
1715
|
+
"van-index-bar/teleport": {
|
1716
|
+
"type": "string | Element",
|
1717
|
+
"description": "指定索引栏挂载的节点, 默认值: -"
|
1718
|
+
},
|
1719
|
+
"van-index-anchor/index": {
|
1720
|
+
"type": "number | string",
|
1721
|
+
"description": "索引字符, 默认值: -"
|
1722
|
+
},
|
1695
1723
|
"van-image/src": {
|
1696
1724
|
"type": "string",
|
1697
1725
|
"description": "图片链接, 默认值: -"
|
@@ -1823,34 +1851,6 @@
|
|
1823
1851
|
"type": "string | Element",
|
1824
1852
|
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1825
1853
|
},
|
1826
|
-
"van-index-bar/index-list": {
|
1827
|
-
"type": "string[] | number[]",
|
1828
|
-
"description": "索引字符列表, 默认值: `A-Z`"
|
1829
|
-
},
|
1830
|
-
"van-index-bar/z-index": {
|
1831
|
-
"type": "number | string",
|
1832
|
-
"description": "z-index 层级, 默认值: `1`"
|
1833
|
-
},
|
1834
|
-
"van-index-bar/sticky": {
|
1835
|
-
"type": "boolean",
|
1836
|
-
"description": "是否开启锚点自动吸顶, 默认值: `true`"
|
1837
|
-
},
|
1838
|
-
"van-index-bar/sticky-offset-top": {
|
1839
|
-
"type": "number",
|
1840
|
-
"description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
|
1841
|
-
},
|
1842
|
-
"van-index-bar/highlight-color": {
|
1843
|
-
"type": "string",
|
1844
|
-
"description": "索引字符高亮颜色, 默认值: `#ee0a24`"
|
1845
|
-
},
|
1846
|
-
"van-index-bar/teleport": {
|
1847
|
-
"type": "string | Element",
|
1848
|
-
"description": "指定索引栏挂载的节点, 默认值: -"
|
1849
|
-
},
|
1850
|
-
"van-index-anchor/index": {
|
1851
|
-
"type": "number | string",
|
1852
|
-
"description": "索引字符, 默认值: -"
|
1853
|
-
},
|
1854
1854
|
"van-list/v-model:loading": {
|
1855
1855
|
"type": "boolean",
|
1856
1856
|
"description": "是否处于加载状态,加载过程中不触发 `load` 事件, 默认值: `false`"
|
@@ -2258,6 +2258,42 @@
|
|
2258
2258
|
"type": "string",
|
2259
2259
|
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2260
2260
|
},
|
2261
|
+
"van-progress/percentage": {
|
2262
|
+
"type": "number | string",
|
2263
|
+
"description": "进度百分比, 默认值: `0`"
|
2264
|
+
},
|
2265
|
+
"van-progress/stroke-width": {
|
2266
|
+
"type": "number | string",
|
2267
|
+
"description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
|
2268
|
+
},
|
2269
|
+
"van-progress/color": {
|
2270
|
+
"type": "string",
|
2271
|
+
"description": "进度条颜色, 默认值: `#1989fa`"
|
2272
|
+
},
|
2273
|
+
"van-progress/track-color": {
|
2274
|
+
"type": "string",
|
2275
|
+
"description": "轨道颜色, 默认值: `#e5e5e5`"
|
2276
|
+
},
|
2277
|
+
"van-progress/pivot-text": {
|
2278
|
+
"type": "string",
|
2279
|
+
"description": "进度文字内容, 默认值: 百分比"
|
2280
|
+
},
|
2281
|
+
"van-progress/pivot-color": {
|
2282
|
+
"type": "string",
|
2283
|
+
"description": "进度文字背景色, 默认值: 同进度条颜色"
|
2284
|
+
},
|
2285
|
+
"van-progress/text-color": {
|
2286
|
+
"type": "string",
|
2287
|
+
"description": "进度文字颜色, 默认值: `white`"
|
2288
|
+
},
|
2289
|
+
"van-progress/inactive": {
|
2290
|
+
"type": "boolean",
|
2291
|
+
"description": "是否置灰, 默认值: `false`"
|
2292
|
+
},
|
2293
|
+
"van-progress/show-pivot": {
|
2294
|
+
"type": "boolean",
|
2295
|
+
"description": "是否显示进度文字, 默认值: `true`"
|
2296
|
+
},
|
2261
2297
|
"van-popup/v-model:show": {
|
2262
2298
|
"type": "boolean",
|
2263
2299
|
"description": "是否显示弹出层, 默认值: `false`"
|
@@ -2341,49 +2377,13 @@
|
|
2341
2377
|
"type": "boolean",
|
2342
2378
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
2343
2379
|
},
|
2344
|
-
"van-
|
2345
|
-
"type": "
|
2346
|
-
"description": "
|
2347
|
-
},
|
2348
|
-
"van-progress/stroke-width": {
|
2349
|
-
"type": "number | string",
|
2350
|
-
"description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
|
2380
|
+
"van-pull-refresh/v-model": {
|
2381
|
+
"type": "boolean",
|
2382
|
+
"description": "是否处于加载中状态, 默认值: -"
|
2351
2383
|
},
|
2352
|
-
"van-
|
2384
|
+
"van-pull-refresh/pulling-text": {
|
2353
2385
|
"type": "string",
|
2354
|
-
"description": "
|
2355
|
-
},
|
2356
|
-
"van-progress/track-color": {
|
2357
|
-
"type": "string",
|
2358
|
-
"description": "轨道颜色, 默认值: `#e5e5e5`"
|
2359
|
-
},
|
2360
|
-
"van-progress/pivot-text": {
|
2361
|
-
"type": "string",
|
2362
|
-
"description": "进度文字内容, 默认值: 百分比"
|
2363
|
-
},
|
2364
|
-
"van-progress/pivot-color": {
|
2365
|
-
"type": "string",
|
2366
|
-
"description": "进度文字背景色, 默认值: 同进度条颜色"
|
2367
|
-
},
|
2368
|
-
"van-progress/text-color": {
|
2369
|
-
"type": "string",
|
2370
|
-
"description": "进度文字颜色, 默认值: `white`"
|
2371
|
-
},
|
2372
|
-
"van-progress/inactive": {
|
2373
|
-
"type": "boolean",
|
2374
|
-
"description": "是否置灰, 默认值: `false`"
|
2375
|
-
},
|
2376
|
-
"van-progress/show-pivot": {
|
2377
|
-
"type": "boolean",
|
2378
|
-
"description": "是否显示进度文字, 默认值: `true`"
|
2379
|
-
},
|
2380
|
-
"van-pull-refresh/v-model": {
|
2381
|
-
"type": "boolean",
|
2382
|
-
"description": "是否处于加载中状态, 默认值: -"
|
2383
|
-
},
|
2384
|
-
"van-pull-refresh/pulling-text": {
|
2385
|
-
"type": "string",
|
2386
|
-
"description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
|
2386
|
+
"description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
|
2387
2387
|
},
|
2388
2388
|
"van-pull-refresh/loosing-text": {
|
2389
2389
|
"type": "string",
|
@@ -2465,61 +2465,76 @@
|
|
2465
2465
|
"type": "string",
|
2466
2466
|
"description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
|
2467
2467
|
},
|
2468
|
-
"van-
|
2469
|
-
"type": "
|
2470
|
-
"description": "
|
2471
|
-
},
|
2472
|
-
"van-rate/count": {
|
2473
|
-
"type": "number | string",
|
2474
|
-
"description": "图标总数, 默认值: `5`"
|
2475
|
-
},
|
2476
|
-
"van-rate/size": {
|
2477
|
-
"type": "number | string",
|
2478
|
-
"description": "图标大小,默认单位为`px`, 默认值: `20px`"
|
2468
|
+
"van-share-sheet/v-model:show": {
|
2469
|
+
"type": "boolean",
|
2470
|
+
"description": "是否显示分享面板, 默认值: `false`"
|
2479
2471
|
},
|
2480
|
-
"van-
|
2481
|
-
"type": "
|
2482
|
-
"description": "
|
2472
|
+
"van-share-sheet/options": {
|
2473
|
+
"type": "Option[]",
|
2474
|
+
"description": "分享选项, 默认值: `[]`"
|
2483
2475
|
},
|
2484
|
-
"van-
|
2476
|
+
"van-share-sheet/title": {
|
2485
2477
|
"type": "string",
|
2486
|
-
"description": "
|
2478
|
+
"description": "顶部标题, 默认值: -"
|
2487
2479
|
},
|
2488
|
-
"van-
|
2480
|
+
"van-share-sheet/cancel-text": {
|
2489
2481
|
"type": "string",
|
2490
|
-
"description": "
|
2482
|
+
"description": "取消按钮文字,传入空字符串可以隐藏按钮, 默认值: `'取消'`"
|
2491
2483
|
},
|
2492
|
-
"van-
|
2484
|
+
"van-share-sheet/description": {
|
2493
2485
|
"type": "string",
|
2494
|
-
"description": "
|
2486
|
+
"description": "标题下方的辅助描述文字, 默认值: -"
|
2495
2487
|
},
|
2496
|
-
"van-
|
2497
|
-
"type": "string",
|
2498
|
-
"description": "
|
2488
|
+
"van-share-sheet/duration": {
|
2489
|
+
"type": "number | string",
|
2490
|
+
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
2499
2491
|
},
|
2500
|
-
"van-
|
2501
|
-
"type": "
|
2502
|
-
"description": "
|
2492
|
+
"van-share-sheet/round": {
|
2493
|
+
"type": "boolean",
|
2494
|
+
"description": "是否显示圆角, 默认值: `true`"
|
2503
2495
|
},
|
2504
|
-
"van-
|
2505
|
-
"type": "
|
2506
|
-
"description": "
|
2496
|
+
"van-share-sheet/overlay": {
|
2497
|
+
"type": "boolean",
|
2498
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
2507
2499
|
},
|
2508
|
-
"van-
|
2500
|
+
"van-share-sheet/overlay-class": {
|
2501
|
+
"type": "string | Array \\",
|
2502
|
+
"description": "自定义遮罩层类名, 默认值: object_",
|
2503
|
+
"options": [
|
2504
|
+
"-"
|
2505
|
+
]
|
2506
|
+
},
|
2507
|
+
"van-share-sheet/overlay-style": {
|
2508
|
+
"type": "object",
|
2509
|
+
"description": "自定义遮罩层样式, 默认值: -"
|
2510
|
+
},
|
2511
|
+
"van-share-sheet/lock-scroll": {
|
2509
2512
|
"type": "boolean",
|
2510
|
-
"description": "
|
2513
|
+
"description": "是否锁定背景滚动, 默认值: `true`"
|
2511
2514
|
},
|
2512
|
-
"van-
|
2515
|
+
"van-share-sheet/lazy-render": {
|
2513
2516
|
"type": "boolean",
|
2514
|
-
"description": "
|
2517
|
+
"description": "是否在显示弹层时才渲染内容, 默认值: `true`"
|
2515
2518
|
},
|
2516
|
-
"van-
|
2519
|
+
"van-share-sheet/close-on-popstate": {
|
2517
2520
|
"type": "boolean",
|
2518
|
-
"description": "
|
2521
|
+
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
2519
2522
|
},
|
2520
|
-
"van-
|
2523
|
+
"van-share-sheet/close-on-click-overlay": {
|
2521
2524
|
"type": "boolean",
|
2522
|
-
"description": "
|
2525
|
+
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
2526
|
+
},
|
2527
|
+
"van-share-sheet/safe-area-inset-bottom": {
|
2528
|
+
"type": "boolean",
|
2529
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
2530
|
+
},
|
2531
|
+
"van-share-sheet/teleport": {
|
2532
|
+
"type": "string | Element",
|
2533
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
2534
|
+
},
|
2535
|
+
"van-share-sheet/before-close": {
|
2536
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
2537
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
2523
2538
|
},
|
2524
2539
|
"van-search/v-model": {
|
2525
2540
|
"type": "number | string",
|
@@ -2617,76 +2632,113 @@
|
|
2617
2632
|
"type": "string",
|
2618
2633
|
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
2619
2634
|
},
|
2620
|
-
"van-
|
2621
|
-
"type": "
|
2622
|
-
"description": "
|
2635
|
+
"van-rate/v-model": {
|
2636
|
+
"type": "number",
|
2637
|
+
"description": "当前分值, 默认值: -"
|
2623
2638
|
},
|
2624
|
-
"van-
|
2625
|
-
"type": "
|
2626
|
-
"description": "
|
2639
|
+
"van-rate/count": {
|
2640
|
+
"type": "number | string",
|
2641
|
+
"description": "图标总数, 默认值: `5`"
|
2627
2642
|
},
|
2628
|
-
"van-
|
2629
|
-
"type": "string",
|
2630
|
-
"description": "
|
2643
|
+
"van-rate/size": {
|
2644
|
+
"type": "number | string",
|
2645
|
+
"description": "图标大小,默认单位为`px`, 默认值: `20px`"
|
2631
2646
|
},
|
2632
|
-
"van-
|
2647
|
+
"van-rate/gutter": {
|
2648
|
+
"type": "number | string",
|
2649
|
+
"description": "图标间距,默认单位为`px`, 默认值: `4px`"
|
2650
|
+
},
|
2651
|
+
"van-rate/color": {
|
2633
2652
|
"type": "string",
|
2634
|
-
"description": "
|
2653
|
+
"description": "选中时的颜色, 默认值: `#ee0a24`"
|
2635
2654
|
},
|
2636
|
-
"van-
|
2655
|
+
"van-rate/void-color": {
|
2637
2656
|
"type": "string",
|
2638
|
-
"description": "
|
2657
|
+
"description": "未选中时的颜色, 默认值: `#c8c9cc`"
|
2639
2658
|
},
|
2640
|
-
"van-
|
2641
|
-
"type": "
|
2642
|
-
"description": "
|
2659
|
+
"van-rate/disabled-color": {
|
2660
|
+
"type": "string",
|
2661
|
+
"description": "禁用时的颜色, 默认值: `#c8c9cc`"
|
2643
2662
|
},
|
2644
|
-
"van-
|
2645
|
-
"type": "
|
2646
|
-
"description": "
|
2663
|
+
"van-rate/icon": {
|
2664
|
+
"type": "string",
|
2665
|
+
"description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
|
2647
2666
|
},
|
2648
|
-
"van-
|
2649
|
-
"type": "
|
2650
|
-
"description": "
|
2667
|
+
"van-rate/void-icon": {
|
2668
|
+
"type": "string",
|
2669
|
+
"description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
|
2651
2670
|
},
|
2652
|
-
"van-
|
2653
|
-
"type": "string
|
2654
|
-
"description": "
|
2655
|
-
"options": [
|
2656
|
-
"-"
|
2657
|
-
]
|
2671
|
+
"van-rate/icon-prefix": {
|
2672
|
+
"type": "string",
|
2673
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2658
2674
|
},
|
2659
|
-
"van-
|
2660
|
-
"type": "
|
2661
|
-
"description": "
|
2675
|
+
"van-rate/allow-half": {
|
2676
|
+
"type": "boolean",
|
2677
|
+
"description": "是否允许半选, 默认值: `false`"
|
2662
2678
|
},
|
2663
|
-
"van-
|
2679
|
+
"van-rate/readonly": {
|
2664
2680
|
"type": "boolean",
|
2665
|
-
"description": "
|
2681
|
+
"description": "是否为只读状态,只读状态下无法修改评分, 默认值: `false`"
|
2666
2682
|
},
|
2667
|
-
"van-
|
2683
|
+
"van-rate/disabled": {
|
2668
2684
|
"type": "boolean",
|
2669
|
-
"description": "
|
2685
|
+
"description": "是否禁用评分, 默认值: `false`"
|
2670
2686
|
},
|
2671
|
-
"van-
|
2687
|
+
"van-rate/touchable": {
|
2672
2688
|
"type": "boolean",
|
2673
|
-
"description": "
|
2689
|
+
"description": "是否可以通过滑动手势选择评分, 默认值: `true`"
|
2674
2690
|
},
|
2675
|
-
"van-
|
2691
|
+
"van-slider/v-model": {
|
2692
|
+
"type": "number | [number, number]",
|
2693
|
+
"description": "当前进度百分比,在双滑块模式下为数组格式, 默认值: `0`"
|
2694
|
+
},
|
2695
|
+
"van-slider/max": {
|
2696
|
+
"type": "number | string",
|
2697
|
+
"description": "最大值, 默认值: `100`"
|
2698
|
+
},
|
2699
|
+
"van-slider/min": {
|
2700
|
+
"type": "number | string",
|
2701
|
+
"description": "最小值, 默认值: `0`"
|
2702
|
+
},
|
2703
|
+
"van-slider/step": {
|
2704
|
+
"type": "number | string",
|
2705
|
+
"description": "步长, 默认值: `1`"
|
2706
|
+
},
|
2707
|
+
"van-slider/bar-height": {
|
2708
|
+
"type": "number | string",
|
2709
|
+
"description": "进度条高度,默认单位为 `px`, 默认值: `2px`"
|
2710
|
+
},
|
2711
|
+
"van-slider/button-size": {
|
2712
|
+
"type": "number | string",
|
2713
|
+
"description": "滑块按钮大小,默认单位为 `px`, 默认值: `24px`"
|
2714
|
+
},
|
2715
|
+
"van-slider/active-color": {
|
2716
|
+
"type": "string",
|
2717
|
+
"description": "进度条激活态颜色, 默认值: `#1989fa`"
|
2718
|
+
},
|
2719
|
+
"van-slider/inactive-color": {
|
2720
|
+
"type": "string",
|
2721
|
+
"description": "进度条非激活态颜色, 默认值: `#e5e5e5`"
|
2722
|
+
},
|
2723
|
+
"van-slider/range": {
|
2676
2724
|
"type": "boolean",
|
2677
|
-
"description": "
|
2725
|
+
"description": "是否开启双滑块模式, 默认值: `false`"
|
2678
2726
|
},
|
2679
|
-
"van-
|
2727
|
+
"van-slider/reverse": {
|
2728
|
+
"type": "`false`",
|
2729
|
+
"description": "是否将进度条反转, 默认值: undefined"
|
2730
|
+
},
|
2731
|
+
"van-slider/disabled": {
|
2680
2732
|
"type": "boolean",
|
2681
|
-
"description": "
|
2733
|
+
"description": "是否禁用滑块, 默认值: `false`"
|
2682
2734
|
},
|
2683
|
-
"van-
|
2684
|
-
"type": "
|
2685
|
-
"description": "
|
2735
|
+
"van-slider/readonly": {
|
2736
|
+
"type": "boolean",
|
2737
|
+
"description": "是否为只读状态,只读状态下无法修改滑块的值, 默认值: `false`"
|
2686
2738
|
},
|
2687
|
-
"van-
|
2688
|
-
"type": "
|
2689
|
-
"description": "
|
2739
|
+
"van-slider/vertical": {
|
2740
|
+
"type": "boolean",
|
2741
|
+
"description": "是否垂直展示, 默认值: `false`"
|
2690
2742
|
},
|
2691
2743
|
"van-sidebar/v-model": {
|
2692
2744
|
"type": "number | string",
|
@@ -2763,58 +2815,6 @@
|
|
2763
2815
|
"type": "string",
|
2764
2816
|
"description": "头像占位图形状,可选值为 `square`, 默认值: `round`"
|
2765
2817
|
},
|
2766
|
-
"van-slider/v-model": {
|
2767
|
-
"type": "number | [number, number]",
|
2768
|
-
"description": "当前进度百分比,在双滑块模式下为数组格式, 默认值: `0`"
|
2769
|
-
},
|
2770
|
-
"van-slider/max": {
|
2771
|
-
"type": "number | string",
|
2772
|
-
"description": "最大值, 默认值: `100`"
|
2773
|
-
},
|
2774
|
-
"van-slider/min": {
|
2775
|
-
"type": "number | string",
|
2776
|
-
"description": "最小值, 默认值: `0`"
|
2777
|
-
},
|
2778
|
-
"van-slider/step": {
|
2779
|
-
"type": "number | string",
|
2780
|
-
"description": "步长, 默认值: `1`"
|
2781
|
-
},
|
2782
|
-
"van-slider/bar-height": {
|
2783
|
-
"type": "number | string",
|
2784
|
-
"description": "进度条高度,默认单位为 `px`, 默认值: `2px`"
|
2785
|
-
},
|
2786
|
-
"van-slider/button-size": {
|
2787
|
-
"type": "number | string",
|
2788
|
-
"description": "滑块按钮大小,默认单位为 `px`, 默认值: `24px`"
|
2789
|
-
},
|
2790
|
-
"van-slider/active-color": {
|
2791
|
-
"type": "string",
|
2792
|
-
"description": "进度条激活态颜色, 默认值: `#1989fa`"
|
2793
|
-
},
|
2794
|
-
"van-slider/inactive-color": {
|
2795
|
-
"type": "string",
|
2796
|
-
"description": "进度条非激活态颜色, 默认值: `#e5e5e5`"
|
2797
|
-
},
|
2798
|
-
"van-slider/range": {
|
2799
|
-
"type": "boolean",
|
2800
|
-
"description": "是否开启双滑块模式, 默认值: `false`"
|
2801
|
-
},
|
2802
|
-
"van-slider/reverse": {
|
2803
|
-
"type": "`false`",
|
2804
|
-
"description": "是否将进度条反转, 默认值: undefined"
|
2805
|
-
},
|
2806
|
-
"van-slider/disabled": {
|
2807
|
-
"type": "boolean",
|
2808
|
-
"description": "是否禁用滑块, 默认值: `false`"
|
2809
|
-
},
|
2810
|
-
"van-slider/readonly": {
|
2811
|
-
"type": "boolean",
|
2812
|
-
"description": "是否为只读状态,只读状态下无法修改滑块的值, 默认值: `false`"
|
2813
|
-
},
|
2814
|
-
"van-slider/vertical": {
|
2815
|
-
"type": "boolean",
|
2816
|
-
"description": "是否垂直展示, 默认值: `false`"
|
2817
|
-
},
|
2818
2818
|
"van-stepper/v-model": {
|
2819
2819
|
"type": "number | string",
|
2820
2820
|
"description": "当前输入的值, 默认值: -"
|
@@ -2906,6 +2906,26 @@
|
|
2906
2906
|
"type": "boolean",
|
2907
2907
|
"description": "是否允许输入的值为空, 默认值: `false`"
|
2908
2908
|
},
|
2909
|
+
"van-sticky/position": {
|
2910
|
+
"type": "string",
|
2911
|
+
"description": "吸附位置,可选值为 `bottom`, 默认值: `top`"
|
2912
|
+
},
|
2913
|
+
"van-sticky/offset-top": {
|
2914
|
+
"type": "number | string",
|
2915
|
+
"description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
2916
|
+
},
|
2917
|
+
"van-sticky/offset-bottom": {
|
2918
|
+
"type": "number | string",
|
2919
|
+
"description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
2920
|
+
},
|
2921
|
+
"van-sticky/z-index": {
|
2922
|
+
"type": "number | string",
|
2923
|
+
"description": "吸顶时的 z-index, 默认值: `99`"
|
2924
|
+
},
|
2925
|
+
"van-sticky/container": {
|
2926
|
+
"type": "Element",
|
2927
|
+
"description": "容器对应的 HTML 节点, 默认值: -"
|
2928
|
+
},
|
2909
2929
|
"van-steps/active": {
|
2910
2930
|
"type": "number | string",
|
2911
2931
|
"description": "当前步骤对应的索引值, 默认值: `0`"
|
@@ -2938,26 +2958,6 @@
|
|
2938
2958
|
"type": "string",
|
2939
2959
|
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2940
2960
|
},
|
2941
|
-
"van-sticky/position": {
|
2942
|
-
"type": "string",
|
2943
|
-
"description": "吸附位置,可选值为 `bottom`, 默认值: `top`"
|
2944
|
-
},
|
2945
|
-
"van-sticky/offset-top": {
|
2946
|
-
"type": "number | string",
|
2947
|
-
"description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
2948
|
-
},
|
2949
|
-
"van-sticky/offset-bottom": {
|
2950
|
-
"type": "number | string",
|
2951
|
-
"description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
2952
|
-
},
|
2953
|
-
"van-sticky/z-index": {
|
2954
|
-
"type": "number | string",
|
2955
|
-
"description": "吸顶时的 z-index, 默认值: `99`"
|
2956
|
-
},
|
2957
|
-
"van-sticky/container": {
|
2958
|
-
"type": "Element",
|
2959
|
-
"description": "容器对应的 HTML 节点, 默认值: -"
|
2960
|
-
},
|
2961
2961
|
"van-submit-bar/price": {
|
2962
2962
|
"type": "number",
|
2963
2963
|
"description": "金额(单位分), 默认值: -"
|
@@ -3014,6 +3014,30 @@
|
|
3014
3014
|
"type": "boolean",
|
3015
3015
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
3016
3016
|
},
|
3017
|
+
"van-swipe-cell/name": {
|
3018
|
+
"type": "number | string",
|
3019
|
+
"description": "标识符,可以在事件参数中获取到, 默认值: `''`"
|
3020
|
+
},
|
3021
|
+
"van-swipe-cell/left-width": {
|
3022
|
+
"type": "number | string",
|
3023
|
+
"description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3024
|
+
},
|
3025
|
+
"van-swipe-cell/right-width": {
|
3026
|
+
"type": "number | string",
|
3027
|
+
"description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3028
|
+
},
|
3029
|
+
"van-swipe-cell/before-close": {
|
3030
|
+
"type": "(args) => boolean | Promise\\<boolean\\>",
|
3031
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
3032
|
+
},
|
3033
|
+
"van-swipe-cell/disabled": {
|
3034
|
+
"type": "boolean",
|
3035
|
+
"description": "是否禁用滑动, 默认值: `false`"
|
3036
|
+
},
|
3037
|
+
"van-swipe-cell/stop-propagation": {
|
3038
|
+
"type": "boolean",
|
3039
|
+
"description": "是否阻止滑动事件冒泡, 默认值: `false`"
|
3040
|
+
},
|
3017
3041
|
"van-swipe/autoplay": {
|
3018
3042
|
"type": "number | string",
|
3019
3043
|
"description": "自动轮播间隔,单位为 ms, 默认值: -"
|
@@ -3062,30 +3086,6 @@
|
|
3062
3086
|
"type": "string",
|
3063
3087
|
"description": "指示器颜色, 默认值: `#1989fa`"
|
3064
3088
|
},
|
3065
|
-
"van-swipe-cell/name": {
|
3066
|
-
"type": "number | string",
|
3067
|
-
"description": "标识符,可以在事件参数中获取到, 默认值: `''`"
|
3068
|
-
},
|
3069
|
-
"van-swipe-cell/left-width": {
|
3070
|
-
"type": "number | string",
|
3071
|
-
"description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3072
|
-
},
|
3073
|
-
"van-swipe-cell/right-width": {
|
3074
|
-
"type": "number | string",
|
3075
|
-
"description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3076
|
-
},
|
3077
|
-
"van-swipe-cell/before-close": {
|
3078
|
-
"type": "(args) => boolean | Promise\\<boolean\\>",
|
3079
|
-
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
3080
|
-
},
|
3081
|
-
"van-swipe-cell/disabled": {
|
3082
|
-
"type": "boolean",
|
3083
|
-
"description": "是否禁用滑动, 默认值: `false`"
|
3084
|
-
},
|
3085
|
-
"van-swipe-cell/stop-propagation": {
|
3086
|
-
"type": "boolean",
|
3087
|
-
"description": "是否阻止滑动事件冒泡, 默认值: `false`"
|
3088
|
-
},
|
3089
3089
|
"van-switch/v-model": {
|
3090
3090
|
"type": "any",
|
3091
3091
|
"description": "开关选中状态, 默认值: `false`"
|