vant 2.13.8 → 2.13.9-beta.0
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/changelog.generated.md +14 -4
- package/es/index.js +1 -1
- package/es/sku/Sku.js +107 -35
- package/es/sku/utils/sku-helper.js +120 -2
- package/lib/index.js +1 -1
- package/lib/sku/Sku.js +109 -37
- package/lib/sku/utils/sku-helper.js +125 -4
- package/lib/vant.js +227 -37
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +511 -511
- package/vetur/tags.json +194 -194
- package/vetur/web-types.json +1441 -1441
package/vetur/attributes.json
CHANGED
@@ -155,34 +155,6 @@
|
|
155
155
|
"type": "(key, val) => string",
|
156
156
|
"description": "自定义校验函数, 默认值: -"
|
157
157
|
},
|
158
|
-
"van-address-list/v-model": {
|
159
|
-
"type": "string",
|
160
|
-
"description": "当前选中地址的 id, 默认值: -"
|
161
|
-
},
|
162
|
-
"van-address-list/list": {
|
163
|
-
"type": "Address[]",
|
164
|
-
"description": "地址列表, 默认值: `[]`"
|
165
|
-
},
|
166
|
-
"van-address-list/disabled-list": {
|
167
|
-
"type": "Address[]",
|
168
|
-
"description": "不可配送地址列表, 默认值: `[]`"
|
169
|
-
},
|
170
|
-
"van-address-list/disabled-text": {
|
171
|
-
"type": "string",
|
172
|
-
"description": "不可配送提示文案, 默认值: -"
|
173
|
-
},
|
174
|
-
"van-address-list/switchable": {
|
175
|
-
"type": "boolean",
|
176
|
-
"description": "是否允许切换地址, 默认值: `true`"
|
177
|
-
},
|
178
|
-
"van-address-list/add-button-text": {
|
179
|
-
"type": "string",
|
180
|
-
"description": "底部按钮文字, 默认值: `新增地址`"
|
181
|
-
},
|
182
|
-
"van-address-list/default-tag-text": {
|
183
|
-
"type": "string",
|
184
|
-
"description": "默认地址标签文字, 默认值: -"
|
185
|
-
},
|
186
158
|
"van-area/value": {
|
187
159
|
"type": "string",
|
188
160
|
"description": "当前选中的省市区`code`, 默认值: -"
|
@@ -235,6 +207,34 @@
|
|
235
207
|
"type": "() => boolean",
|
236
208
|
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
237
209
|
},
|
210
|
+
"van-address-list/v-model": {
|
211
|
+
"type": "string",
|
212
|
+
"description": "当前选中地址的 id, 默认值: -"
|
213
|
+
},
|
214
|
+
"van-address-list/list": {
|
215
|
+
"type": "Address[]",
|
216
|
+
"description": "地址列表, 默认值: `[]`"
|
217
|
+
},
|
218
|
+
"van-address-list/disabled-list": {
|
219
|
+
"type": "Address[]",
|
220
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
221
|
+
},
|
222
|
+
"van-address-list/disabled-text": {
|
223
|
+
"type": "string",
|
224
|
+
"description": "不可配送提示文案, 默认值: -"
|
225
|
+
},
|
226
|
+
"van-address-list/switchable": {
|
227
|
+
"type": "boolean",
|
228
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
229
|
+
},
|
230
|
+
"van-address-list/add-button-text": {
|
231
|
+
"type": "string",
|
232
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
233
|
+
},
|
234
|
+
"van-address-list/default-tag-text": {
|
235
|
+
"type": "string",
|
236
|
+
"description": "默认地址标签文字, 默认值: -"
|
237
|
+
},
|
238
238
|
"van-badge/content": {
|
239
239
|
"type": "number | string",
|
240
240
|
"description": "徽标内容, 默认值: -"
|
@@ -459,6 +459,82 @@
|
|
459
459
|
"type": "string",
|
460
460
|
"description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
461
461
|
},
|
462
|
+
"van-card/thumb": {
|
463
|
+
"type": "string",
|
464
|
+
"description": "左侧图片 URL, 默认值: -"
|
465
|
+
},
|
466
|
+
"van-card/title": {
|
467
|
+
"type": "string",
|
468
|
+
"description": "标题, 默认值: -"
|
469
|
+
},
|
470
|
+
"van-card/desc": {
|
471
|
+
"type": "string",
|
472
|
+
"description": "描述, 默认值: -"
|
473
|
+
},
|
474
|
+
"van-card/tag": {
|
475
|
+
"type": "string",
|
476
|
+
"description": "图片角标, 默认值: -"
|
477
|
+
},
|
478
|
+
"van-card/num": {
|
479
|
+
"type": "number | string",
|
480
|
+
"description": "商品数量, 默认值: -"
|
481
|
+
},
|
482
|
+
"van-card/price": {
|
483
|
+
"type": "number | string",
|
484
|
+
"description": "商品价格, 默认值: -"
|
485
|
+
},
|
486
|
+
"van-card/origin-price": {
|
487
|
+
"type": "number | string",
|
488
|
+
"description": "商品划线原价, 默认值: -"
|
489
|
+
},
|
490
|
+
"van-card/centered": {
|
491
|
+
"type": "boolean",
|
492
|
+
"description": "内容是否垂直居中, 默认值: `false`"
|
493
|
+
},
|
494
|
+
"van-card/currency": {
|
495
|
+
"type": "string",
|
496
|
+
"description": "货币符号, 默认值: `¥`"
|
497
|
+
},
|
498
|
+
"van-card/thumb-link": {
|
499
|
+
"type": "string",
|
500
|
+
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
501
|
+
},
|
502
|
+
"van-card/lazy-load": {
|
503
|
+
"type": "boolean",
|
504
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
505
|
+
},
|
506
|
+
"van-cascader/title": {
|
507
|
+
"type": "string",
|
508
|
+
"description": "顶部标题, 默认值: -"
|
509
|
+
},
|
510
|
+
"van-cascader/value": {
|
511
|
+
"type": "string | number",
|
512
|
+
"description": "选中项的值, 默认值: -"
|
513
|
+
},
|
514
|
+
"van-cascader/options": {
|
515
|
+
"type": "Option[]",
|
516
|
+
"description": "可选项数据源, 默认值: `[]`"
|
517
|
+
},
|
518
|
+
"van-cascader/placeholder": {
|
519
|
+
"type": "string",
|
520
|
+
"description": "未选中时的提示文案, 默认值: `请选择`"
|
521
|
+
},
|
522
|
+
"van-cascader/active-color": {
|
523
|
+
"type": "string",
|
524
|
+
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
525
|
+
},
|
526
|
+
"van-cascader/closeable": {
|
527
|
+
"type": "boolean",
|
528
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
529
|
+
},
|
530
|
+
"van-cascader/show-header": {
|
531
|
+
"type": "boolean",
|
532
|
+
"description": "是否展示标题栏, 默认值: `true`"
|
533
|
+
},
|
534
|
+
"van-cascader/field-names": {
|
535
|
+
"type": "object",
|
536
|
+
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
537
|
+
},
|
462
538
|
"van-cell-group/title": {
|
463
539
|
"type": "string",
|
464
540
|
"description": "分组标题, 默认值: `-`"
|
@@ -543,82 +619,6 @@
|
|
543
619
|
"type": "any",
|
544
620
|
"description": "描述信息额外类名, 默认值: -"
|
545
621
|
},
|
546
|
-
"van-cascader/title": {
|
547
|
-
"type": "string",
|
548
|
-
"description": "顶部标题, 默认值: -"
|
549
|
-
},
|
550
|
-
"van-cascader/value": {
|
551
|
-
"type": "string | number",
|
552
|
-
"description": "选中项的值, 默认值: -"
|
553
|
-
},
|
554
|
-
"van-cascader/options": {
|
555
|
-
"type": "Option[]",
|
556
|
-
"description": "可选项数据源, 默认值: `[]`"
|
557
|
-
},
|
558
|
-
"van-cascader/placeholder": {
|
559
|
-
"type": "string",
|
560
|
-
"description": "未选中时的提示文案, 默认值: `请选择`"
|
561
|
-
},
|
562
|
-
"van-cascader/active-color": {
|
563
|
-
"type": "string",
|
564
|
-
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
565
|
-
},
|
566
|
-
"van-cascader/closeable": {
|
567
|
-
"type": "boolean",
|
568
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
569
|
-
},
|
570
|
-
"van-cascader/show-header": {
|
571
|
-
"type": "boolean",
|
572
|
-
"description": "是否展示标题栏, 默认值: `true`"
|
573
|
-
},
|
574
|
-
"van-cascader/field-names": {
|
575
|
-
"type": "object",
|
576
|
-
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
577
|
-
},
|
578
|
-
"van-card/thumb": {
|
579
|
-
"type": "string",
|
580
|
-
"description": "左侧图片 URL, 默认值: -"
|
581
|
-
},
|
582
|
-
"van-card/title": {
|
583
|
-
"type": "string",
|
584
|
-
"description": "标题, 默认值: -"
|
585
|
-
},
|
586
|
-
"van-card/desc": {
|
587
|
-
"type": "string",
|
588
|
-
"description": "描述, 默认值: -"
|
589
|
-
},
|
590
|
-
"van-card/tag": {
|
591
|
-
"type": "string",
|
592
|
-
"description": "图片角标, 默认值: -"
|
593
|
-
},
|
594
|
-
"van-card/num": {
|
595
|
-
"type": "number | string",
|
596
|
-
"description": "商品数量, 默认值: -"
|
597
|
-
},
|
598
|
-
"van-card/price": {
|
599
|
-
"type": "number | string",
|
600
|
-
"description": "商品价格, 默认值: -"
|
601
|
-
},
|
602
|
-
"van-card/origin-price": {
|
603
|
-
"type": "number | string",
|
604
|
-
"description": "商品划线原价, 默认值: -"
|
605
|
-
},
|
606
|
-
"van-card/centered": {
|
607
|
-
"type": "boolean",
|
608
|
-
"description": "内容是否垂直居中, 默认值: `false`"
|
609
|
-
},
|
610
|
-
"van-card/currency": {
|
611
|
-
"type": "string",
|
612
|
-
"description": "货币符号, 默认值: `¥`"
|
613
|
-
},
|
614
|
-
"van-card/thumb-link": {
|
615
|
-
"type": "string",
|
616
|
-
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
617
|
-
},
|
618
|
-
"van-card/lazy-load": {
|
619
|
-
"type": "boolean",
|
620
|
-
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
621
|
-
},
|
622
622
|
"van-checkbox/v-model (value)": {
|
623
623
|
"type": "boolean",
|
624
624
|
"description": "是否为选中状态, 默认值: `false`"
|
@@ -819,21 +819,21 @@
|
|
819
819
|
"type": "string",
|
820
820
|
"description": "描述信息额外类名, 默认值: -"
|
821
821
|
},
|
822
|
-
"van-contact-
|
823
|
-
"type": "
|
824
|
-
"description": "
|
822
|
+
"van-contact-card/type": {
|
823
|
+
"type": "string",
|
824
|
+
"description": "卡片类型,可选值为 `edit`, 默认值: `add`"
|
825
825
|
},
|
826
|
-
"van-contact-
|
827
|
-
"type": "
|
828
|
-
"description": "
|
826
|
+
"van-contact-card/name": {
|
827
|
+
"type": "string",
|
828
|
+
"description": "联系人姓名, 默认值: -"
|
829
829
|
},
|
830
|
-
"van-contact-
|
830
|
+
"van-contact-card/tel": {
|
831
831
|
"type": "string",
|
832
|
-
"description": "
|
832
|
+
"description": "联系人手机号, 默认值: -"
|
833
833
|
},
|
834
|
-
"van-contact-
|
834
|
+
"van-contact-card/add-text": {
|
835
835
|
"type": "string",
|
836
|
-
"description": "
|
836
|
+
"description": "添加时的文案提示, 默认值: `添加联系人`"
|
837
837
|
},
|
838
838
|
"van-contact-edit/contact-info": {
|
839
839
|
"type": "Contact",
|
@@ -863,21 +863,21 @@
|
|
863
863
|
"type": "string",
|
864
864
|
"description": "默认联系人栏文案, 默认值: -"
|
865
865
|
},
|
866
|
-
"van-contact-
|
867
|
-
"type": "string",
|
868
|
-
"description": "
|
866
|
+
"van-contact-list/v-model": {
|
867
|
+
"type": "number | string",
|
868
|
+
"description": "当前选中联系人的 id, 默认值: -"
|
869
869
|
},
|
870
|
-
"van-contact-
|
871
|
-
"type": "
|
872
|
-
"description": "
|
870
|
+
"van-contact-list/list": {
|
871
|
+
"type": "Contact[]",
|
872
|
+
"description": "联系人列表, 默认值: `[]`"
|
873
873
|
},
|
874
|
-
"van-contact-
|
874
|
+
"van-contact-list/add-text": {
|
875
875
|
"type": "string",
|
876
|
-
"description": "
|
876
|
+
"description": "新建按钮文案, 默认值: `新建联系人`"
|
877
877
|
},
|
878
|
-
"van-contact-
|
878
|
+
"van-contact-list/default-tag-text": {
|
879
879
|
"type": "string",
|
880
|
-
"description": "
|
880
|
+
"description": "默认联系人标签文案, 默认值: -"
|
881
881
|
},
|
882
882
|
"van-count-down/time": {
|
883
883
|
"type": "number | string",
|
@@ -1067,21 +1067,9 @@
|
|
1067
1067
|
"type": "number | string",
|
1068
1068
|
"description": "可选的最大分钟, 默认值: `59`"
|
1069
1069
|
},
|
1070
|
-
"van-
|
1071
|
-
"type": "boolean",
|
1072
|
-
"description": "是否使用虚线, 默认值: `false`"
|
1073
|
-
},
|
1074
|
-
"van-divider/hairline": {
|
1070
|
+
"van-dialog/v-model": {
|
1075
1071
|
"type": "boolean",
|
1076
|
-
"description": "
|
1077
|
-
},
|
1078
|
-
"van-divider/content-position": {
|
1079
|
-
"type": "string",
|
1080
|
-
"description": "内容位置,可选值为`left` `right`, 默认值: `center`"
|
1081
|
-
},
|
1082
|
-
"van-dialog/v-model": {
|
1083
|
-
"type": "boolean",
|
1084
|
-
"description": "是否显示弹窗, 默认值: -"
|
1072
|
+
"description": "是否显示弹窗, 默认值: -"
|
1085
1073
|
},
|
1086
1074
|
"van-dialog/title": {
|
1087
1075
|
"type": "string",
|
@@ -1171,6 +1159,18 @@
|
|
1171
1159
|
"type": "string | () => Element",
|
1172
1160
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
1173
1161
|
},
|
1162
|
+
"van-divider/dashed": {
|
1163
|
+
"type": "boolean",
|
1164
|
+
"description": "是否使用虚线, 默认值: `false`"
|
1165
|
+
},
|
1166
|
+
"van-divider/hairline": {
|
1167
|
+
"type": "boolean",
|
1168
|
+
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1169
|
+
},
|
1170
|
+
"van-divider/content-position": {
|
1171
|
+
"type": "string",
|
1172
|
+
"description": "内容位置,可选值为`left` `right`, 默认值: `center`"
|
1173
|
+
},
|
1174
1174
|
"van-dropdown-menu/active-color": {
|
1175
1175
|
"type": "string",
|
1176
1176
|
"description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
|
@@ -1379,6 +1379,58 @@
|
|
1379
1379
|
"type": "string",
|
1380
1380
|
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
1381
1381
|
},
|
1382
|
+
"van-form/label-width": {
|
1383
|
+
"type": "number | string",
|
1384
|
+
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1385
|
+
},
|
1386
|
+
"van-form/label-align": {
|
1387
|
+
"type": "string",
|
1388
|
+
"description": "表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1389
|
+
},
|
1390
|
+
"van-form/input-align": {
|
1391
|
+
"type": "string",
|
1392
|
+
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1393
|
+
},
|
1394
|
+
"van-form/error-message-align": {
|
1395
|
+
"type": "string",
|
1396
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1397
|
+
},
|
1398
|
+
"van-form/validate-trigger": {
|
1399
|
+
"type": "string",
|
1400
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
|
1401
|
+
},
|
1402
|
+
"van-form/colon": {
|
1403
|
+
"type": "boolean",
|
1404
|
+
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1405
|
+
},
|
1406
|
+
"van-form/disabled": {
|
1407
|
+
"type": "boolean",
|
1408
|
+
"description": "是否禁用表单中的所有输入框, 默认值: `false`"
|
1409
|
+
},
|
1410
|
+
"van-form/readonly": {
|
1411
|
+
"type": "boolean",
|
1412
|
+
"description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
|
1413
|
+
},
|
1414
|
+
"van-form/validate-first": {
|
1415
|
+
"type": "boolean",
|
1416
|
+
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1417
|
+
},
|
1418
|
+
"van-form/scroll-to-error": {
|
1419
|
+
"type": "boolean",
|
1420
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
|
1421
|
+
},
|
1422
|
+
"van-form/show-error": {
|
1423
|
+
"type": "boolean",
|
1424
|
+
"description": "是否在校验不通过时标红输入框, 默认值: `true`"
|
1425
|
+
},
|
1426
|
+
"van-form/show-error-message": {
|
1427
|
+
"type": "boolean",
|
1428
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
|
1429
|
+
},
|
1430
|
+
"van-form/submit-on-enter": {
|
1431
|
+
"type": "boolean",
|
1432
|
+
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1433
|
+
},
|
1382
1434
|
"van-goods-action/safe-area-inset-bottom": {
|
1383
1435
|
"type": "boolean",
|
1384
1436
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
@@ -1459,90 +1511,6 @@
|
|
1459
1511
|
"type": "boolean",
|
1460
1512
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1461
1513
|
},
|
1462
|
-
"van-form/label-width": {
|
1463
|
-
"type": "number | string",
|
1464
|
-
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1465
|
-
},
|
1466
|
-
"van-form/label-align": {
|
1467
|
-
"type": "string",
|
1468
|
-
"description": "表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1469
|
-
},
|
1470
|
-
"van-form/input-align": {
|
1471
|
-
"type": "string",
|
1472
|
-
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1473
|
-
},
|
1474
|
-
"van-form/error-message-align": {
|
1475
|
-
"type": "string",
|
1476
|
-
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1477
|
-
},
|
1478
|
-
"van-form/validate-trigger": {
|
1479
|
-
"type": "string",
|
1480
|
-
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
|
1481
|
-
},
|
1482
|
-
"van-form/colon": {
|
1483
|
-
"type": "boolean",
|
1484
|
-
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1485
|
-
},
|
1486
|
-
"van-form/disabled": {
|
1487
|
-
"type": "boolean",
|
1488
|
-
"description": "是否禁用表单中的所有输入框, 默认值: `false`"
|
1489
|
-
},
|
1490
|
-
"van-form/readonly": {
|
1491
|
-
"type": "boolean",
|
1492
|
-
"description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
|
1493
|
-
},
|
1494
|
-
"van-form/validate-first": {
|
1495
|
-
"type": "boolean",
|
1496
|
-
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1497
|
-
},
|
1498
|
-
"van-form/scroll-to-error": {
|
1499
|
-
"type": "boolean",
|
1500
|
-
"description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
|
1501
|
-
},
|
1502
|
-
"van-form/show-error": {
|
1503
|
-
"type": "boolean",
|
1504
|
-
"description": "是否在校验不通过时标红输入框, 默认值: `true`"
|
1505
|
-
},
|
1506
|
-
"van-form/show-error-message": {
|
1507
|
-
"type": "boolean",
|
1508
|
-
"description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
|
1509
|
-
},
|
1510
|
-
"van-form/submit-on-enter": {
|
1511
|
-
"type": "boolean",
|
1512
|
-
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1513
|
-
},
|
1514
|
-
"van-icon/name": {
|
1515
|
-
"type": "string",
|
1516
|
-
"description": "图标名称或图片链接, 默认值: -"
|
1517
|
-
},
|
1518
|
-
"van-icon/dot": {
|
1519
|
-
"type": "boolean",
|
1520
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1521
|
-
},
|
1522
|
-
"van-icon/badge": {
|
1523
|
-
"type": "number | string",
|
1524
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1525
|
-
},
|
1526
|
-
"van-icon/info": {
|
1527
|
-
"type": "number | string",
|
1528
|
-
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
1529
|
-
},
|
1530
|
-
"van-icon/color": {
|
1531
|
-
"type": "string",
|
1532
|
-
"description": "图标颜色, 默认值: `inherit`"
|
1533
|
-
},
|
1534
|
-
"van-icon/size": {
|
1535
|
-
"type": "number | string",
|
1536
|
-
"description": "图标大小,如 `20px` `2em`,默认单位为`px`, 默认值: `inherit`"
|
1537
|
-
},
|
1538
|
-
"van-icon/class-prefix": {
|
1539
|
-
"type": "string",
|
1540
|
-
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1541
|
-
},
|
1542
|
-
"van-icon/tag": {
|
1543
|
-
"type": "string",
|
1544
|
-
"description": "HTML 标签, 默认值: `i`"
|
1545
|
-
},
|
1546
1514
|
"van-grid/column-num": {
|
1547
1515
|
"type": "number | string",
|
1548
1516
|
"description": "列数, 默认值: `4`"
|
@@ -1611,6 +1579,38 @@
|
|
1611
1579
|
"type": "boolean",
|
1612
1580
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1613
1581
|
},
|
1582
|
+
"van-icon/name": {
|
1583
|
+
"type": "string",
|
1584
|
+
"description": "图标名称或图片链接, 默认值: -"
|
1585
|
+
},
|
1586
|
+
"van-icon/dot": {
|
1587
|
+
"type": "boolean",
|
1588
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1589
|
+
},
|
1590
|
+
"van-icon/badge": {
|
1591
|
+
"type": "number | string",
|
1592
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1593
|
+
},
|
1594
|
+
"van-icon/info": {
|
1595
|
+
"type": "number | string",
|
1596
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
1597
|
+
},
|
1598
|
+
"van-icon/color": {
|
1599
|
+
"type": "string",
|
1600
|
+
"description": "图标颜色, 默认值: `inherit`"
|
1601
|
+
},
|
1602
|
+
"van-icon/size": {
|
1603
|
+
"type": "number | string",
|
1604
|
+
"description": "图标大小,如 `20px` `2em`,默认单位为`px`, 默认值: `inherit`"
|
1605
|
+
},
|
1606
|
+
"van-icon/class-prefix": {
|
1607
|
+
"type": "string",
|
1608
|
+
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1609
|
+
},
|
1610
|
+
"van-icon/tag": {
|
1611
|
+
"type": "string",
|
1612
|
+
"description": "HTML 标签, 默认值: `i`"
|
1613
|
+
},
|
1614
1614
|
"van-image/src": {
|
1615
1615
|
"type": "string",
|
1616
1616
|
"description": "图片链接, 默认值: -"
|
@@ -1663,30 +1663,6 @@
|
|
1663
1663
|
"type": "string",
|
1664
1664
|
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1665
1665
|
},
|
1666
|
-
"van-index-bar/index-list": {
|
1667
|
-
"type": "string[] | number[]",
|
1668
|
-
"description": "索引字符列表, 默认值: `A-Z`"
|
1669
|
-
},
|
1670
|
-
"van-index-bar/z-index": {
|
1671
|
-
"type": "number | string",
|
1672
|
-
"description": "z-index 层级, 默认值: `1`"
|
1673
|
-
},
|
1674
|
-
"van-index-bar/sticky": {
|
1675
|
-
"type": "boolean",
|
1676
|
-
"description": "是否开启锚点自动吸顶, 默认值: `true`"
|
1677
|
-
},
|
1678
|
-
"van-index-bar/sticky-offset-top": {
|
1679
|
-
"type": "number",
|
1680
|
-
"description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
|
1681
|
-
},
|
1682
|
-
"van-index-bar/highlight-color": {
|
1683
|
-
"type": "string",
|
1684
|
-
"description": "索引字符高亮颜色, 默认值: `#ee0a24`"
|
1685
|
-
},
|
1686
|
-
"van-index-anchor/index": {
|
1687
|
-
"type": "number | string",
|
1688
|
-
"description": "索引字符, 默认值: -"
|
1689
|
-
},
|
1690
1666
|
"van-image-preview/images": {
|
1691
1667
|
"type": "string[]",
|
1692
1668
|
"description": "需要预览的图片 URL 数组, 默认值: `[]`"
|
@@ -1755,6 +1731,30 @@
|
|
1755
1731
|
"type": "string | () => Element",
|
1756
1732
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
1757
1733
|
},
|
1734
|
+
"van-index-bar/index-list": {
|
1735
|
+
"type": "string[] | number[]",
|
1736
|
+
"description": "索引字符列表, 默认值: `A-Z`"
|
1737
|
+
},
|
1738
|
+
"van-index-bar/z-index": {
|
1739
|
+
"type": "number | string",
|
1740
|
+
"description": "z-index 层级, 默认值: `1`"
|
1741
|
+
},
|
1742
|
+
"van-index-bar/sticky": {
|
1743
|
+
"type": "boolean",
|
1744
|
+
"description": "是否开启锚点自动吸顶, 默认值: `true`"
|
1745
|
+
},
|
1746
|
+
"van-index-bar/sticky-offset-top": {
|
1747
|
+
"type": "number",
|
1748
|
+
"description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
|
1749
|
+
},
|
1750
|
+
"van-index-bar/highlight-color": {
|
1751
|
+
"type": "string",
|
1752
|
+
"description": "索引字符高亮颜色, 默认值: `#ee0a24`"
|
1753
|
+
},
|
1754
|
+
"van-index-anchor/index": {
|
1755
|
+
"type": "number | string",
|
1756
|
+
"description": "索引字符, 默认值: -"
|
1757
|
+
},
|
1758
1758
|
"van-list/v-model": {
|
1759
1759
|
"type": "boolean",
|
1760
1760
|
"description": "是否处于加载状态,加载过程中不触发`load`事件, 默认值: `false`"
|
@@ -1951,6 +1951,30 @@
|
|
1951
1951
|
"type": "boolean",
|
1952
1952
|
"description": "是否将通过随机顺序展示按键, 默认值: `false`"
|
1953
1953
|
},
|
1954
|
+
"van-overlay/show": {
|
1955
|
+
"type": "boolean",
|
1956
|
+
"description": "是否展示遮罩层, 默认值: `false`"
|
1957
|
+
},
|
1958
|
+
"van-overlay/z-index": {
|
1959
|
+
"type": "number | string",
|
1960
|
+
"description": "z-index 层级, 默认值: `1`"
|
1961
|
+
},
|
1962
|
+
"van-overlay/duration": {
|
1963
|
+
"type": "number | string",
|
1964
|
+
"description": "动画时长,单位秒, 默认值: `0.3`"
|
1965
|
+
},
|
1966
|
+
"van-overlay/class-name": {
|
1967
|
+
"type": "string",
|
1968
|
+
"description": "自定义类名, 默认值: -"
|
1969
|
+
},
|
1970
|
+
"van-overlay/custom-style": {
|
1971
|
+
"type": "object",
|
1972
|
+
"description": "自定义样式, 默认值: -"
|
1973
|
+
},
|
1974
|
+
"van-overlay/lock-scroll": {
|
1975
|
+
"type": "boolean",
|
1976
|
+
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
1977
|
+
},
|
1954
1978
|
"van-pagination/v-model": {
|
1955
1979
|
"type": "number",
|
1956
1980
|
"description": "当前页码, 默认值: -"
|
@@ -1987,29 +2011,21 @@
|
|
1987
2011
|
"type": "boolean",
|
1988
2012
|
"description": "是否显示省略号, 默认值: `false`"
|
1989
2013
|
},
|
1990
|
-
"van-
|
1991
|
-
"type": "
|
1992
|
-
"description": "
|
1993
|
-
},
|
1994
|
-
"van-overlay/z-index": {
|
1995
|
-
"type": "number | string",
|
1996
|
-
"description": "z-index 层级, 默认值: `1`"
|
1997
|
-
},
|
1998
|
-
"van-overlay/duration": {
|
1999
|
-
"type": "number | string",
|
2000
|
-
"description": "动画时长,单位秒, 默认值: `0.3`"
|
2014
|
+
"van-panel/title": {
|
2015
|
+
"type": "string",
|
2016
|
+
"description": "标题, 默认值: -"
|
2001
2017
|
},
|
2002
|
-
"van-
|
2018
|
+
"van-panel/desc": {
|
2003
2019
|
"type": "string",
|
2004
|
-
"description": "
|
2020
|
+
"description": "描述, 默认值: -"
|
2005
2021
|
},
|
2006
|
-
"van-
|
2007
|
-
"type": "
|
2008
|
-
"description": "
|
2022
|
+
"van-panel/status": {
|
2023
|
+
"type": "string",
|
2024
|
+
"description": "状态, 默认值: -"
|
2009
2025
|
},
|
2010
|
-
"van-
|
2011
|
-
"type": "
|
2012
|
-
"description": "
|
2026
|
+
"van-panel/icon": {
|
2027
|
+
"type": "string",
|
2028
|
+
"description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2013
2029
|
},
|
2014
2030
|
"van-password-input/value": {
|
2015
2031
|
"type": "string",
|
@@ -2039,58 +2055,6 @@
|
|
2039
2055
|
"type": "boolean",
|
2040
2056
|
"description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
|
2041
2057
|
},
|
2042
|
-
"van-panel/title": {
|
2043
|
-
"type": "string",
|
2044
|
-
"description": "标题, 默认值: -"
|
2045
|
-
},
|
2046
|
-
"van-panel/desc": {
|
2047
|
-
"type": "string",
|
2048
|
-
"description": "描述, 默认值: -"
|
2049
|
-
},
|
2050
|
-
"van-panel/status": {
|
2051
|
-
"type": "string",
|
2052
|
-
"description": "状态, 默认值: -"
|
2053
|
-
},
|
2054
|
-
"van-panel/icon": {
|
2055
|
-
"type": "string",
|
2056
|
-
"description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2057
|
-
},
|
2058
|
-
"van-progress/percentage": {
|
2059
|
-
"type": "number | string",
|
2060
|
-
"description": "进度百分比, 默认值: `0`"
|
2061
|
-
},
|
2062
|
-
"van-progress/stroke-width": {
|
2063
|
-
"type": "number | string",
|
2064
|
-
"description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
|
2065
|
-
},
|
2066
|
-
"van-progress/color": {
|
2067
|
-
"type": "string",
|
2068
|
-
"description": "进度条颜色, 默认值: `#1989fa`"
|
2069
|
-
},
|
2070
|
-
"van-progress/track-color": {
|
2071
|
-
"type": "string",
|
2072
|
-
"description": "轨道颜色, 默认值: `#e5e5e5`"
|
2073
|
-
},
|
2074
|
-
"van-progress/pivot-text": {
|
2075
|
-
"type": "string",
|
2076
|
-
"description": "进度文字内容, 默认值: 百分比"
|
2077
|
-
},
|
2078
|
-
"van-progress/pivot-color": {
|
2079
|
-
"type": "string",
|
2080
|
-
"description": "进度文字背景色, 默认值: 同进度条颜色"
|
2081
|
-
},
|
2082
|
-
"van-progress/text-color": {
|
2083
|
-
"type": "string",
|
2084
|
-
"description": "进度文字颜色, 默认值: `white`"
|
2085
|
-
},
|
2086
|
-
"van-progress/inactive": {
|
2087
|
-
"type": "boolean",
|
2088
|
-
"description": "是否置灰, 默认值: `false`"
|
2089
|
-
},
|
2090
|
-
"van-progress/show-pivot": {
|
2091
|
-
"type": "boolean",
|
2092
|
-
"description": "是否显示进度文字, 默认值: `true`"
|
2093
|
-
},
|
2094
2058
|
"van-picker/columns": {
|
2095
2059
|
"type": "Column[]",
|
2096
2060
|
"description": "对象数组,配置每一列显示的数据, 默认值: `[]`"
|
@@ -2147,6 +2111,46 @@
|
|
2147
2111
|
"type": "number | string",
|
2148
2112
|
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
2149
2113
|
},
|
2114
|
+
"van-popover/v-model": {
|
2115
|
+
"type": "boolean",
|
2116
|
+
"description": "是否展示气泡弹出层, 默认值: `false`"
|
2117
|
+
},
|
2118
|
+
"van-popover/actions": {
|
2119
|
+
"type": "Action[]",
|
2120
|
+
"description": "选项列表, 默认值: `[]`"
|
2121
|
+
},
|
2122
|
+
"van-popover/placement": {
|
2123
|
+
"type": "string",
|
2124
|
+
"description": "弹出位置, 默认值: `bottom`"
|
2125
|
+
},
|
2126
|
+
"van-popover/theme": {
|
2127
|
+
"type": "string",
|
2128
|
+
"description": "主题风格,可选值为 `dark`, 默认值: `light`"
|
2129
|
+
},
|
2130
|
+
"van-popover/trigger": {
|
2131
|
+
"type": "-",
|
2132
|
+
"description": "触发方式,可选值为 `click`, 默认值: undefined"
|
2133
|
+
},
|
2134
|
+
"van-popover/offset": {
|
2135
|
+
"type": "[number, number]",
|
2136
|
+
"description": "出现位置的偏移量, 默认值: `[0, 8]`"
|
2137
|
+
},
|
2138
|
+
"van-popover/overlay": {
|
2139
|
+
"type": "boolean",
|
2140
|
+
"description": "是否显示遮罩层, 默认值: `false`"
|
2141
|
+
},
|
2142
|
+
"van-popover/close-on-click-action": {
|
2143
|
+
"type": "boolean",
|
2144
|
+
"description": "是否在点击选项后关闭, 默认值: `true`"
|
2145
|
+
},
|
2146
|
+
"van-popover/close-on-click-outside": {
|
2147
|
+
"type": "boolean",
|
2148
|
+
"description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
|
2149
|
+
},
|
2150
|
+
"van-popover/get-container": {
|
2151
|
+
"type": "string | () => Element",
|
2152
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: `body`"
|
2153
|
+
},
|
2150
2154
|
"van-popup/v-model (value)": {
|
2151
2155
|
"type": "boolean",
|
2152
2156
|
"description": "是否显示弹出层, 默认值: `false`"
|
@@ -2219,45 +2223,81 @@
|
|
2219
2223
|
"type": "boolean",
|
2220
2224
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
2221
2225
|
},
|
2222
|
-
"van-
|
2223
|
-
"type": "
|
2224
|
-
"description": "
|
2226
|
+
"van-progress/percentage": {
|
2227
|
+
"type": "number | string",
|
2228
|
+
"description": "进度百分比, 默认值: `0`"
|
2225
2229
|
},
|
2226
|
-
"van-
|
2227
|
-
"type": "
|
2228
|
-
"description": "
|
2230
|
+
"van-progress/stroke-width": {
|
2231
|
+
"type": "number | string",
|
2232
|
+
"description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
|
2229
2233
|
},
|
2230
|
-
"van-
|
2234
|
+
"van-progress/color": {
|
2231
2235
|
"type": "string",
|
2232
|
-
"description": "
|
2236
|
+
"description": "进度条颜色, 默认值: `#1989fa`"
|
2233
2237
|
},
|
2234
|
-
"van-
|
2238
|
+
"van-progress/track-color": {
|
2235
2239
|
"type": "string",
|
2236
|
-
"description": "
|
2240
|
+
"description": "轨道颜色, 默认值: `#e5e5e5`"
|
2237
2241
|
},
|
2238
|
-
"van-
|
2239
|
-
"type": "
|
2240
|
-
"description": "
|
2242
|
+
"van-progress/pivot-text": {
|
2243
|
+
"type": "string",
|
2244
|
+
"description": "进度文字内容, 默认值: 百分比"
|
2241
2245
|
},
|
2242
|
-
"van-
|
2243
|
-
"type": "
|
2244
|
-
"description": "
|
2246
|
+
"van-progress/pivot-color": {
|
2247
|
+
"type": "string",
|
2248
|
+
"description": "进度文字背景色, 默认值: 同进度条颜色"
|
2245
2249
|
},
|
2246
|
-
"van-
|
2250
|
+
"van-progress/text-color": {
|
2251
|
+
"type": "string",
|
2252
|
+
"description": "进度文字颜色, 默认值: `white`"
|
2253
|
+
},
|
2254
|
+
"van-progress/inactive": {
|
2247
2255
|
"type": "boolean",
|
2248
|
-
"description": "
|
2256
|
+
"description": "是否置灰, 默认值: `false`"
|
2249
2257
|
},
|
2250
|
-
"van-
|
2258
|
+
"van-progress/show-pivot": {
|
2251
2259
|
"type": "boolean",
|
2252
|
-
"description": "
|
2260
|
+
"description": "是否显示进度文字, 默认值: `true`"
|
2253
2261
|
},
|
2254
|
-
"van-
|
2262
|
+
"van-pull-refresh/v-model": {
|
2255
2263
|
"type": "boolean",
|
2256
|
-
"description": "
|
2264
|
+
"description": "是否处于加载中状态, 默认值: -"
|
2257
2265
|
},
|
2258
|
-
"van-
|
2259
|
-
"type": "string
|
2260
|
-
"description": "
|
2266
|
+
"van-pull-refresh/pulling-text": {
|
2267
|
+
"type": "string",
|
2268
|
+
"description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
|
2269
|
+
},
|
2270
|
+
"van-pull-refresh/loosing-text": {
|
2271
|
+
"type": "string",
|
2272
|
+
"description": "释放过程提示文案, 默认值: `释放即可刷新...`"
|
2273
|
+
},
|
2274
|
+
"van-pull-refresh/loading-text": {
|
2275
|
+
"type": "string",
|
2276
|
+
"description": "加载过程提示文案, 默认值: `加载中...`"
|
2277
|
+
},
|
2278
|
+
"van-pull-refresh/success-text": {
|
2279
|
+
"type": "string",
|
2280
|
+
"description": "刷新成功提示文案, 默认值: -"
|
2281
|
+
},
|
2282
|
+
"van-pull-refresh/success-duration": {
|
2283
|
+
"type": "number | string",
|
2284
|
+
"description": "刷新成功提示展示时长(ms), 默认值: `500`"
|
2285
|
+
},
|
2286
|
+
"van-pull-refresh/animation-duration": {
|
2287
|
+
"type": "number | string",
|
2288
|
+
"description": "动画时长, 默认值: `300`"
|
2289
|
+
},
|
2290
|
+
"van-pull-refresh/head-height": {
|
2291
|
+
"type": "number | string",
|
2292
|
+
"description": "顶部内容高度, 默认值: `50`"
|
2293
|
+
},
|
2294
|
+
"van-pull-refresh/pull-distance": {
|
2295
|
+
"type": "number | string",
|
2296
|
+
"description": "触发下拉刷新的距离, 默认值: 与 `head-height` 一致"
|
2297
|
+
},
|
2298
|
+
"van-pull-refresh/disabled": {
|
2299
|
+
"type": "boolean",
|
2300
|
+
"description": "是否禁用下拉刷新, 默认值: `false`"
|
2261
2301
|
},
|
2262
2302
|
"van-radio/name": {
|
2263
2303
|
"type": "any",
|
@@ -2288,64 +2328,24 @@
|
|
2288
2328
|
"description": "选中状态颜色, 默认值: `#1989fa`"
|
2289
2329
|
},
|
2290
2330
|
"van-radio-group/v-model (value)": {
|
2291
|
-
"type": "any",
|
2292
|
-
"description": "当前选中项的标识符, 默认值: -"
|
2293
|
-
},
|
2294
|
-
"van-radio-group/disabled": {
|
2295
|
-
"type": "boolean",
|
2296
|
-
"description": "是否禁用所有单选框, 默认值: `false`"
|
2297
|
-
},
|
2298
|
-
"van-radio-group/direction": {
|
2299
|
-
"type": "string",
|
2300
|
-
"description": "排列方向,可选值为`horizontal`, 默认值: `vertical`"
|
2301
|
-
},
|
2302
|
-
"van-radio-group/icon-size": {
|
2303
|
-
"type": "number | string",
|
2304
|
-
"description": "所有单选框的图标大小,默认单位为`px`, 默认值: `20px`"
|
2305
|
-
},
|
2306
|
-
"van-radio-group/checked-color": {
|
2307
|
-
"type": "string",
|
2308
|
-
"description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
|
2309
|
-
},
|
2310
|
-
"van-pull-refresh/v-model": {
|
2311
|
-
"type": "boolean",
|
2312
|
-
"description": "是否处于加载中状态, 默认值: -"
|
2313
|
-
},
|
2314
|
-
"van-pull-refresh/pulling-text": {
|
2315
|
-
"type": "string",
|
2316
|
-
"description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
|
2317
|
-
},
|
2318
|
-
"van-pull-refresh/loosing-text": {
|
2319
|
-
"type": "string",
|
2320
|
-
"description": "释放过程提示文案, 默认值: `释放即可刷新...`"
|
2321
|
-
},
|
2322
|
-
"van-pull-refresh/loading-text": {
|
2323
|
-
"type": "string",
|
2324
|
-
"description": "加载过程提示文案, 默认值: `加载中...`"
|
2325
|
-
},
|
2326
|
-
"van-pull-refresh/success-text": {
|
2327
|
-
"type": "string",
|
2328
|
-
"description": "刷新成功提示文案, 默认值: -"
|
2329
|
-
},
|
2330
|
-
"van-pull-refresh/success-duration": {
|
2331
|
-
"type": "number | string",
|
2332
|
-
"description": "刷新成功提示展示时长(ms), 默认值: `500`"
|
2331
|
+
"type": "any",
|
2332
|
+
"description": "当前选中项的标识符, 默认值: -"
|
2333
2333
|
},
|
2334
|
-
"van-
|
2335
|
-
"type": "
|
2336
|
-
"description": "
|
2334
|
+
"van-radio-group/disabled": {
|
2335
|
+
"type": "boolean",
|
2336
|
+
"description": "是否禁用所有单选框, 默认值: `false`"
|
2337
2337
|
},
|
2338
|
-
"van-
|
2339
|
-
"type": "
|
2340
|
-
"description": "
|
2338
|
+
"van-radio-group/direction": {
|
2339
|
+
"type": "string",
|
2340
|
+
"description": "排列方向,可选值为`horizontal`, 默认值: `vertical`"
|
2341
2341
|
},
|
2342
|
-
"van-
|
2342
|
+
"van-radio-group/icon-size": {
|
2343
2343
|
"type": "number | string",
|
2344
|
-
"description": "
|
2344
|
+
"description": "所有单选框的图标大小,默认单位为`px`, 默认值: `20px`"
|
2345
2345
|
},
|
2346
|
-
"van-
|
2347
|
-
"type": "
|
2348
|
-
"description": "
|
2346
|
+
"van-radio-group/checked-color": {
|
2347
|
+
"type": "string",
|
2348
|
+
"description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
|
2349
2349
|
},
|
2350
2350
|
"van-rate/v-model": {
|
2351
2351
|
"type": "number",
|
@@ -2515,6 +2515,42 @@
|
|
2515
2515
|
"type": "string | () => Element",
|
2516
2516
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
2517
2517
|
},
|
2518
|
+
"van-sidebar/v-model": {
|
2519
|
+
"type": "number | string",
|
2520
|
+
"description": "当前导航项的索引, 默认值: `0`"
|
2521
|
+
},
|
2522
|
+
"van-sidebar-item/title": {
|
2523
|
+
"type": "string",
|
2524
|
+
"description": "内容, 默认值: `''`"
|
2525
|
+
},
|
2526
|
+
"van-sidebar-item/dot": {
|
2527
|
+
"type": "boolean",
|
2528
|
+
"description": "是否显示右上角小红点, 默认值: `false`"
|
2529
|
+
},
|
2530
|
+
"van-sidebar-item/badge": {
|
2531
|
+
"type": "number | string",
|
2532
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
2533
|
+
},
|
2534
|
+
"van-sidebar-item/info": {
|
2535
|
+
"type": "number | string",
|
2536
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
2537
|
+
},
|
2538
|
+
"van-sidebar-item/disabled": {
|
2539
|
+
"type": "boolean",
|
2540
|
+
"description": "是否禁用该项, 默认值: `false`"
|
2541
|
+
},
|
2542
|
+
"van-sidebar-item/url": {
|
2543
|
+
"type": "string",
|
2544
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
2545
|
+
},
|
2546
|
+
"van-sidebar-item/to": {
|
2547
|
+
"type": "string | object",
|
2548
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
2549
|
+
},
|
2550
|
+
"van-sidebar-item/replace": {
|
2551
|
+
"type": "boolean",
|
2552
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
2553
|
+
},
|
2518
2554
|
"van-skeleton/row": {
|
2519
2555
|
"type": "number | string",
|
2520
2556
|
"description": "段落占位图行数, 默认值: `0`"
|
@@ -2555,42 +2591,6 @@
|
|
2555
2591
|
"type": "string",
|
2556
2592
|
"description": "头像占位图形状,可选值为`square`, 默认值: `round`"
|
2557
2593
|
},
|
2558
|
-
"van-sidebar/v-model": {
|
2559
|
-
"type": "number | string",
|
2560
|
-
"description": "当前导航项的索引, 默认值: `0`"
|
2561
|
-
},
|
2562
|
-
"van-sidebar-item/title": {
|
2563
|
-
"type": "string",
|
2564
|
-
"description": "内容, 默认值: `''`"
|
2565
|
-
},
|
2566
|
-
"van-sidebar-item/dot": {
|
2567
|
-
"type": "boolean",
|
2568
|
-
"description": "是否显示右上角小红点, 默认值: `false`"
|
2569
|
-
},
|
2570
|
-
"van-sidebar-item/badge": {
|
2571
|
-
"type": "number | string",
|
2572
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
2573
|
-
},
|
2574
|
-
"van-sidebar-item/info": {
|
2575
|
-
"type": "number | string",
|
2576
|
-
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
2577
|
-
},
|
2578
|
-
"van-sidebar-item/disabled": {
|
2579
|
-
"type": "boolean",
|
2580
|
-
"description": "是否禁用该项, 默认值: `false`"
|
2581
|
-
},
|
2582
|
-
"van-sidebar-item/url": {
|
2583
|
-
"type": "string",
|
2584
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
2585
|
-
},
|
2586
|
-
"van-sidebar-item/to": {
|
2587
|
-
"type": "string | object",
|
2588
|
-
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
2589
|
-
},
|
2590
|
-
"van-sidebar-item/replace": {
|
2591
|
-
"type": "boolean",
|
2592
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
2593
|
-
},
|
2594
2594
|
"van-slider/value": {
|
2595
2595
|
"type": "number | array",
|
2596
2596
|
"description": "当前进度百分比, 默认值: `0`"
|
@@ -2899,6 +2899,54 @@
|
|
2899
2899
|
"type": "Element",
|
2900
2900
|
"description": "容器对应的 HTML 节点, 默认值: -"
|
2901
2901
|
},
|
2902
|
+
"van-swipe/autoplay": {
|
2903
|
+
"type": "number | string",
|
2904
|
+
"description": "自动轮播间隔,单位为 ms, 默认值: -"
|
2905
|
+
},
|
2906
|
+
"van-swipe/duration": {
|
2907
|
+
"type": "number | string",
|
2908
|
+
"description": "动画时长,单位为 ms, 默认值: `500`"
|
2909
|
+
},
|
2910
|
+
"van-swipe/initial-swipe": {
|
2911
|
+
"type": "number | string",
|
2912
|
+
"description": "初始位置索引值, 默认值: `0`"
|
2913
|
+
},
|
2914
|
+
"van-swipe/width": {
|
2915
|
+
"type": "number | string",
|
2916
|
+
"description": "滑块宽度,单位为`px`, 默认值: `auto`"
|
2917
|
+
},
|
2918
|
+
"van-swipe/height": {
|
2919
|
+
"type": "number | string",
|
2920
|
+
"description": "滑块高度,单位为`px`, 默认值: `auto`"
|
2921
|
+
},
|
2922
|
+
"van-swipe/loop": {
|
2923
|
+
"type": "boolean",
|
2924
|
+
"description": "是否开启循环播放, 默认值: `true`"
|
2925
|
+
},
|
2926
|
+
"van-swipe/show-indicators": {
|
2927
|
+
"type": "boolean",
|
2928
|
+
"description": "是否显示指示器, 默认值: `true`"
|
2929
|
+
},
|
2930
|
+
"van-swipe/vertical": {
|
2931
|
+
"type": "boolean",
|
2932
|
+
"description": "是否为纵向滚动, 默认值: `false`"
|
2933
|
+
},
|
2934
|
+
"van-swipe/touchable": {
|
2935
|
+
"type": "boolean",
|
2936
|
+
"description": "是否可以通过手势滑动, 默认值: `true`"
|
2937
|
+
},
|
2938
|
+
"van-swipe/stop-propagation": {
|
2939
|
+
"type": "boolean",
|
2940
|
+
"description": "是否阻止滑动事件冒泡, 默认值: `true`"
|
2941
|
+
},
|
2942
|
+
"van-swipe/lazy-render": {
|
2943
|
+
"type": "boolean",
|
2944
|
+
"description": "是否延迟渲染未展示的轮播, 默认值: `false`"
|
2945
|
+
},
|
2946
|
+
"van-swipe/indicator-color": {
|
2947
|
+
"type": "string",
|
2948
|
+
"description": "指示器颜色, 默认值: `#1989fa`"
|
2949
|
+
},
|
2902
2950
|
"van-submit-bar/price": {
|
2903
2951
|
"type": "number",
|
2904
2952
|
"description": "价格(单位分), 默认值: -"
|
@@ -2955,54 +3003,6 @@
|
|
2955
3003
|
"type": "boolean",
|
2956
3004
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
2957
3005
|
},
|
2958
|
-
"van-swipe/autoplay": {
|
2959
|
-
"type": "number | string",
|
2960
|
-
"description": "自动轮播间隔,单位为 ms, 默认值: -"
|
2961
|
-
},
|
2962
|
-
"van-swipe/duration": {
|
2963
|
-
"type": "number | string",
|
2964
|
-
"description": "动画时长,单位为 ms, 默认值: `500`"
|
2965
|
-
},
|
2966
|
-
"van-swipe/initial-swipe": {
|
2967
|
-
"type": "number | string",
|
2968
|
-
"description": "初始位置索引值, 默认值: `0`"
|
2969
|
-
},
|
2970
|
-
"van-swipe/width": {
|
2971
|
-
"type": "number | string",
|
2972
|
-
"description": "滑块宽度,单位为`px`, 默认值: `auto`"
|
2973
|
-
},
|
2974
|
-
"van-swipe/height": {
|
2975
|
-
"type": "number | string",
|
2976
|
-
"description": "滑块高度,单位为`px`, 默认值: `auto`"
|
2977
|
-
},
|
2978
|
-
"van-swipe/loop": {
|
2979
|
-
"type": "boolean",
|
2980
|
-
"description": "是否开启循环播放, 默认值: `true`"
|
2981
|
-
},
|
2982
|
-
"van-swipe/show-indicators": {
|
2983
|
-
"type": "boolean",
|
2984
|
-
"description": "是否显示指示器, 默认值: `true`"
|
2985
|
-
},
|
2986
|
-
"van-swipe/vertical": {
|
2987
|
-
"type": "boolean",
|
2988
|
-
"description": "是否为纵向滚动, 默认值: `false`"
|
2989
|
-
},
|
2990
|
-
"van-swipe/touchable": {
|
2991
|
-
"type": "boolean",
|
2992
|
-
"description": "是否可以通过手势滑动, 默认值: `true`"
|
2993
|
-
},
|
2994
|
-
"van-swipe/stop-propagation": {
|
2995
|
-
"type": "boolean",
|
2996
|
-
"description": "是否阻止滑动事件冒泡, 默认值: `true`"
|
2997
|
-
},
|
2998
|
-
"van-swipe/lazy-render": {
|
2999
|
-
"type": "boolean",
|
3000
|
-
"description": "是否延迟渲染未展示的轮播, 默认值: `false`"
|
3001
|
-
},
|
3002
|
-
"van-swipe/indicator-color": {
|
3003
|
-
"type": "string",
|
3004
|
-
"description": "指示器颜色, 默认值: `#1989fa`"
|
3005
|
-
},
|
3006
3006
|
"van-swipe-cell/name": {
|
3007
3007
|
"type": "number | string",
|
3008
3008
|
"description": "标识符,可以在事件参数中获取到, 默认值: -"
|
@@ -3223,38 +3223,6 @@
|
|
3223
3223
|
"type": "any",
|
3224
3224
|
"description": "自定义标题类名, 默认值: -"
|
3225
3225
|
},
|
3226
|
-
"van-tag/type": {
|
3227
|
-
"type": "string",
|
3228
|
-
"description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
|
3229
|
-
},
|
3230
|
-
"van-tag/size": {
|
3231
|
-
"type": "string",
|
3232
|
-
"description": "大小, 可选值为`large` `medium`, 默认值: -"
|
3233
|
-
},
|
3234
|
-
"van-tag/color": {
|
3235
|
-
"type": "string",
|
3236
|
-
"description": "标签颜色, 默认值: -"
|
3237
|
-
},
|
3238
|
-
"van-tag/plain": {
|
3239
|
-
"type": "boolean",
|
3240
|
-
"description": "是否为空心样式, 默认值: `false`"
|
3241
|
-
},
|
3242
|
-
"van-tag/round": {
|
3243
|
-
"type": "boolean",
|
3244
|
-
"description": "是否为圆角样式, 默认值: `false`"
|
3245
|
-
},
|
3246
|
-
"van-tag/mark": {
|
3247
|
-
"type": "boolean",
|
3248
|
-
"description": "是否为标记样式, 默认值: `false`"
|
3249
|
-
},
|
3250
|
-
"van-tag/text-color": {
|
3251
|
-
"type": "string",
|
3252
|
-
"description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
|
3253
|
-
},
|
3254
|
-
"van-tag/closeable": {
|
3255
|
-
"type": "boolean",
|
3256
|
-
"description": "是否为可关闭标签, 默认值: `false`"
|
3257
|
-
},
|
3258
3226
|
"van-tabbar/v-model": {
|
3259
3227
|
"type": "number | string",
|
3260
3228
|
"description": "当前选中标签的名称或索引值, 默认值: `0`"
|
@@ -3331,6 +3299,38 @@
|
|
3331
3299
|
"type": "boolean",
|
3332
3300
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
3333
3301
|
},
|
3302
|
+
"van-tag/type": {
|
3303
|
+
"type": "string",
|
3304
|
+
"description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
|
3305
|
+
},
|
3306
|
+
"van-tag/size": {
|
3307
|
+
"type": "string",
|
3308
|
+
"description": "大小, 可选值为`large` `medium`, 默认值: -"
|
3309
|
+
},
|
3310
|
+
"van-tag/color": {
|
3311
|
+
"type": "string",
|
3312
|
+
"description": "标签颜色, 默认值: -"
|
3313
|
+
},
|
3314
|
+
"van-tag/plain": {
|
3315
|
+
"type": "boolean",
|
3316
|
+
"description": "是否为空心样式, 默认值: `false`"
|
3317
|
+
},
|
3318
|
+
"van-tag/round": {
|
3319
|
+
"type": "boolean",
|
3320
|
+
"description": "是否为圆角样式, 默认值: `false`"
|
3321
|
+
},
|
3322
|
+
"van-tag/mark": {
|
3323
|
+
"type": "boolean",
|
3324
|
+
"description": "是否为标记样式, 默认值: `false`"
|
3325
|
+
},
|
3326
|
+
"van-tag/text-color": {
|
3327
|
+
"type": "string",
|
3328
|
+
"description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
|
3329
|
+
},
|
3330
|
+
"van-tag/closeable": {
|
3331
|
+
"type": "boolean",
|
3332
|
+
"description": "是否为可关闭标签, 默认值: `false`"
|
3333
|
+
},
|
3334
3334
|
"van-tree-select/items": {
|
3335
3335
|
"type": "Item[]",
|
3336
3336
|
"description": "分类显示所需的数据, 默认值: `[]`"
|