vant 3.3.4 → 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/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.cjs.js +1 -1
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +1 -1
- package/lib/vant.es.min.js +1 -1
- package/lib/vant.js +1 -1
- package/lib/vant.min.js +1 -1
- package/package.json +5 -3
- package/vetur/attributes.json +476 -476
- package/vetur/tags.json +165 -165
- package/vetur/web-types.json +1423 -1423
package/vetur/attributes.json
CHANGED
@@ -1,87 +1,4 @@
|
|
1
1
|
{
|
2
|
-
"van-action-bar/safe-area-inset-bottom": {
|
3
|
-
"type": "boolean",
|
4
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
5
|
-
},
|
6
|
-
"van-action-bar-icon/text": {
|
7
|
-
"type": "string",
|
8
|
-
"description": "按钮文字, 默认值: -"
|
9
|
-
},
|
10
|
-
"van-action-bar-icon/icon": {
|
11
|
-
"type": "string",
|
12
|
-
"description": "图标, 默认值: -"
|
13
|
-
},
|
14
|
-
"van-action-bar-icon/color": {
|
15
|
-
"type": "string",
|
16
|
-
"description": "图标颜色, 默认值: `#323233`"
|
17
|
-
},
|
18
|
-
"van-action-bar-icon/icon-class": {
|
19
|
-
"type": "string | Array \\",
|
20
|
-
"description": "图标额外类名, 默认值: object_",
|
21
|
-
"options": [
|
22
|
-
"-"
|
23
|
-
]
|
24
|
-
},
|
25
|
-
"van-action-bar-icon/icon-prefix": {
|
26
|
-
"type": "string",
|
27
|
-
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
28
|
-
},
|
29
|
-
"van-action-bar-icon/dot": {
|
30
|
-
"type": "boolean",
|
31
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
32
|
-
},
|
33
|
-
"van-action-bar-icon/badge": {
|
34
|
-
"type": "number | string",
|
35
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
36
|
-
},
|
37
|
-
"van-action-bar-icon/url": {
|
38
|
-
"type": "string",
|
39
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
40
|
-
},
|
41
|
-
"van-action-bar-icon/to": {
|
42
|
-
"type": "string | object",
|
43
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
44
|
-
},
|
45
|
-
"van-action-bar-icon/replace": {
|
46
|
-
"type": "boolean",
|
47
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
48
|
-
},
|
49
|
-
"van-action-bar-button/text": {
|
50
|
-
"type": "string",
|
51
|
-
"description": "按钮文字, 默认值: -"
|
52
|
-
},
|
53
|
-
"van-action-bar-button/type": {
|
54
|
-
"type": "string",
|
55
|
-
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
56
|
-
},
|
57
|
-
"van-action-bar-button/color": {
|
58
|
-
"type": "string",
|
59
|
-
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
|
60
|
-
},
|
61
|
-
"van-action-bar-button/icon": {
|
62
|
-
"type": "string",
|
63
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
64
|
-
},
|
65
|
-
"van-action-bar-button/disabled": {
|
66
|
-
"type": "boolean",
|
67
|
-
"description": "是否禁用按钮, 默认值: `false`"
|
68
|
-
},
|
69
|
-
"van-action-bar-button/loading": {
|
70
|
-
"type": "boolean",
|
71
|
-
"description": "是否显示为加载状态, 默认值: `false`"
|
72
|
-
},
|
73
|
-
"van-action-bar-button/url": {
|
74
|
-
"type": "string",
|
75
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
76
|
-
},
|
77
|
-
"van-action-bar-button/to": {
|
78
|
-
"type": "string | object",
|
79
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
80
|
-
},
|
81
|
-
"van-action-bar-button/replace": {
|
82
|
-
"type": "boolean",
|
83
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
84
|
-
},
|
85
2
|
"van-action-sheet/v-model:show": {
|
86
3
|
"type": "boolean",
|
87
4
|
"description": "是否显示动作面板, 默认值: `false`"
|
@@ -165,6 +82,89 @@
|
|
165
82
|
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
166
83
|
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
167
84
|
},
|
85
|
+
"van-action-bar/safe-area-inset-bottom": {
|
86
|
+
"type": "boolean",
|
87
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
88
|
+
},
|
89
|
+
"van-action-bar-icon/text": {
|
90
|
+
"type": "string",
|
91
|
+
"description": "按钮文字, 默认值: -"
|
92
|
+
},
|
93
|
+
"van-action-bar-icon/icon": {
|
94
|
+
"type": "string",
|
95
|
+
"description": "图标, 默认值: -"
|
96
|
+
},
|
97
|
+
"van-action-bar-icon/color": {
|
98
|
+
"type": "string",
|
99
|
+
"description": "图标颜色, 默认值: `#323233`"
|
100
|
+
},
|
101
|
+
"van-action-bar-icon/icon-class": {
|
102
|
+
"type": "string | Array \\",
|
103
|
+
"description": "图标额外类名, 默认值: object_",
|
104
|
+
"options": [
|
105
|
+
"-"
|
106
|
+
]
|
107
|
+
},
|
108
|
+
"van-action-bar-icon/icon-prefix": {
|
109
|
+
"type": "string",
|
110
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
111
|
+
},
|
112
|
+
"van-action-bar-icon/dot": {
|
113
|
+
"type": "boolean",
|
114
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
115
|
+
},
|
116
|
+
"van-action-bar-icon/badge": {
|
117
|
+
"type": "number | string",
|
118
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
119
|
+
},
|
120
|
+
"van-action-bar-icon/url": {
|
121
|
+
"type": "string",
|
122
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
123
|
+
},
|
124
|
+
"van-action-bar-icon/to": {
|
125
|
+
"type": "string | object",
|
126
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
127
|
+
},
|
128
|
+
"van-action-bar-icon/replace": {
|
129
|
+
"type": "boolean",
|
130
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
131
|
+
},
|
132
|
+
"van-action-bar-button/text": {
|
133
|
+
"type": "string",
|
134
|
+
"description": "按钮文字, 默认值: -"
|
135
|
+
},
|
136
|
+
"van-action-bar-button/type": {
|
137
|
+
"type": "string",
|
138
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
139
|
+
},
|
140
|
+
"van-action-bar-button/color": {
|
141
|
+
"type": "string",
|
142
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
|
143
|
+
},
|
144
|
+
"van-action-bar-button/icon": {
|
145
|
+
"type": "string",
|
146
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
147
|
+
},
|
148
|
+
"van-action-bar-button/disabled": {
|
149
|
+
"type": "boolean",
|
150
|
+
"description": "是否禁用按钮, 默认值: `false`"
|
151
|
+
},
|
152
|
+
"van-action-bar-button/loading": {
|
153
|
+
"type": "boolean",
|
154
|
+
"description": "是否显示为加载状态, 默认值: `false`"
|
155
|
+
},
|
156
|
+
"van-action-bar-button/url": {
|
157
|
+
"type": "string",
|
158
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
159
|
+
},
|
160
|
+
"van-action-bar-button/to": {
|
161
|
+
"type": "string | object",
|
162
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
163
|
+
},
|
164
|
+
"van-action-bar-button/replace": {
|
165
|
+
"type": "boolean",
|
166
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
167
|
+
},
|
168
168
|
"van-address-list/v-model": {
|
169
169
|
"type": "string",
|
170
170
|
"description": "当前选中地址的 id, 默认值: -"
|
@@ -281,33 +281,6 @@
|
|
281
281
|
"type": "(key, val) => string",
|
282
282
|
"description": "自定义校验函数, 默认值: -"
|
283
283
|
},
|
284
|
-
"van-badge/content": {
|
285
|
-
"type": "number | string",
|
286
|
-
"description": "徽标内容, 默认值: -"
|
287
|
-
},
|
288
|
-
"van-badge/color": {
|
289
|
-
"type": "string",
|
290
|
-
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
291
|
-
},
|
292
|
-
"van-badge/dot": {
|
293
|
-
"type": "boolean",
|
294
|
-
"description": "是否展示为小红点, 默认值: `false`"
|
295
|
-
},
|
296
|
-
"van-badge/max": {
|
297
|
-
"type": "number | string",
|
298
|
-
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
299
|
-
},
|
300
|
-
"van-badge/offset": {
|
301
|
-
"type": "[number | string, number \\",
|
302
|
-
"description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
|
303
|
-
"options": [
|
304
|
-
"-"
|
305
|
-
]
|
306
|
-
},
|
307
|
-
"van-badge/show-zero": {
|
308
|
-
"type": "boolean",
|
309
|
-
"description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
|
310
|
-
},
|
311
284
|
"van-area/value": {
|
312
285
|
"type": "string",
|
313
286
|
"description": "当前选中项对应的地区码, 默认值: -"
|
@@ -360,6 +333,33 @@
|
|
360
333
|
"type": "() => boolean",
|
361
334
|
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
362
335
|
},
|
336
|
+
"van-badge/content": {
|
337
|
+
"type": "number | string",
|
338
|
+
"description": "徽标内容, 默认值: -"
|
339
|
+
},
|
340
|
+
"van-badge/color": {
|
341
|
+
"type": "string",
|
342
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
343
|
+
},
|
344
|
+
"van-badge/dot": {
|
345
|
+
"type": "boolean",
|
346
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
347
|
+
},
|
348
|
+
"van-badge/max": {
|
349
|
+
"type": "number | string",
|
350
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
351
|
+
},
|
352
|
+
"van-badge/offset": {
|
353
|
+
"type": "[number | string, number \\",
|
354
|
+
"description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
|
355
|
+
"options": [
|
356
|
+
"-"
|
357
|
+
]
|
358
|
+
},
|
359
|
+
"van-badge/show-zero": {
|
360
|
+
"type": "boolean",
|
361
|
+
"description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
|
362
|
+
},
|
363
363
|
"van-button/type": {
|
364
364
|
"type": "string",
|
365
365
|
"description": "类型,可选值为 `primary` `success` `warning` `danger`, 默认值: `default`"
|
@@ -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": "可选择的最小日期, 默认值: 当前日期"
|
461
|
+
"description": "描述, 默认值: -"
|
466
462
|
},
|
467
|
-
"van-
|
468
|
-
"type": "
|
469
|
-
"description": "
|
463
|
+
"van-card/tag": {
|
464
|
+
"type": "string",
|
465
|
+
"description": "图片角标, 默认值: -"
|
470
466
|
},
|
471
|
-
"van-
|
472
|
-
"type": "
|
473
|
-
"description": "
|
474
|
-
"options": [
|
475
|
-
"今天"
|
476
|
-
]
|
467
|
+
"van-card/num": {
|
468
|
+
"type": "number | string",
|
469
|
+
"description": "商品数量, 默认值: -"
|
477
470
|
},
|
478
|
-
"van-
|
471
|
+
"van-card/price": {
|
479
472
|
"type": "number | string",
|
480
|
-
"description": "
|
473
|
+
"description": "商品价格, 默认值: -"
|
481
474
|
},
|
482
|
-
"van-
|
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": "
|
1015
|
-
"description": "
|
1013
|
+
"van-contact-card/type": {
|
1014
|
+
"type": "string",
|
1015
|
+
"description": "卡片类型,可选值为 `edit`, 默认值: `add`"
|
1016
1016
|
},
|
1017
|
-
"van-contact-
|
1018
|
-
"type": "
|
1019
|
-
"description": "
|
1017
|
+
"van-contact-card/name": {
|
1018
|
+
"type": "string",
|
1019
|
+
"description": "联系人姓名, 默认值: -"
|
1020
1020
|
},
|
1021
|
-
"van-contact-
|
1021
|
+
"van-contact-card/tel": {
|
1022
1022
|
"type": "string",
|
1023
|
-
"description": "
|
1023
|
+
"description": "联系人手机号, 默认值: -"
|
1024
1024
|
},
|
1025
|
-
"van-contact-
|
1025
|
+
"van-contact-card/add-text": {
|
1026
1026
|
"type": "string",
|
1027
|
-
"description": "
|
1027
|
+
"description": "添加时的文案提示, 默认值: `添加联系人`"
|
1028
1028
|
},
|
1029
1029
|
"van-count-down/time": {
|
1030
1030
|
"type": "number | string",
|
@@ -1592,34 +1592,6 @@
|
|
1592
1592
|
"type": "boolean",
|
1593
1593
|
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1594
1594
|
},
|
1595
|
-
"van-icon/name": {
|
1596
|
-
"type": "string",
|
1597
|
-
"description": "图标名称或图片链接, 默认值: -"
|
1598
|
-
},
|
1599
|
-
"van-icon/dot": {
|
1600
|
-
"type": "boolean",
|
1601
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1602
|
-
},
|
1603
|
-
"van-icon/badge": {
|
1604
|
-
"type": "number | string",
|
1605
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1606
|
-
},
|
1607
|
-
"van-icon/color": {
|
1608
|
-
"type": "string",
|
1609
|
-
"description": "图标颜色, 默认值: `inherit`"
|
1610
|
-
},
|
1611
|
-
"van-icon/size": {
|
1612
|
-
"type": "number | string",
|
1613
|
-
"description": "图标大小,如 `20px` `2em`,默认单位为 `px`, 默认值: `inherit`"
|
1614
|
-
},
|
1615
|
-
"van-icon/class-prefix": {
|
1616
|
-
"type": "string",
|
1617
|
-
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1618
|
-
},
|
1619
|
-
"van-icon/tag": {
|
1620
|
-
"type": "string",
|
1621
|
-
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1622
|
-
},
|
1623
1595
|
"van-grid/column-num": {
|
1624
1596
|
"type": "number | string",
|
1625
1597
|
"description": "列数, 默认值: `4`"
|
@@ -1692,6 +1664,34 @@
|
|
1692
1664
|
"type": "boolean",
|
1693
1665
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1694
1666
|
},
|
1667
|
+
"van-icon/name": {
|
1668
|
+
"type": "string",
|
1669
|
+
"description": "图标名称或图片链接, 默认值: -"
|
1670
|
+
},
|
1671
|
+
"van-icon/dot": {
|
1672
|
+
"type": "boolean",
|
1673
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1674
|
+
},
|
1675
|
+
"van-icon/badge": {
|
1676
|
+
"type": "number | string",
|
1677
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1678
|
+
},
|
1679
|
+
"van-icon/color": {
|
1680
|
+
"type": "string",
|
1681
|
+
"description": "图标颜色, 默认值: `inherit`"
|
1682
|
+
},
|
1683
|
+
"van-icon/size": {
|
1684
|
+
"type": "number | string",
|
1685
|
+
"description": "图标大小,如 `20px` `2em`,默认单位为 `px`, 默认值: `inherit`"
|
1686
|
+
},
|
1687
|
+
"van-icon/class-prefix": {
|
1688
|
+
"type": "string",
|
1689
|
+
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1690
|
+
},
|
1691
|
+
"van-icon/tag": {
|
1692
|
+
"type": "string",
|
1693
|
+
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1694
|
+
},
|
1695
1695
|
"van-index-bar/index-list": {
|
1696
1696
|
"type": "string[] | number[]",
|
1697
1697
|
"description": "索引字符列表, 默认值: `A-Z`"
|
@@ -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,42 +2377,6 @@
|
|
2341
2377
|
"type": "boolean",
|
2342
2378
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
2343
2379
|
},
|
2344
|
-
"van-progress/percentage": {
|
2345
|
-
"type": "number | string",
|
2346
|
-
"description": "进度百分比, 默认值: `0`"
|
2347
|
-
},
|
2348
|
-
"van-progress/stroke-width": {
|
2349
|
-
"type": "number | string",
|
2350
|
-
"description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
|
2351
|
-
},
|
2352
|
-
"van-progress/color": {
|
2353
|
-
"type": "string",
|
2354
|
-
"description": "进度条颜色, 默认值: `#1989fa`"
|
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
2380
|
"van-pull-refresh/v-model": {
|
2381
2381
|
"type": "boolean",
|
2382
2382
|
"description": "是否处于加载中状态, 默认值: -"
|
@@ -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": "金额(单位分), 默认值: -"
|