vant 2.12.48 → 2.12.49

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.
Files changed (61) hide show
  1. package/README.md +11 -11
  2. package/README.zh-CN.md +9 -9
  3. package/changelog.generated.md +24 -0
  4. package/es/button/index.less +1 -1
  5. package/es/calendar/index.js +2 -2
  6. package/es/collapse-item/index.less +1 -1
  7. package/es/count-down/index.js +1 -1
  8. package/es/datetime-picker/DatePicker.js +1 -1
  9. package/es/datetime-picker/TimePicker.js +1 -1
  10. package/es/datetime-picker/shared.js +1 -1
  11. package/es/field/index.js +3 -3
  12. package/es/grid-item/index.less +1 -1
  13. package/es/index.js +1 -1
  14. package/es/locale/lang/vi-VN.js +18 -18
  15. package/es/mixins/touch.js +1 -1
  16. package/es/nav-bar/index.js +1 -1
  17. package/es/notice-bar/index.js +1 -1
  18. package/es/number-keyboard/Key.js +1 -1
  19. package/es/picker/index.js +2 -2
  20. package/es/sidebar-item/index.less +1 -1
  21. package/es/stepper/index.js +1 -1
  22. package/es/swipe/index.less +1 -1
  23. package/es/switch/index.less +1 -1
  24. package/es/switch-cell/index.js +1 -1
  25. package/es/tabbar/index.js +1 -1
  26. package/es/tabs/index.js +1 -1
  27. package/es/toast/index.less +1 -1
  28. package/es/utils/dom/scroll.js +1 -1
  29. package/es/utils/index.js +1 -1
  30. package/lib/button/index.less +1 -1
  31. package/lib/calendar/index.js +2 -2
  32. package/lib/collapse-item/index.less +1 -1
  33. package/lib/count-down/index.js +1 -1
  34. package/lib/datetime-picker/DatePicker.js +1 -1
  35. package/lib/datetime-picker/TimePicker.js +1 -1
  36. package/lib/datetime-picker/shared.js +1 -1
  37. package/lib/field/index.js +3 -3
  38. package/lib/grid-item/index.less +1 -1
  39. package/lib/index.js +1 -1
  40. package/lib/locale/lang/vi-VN.js +18 -18
  41. package/lib/mixins/touch.js +1 -1
  42. package/lib/nav-bar/index.js +1 -1
  43. package/lib/notice-bar/index.js +1 -1
  44. package/lib/number-keyboard/Key.js +1 -1
  45. package/lib/picker/index.js +2 -2
  46. package/lib/sidebar-item/index.less +1 -1
  47. package/lib/stepper/index.js +1 -1
  48. package/lib/swipe/index.less +1 -1
  49. package/lib/switch/index.less +1 -1
  50. package/lib/switch-cell/index.js +1 -1
  51. package/lib/tabbar/index.js +1 -1
  52. package/lib/tabs/index.js +1 -1
  53. package/lib/toast/index.less +1 -1
  54. package/lib/utils/dom/scroll.js +1 -1
  55. package/lib/utils/index.js +1 -1
  56. package/lib/vant.js +21 -21
  57. package/lib/vant.min.js +2 -2
  58. package/package.json +3 -3
  59. package/vetur/attributes.json +426 -426
  60. package/vetur/tags.json +137 -137
  61. package/vetur/web-types.json +1074 -1074
@@ -67,6 +67,34 @@
67
67
  "type": "string | () => Element",
68
68
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
69
69
  },
70
+ "van-address-list/v-model": {
71
+ "type": "string",
72
+ "description": "当前选中地址的 id, 默认值: -"
73
+ },
74
+ "van-address-list/list": {
75
+ "type": "Address[]",
76
+ "description": "地址列表, 默认值: `[]`"
77
+ },
78
+ "van-address-list/disabled-list": {
79
+ "type": "Address[]",
80
+ "description": "不可配送地址列表, 默认值: `[]`"
81
+ },
82
+ "van-address-list/disabled-text": {
83
+ "type": "string",
84
+ "description": "不可配送提示文案, 默认值: -"
85
+ },
86
+ "van-address-list/switchable": {
87
+ "type": "boolean",
88
+ "description": "是否允许切换地址, 默认值: `true`"
89
+ },
90
+ "van-address-list/add-button-text": {
91
+ "type": "string",
92
+ "description": "底部按钮文字, 默认值: `新增地址`"
93
+ },
94
+ "van-address-list/default-tag-text": {
95
+ "type": "string",
96
+ "description": "默认地址标签文字, 默认值: -"
97
+ },
70
98
  "van-address-edit/area-list": {
71
99
  "type": "object",
72
100
  "description": "地区列表, 默认值: -"
@@ -207,33 +235,109 @@
207
235
  "type": "() => boolean",
208
236
  "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
209
237
  },
210
- "van-address-list/v-model": {
238
+ "van-badge/content": {
239
+ "type": "number | string",
240
+ "description": "徽标内容, 默认值: -"
241
+ },
242
+ "van-badge/color": {
211
243
  "type": "string",
212
- "description": "当前选中地址的 id, 默认值: -"
244
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
213
245
  },
214
- "van-address-list/list": {
215
- "type": "Address[]",
216
- "description": "地址列表, 默认值: `[]`"
246
+ "van-badge/dot": {
247
+ "type": "boolean",
248
+ "description": "是否展示为小红点, 默认值: `false`"
217
249
  },
218
- "van-address-list/disabled-list": {
219
- "type": "Address[]",
220
- "description": "不可配送地址列表, 默认值: `[]`"
250
+ "van-badge/max": {
251
+ "type": "number | string",
252
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
221
253
  },
222
- "van-address-list/disabled-text": {
254
+ "van-button/type": {
223
255
  "type": "string",
224
- "description": "不可配送提示文案, 默认值: -"
256
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
225
257
  },
226
- "van-address-list/switchable": {
258
+ "van-button/size": {
259
+ "type": "string",
260
+ "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
261
+ },
262
+ "van-button/text": {
263
+ "type": "string",
264
+ "description": "按钮文字, 默认值: -"
265
+ },
266
+ "van-button/color": {
267
+ "type": "string",
268
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
269
+ },
270
+ "van-button/icon": {
271
+ "type": "string",
272
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
273
+ },
274
+ "van-button/icon-prefix": {
275
+ "type": "string",
276
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
277
+ },
278
+ "van-button/icon-position": {
279
+ "type": "string",
280
+ "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
281
+ },
282
+ "van-button/tag": {
283
+ "type": "string",
284
+ "description": "按钮根节点的 HTML 标签, 默认值: `button`"
285
+ },
286
+ "van-button/native-type": {
287
+ "type": "string",
288
+ "description": "原生 button 标签的 type 属性, 默认值: -"
289
+ },
290
+ "van-button/block": {
227
291
  "type": "boolean",
228
- "description": "是否允许切换地址, 默认值: `true`"
292
+ "description": "是否为块级元素, 默认值: `false`"
229
293
  },
230
- "van-address-list/add-button-text": {
294
+ "van-button/plain": {
295
+ "type": "boolean",
296
+ "description": "是否为朴素按钮, 默认值: `false`"
297
+ },
298
+ "van-button/square": {
299
+ "type": "boolean",
300
+ "description": "是否为方形按钮, 默认值: `false`"
301
+ },
302
+ "van-button/round": {
303
+ "type": "boolean",
304
+ "description": "是否为圆形按钮, 默认值: `false`"
305
+ },
306
+ "van-button/disabled": {
307
+ "type": "boolean",
308
+ "description": "是否禁用按钮, 默认值: `false`"
309
+ },
310
+ "van-button/hairline": {
311
+ "type": "boolean",
312
+ "description": "是否使用 0.5px 边框, 默认值: `false`"
313
+ },
314
+ "van-button/loading": {
315
+ "type": "boolean",
316
+ "description": "是否显示为加载状态, 默认值: `false`"
317
+ },
318
+ "van-button/loading-text": {
231
319
  "type": "string",
232
- "description": "底部按钮文字, 默认值: `新增地址`"
320
+ "description": "加载状态提示文字, 默认值: -"
233
321
  },
234
- "van-address-list/default-tag-text": {
322
+ "van-button/loading-type": {
235
323
  "type": "string",
236
- "description": "默认地址标签文字, 默认值: -"
324
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
325
+ },
326
+ "van-button/loading-size": {
327
+ "type": "string",
328
+ "description": "加载图标大小, 默认值: `20px`"
329
+ },
330
+ "van-button/url": {
331
+ "type": "string",
332
+ "description": "点击后跳转的链接地址, 默认值: -"
333
+ },
334
+ "van-button/to": {
335
+ "type": "string | object",
336
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
337
+ },
338
+ "van-button/replace": {
339
+ "type": "boolean",
340
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
237
341
  },
238
342
  "van-calendar/type": {
239
343
  "type": "string",
@@ -423,110 +527,6 @@
423
527
  "type": "object",
424
528
  "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
425
529
  },
426
- "van-badge/content": {
427
- "type": "number | string",
428
- "description": "徽标内容, 默认值: -"
429
- },
430
- "van-badge/color": {
431
- "type": "string",
432
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
433
- },
434
- "van-badge/dot": {
435
- "type": "boolean",
436
- "description": "是否展示为小红点, 默认值: `false`"
437
- },
438
- "van-badge/max": {
439
- "type": "number | string",
440
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
441
- },
442
- "van-button/type": {
443
- "type": "string",
444
- "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
445
- },
446
- "van-button/size": {
447
- "type": "string",
448
- "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
449
- },
450
- "van-button/text": {
451
- "type": "string",
452
- "description": "按钮文字, 默认值: -"
453
- },
454
- "van-button/color": {
455
- "type": "string",
456
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
457
- },
458
- "van-button/icon": {
459
- "type": "string",
460
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
461
- },
462
- "van-button/icon-prefix": {
463
- "type": "string",
464
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
465
- },
466
- "van-button/icon-position": {
467
- "type": "string",
468
- "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
469
- },
470
- "van-button/tag": {
471
- "type": "string",
472
- "description": "按钮根节点的 HTML 标签, 默认值: `button`"
473
- },
474
- "van-button/native-type": {
475
- "type": "string",
476
- "description": "原生 button 标签的 type 属性, 默认值: -"
477
- },
478
- "van-button/block": {
479
- "type": "boolean",
480
- "description": "是否为块级元素, 默认值: `false`"
481
- },
482
- "van-button/plain": {
483
- "type": "boolean",
484
- "description": "是否为朴素按钮, 默认值: `false`"
485
- },
486
- "van-button/square": {
487
- "type": "boolean",
488
- "description": "是否为方形按钮, 默认值: `false`"
489
- },
490
- "van-button/round": {
491
- "type": "boolean",
492
- "description": "是否为圆形按钮, 默认值: `false`"
493
- },
494
- "van-button/disabled": {
495
- "type": "boolean",
496
- "description": "是否禁用按钮, 默认值: `false`"
497
- },
498
- "van-button/hairline": {
499
- "type": "boolean",
500
- "description": "是否使用 0.5px 边框, 默认值: `false`"
501
- },
502
- "van-button/loading": {
503
- "type": "boolean",
504
- "description": "是否显示为加载状态, 默认值: `false`"
505
- },
506
- "van-button/loading-text": {
507
- "type": "string",
508
- "description": "加载状态提示文字, 默认值: -"
509
- },
510
- "van-button/loading-type": {
511
- "type": "string",
512
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
513
- },
514
- "van-button/loading-size": {
515
- "type": "string",
516
- "description": "加载图标大小, 默认值: `20px`"
517
- },
518
- "van-button/url": {
519
- "type": "string",
520
- "description": "点击后跳转的链接地址, 默认值: -"
521
- },
522
- "van-button/to": {
523
- "type": "string | object",
524
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
525
- },
526
- "van-button/replace": {
527
- "type": "boolean",
528
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
529
- },
530
530
  "van-cell/title": {
531
531
  "type": "number | string",
532
532
  "description": "左侧标题, 默认值: -"
@@ -567,128 +567,40 @@
567
567
  "type": "boolean",
568
568
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
569
569
  },
570
- "van-cell/clickable": {
571
- "type": "boolean",
572
- "description": "是否开启点击反馈, 默认值: `null`"
573
- },
574
- "van-cell/is-link": {
575
- "type": "boolean",
576
- "description": "是否展示右侧箭头并开启点击反馈, 默认值: `false`"
577
- },
578
- "van-cell/required": {
579
- "type": "boolean",
580
- "description": "是否显示表单必填星号, 默认值: `false`"
581
- },
582
- "van-cell/center": {
583
- "type": "boolean",
584
- "description": "是否使内容垂直居中, 默认值: `false`"
585
- },
586
- "van-cell/arrow-direction": {
587
- "type": "string",
588
- "description": "箭头方向,可选值为 `left` `up` `down`, 默认值: `right`"
589
- },
590
- "van-cell/title-style": {
591
- "type": "any",
592
- "description": "左侧标题额外样式, 默认值: -"
593
- },
594
- "van-cell/title-class": {
595
- "type": "any",
596
- "description": "左侧标题额外类名, 默认值: -"
597
- },
598
- "van-cell/value-class": {
599
- "type": "any",
600
- "description": "右侧内容额外类名, 默认值: -"
601
- },
602
- "van-cell/label-class": {
603
- "type": "any",
604
- "description": "描述信息额外类名, 默认值: -"
605
- },
606
- "van-layout/type": {
607
- "type": "string",
608
- "description": "布局方式,可选值为`flex`, 默认值: -"
609
- },
610
- "van-layout/gutter": {
611
- "type": "number | string",
612
- "description": "列元素之间的间距(单位为 px), 默认值: -"
613
- },
614
- "van-layout/tag": {
615
- "type": "string",
616
- "description": "自定义元素标签, 默认值: `div`"
617
- },
618
- "van-layout/justify": {
619
- "type": "string",
620
- "description": "Flex 主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`, 默认值: `start`"
621
- },
622
- "van-layout/align": {
623
- "type": "string",
624
- "description": "Flex 交叉轴对齐方式,可选值为 `center` `bottom`, 默认值: `top`"
625
- },
626
- "van-layout/span": {
627
- "type": "number | string",
628
- "description": "列元素宽度, 默认值: -"
629
- },
630
- "van-layout/offset": {
631
- "type": "number | string",
632
- "description": "列元素偏移距离, 默认值: -"
633
- },
634
- "van-collapse/v-model": {
635
- "type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
636
- "description": "当前展开面板的 name, 默认值: string)[]_"
637
- },
638
- "van-collapse/accordion": {
639
- "type": "boolean",
640
- "description": "是否开启手风琴模式, 默认值: `false`"
641
- },
642
- "van-collapse/border": {
643
- "type": "boolean",
644
- "description": "是否显示内边框, 默认值: `true`"
645
- },
646
- "van-collapse/name": {
647
- "type": "number | string",
648
- "description": "唯一标识符,默认为索引值, 默认值: `index`"
649
- },
650
- "van-collapse/icon": {
651
- "type": "string",
652
- "description": "标题栏左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
653
- },
654
- "van-collapse/size": {
655
- "type": "string",
656
- "description": "标题栏大小,可选值为 `large`, 默认值: -"
657
- },
658
- "van-collapse/title": {
659
- "type": "number | string",
660
- "description": "标题栏左侧内容, 默认值: -"
661
- },
662
- "van-collapse/value": {
663
- "type": "number | string",
664
- "description": "标题栏右侧内容, 默认值: -"
665
- },
666
- "van-collapse/label": {
667
- "type": "number | string",
668
- "description": "标题栏描述信息, 默认值: -"
669
- },
670
- "van-collapse/is-link": {
570
+ "van-cell/clickable": {
671
571
  "type": "boolean",
672
- "description": "是否展示标题栏右侧箭头并开启点击反馈, 默认值: `true`"
572
+ "description": "是否开启点击反馈, 默认值: `null`"
673
573
  },
674
- "van-collapse/disabled": {
574
+ "van-cell/is-link": {
675
575
  "type": "boolean",
676
- "description": "是否禁用面板, 默认值: `false`"
576
+ "description": "是否展示右侧箭头并开启点击反馈, 默认值: `false`"
677
577
  },
678
- "van-collapse/lazy-render": {
578
+ "van-cell/required": {
679
579
  "type": "boolean",
680
- "description": "是否在首次展开时才渲染面板内容, 默认值: `true`"
580
+ "description": "是否显示表单必填星号, 默认值: `false`"
681
581
  },
682
- "van-collapse/title-class": {
582
+ "van-cell/center": {
583
+ "type": "boolean",
584
+ "description": "是否使内容垂直居中, 默认值: `false`"
585
+ },
586
+ "van-cell/arrow-direction": {
683
587
  "type": "string",
588
+ "description": "箭头方向,可选值为 `left` `up` `down`, 默认值: `right`"
589
+ },
590
+ "van-cell/title-style": {
591
+ "type": "any",
592
+ "description": "左侧标题额外样式, 默认值: -"
593
+ },
594
+ "van-cell/title-class": {
595
+ "type": "any",
684
596
  "description": "左侧标题额外类名, 默认值: -"
685
597
  },
686
- "van-collapse/value-class": {
687
- "type": "string",
598
+ "van-cell/value-class": {
599
+ "type": "any",
688
600
  "description": "右侧内容额外类名, 默认值: -"
689
601
  },
690
- "van-collapse/label-class": {
691
- "type": "string",
602
+ "van-cell/label-class": {
603
+ "type": "any",
692
604
  "description": "描述信息额外类名, 默认值: -"
693
605
  },
694
606
  "van-checkbox/v-model (value)": {
@@ -779,6 +691,94 @@
779
691
  "type": "boolean",
780
692
  "description": "是否顺时针增加, 默认值: `true`"
781
693
  },
694
+ "van-layout/type": {
695
+ "type": "string",
696
+ "description": "布局方式,可选值为`flex`, 默认值: -"
697
+ },
698
+ "van-layout/gutter": {
699
+ "type": "number | string",
700
+ "description": "列元素之间的间距(单位为 px), 默认值: -"
701
+ },
702
+ "van-layout/tag": {
703
+ "type": "string",
704
+ "description": "自定义元素标签, 默认值: `div`"
705
+ },
706
+ "van-layout/justify": {
707
+ "type": "string",
708
+ "description": "Flex 主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`, 默认值: `start`"
709
+ },
710
+ "van-layout/align": {
711
+ "type": "string",
712
+ "description": "Flex 交叉轴对齐方式,可选值为 `center` `bottom`, 默认值: `top`"
713
+ },
714
+ "van-layout/span": {
715
+ "type": "number | string",
716
+ "description": "列元素宽度, 默认值: -"
717
+ },
718
+ "van-layout/offset": {
719
+ "type": "number | string",
720
+ "description": "列元素偏移距离, 默认值: -"
721
+ },
722
+ "van-collapse/v-model": {
723
+ "type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
724
+ "description": "当前展开面板的 name, 默认值: string)[]_"
725
+ },
726
+ "van-collapse/accordion": {
727
+ "type": "boolean",
728
+ "description": "是否开启手风琴模式, 默认值: `false`"
729
+ },
730
+ "van-collapse/border": {
731
+ "type": "boolean",
732
+ "description": "是否显示内边框, 默认值: `true`"
733
+ },
734
+ "van-collapse/name": {
735
+ "type": "number | string",
736
+ "description": "唯一标识符,默认为索引值, 默认值: `index`"
737
+ },
738
+ "van-collapse/icon": {
739
+ "type": "string",
740
+ "description": "标题栏左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
741
+ },
742
+ "van-collapse/size": {
743
+ "type": "string",
744
+ "description": "标题栏大小,可选值为 `large`, 默认值: -"
745
+ },
746
+ "van-collapse/title": {
747
+ "type": "number | string",
748
+ "description": "标题栏左侧内容, 默认值: -"
749
+ },
750
+ "van-collapse/value": {
751
+ "type": "number | string",
752
+ "description": "标题栏右侧内容, 默认值: -"
753
+ },
754
+ "van-collapse/label": {
755
+ "type": "number | string",
756
+ "description": "标题栏描述信息, 默认值: -"
757
+ },
758
+ "van-collapse/is-link": {
759
+ "type": "boolean",
760
+ "description": "是否展示标题栏右侧箭头并开启点击反馈, 默认值: `true`"
761
+ },
762
+ "van-collapse/disabled": {
763
+ "type": "boolean",
764
+ "description": "是否禁用面板, 默认值: `false`"
765
+ },
766
+ "van-collapse/lazy-render": {
767
+ "type": "boolean",
768
+ "description": "是否在首次展开时才渲染面板内容, 默认值: `true`"
769
+ },
770
+ "van-collapse/title-class": {
771
+ "type": "string",
772
+ "description": "左侧标题额外类名, 默认值: -"
773
+ },
774
+ "van-collapse/value-class": {
775
+ "type": "string",
776
+ "description": "右侧内容额外类名, 默认值: -"
777
+ },
778
+ "van-collapse/label-class": {
779
+ "type": "string",
780
+ "description": "描述信息额外类名, 默认值: -"
781
+ },
782
782
  "van-contact-card/type": {
783
783
  "type": "string",
784
784
  "description": "卡片类型,可选值为 `edit`, 默认值: `add`"
@@ -795,6 +795,22 @@
795
795
  "type": "string",
796
796
  "description": "添加时的文案提示, 默认值: `添加联系人`"
797
797
  },
798
+ "van-contact-list/v-model": {
799
+ "type": "number | string",
800
+ "description": "当前选中联系人的 id, 默认值: -"
801
+ },
802
+ "van-contact-list/list": {
803
+ "type": "Contact[]",
804
+ "description": "联系人列表, 默认值: `[]`"
805
+ },
806
+ "van-contact-list/add-text": {
807
+ "type": "string",
808
+ "description": "新建按钮文案, 默认值: `新建联系人`"
809
+ },
810
+ "van-contact-list/default-tag-text": {
811
+ "type": "string",
812
+ "description": "默认联系人标签文案, 默认值: -"
813
+ },
798
814
  "van-contact-edit/contact-info": {
799
815
  "type": "Contact",
800
816
  "description": "联系人信息, 默认值: `{}`"
@@ -823,22 +839,6 @@
823
839
  "type": "string",
824
840
  "description": "默认联系人栏文案, 默认值: -"
825
841
  },
826
- "van-contact-list/v-model": {
827
- "type": "number | string",
828
- "description": "当前选中联系人的 id, 默认值: -"
829
- },
830
- "van-contact-list/list": {
831
- "type": "Contact[]",
832
- "description": "联系人列表, 默认值: `[]`"
833
- },
834
- "van-contact-list/add-text": {
835
- "type": "string",
836
- "description": "新建按钮文案, 默认值: `新建联系人`"
837
- },
838
- "van-contact-list/default-tag-text": {
839
- "type": "string",
840
- "description": "默认联系人标签文案, 默认值: -"
841
- },
842
842
  "van-count-down/time": {
843
843
  "type": "number | string",
844
844
  "description": "倒计时时长,单位毫秒, 默认值: `0`"
@@ -1015,18 +1015,6 @@
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
- },
1030
1018
  "van-dialog/v-model": {
1031
1019
  "type": "boolean",
1032
1020
  "description": "是否显示弹窗, 默认值: -"
@@ -1119,6 +1107,18 @@
1119
1107
  "type": "string | () => Element",
1120
1108
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1121
1109
  },
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`"
@@ -1328,124 +1328,56 @@
1328
1328
  "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
1329
1329
  },
1330
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-grid/column-num": {
1383
- "type": "number | string",
1384
- "description": "列数, 默认值: `4`"
1385
- },
1386
- "van-grid/icon-size": {
1387
- "type": "number | string",
1388
- "description": "图标大小,默认单位为`px`, 默认值: `28px`"
1389
- },
1390
- "van-grid/gutter": {
1391
- "type": "number | string",
1392
- "description": "格子之间的间距,默认单位为`px`, 默认值: `0`"
1393
- },
1394
- "van-grid/border": {
1395
- "type": "boolean",
1396
- "description": "是否显示边框, 默认值: `true`"
1397
- },
1398
- "van-grid/center": {
1399
- "type": "boolean",
1400
- "description": "是否将格子内容居中显示, 默认值: `true`"
1401
- },
1402
- "van-grid/square": {
1403
- "type": "boolean",
1404
- "description": "是否将格子固定为正方形, 默认值: `false`"
1405
- },
1406
- "van-grid/clickable": {
1407
- "type": "boolean",
1408
- "description": "是否开启格子点击反馈, 默认值: `false`"
1331
+ "type": "number | string",
1332
+ "description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
1409
1333
  },
1410
- "van-grid/direction": {
1334
+ "van-form/label-align": {
1411
1335
  "type": "string",
1412
- "description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
1336
+ "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
1413
1337
  },
1414
- "van-grid/text": {
1338
+ "van-form/input-align": {
1415
1339
  "type": "string",
1416
- "description": "文字, 默认值: -"
1340
+ "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
1417
1341
  },
1418
- "van-grid/icon": {
1342
+ "van-form/error-message-align": {
1419
1343
  "type": "string",
1420
- "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1344
+ "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
1421
1345
  },
1422
- "van-grid/icon-prefix": {
1346
+ "van-form/validate-trigger": {
1423
1347
  "type": "string",
1424
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1348
+ "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
1425
1349
  },
1426
- "van-grid/dot": {
1350
+ "van-form/colon": {
1427
1351
  "type": "boolean",
1428
- "description": "是否显示图标右上角小红点, 默认值: `false`"
1352
+ "description": "是否在 label 后面添加冒号, 默认值: `false`"
1429
1353
  },
1430
- "van-grid/badge": {
1431
- "type": "number | string",
1432
- "description": "图标右上角徽标的内容, 默认值: -"
1354
+ "van-form/disabled": {
1355
+ "type": "boolean",
1356
+ "description": "是否禁用表单中的所有输入框, 默认值: `false`"
1433
1357
  },
1434
- "van-grid/info": {
1435
- "type": "number | string",
1436
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
1358
+ "van-form/readonly": {
1359
+ "type": "boolean",
1360
+ "description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
1437
1361
  },
1438
- "van-grid/url": {
1439
- "type": "string",
1440
- "description": "点击后跳转的链接地址, 默认值: -"
1362
+ "van-form/validate-first": {
1363
+ "type": "boolean",
1364
+ "description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
1441
1365
  },
1442
- "van-grid/to": {
1443
- "type": "string | object",
1444
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1366
+ "van-form/scroll-to-error": {
1367
+ "type": "boolean",
1368
+ "description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
1445
1369
  },
1446
- "van-grid/replace": {
1370
+ "van-form/show-error": {
1447
1371
  "type": "boolean",
1448
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
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`"
1449
1381
  },
1450
1382
  "van-goods-action/safe-area-inset-bottom": {
1451
1383
  "type": "boolean",
@@ -1503,61 +1435,73 @@
1503
1435
  "type": "boolean",
1504
1436
  "description": "是否显示为加载状态, 默认值: `false`"
1505
1437
  },
1506
- "van-icon/name": {
1507
- "type": "string",
1508
- "description": "图标名称或图片链接, 默认值: -"
1509
- },
1510
- "van-icon/dot": {
1511
- "type": "boolean",
1512
- "description": "是否显示图标右上角小红点, 默认值: `false`"
1438
+ "van-grid/column-num": {
1439
+ "type": "number | string",
1440
+ "description": "列数, 默认值: `4`"
1513
1441
  },
1514
- "van-icon/badge": {
1442
+ "van-grid/icon-size": {
1515
1443
  "type": "number | string",
1516
- "description": "图标右上角徽标的内容, 默认值: -"
1444
+ "description": "图标大小,默认单位为`px`, 默认值: `28px`"
1517
1445
  },
1518
- "van-icon/info": {
1446
+ "van-grid/gutter": {
1519
1447
  "type": "number | string",
1520
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
1448
+ "description": "格子之间的间距,默认单位为`px`, 默认值: `0`"
1521
1449
  },
1522
- "van-icon/color": {
1523
- "type": "string",
1524
- "description": "图标颜色, 默认值: `inherit`"
1450
+ "van-grid/border": {
1451
+ "type": "boolean",
1452
+ "description": "是否显示边框, 默认值: `true`"
1525
1453
  },
1526
- "van-icon/size": {
1527
- "type": "number | string",
1528
- "description": "图标大小,如 `20px` `2em`,默认单位为`px`, 默认值: `inherit`"
1454
+ "van-grid/center": {
1455
+ "type": "boolean",
1456
+ "description": "是否将格子内容居中显示, 默认值: `true`"
1529
1457
  },
1530
- "van-icon/class-prefix": {
1458
+ "van-grid/square": {
1459
+ "type": "boolean",
1460
+ "description": "是否将格子固定为正方形, 默认值: `false`"
1461
+ },
1462
+ "van-grid/clickable": {
1463
+ "type": "boolean",
1464
+ "description": "是否开启格子点击反馈, 默认值: `false`"
1465
+ },
1466
+ "van-grid/direction": {
1531
1467
  "type": "string",
1532
- "description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
1468
+ "description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
1533
1469
  },
1534
- "van-icon/tag": {
1470
+ "van-grid/text": {
1535
1471
  "type": "string",
1536
- "description": "HTML 标签, 默认值: `i`"
1472
+ "description": "文字, 默认值: -"
1537
1473
  },
1538
- "van-index-bar/index-list": {
1539
- "type": "string[] | number[]",
1540
- "description": "索引字符列表, 默认值: `A-Z`"
1474
+ "van-grid/icon": {
1475
+ "type": "string",
1476
+ "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1541
1477
  },
1542
- "van-index-bar/z-index": {
1543
- "type": "number | string",
1544
- "description": "z-index 层级, 默认值: `1`"
1478
+ "van-grid/icon-prefix": {
1479
+ "type": "string",
1480
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1545
1481
  },
1546
- "van-index-bar/sticky": {
1482
+ "van-grid/dot": {
1547
1483
  "type": "boolean",
1548
- "description": "是否开启锚点自动吸顶, 默认值: `true`"
1484
+ "description": "是否显示图标右上角小红点, 默认值: `false`"
1549
1485
  },
1550
- "van-index-bar/sticky-offset-top": {
1551
- "type": "number",
1552
- "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
1486
+ "van-grid/badge": {
1487
+ "type": "number | string",
1488
+ "description": "图标右上角徽标的内容, 默认值: -"
1553
1489
  },
1554
- "van-index-bar/highlight-color": {
1490
+ "van-grid/info": {
1491
+ "type": "number | string",
1492
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
1493
+ },
1494
+ "van-grid/url": {
1555
1495
  "type": "string",
1556
- "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
1496
+ "description": "点击后跳转的链接地址, 默认值: -"
1557
1497
  },
1558
- "van-index-bar/index": {
1559
- "type": "number | string",
1560
- "description": "索引字符, 默认值: -"
1498
+ "van-grid/to": {
1499
+ "type": "string | object",
1500
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1501
+ },
1502
+ "van-grid/replace": {
1503
+ "type": "boolean",
1504
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
1561
1505
  },
1562
1506
  "van-image/src": {
1563
1507
  "type": "string",
@@ -1611,6 +1555,38 @@
1611
1555
  "type": "string",
1612
1556
  "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1613
1557
  },
1558
+ "van-icon/name": {
1559
+ "type": "string",
1560
+ "description": "图标名称或图片链接, 默认值: -"
1561
+ },
1562
+ "van-icon/dot": {
1563
+ "type": "boolean",
1564
+ "description": "是否显示图标右上角小红点, 默认值: `false`"
1565
+ },
1566
+ "van-icon/badge": {
1567
+ "type": "number | string",
1568
+ "description": "图标右上角徽标的内容, 默认值: -"
1569
+ },
1570
+ "van-icon/info": {
1571
+ "type": "number | string",
1572
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
1573
+ },
1574
+ "van-icon/color": {
1575
+ "type": "string",
1576
+ "description": "图标颜色, 默认值: `inherit`"
1577
+ },
1578
+ "van-icon/size": {
1579
+ "type": "number | string",
1580
+ "description": "图标大小,如 `20px` `2em`,默认单位为`px`, 默认值: `inherit`"
1581
+ },
1582
+ "van-icon/class-prefix": {
1583
+ "type": "string",
1584
+ "description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
1585
+ },
1586
+ "van-icon/tag": {
1587
+ "type": "string",
1588
+ "description": "HTML 标签, 默认值: `i`"
1589
+ },
1614
1590
  "van-image-preview/images": {
1615
1591
  "type": "string[]",
1616
1592
  "description": "需要预览的图片 URL 数组, 默认值: `[]`"
@@ -1679,6 +1655,30 @@
1679
1655
  "type": "string | () => Element",
1680
1656
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1681
1657
  },
1658
+ "van-index-bar/index-list": {
1659
+ "type": "string[] | number[]",
1660
+ "description": "索引字符列表, 默认值: `A-Z`"
1661
+ },
1662
+ "van-index-bar/z-index": {
1663
+ "type": "number | string",
1664
+ "description": "z-index 层级, 默认值: `1`"
1665
+ },
1666
+ "van-index-bar/sticky": {
1667
+ "type": "boolean",
1668
+ "description": "是否开启锚点自动吸顶, 默认值: `true`"
1669
+ },
1670
+ "van-index-bar/sticky-offset-top": {
1671
+ "type": "number",
1672
+ "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
1673
+ },
1674
+ "van-index-bar/highlight-color": {
1675
+ "type": "string",
1676
+ "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
1677
+ },
1678
+ "van-index-bar/index": {
1679
+ "type": "number | string",
1680
+ "description": "索引字符, 默认值: -"
1681
+ },
1682
1682
  "van-list/v-model": {
1683
1683
  "type": "boolean",
1684
1684
  "description": "是否处于加载状态,加载过程中不触发`load`事件, 默认值: `false`"
@@ -1951,6 +1951,34 @@
1951
1951
  "type": "string",
1952
1952
  "description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1953
1953
  },
1954
+ "van-password-input/value": {
1955
+ "type": "string",
1956
+ "description": "密码值, 默认值: `''`"
1957
+ },
1958
+ "van-password-input/info": {
1959
+ "type": "string",
1960
+ "description": "输入框下方文字提示, 默认值: -"
1961
+ },
1962
+ "van-password-input/error-info": {
1963
+ "type": "string",
1964
+ "description": "输入框下方错误提示, 默认值: -"
1965
+ },
1966
+ "van-password-input/length": {
1967
+ "type": "number | string",
1968
+ "description": "密码最大长度, 默认值: `6`"
1969
+ },
1970
+ "van-password-input/gutter": {
1971
+ "type": "number | string",
1972
+ "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
1973
+ },
1974
+ "van-password-input/mask": {
1975
+ "type": "boolean",
1976
+ "description": "是否隐藏密码内容, 默认值: `true`"
1977
+ },
1978
+ "van-password-input/focused": {
1979
+ "type": "boolean",
1980
+ "description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
1981
+ },
1954
1982
  "van-picker/columns": {
1955
1983
  "type": "Column[]",
1956
1984
  "description": "对象数组,配置每一列显示的数据, 默认值: `[]`"
@@ -2007,34 +2035,6 @@
2007
2035
  "type": "number | string",
2008
2036
  "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
2009
2037
  },
2010
- "van-password-input/value": {
2011
- "type": "string",
2012
- "description": "密码值, 默认值: `''`"
2013
- },
2014
- "van-password-input/info": {
2015
- "type": "string",
2016
- "description": "输入框下方文字提示, 默认值: -"
2017
- },
2018
- "van-password-input/error-info": {
2019
- "type": "string",
2020
- "description": "输入框下方错误提示, 默认值: -"
2021
- },
2022
- "van-password-input/length": {
2023
- "type": "number | string",
2024
- "description": "密码最大长度, 默认值: `6`"
2025
- },
2026
- "van-password-input/gutter": {
2027
- "type": "number | string",
2028
- "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
2029
- },
2030
- "van-password-input/mask": {
2031
- "type": "boolean",
2032
- "description": "是否隐藏密码内容, 默认值: `true`"
2033
- },
2034
- "van-password-input/focused": {
2035
- "type": "boolean",
2036
- "description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
2037
- },
2038
2038
  "van-popover/v-model": {
2039
2039
  "type": "boolean",
2040
2040
  "description": "是否展示气泡弹出层, 默认值: `false`"