vant 2.12.51 → 2.12.53
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/action-sheet/index.css +1 -1
- package/es/action-sheet/index.less +1 -0
- package/es/index.js +1 -1
- package/es/sku/Sku.js +12 -3
- package/es/sku/components/SkuRowPropItem.js +5 -1
- package/es/uploader/index.js +5 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.less +1 -0
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/sku/Sku.js +12 -3
- package/lib/sku/components/SkuRowPropItem.js +5 -1
- package/lib/uploader/index.js +5 -1
- package/lib/vant.js +23 -6
- package/lib/vant.min.js +2 -2
- package/package.json +1 -1
- package/vetur/attributes.json +380 -380
- package/vetur/tags.json +135 -135
- package/vetur/web-types.json +1155 -1155
- package/changelog.generated.md +0 -11
package/vetur/attributes.json
CHANGED
@@ -1,4 +1,32 @@
|
|
1
1
|
{
|
2
|
+
"van-address-list/v-model": {
|
3
|
+
"type": "string",
|
4
|
+
"description": "当前选中地址的 id, 默认值: -"
|
5
|
+
},
|
6
|
+
"van-address-list/list": {
|
7
|
+
"type": "Address[]",
|
8
|
+
"description": "地址列表, 默认值: `[]`"
|
9
|
+
},
|
10
|
+
"van-address-list/disabled-list": {
|
11
|
+
"type": "Address[]",
|
12
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
13
|
+
},
|
14
|
+
"van-address-list/disabled-text": {
|
15
|
+
"type": "string",
|
16
|
+
"description": "不可配送提示文案, 默认值: -"
|
17
|
+
},
|
18
|
+
"van-address-list/switchable": {
|
19
|
+
"type": "boolean",
|
20
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
21
|
+
},
|
22
|
+
"van-address-list/add-button-text": {
|
23
|
+
"type": "string",
|
24
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
25
|
+
},
|
26
|
+
"van-address-list/default-tag-text": {
|
27
|
+
"type": "string",
|
28
|
+
"description": "默认地址标签文字, 默认值: -"
|
29
|
+
},
|
2
30
|
"van-action-sheet/v-model (value)": {
|
3
31
|
"type": "boolean",
|
4
32
|
"description": "是否显示动作面板, 默认值: `false`"
|
@@ -67,58 +95,6 @@
|
|
67
95
|
"type": "string | () => Element",
|
68
96
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
69
97
|
},
|
70
|
-
"van-area/value": {
|
71
|
-
"type": "string",
|
72
|
-
"description": "当前选中的省市区`code`, 默认值: -"
|
73
|
-
},
|
74
|
-
"van-area/title": {
|
75
|
-
"type": "string",
|
76
|
-
"description": "顶部栏标题, 默认值: -"
|
77
|
-
},
|
78
|
-
"van-area/confirm-button-text": {
|
79
|
-
"type": "string",
|
80
|
-
"description": "确认按钮文字, 默认值: `确认`"
|
81
|
-
},
|
82
|
-
"van-area/cancel-button-text": {
|
83
|
-
"type": "string",
|
84
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
85
|
-
},
|
86
|
-
"van-area/area-list": {
|
87
|
-
"type": "object",
|
88
|
-
"description": "省市区数据,格式见下方, 默认值: -"
|
89
|
-
},
|
90
|
-
"van-area/columns-placeholder": {
|
91
|
-
"type": "string[]",
|
92
|
-
"description": "列占位提示文字, 默认值: `[]`"
|
93
|
-
},
|
94
|
-
"van-area/loading": {
|
95
|
-
"type": "boolean",
|
96
|
-
"description": "是否显示加载状态, 默认值: `false`"
|
97
|
-
},
|
98
|
-
"van-area/readonly": {
|
99
|
-
"type": "boolean",
|
100
|
-
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
101
|
-
},
|
102
|
-
"van-area/item-height": {
|
103
|
-
"type": "number | string",
|
104
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
105
|
-
},
|
106
|
-
"van-area/columns-num": {
|
107
|
-
"type": "number | string",
|
108
|
-
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
109
|
-
},
|
110
|
-
"van-area/visible-item-count": {
|
111
|
-
"type": "number | string",
|
112
|
-
"description": "可见的选项个数, 默认值: `6`"
|
113
|
-
},
|
114
|
-
"van-area/swipe-duration": {
|
115
|
-
"type": "number | string",
|
116
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
117
|
-
},
|
118
|
-
"van-area/is-oversea-code": {
|
119
|
-
"type": "() => boolean",
|
120
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
121
|
-
},
|
122
98
|
"van-address-edit/area-list": {
|
123
99
|
"type": "object",
|
124
100
|
"description": "地区列表, 默认值: -"
|
@@ -207,21 +183,57 @@
|
|
207
183
|
"type": "(key, val) => string",
|
208
184
|
"description": "自定义校验函数, 默认值: -"
|
209
185
|
},
|
210
|
-
"van-
|
211
|
-
"type": "
|
212
|
-
"description": "
|
186
|
+
"van-area/value": {
|
187
|
+
"type": "string",
|
188
|
+
"description": "当前选中的省市区`code`, 默认值: -"
|
213
189
|
},
|
214
|
-
"van-
|
190
|
+
"van-area/title": {
|
215
191
|
"type": "string",
|
216
|
-
"description": "
|
192
|
+
"description": "顶部栏标题, 默认值: -"
|
217
193
|
},
|
218
|
-
"van-
|
194
|
+
"van-area/confirm-button-text": {
|
195
|
+
"type": "string",
|
196
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
197
|
+
},
|
198
|
+
"van-area/cancel-button-text": {
|
199
|
+
"type": "string",
|
200
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
201
|
+
},
|
202
|
+
"van-area/area-list": {
|
203
|
+
"type": "object",
|
204
|
+
"description": "省市区数据,格式见下方, 默认值: -"
|
205
|
+
},
|
206
|
+
"van-area/columns-placeholder": {
|
207
|
+
"type": "string[]",
|
208
|
+
"description": "列占位提示文字, 默认值: `[]`"
|
209
|
+
},
|
210
|
+
"van-area/loading": {
|
219
211
|
"type": "boolean",
|
220
|
-
"description": "
|
212
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
221
213
|
},
|
222
|
-
"van-
|
214
|
+
"van-area/readonly": {
|
215
|
+
"type": "boolean",
|
216
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
217
|
+
},
|
218
|
+
"van-area/item-height": {
|
223
219
|
"type": "number | string",
|
224
|
-
"description": "
|
220
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
221
|
+
},
|
222
|
+
"van-area/columns-num": {
|
223
|
+
"type": "number | string",
|
224
|
+
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
225
|
+
},
|
226
|
+
"van-area/visible-item-count": {
|
227
|
+
"type": "number | string",
|
228
|
+
"description": "可见的选项个数, 默认值: `6`"
|
229
|
+
},
|
230
|
+
"van-area/swipe-duration": {
|
231
|
+
"type": "number | string",
|
232
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
233
|
+
},
|
234
|
+
"van-area/is-oversea-code": {
|
235
|
+
"type": "() => boolean",
|
236
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
225
237
|
},
|
226
238
|
"van-button/type": {
|
227
239
|
"type": "string",
|
@@ -311,81 +323,21 @@
|
|
311
323
|
"type": "boolean",
|
312
324
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
313
325
|
},
|
314
|
-
"van-
|
315
|
-
"type": "string",
|
316
|
-
"description": "
|
317
|
-
},
|
318
|
-
"van-cascader/value": {
|
319
|
-
"type": "string | number",
|
320
|
-
"description": "选中项的值, 默认值: -"
|
321
|
-
},
|
322
|
-
"van-cascader/options": {
|
323
|
-
"type": "Option[]",
|
324
|
-
"description": "可选项数据源, 默认值: `[]`"
|
325
|
-
},
|
326
|
-
"van-cascader/placeholder": {
|
327
|
-
"type": "string",
|
328
|
-
"description": "未选中时的提示文案, 默认值: `请选择`"
|
326
|
+
"van-badge/content": {
|
327
|
+
"type": "number | string",
|
328
|
+
"description": "徽标内容, 默认值: -"
|
329
329
|
},
|
330
|
-
"van-
|
330
|
+
"van-badge/color": {
|
331
331
|
"type": "string",
|
332
|
-
"description": "
|
333
|
-
},
|
334
|
-
"van-cascader/closeable": {
|
335
|
-
"type": "boolean",
|
336
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
332
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
337
333
|
},
|
338
|
-
"van-
|
334
|
+
"van-badge/dot": {
|
339
335
|
"type": "boolean",
|
340
|
-
"description": "
|
341
|
-
},
|
342
|
-
"van-cascader/field-names": {
|
343
|
-
"type": "object",
|
344
|
-
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
345
|
-
},
|
346
|
-
"van-card/thumb": {
|
347
|
-
"type": "string",
|
348
|
-
"description": "左侧图片 URL, 默认值: -"
|
349
|
-
},
|
350
|
-
"van-card/title": {
|
351
|
-
"type": "string",
|
352
|
-
"description": "标题, 默认值: -"
|
353
|
-
},
|
354
|
-
"van-card/desc": {
|
355
|
-
"type": "string",
|
356
|
-
"description": "描述, 默认值: -"
|
357
|
-
},
|
358
|
-
"van-card/tag": {
|
359
|
-
"type": "string",
|
360
|
-
"description": "图片角标, 默认值: -"
|
361
|
-
},
|
362
|
-
"van-card/num": {
|
363
|
-
"type": "number | string",
|
364
|
-
"description": "商品数量, 默认值: -"
|
365
|
-
},
|
366
|
-
"van-card/price": {
|
367
|
-
"type": "number | string",
|
368
|
-
"description": "商品价格, 默认值: -"
|
336
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
369
337
|
},
|
370
|
-
"van-
|
338
|
+
"van-badge/max": {
|
371
339
|
"type": "number | string",
|
372
|
-
"description": "
|
373
|
-
},
|
374
|
-
"van-card/centered": {
|
375
|
-
"type": "boolean",
|
376
|
-
"description": "内容是否垂直居中, 默认值: `false`"
|
377
|
-
},
|
378
|
-
"van-card/currency": {
|
379
|
-
"type": "string",
|
380
|
-
"description": "货币符号, 默认值: `¥`"
|
381
|
-
},
|
382
|
-
"van-card/thumb-link": {
|
383
|
-
"type": "string",
|
384
|
-
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
385
|
-
},
|
386
|
-
"van-card/lazy-load": {
|
387
|
-
"type": "boolean",
|
388
|
-
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
340
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
389
341
|
},
|
390
342
|
"van-calendar/type": {
|
391
343
|
"type": "string",
|
@@ -499,33 +451,81 @@
|
|
499
451
|
"type": "boolean",
|
500
452
|
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
501
453
|
},
|
502
|
-
"van-
|
454
|
+
"van-card/thumb": {
|
503
455
|
"type": "string",
|
504
|
-
"description": "
|
456
|
+
"description": "左侧图片 URL, 默认值: -"
|
505
457
|
},
|
506
|
-
"van-
|
507
|
-
"type": "
|
508
|
-
"description": "
|
458
|
+
"van-card/title": {
|
459
|
+
"type": "string",
|
460
|
+
"description": "标题, 默认值: -"
|
509
461
|
},
|
510
|
-
"van-
|
511
|
-
"type": "
|
512
|
-
"description": "
|
462
|
+
"van-card/desc": {
|
463
|
+
"type": "string",
|
464
|
+
"description": "描述, 默认值: -"
|
513
465
|
},
|
514
|
-
"van-
|
466
|
+
"van-card/tag": {
|
515
467
|
"type": "string",
|
516
|
-
"description": "
|
468
|
+
"description": "图片角标, 默认值: -"
|
517
469
|
},
|
518
|
-
"van-
|
470
|
+
"van-card/num": {
|
471
|
+
"type": "number | string",
|
472
|
+
"description": "商品数量, 默认值: -"
|
473
|
+
},
|
474
|
+
"van-card/price": {
|
475
|
+
"type": "number | string",
|
476
|
+
"description": "商品价格, 默认值: -"
|
477
|
+
},
|
478
|
+
"van-card/origin-price": {
|
479
|
+
"type": "number | string",
|
480
|
+
"description": "商品划线原价, 默认值: -"
|
481
|
+
},
|
482
|
+
"van-card/centered": {
|
519
483
|
"type": "boolean",
|
520
|
-
"description": "
|
484
|
+
"description": "内容是否垂直居中, 默认值: `false`"
|
521
485
|
},
|
522
|
-
"van-
|
486
|
+
"van-card/currency": {
|
523
487
|
"type": "string",
|
524
|
-
"description": "
|
488
|
+
"description": "货币符号, 默认值: `¥`"
|
525
489
|
},
|
526
|
-
"van-
|
490
|
+
"van-card/thumb-link": {
|
527
491
|
"type": "string",
|
528
|
-
"description": "
|
492
|
+
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
493
|
+
},
|
494
|
+
"van-card/lazy-load": {
|
495
|
+
"type": "boolean",
|
496
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
497
|
+
},
|
498
|
+
"van-cascader/title": {
|
499
|
+
"type": "string",
|
500
|
+
"description": "顶部标题, 默认值: -"
|
501
|
+
},
|
502
|
+
"van-cascader/value": {
|
503
|
+
"type": "string | number",
|
504
|
+
"description": "选中项的值, 默认值: -"
|
505
|
+
},
|
506
|
+
"van-cascader/options": {
|
507
|
+
"type": "Option[]",
|
508
|
+
"description": "可选项数据源, 默认值: `[]`"
|
509
|
+
},
|
510
|
+
"van-cascader/placeholder": {
|
511
|
+
"type": "string",
|
512
|
+
"description": "未选中时的提示文案, 默认值: `请选择`"
|
513
|
+
},
|
514
|
+
"van-cascader/active-color": {
|
515
|
+
"type": "string",
|
516
|
+
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
517
|
+
},
|
518
|
+
"van-cascader/closeable": {
|
519
|
+
"type": "boolean",
|
520
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
521
|
+
},
|
522
|
+
"van-cascader/show-header": {
|
523
|
+
"type": "boolean",
|
524
|
+
"description": "是否展示标题栏, 默认值: `true`"
|
525
|
+
},
|
526
|
+
"van-cascader/field-names": {
|
527
|
+
"type": "object",
|
528
|
+
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
529
529
|
},
|
530
530
|
"van-cell/title": {
|
531
531
|
"type": "number | string",
|
@@ -603,50 +603,6 @@
|
|
603
603
|
"type": "any",
|
604
604
|
"description": "描述信息额外类名, 默认值: -"
|
605
605
|
},
|
606
|
-
"van-checkbox/v-model (value)": {
|
607
|
-
"type": "any[]",
|
608
|
-
"description": "所有选中项的标识符, 默认值: -"
|
609
|
-
},
|
610
|
-
"van-checkbox/name": {
|
611
|
-
"type": "any",
|
612
|
-
"description": "标识符, 默认值: -"
|
613
|
-
},
|
614
|
-
"van-checkbox/shape": {
|
615
|
-
"type": "string",
|
616
|
-
"description": "形状,可选值为 `square`, 默认值: `round`"
|
617
|
-
},
|
618
|
-
"van-checkbox/disabled": {
|
619
|
-
"type": "boolean",
|
620
|
-
"description": "是否禁用所有复选框, 默认值: `false`"
|
621
|
-
},
|
622
|
-
"van-checkbox/label-disabled": {
|
623
|
-
"type": "boolean",
|
624
|
-
"description": "是否禁用复选框文本点击, 默认值: `false`"
|
625
|
-
},
|
626
|
-
"van-checkbox/label-position": {
|
627
|
-
"type": "string",
|
628
|
-
"description": "文本位置,可选值为 `left`, 默认值: `right`"
|
629
|
-
},
|
630
|
-
"van-checkbox/icon-size": {
|
631
|
-
"type": "number | string",
|
632
|
-
"description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
|
633
|
-
},
|
634
|
-
"van-checkbox/checked-color": {
|
635
|
-
"type": "string",
|
636
|
-
"description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
|
637
|
-
},
|
638
|
-
"van-checkbox/bind-group": {
|
639
|
-
"type": "boolean",
|
640
|
-
"description": "是否与复选框组绑定, 默认值: `true`"
|
641
|
-
},
|
642
|
-
"van-checkbox/max": {
|
643
|
-
"type": "number | string",
|
644
|
-
"description": "最大可选数,`0`为无限制, 默认值: `0`"
|
645
|
-
},
|
646
|
-
"van-checkbox/direction": {
|
647
|
-
"type": "string",
|
648
|
-
"description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
|
649
|
-
},
|
650
606
|
"van-circle/v-model": {
|
651
607
|
"type": "number",
|
652
608
|
"description": "当前进度, 默认值: -"
|
@@ -691,6 +647,50 @@
|
|
691
647
|
"type": "boolean",
|
692
648
|
"description": "是否顺时针增加, 默认值: `true`"
|
693
649
|
},
|
650
|
+
"van-checkbox/v-model (value)": {
|
651
|
+
"type": "any[]",
|
652
|
+
"description": "所有选中项的标识符, 默认值: -"
|
653
|
+
},
|
654
|
+
"van-checkbox/name": {
|
655
|
+
"type": "any",
|
656
|
+
"description": "标识符, 默认值: -"
|
657
|
+
},
|
658
|
+
"van-checkbox/shape": {
|
659
|
+
"type": "string",
|
660
|
+
"description": "形状,可选值为 `square`, 默认值: `round`"
|
661
|
+
},
|
662
|
+
"van-checkbox/disabled": {
|
663
|
+
"type": "boolean",
|
664
|
+
"description": "是否禁用所有复选框, 默认值: `false`"
|
665
|
+
},
|
666
|
+
"van-checkbox/label-disabled": {
|
667
|
+
"type": "boolean",
|
668
|
+
"description": "是否禁用复选框文本点击, 默认值: `false`"
|
669
|
+
},
|
670
|
+
"van-checkbox/label-position": {
|
671
|
+
"type": "string",
|
672
|
+
"description": "文本位置,可选值为 `left`, 默认值: `right`"
|
673
|
+
},
|
674
|
+
"van-checkbox/icon-size": {
|
675
|
+
"type": "number | string",
|
676
|
+
"description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
|
677
|
+
},
|
678
|
+
"van-checkbox/checked-color": {
|
679
|
+
"type": "string",
|
680
|
+
"description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
|
681
|
+
},
|
682
|
+
"van-checkbox/bind-group": {
|
683
|
+
"type": "boolean",
|
684
|
+
"description": "是否与复选框组绑定, 默认值: `true`"
|
685
|
+
},
|
686
|
+
"van-checkbox/max": {
|
687
|
+
"type": "number | string",
|
688
|
+
"description": "最大可选数,`0`为无限制, 默认值: `0`"
|
689
|
+
},
|
690
|
+
"van-checkbox/direction": {
|
691
|
+
"type": "string",
|
692
|
+
"description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
|
693
|
+
},
|
694
694
|
"van-layout/type": {
|
695
695
|
"type": "string",
|
696
696
|
"description": "布局方式,可选值为`flex`, 默认值: -"
|
@@ -1015,6 +1015,18 @@
|
|
1015
1015
|
"type": "number | string",
|
1016
1016
|
"description": "可选的最大分钟, 默认值: `59`"
|
1017
1017
|
},
|
1018
|
+
"van-divider/dashed": {
|
1019
|
+
"type": "boolean",
|
1020
|
+
"description": "是否使用虚线, 默认值: `false`"
|
1021
|
+
},
|
1022
|
+
"van-divider/hairline": {
|
1023
|
+
"type": "boolean",
|
1024
|
+
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1025
|
+
},
|
1026
|
+
"van-divider/content-position": {
|
1027
|
+
"type": "string",
|
1028
|
+
"description": "内容位置,可选值为`left` `right`, 默认值: `center`"
|
1029
|
+
},
|
1018
1030
|
"van-dialog/v-model": {
|
1019
1031
|
"type": "boolean",
|
1020
1032
|
"description": "是否显示弹窗, 默认值: -"
|
@@ -1107,18 +1119,6 @@
|
|
1107
1119
|
"type": "string | () => Element",
|
1108
1120
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
1109
1121
|
},
|
1110
|
-
"van-divider/dashed": {
|
1111
|
-
"type": "boolean",
|
1112
|
-
"description": "是否使用虚线, 默认值: `false`"
|
1113
|
-
},
|
1114
|
-
"van-divider/hairline": {
|
1115
|
-
"type": "boolean",
|
1116
|
-
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1117
|
-
},
|
1118
|
-
"van-divider/content-position": {
|
1119
|
-
"type": "string",
|
1120
|
-
"description": "内容位置,可选值为`left` `right`, 默认值: `center`"
|
1121
|
-
},
|
1122
1122
|
"van-dropdown-menu/active-color": {
|
1123
1123
|
"type": "string",
|
1124
1124
|
"description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
|
@@ -1153,39 +1153,147 @@
|
|
1153
1153
|
},
|
1154
1154
|
"van-dropdown-menu/title": {
|
1155
1155
|
"type": "string",
|
1156
|
-
"description": "菜单项标题, 默认值: 当前选中项文字"
|
1156
|
+
"description": "菜单项标题, 默认值: 当前选中项文字"
|
1157
|
+
},
|
1158
|
+
"van-dropdown-menu/options": {
|
1159
|
+
"type": "Option[]",
|
1160
|
+
"description": "选项数组, 默认值: `[]`"
|
1161
|
+
},
|
1162
|
+
"van-dropdown-menu/disabled": {
|
1163
|
+
"type": "boolean",
|
1164
|
+
"description": "是否禁用菜单, 默认值: `false`"
|
1165
|
+
},
|
1166
|
+
"van-dropdown-menu/lazy-render": {
|
1167
|
+
"type": "boolean",
|
1168
|
+
"description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
|
1169
|
+
},
|
1170
|
+
"van-dropdown-menu/title-class": {
|
1171
|
+
"type": "string",
|
1172
|
+
"description": "标题额外类名, 默认值: -"
|
1173
|
+
},
|
1174
|
+
"van-dropdown-menu/get-container": {
|
1175
|
+
"type": "string | () => Element",
|
1176
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
1177
|
+
},
|
1178
|
+
"van-empty/image": {
|
1179
|
+
"type": "string",
|
1180
|
+
"description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
|
1181
|
+
},
|
1182
|
+
"van-empty/image-size": {
|
1183
|
+
"type": "number | string",
|
1184
|
+
"description": "图片大小,默认单位为 `px`, 默认值: -"
|
1185
|
+
},
|
1186
|
+
"van-empty/description": {
|
1187
|
+
"type": "string",
|
1188
|
+
"description": "图片下方的描述文字, 默认值: -"
|
1189
|
+
},
|
1190
|
+
"van-form/label-width": {
|
1191
|
+
"type": "number | string",
|
1192
|
+
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1193
|
+
},
|
1194
|
+
"van-form/label-align": {
|
1195
|
+
"type": "string",
|
1196
|
+
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1197
|
+
},
|
1198
|
+
"van-form/input-align": {
|
1199
|
+
"type": "string",
|
1200
|
+
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1201
|
+
},
|
1202
|
+
"van-form/error-message-align": {
|
1203
|
+
"type": "string",
|
1204
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1205
|
+
},
|
1206
|
+
"van-form/validate-trigger": {
|
1207
|
+
"type": "string",
|
1208
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
|
1209
|
+
},
|
1210
|
+
"van-form/colon": {
|
1211
|
+
"type": "boolean",
|
1212
|
+
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1213
|
+
},
|
1214
|
+
"van-form/disabled": {
|
1215
|
+
"type": "boolean",
|
1216
|
+
"description": "是否禁用表单中的所有输入框, 默认值: `false`"
|
1217
|
+
},
|
1218
|
+
"van-form/readonly": {
|
1219
|
+
"type": "boolean",
|
1220
|
+
"description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
|
1221
|
+
},
|
1222
|
+
"van-form/validate-first": {
|
1223
|
+
"type": "boolean",
|
1224
|
+
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1225
|
+
},
|
1226
|
+
"van-form/scroll-to-error": {
|
1227
|
+
"type": "boolean",
|
1228
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
|
1229
|
+
},
|
1230
|
+
"van-form/show-error": {
|
1231
|
+
"type": "boolean",
|
1232
|
+
"description": "是否在校验不通过时标红输入框, 默认值: `true`"
|
1233
|
+
},
|
1234
|
+
"van-form/show-error-message": {
|
1235
|
+
"type": "boolean",
|
1236
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
|
1237
|
+
},
|
1238
|
+
"van-form/submit-on-enter": {
|
1239
|
+
"type": "boolean",
|
1240
|
+
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1241
|
+
},
|
1242
|
+
"van-goods-action/safe-area-inset-bottom": {
|
1243
|
+
"type": "boolean",
|
1244
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
1245
|
+
},
|
1246
|
+
"van-goods-action/text": {
|
1247
|
+
"type": "string",
|
1248
|
+
"description": "按钮文字, 默认值: -"
|
1249
|
+
},
|
1250
|
+
"van-goods-action/icon": {
|
1251
|
+
"type": "string",
|
1252
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1253
|
+
},
|
1254
|
+
"van-goods-action/color": {
|
1255
|
+
"type": "string",
|
1256
|
+
"description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
|
1157
1257
|
},
|
1158
|
-
"van-
|
1159
|
-
"type": "
|
1160
|
-
"description": "
|
1258
|
+
"van-goods-action/icon-class": {
|
1259
|
+
"type": "any",
|
1260
|
+
"description": "图标额外类名, 默认值: -"
|
1161
1261
|
},
|
1162
|
-
"van-
|
1262
|
+
"van-goods-action/dot": {
|
1163
1263
|
"type": "boolean",
|
1164
|
-
"description": "
|
1264
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1165
1265
|
},
|
1166
|
-
"van-
|
1167
|
-
"type": "
|
1168
|
-
"description": "
|
1266
|
+
"van-goods-action/badge": {
|
1267
|
+
"type": "number | string",
|
1268
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1169
1269
|
},
|
1170
|
-
"van-
|
1270
|
+
"van-goods-action/info": {
|
1271
|
+
"type": "number | string",
|
1272
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
1273
|
+
},
|
1274
|
+
"van-goods-action/url": {
|
1171
1275
|
"type": "string",
|
1172
|
-
"description": "
|
1276
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
1173
1277
|
},
|
1174
|
-
"van-
|
1175
|
-
"type": "string |
|
1176
|
-
"description": "
|
1278
|
+
"van-goods-action/to": {
|
1279
|
+
"type": "string | object",
|
1280
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1177
1281
|
},
|
1178
|
-
"van-
|
1282
|
+
"van-goods-action/replace": {
|
1283
|
+
"type": "boolean",
|
1284
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1285
|
+
},
|
1286
|
+
"van-goods-action/type": {
|
1179
1287
|
"type": "string",
|
1180
|
-
"description": "
|
1288
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
1181
1289
|
},
|
1182
|
-
"van-
|
1183
|
-
"type": "
|
1184
|
-
"description": "
|
1290
|
+
"van-goods-action/disabled": {
|
1291
|
+
"type": "boolean",
|
1292
|
+
"description": "是否禁用按钮, 默认值: `false`"
|
1185
1293
|
},
|
1186
|
-
"van-
|
1187
|
-
"type": "
|
1188
|
-
"description": "
|
1294
|
+
"van-goods-action/loading": {
|
1295
|
+
"type": "boolean",
|
1296
|
+
"description": "是否显示为加载状态, 默认值: `false`"
|
1189
1297
|
},
|
1190
1298
|
"van-field/v-model (value)": {
|
1191
1299
|
"type": "number | string",
|
@@ -1327,114 +1435,6 @@
|
|
1327
1435
|
"type": "string",
|
1328
1436
|
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
1329
1437
|
},
|
1330
|
-
"van-form/label-width": {
|
1331
|
-
"type": "number | string",
|
1332
|
-
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1333
|
-
},
|
1334
|
-
"van-form/label-align": {
|
1335
|
-
"type": "string",
|
1336
|
-
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1337
|
-
},
|
1338
|
-
"van-form/input-align": {
|
1339
|
-
"type": "string",
|
1340
|
-
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1341
|
-
},
|
1342
|
-
"van-form/error-message-align": {
|
1343
|
-
"type": "string",
|
1344
|
-
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1345
|
-
},
|
1346
|
-
"van-form/validate-trigger": {
|
1347
|
-
"type": "string",
|
1348
|
-
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
|
1349
|
-
},
|
1350
|
-
"van-form/colon": {
|
1351
|
-
"type": "boolean",
|
1352
|
-
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1353
|
-
},
|
1354
|
-
"van-form/disabled": {
|
1355
|
-
"type": "boolean",
|
1356
|
-
"description": "是否禁用表单中的所有输入框, 默认值: `false`"
|
1357
|
-
},
|
1358
|
-
"van-form/readonly": {
|
1359
|
-
"type": "boolean",
|
1360
|
-
"description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
|
1361
|
-
},
|
1362
|
-
"van-form/validate-first": {
|
1363
|
-
"type": "boolean",
|
1364
|
-
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1365
|
-
},
|
1366
|
-
"van-form/scroll-to-error": {
|
1367
|
-
"type": "boolean",
|
1368
|
-
"description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
|
1369
|
-
},
|
1370
|
-
"van-form/show-error": {
|
1371
|
-
"type": "boolean",
|
1372
|
-
"description": "是否在校验不通过时标红输入框, 默认值: `true`"
|
1373
|
-
},
|
1374
|
-
"van-form/show-error-message": {
|
1375
|
-
"type": "boolean",
|
1376
|
-
"description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
|
1377
|
-
},
|
1378
|
-
"van-form/submit-on-enter": {
|
1379
|
-
"type": "boolean",
|
1380
|
-
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1381
|
-
},
|
1382
|
-
"van-goods-action/safe-area-inset-bottom": {
|
1383
|
-
"type": "boolean",
|
1384
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
1385
|
-
},
|
1386
|
-
"van-goods-action/text": {
|
1387
|
-
"type": "string",
|
1388
|
-
"description": "按钮文字, 默认值: -"
|
1389
|
-
},
|
1390
|
-
"van-goods-action/icon": {
|
1391
|
-
"type": "string",
|
1392
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1393
|
-
},
|
1394
|
-
"van-goods-action/color": {
|
1395
|
-
"type": "string",
|
1396
|
-
"description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
|
1397
|
-
},
|
1398
|
-
"van-goods-action/icon-class": {
|
1399
|
-
"type": "any",
|
1400
|
-
"description": "图标额外类名, 默认值: -"
|
1401
|
-
},
|
1402
|
-
"van-goods-action/dot": {
|
1403
|
-
"type": "boolean",
|
1404
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1405
|
-
},
|
1406
|
-
"van-goods-action/badge": {
|
1407
|
-
"type": "number | string",
|
1408
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1409
|
-
},
|
1410
|
-
"van-goods-action/info": {
|
1411
|
-
"type": "number | string",
|
1412
|
-
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
1413
|
-
},
|
1414
|
-
"van-goods-action/url": {
|
1415
|
-
"type": "string",
|
1416
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
1417
|
-
},
|
1418
|
-
"van-goods-action/to": {
|
1419
|
-
"type": "string | object",
|
1420
|
-
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1421
|
-
},
|
1422
|
-
"van-goods-action/replace": {
|
1423
|
-
"type": "boolean",
|
1424
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1425
|
-
},
|
1426
|
-
"van-goods-action/type": {
|
1427
|
-
"type": "string",
|
1428
|
-
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
1429
|
-
},
|
1430
|
-
"van-goods-action/disabled": {
|
1431
|
-
"type": "boolean",
|
1432
|
-
"description": "是否禁用按钮, 默认值: `false`"
|
1433
|
-
},
|
1434
|
-
"van-goods-action/loading": {
|
1435
|
-
"type": "boolean",
|
1436
|
-
"description": "是否显示为加载状态, 默认值: `false`"
|
1437
|
-
},
|
1438
1438
|
"van-grid/column-num": {
|
1439
1439
|
"type": "number | string",
|
1440
1440
|
"description": "列数, 默认值: `4`"
|
@@ -1935,22 +1935,6 @@
|
|
1935
1935
|
"type": "boolean",
|
1936
1936
|
"description": "是否显示省略号, 默认值: `false`"
|
1937
1937
|
},
|
1938
|
-
"van-panel/title": {
|
1939
|
-
"type": "string",
|
1940
|
-
"description": "标题, 默认值: -"
|
1941
|
-
},
|
1942
|
-
"van-panel/desc": {
|
1943
|
-
"type": "string",
|
1944
|
-
"description": "描述, 默认值: -"
|
1945
|
-
},
|
1946
|
-
"van-panel/status": {
|
1947
|
-
"type": "string",
|
1948
|
-
"description": "状态, 默认值: -"
|
1949
|
-
},
|
1950
|
-
"van-panel/icon": {
|
1951
|
-
"type": "string",
|
1952
|
-
"description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1953
|
-
},
|
1954
1938
|
"van-password-input/value": {
|
1955
1939
|
"type": "string",
|
1956
1940
|
"description": "密码值, 默认值: `''`"
|
@@ -2035,6 +2019,22 @@
|
|
2035
2019
|
"type": "number | string",
|
2036
2020
|
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
2037
2021
|
},
|
2022
|
+
"van-panel/title": {
|
2023
|
+
"type": "string",
|
2024
|
+
"description": "标题, 默认值: -"
|
2025
|
+
},
|
2026
|
+
"van-panel/desc": {
|
2027
|
+
"type": "string",
|
2028
|
+
"description": "描述, 默认值: -"
|
2029
|
+
},
|
2030
|
+
"van-panel/status": {
|
2031
|
+
"type": "string",
|
2032
|
+
"description": "状态, 默认值: -"
|
2033
|
+
},
|
2034
|
+
"van-panel/icon": {
|
2035
|
+
"type": "string",
|
2036
|
+
"description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2037
|
+
},
|
2038
2038
|
"van-popover/v-model": {
|
2039
2039
|
"type": "boolean",
|
2040
2040
|
"description": "是否展示气泡弹出层, 默认值: `false`"
|
@@ -3207,38 +3207,6 @@
|
|
3207
3207
|
"type": "boolean",
|
3208
3208
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
3209
3209
|
},
|
3210
|
-
"van-tag/type": {
|
3211
|
-
"type": "string",
|
3212
|
-
"description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
|
3213
|
-
},
|
3214
|
-
"van-tag/size": {
|
3215
|
-
"type": "string",
|
3216
|
-
"description": "大小, 可选值为`large` `medium`, 默认值: -"
|
3217
|
-
},
|
3218
|
-
"van-tag/color": {
|
3219
|
-
"type": "string",
|
3220
|
-
"description": "标签颜色, 默认值: -"
|
3221
|
-
},
|
3222
|
-
"van-tag/plain": {
|
3223
|
-
"type": "boolean",
|
3224
|
-
"description": "是否为空心样式, 默认值: `false`"
|
3225
|
-
},
|
3226
|
-
"van-tag/round": {
|
3227
|
-
"type": "boolean",
|
3228
|
-
"description": "是否为圆角样式, 默认值: `false`"
|
3229
|
-
},
|
3230
|
-
"van-tag/mark": {
|
3231
|
-
"type": "boolean",
|
3232
|
-
"description": "是否为标记样式, 默认值: `false`"
|
3233
|
-
},
|
3234
|
-
"van-tag/text-color": {
|
3235
|
-
"type": "string",
|
3236
|
-
"description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
|
3237
|
-
},
|
3238
|
-
"van-tag/closeable": {
|
3239
|
-
"type": "boolean",
|
3240
|
-
"description": "是否为可关闭标签, 默认值: `false`"
|
3241
|
-
},
|
3242
3210
|
"van-tree-select/items": {
|
3243
3211
|
"type": "Item[]",
|
3244
3212
|
"description": "分类显示所需的数据, 默认值: `[]`"
|
@@ -3354,5 +3322,37 @@
|
|
3354
3322
|
"van-uploader/upload-icon": {
|
3355
3323
|
"type": "string",
|
3356
3324
|
"description": "上传区域[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photograph`"
|
3325
|
+
},
|
3326
|
+
"van-tag/type": {
|
3327
|
+
"type": "string",
|
3328
|
+
"description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
|
3329
|
+
},
|
3330
|
+
"van-tag/size": {
|
3331
|
+
"type": "string",
|
3332
|
+
"description": "大小, 可选值为`large` `medium`, 默认值: -"
|
3333
|
+
},
|
3334
|
+
"van-tag/color": {
|
3335
|
+
"type": "string",
|
3336
|
+
"description": "标签颜色, 默认值: -"
|
3337
|
+
},
|
3338
|
+
"van-tag/plain": {
|
3339
|
+
"type": "boolean",
|
3340
|
+
"description": "是否为空心样式, 默认值: `false`"
|
3341
|
+
},
|
3342
|
+
"van-tag/round": {
|
3343
|
+
"type": "boolean",
|
3344
|
+
"description": "是否为圆角样式, 默认值: `false`"
|
3345
|
+
},
|
3346
|
+
"van-tag/mark": {
|
3347
|
+
"type": "boolean",
|
3348
|
+
"description": "是否为标记样式, 默认值: `false`"
|
3349
|
+
},
|
3350
|
+
"van-tag/text-color": {
|
3351
|
+
"type": "string",
|
3352
|
+
"description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
|
3353
|
+
},
|
3354
|
+
"van-tag/closeable": {
|
3355
|
+
"type": "boolean",
|
3356
|
+
"description": "是否为可关闭标签, 默认值: `false`"
|
3357
3357
|
}
|
3358
3358
|
}
|