vant 2.12.36 → 2.12.37

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.
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "2.12.36",
5
+ "version": "2.12.37",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -253,156 +253,6 @@
253
253
  }
254
254
  ]
255
255
  },
256
- {
257
- "name": "van-area",
258
- "slots": [
259
- {
260
- "name": "title",
261
- "description": "自定义标题内容"
262
- },
263
- {
264
- "name": "columns-top",
265
- "description": "自定义选项上方内容"
266
- },
267
- {
268
- "name": "columns-bottom",
269
- "description": "自定义选项下方内容"
270
- }
271
- ],
272
- "events": [
273
- {
274
- "name": "confirm",
275
- "description": "点击右上方完成按钮"
276
- },
277
- {
278
- "name": "cancel",
279
- "description": "点击取消按钮时"
280
- },
281
- {
282
- "name": "change",
283
- "description": "选项改变时触发"
284
- }
285
- ],
286
- "attributes": [
287
- {
288
- "name": "value",
289
- "default": "-",
290
- "description": "当前选中的省市区`code`",
291
- "value": {
292
- "type": "string",
293
- "kind": "expression"
294
- }
295
- },
296
- {
297
- "name": "title",
298
- "default": "-",
299
- "description": "顶部栏标题",
300
- "value": {
301
- "type": "string",
302
- "kind": "expression"
303
- }
304
- },
305
- {
306
- "name": "confirm-button-text",
307
- "default": "`确认`",
308
- "description": "确认按钮文字",
309
- "value": {
310
- "type": "string",
311
- "kind": "expression"
312
- }
313
- },
314
- {
315
- "name": "cancel-button-text",
316
- "default": "`取消`",
317
- "description": "取消按钮文字",
318
- "value": {
319
- "type": "string",
320
- "kind": "expression"
321
- }
322
- },
323
- {
324
- "name": "area-list",
325
- "default": "-",
326
- "description": "省市区数据,格式见下方",
327
- "value": {
328
- "type": "object",
329
- "kind": "expression"
330
- }
331
- },
332
- {
333
- "name": "columns-placeholder",
334
- "default": "`[]`",
335
- "description": "列占位提示文字",
336
- "value": {
337
- "type": "string[]",
338
- "kind": "expression"
339
- }
340
- },
341
- {
342
- "name": "loading",
343
- "default": "`false`",
344
- "description": "是否显示加载状态",
345
- "value": {
346
- "type": "boolean",
347
- "kind": "expression"
348
- }
349
- },
350
- {
351
- "name": "readonly",
352
- "default": "`false`",
353
- "description": "是否为只读状态,只读状态下无法切换选项",
354
- "value": {
355
- "type": "boolean",
356
- "kind": "expression"
357
- }
358
- },
359
- {
360
- "name": "item-height",
361
- "default": "`44`",
362
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
363
- "value": {
364
- "type": "number | string",
365
- "kind": "expression"
366
- }
367
- },
368
- {
369
- "name": "columns-num",
370
- "default": "`3`",
371
- "description": "显示列数,3-省市区,2-省市,1-省",
372
- "value": {
373
- "type": "number | string",
374
- "kind": "expression"
375
- }
376
- },
377
- {
378
- "name": "visible-item-count",
379
- "default": "`6`",
380
- "description": "可见的选项个数",
381
- "value": {
382
- "type": "number | string",
383
- "kind": "expression"
384
- }
385
- },
386
- {
387
- "name": "swipe-duration",
388
- "default": "`1000`",
389
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
390
- "value": {
391
- "type": "number | string",
392
- "kind": "expression"
393
- }
394
- },
395
- {
396
- "name": "is-oversea-code",
397
- "default": "-",
398
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
399
- "value": {
400
- "type": "() => boolean",
401
- "kind": "expression"
402
- }
403
- }
404
- ]
405
- },
406
256
  {
407
257
  "name": "van-address-list",
408
258
  "slots": [
@@ -516,425 +366,429 @@
516
366
  ]
517
367
  },
518
368
  {
519
- "name": "van-action-sheet",
369
+ "name": "van-badge",
520
370
  "slots": [
521
371
  {
522
372
  "name": "default",
523
- "description": "自定义面板的展示内容"
373
+ "description": "徽标包裹的子元素"
524
374
  },
525
375
  {
526
- "name": "description",
527
- "description": "自定义描述文案"
376
+ "name": "content",
377
+ "description": "自定义徽标内容"
528
378
  }
529
379
  ],
530
- "events": [
380
+ "events": [],
381
+ "attributes": [
531
382
  {
532
- "name": "select",
533
- "description": "点击选项时触发,禁用或加载状态下不会触发"
383
+ "name": "content",
384
+ "default": "-",
385
+ "description": "徽标内容",
386
+ "value": {
387
+ "type": "number | string",
388
+ "kind": "expression"
389
+ }
534
390
  },
535
391
  {
536
- "name": "cancel",
537
- "description": "点击取消按钮时触发"
392
+ "name": "color",
393
+ "default": "`#ee0a24`",
394
+ "description": "徽标背景颜色",
395
+ "value": {
396
+ "type": "string",
397
+ "kind": "expression"
398
+ }
538
399
  },
539
400
  {
540
- "name": "open",
541
- "description": "打开面板时触发"
401
+ "name": "dot",
402
+ "default": "`false`",
403
+ "description": "是否展示为小红点",
404
+ "value": {
405
+ "type": "boolean",
406
+ "kind": "expression"
407
+ }
542
408
  },
543
409
  {
544
- "name": "close",
545
- "description": "关闭面板时触发"
410
+ "name": "max",
411
+ "default": "-",
412
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
413
+ "value": {
414
+ "type": "number | string",
415
+ "kind": "expression"
416
+ }
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ "name": "van-button",
422
+ "slots": [
423
+ {
424
+ "name": "default",
425
+ "description": "按钮内容"
546
426
  },
547
427
  {
548
- "name": "opened",
549
- "description": "打开面板且动画结束后触发"
428
+ "name": "icon",
429
+ "description": "自定义图标"
550
430
  },
551
431
  {
552
- "name": "closed",
553
- "description": "关闭面板且动画结束后触发"
432
+ "name": "loading",
433
+ "description": "自定义加载图标"
434
+ }
435
+ ],
436
+ "events": [
437
+ {
438
+ "name": "click",
439
+ "description": "点击按钮,且按钮状态不为加载或禁用时触发"
554
440
  },
555
441
  {
556
- "name": "click-overlay",
557
- "description": "点击遮罩层时触发"
442
+ "name": "touchstart",
443
+ "description": "开始触摸按钮时触发"
558
444
  }
559
445
  ],
560
446
  "attributes": [
561
447
  {
562
- "name": "v-model (value)",
563
- "default": "`false`",
564
- "description": "是否显示动作面板",
448
+ "name": "type",
449
+ "default": "`default`",
450
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`",
565
451
  "value": {
566
- "type": "boolean",
452
+ "type": "string",
567
453
  "kind": "expression"
568
454
  }
569
455
  },
570
456
  {
571
- "name": "actions",
572
- "default": "`[]`",
573
- "description": "面板选项列表",
457
+ "name": "size",
458
+ "default": "`normal`",
459
+ "description": "尺寸,可选值为 `large` `small` `mini`",
574
460
  "value": {
575
- "type": "Action[]",
461
+ "type": "string",
576
462
  "kind": "expression"
577
463
  }
578
464
  },
579
465
  {
580
- "name": "title",
466
+ "name": "text",
581
467
  "default": "-",
582
- "description": "顶部标题",
468
+ "description": "按钮文字",
583
469
  "value": {
584
470
  "type": "string",
585
471
  "kind": "expression"
586
472
  }
587
473
  },
588
474
  {
589
- "name": "cancel-text",
475
+ "name": "color",
590
476
  "default": "-",
591
- "description": "取消按钮文字",
477
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
592
478
  "value": {
593
479
  "type": "string",
594
480
  "kind": "expression"
595
481
  }
596
482
  },
597
483
  {
598
- "name": "description",
484
+ "name": "icon",
599
485
  "default": "-",
600
- "description": "选项上方的描述信息",
486
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
601
487
  "value": {
602
488
  "type": "string",
603
489
  "kind": "expression"
604
490
  }
605
491
  },
606
492
  {
607
- "name": "closeable",
608
- "default": "`true`",
609
- "description": "是否显示关闭图标",
493
+ "name": "icon-prefix",
494
+ "default": "`van-icon`",
495
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
610
496
  "value": {
611
- "type": "boolean",
497
+ "type": "string",
612
498
  "kind": "expression"
613
499
  }
614
500
  },
615
501
  {
616
- "name": "close-icon",
617
- "default": "`cross`",
618
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
502
+ "name": "icon-position",
503
+ "default": "`left`",
504
+ "description": "图标展示位置,可选值为 `right`",
619
505
  "value": {
620
506
  "type": "string",
621
507
  "kind": "expression"
622
508
  }
623
509
  },
624
510
  {
625
- "name": "duration",
626
- "default": "`0.3`",
627
- "description": "动画时长,单位秒",
511
+ "name": "tag",
512
+ "default": "`button`",
513
+ "description": "按钮根节点的 HTML 标签",
628
514
  "value": {
629
- "type": "number | string",
515
+ "type": "string",
630
516
  "kind": "expression"
631
517
  }
632
518
  },
633
519
  {
634
- "name": "round",
635
- "default": "`true`",
636
- "description": "是否显示圆角",
520
+ "name": "native-type",
521
+ "default": "-",
522
+ "description": "原生 button 标签的 type 属性",
637
523
  "value": {
638
- "type": "boolean",
524
+ "type": "string",
639
525
  "kind": "expression"
640
526
  }
641
527
  },
642
528
  {
643
- "name": "overlay",
644
- "default": "`true`",
645
- "description": "是否显示遮罩层",
529
+ "name": "block",
530
+ "default": "`false`",
531
+ "description": "是否为块级元素",
646
532
  "value": {
647
533
  "type": "boolean",
648
534
  "kind": "expression"
649
535
  }
650
536
  },
651
537
  {
652
- "name": "lock-scroll",
653
- "default": "`true`",
654
- "description": "是否锁定背景滚动",
538
+ "name": "plain",
539
+ "default": "`false`",
540
+ "description": "是否为朴素按钮",
655
541
  "value": {
656
542
  "type": "boolean",
657
543
  "kind": "expression"
658
544
  }
659
545
  },
660
546
  {
661
- "name": "lazy-render",
662
- "default": "`true`",
663
- "description": "是否在显示弹层时才渲染节点",
547
+ "name": "square",
548
+ "default": "`false`",
549
+ "description": "是否为方形按钮",
664
550
  "value": {
665
551
  "type": "boolean",
666
552
  "kind": "expression"
667
553
  }
668
554
  },
669
555
  {
670
- "name": "close-on-popstate",
556
+ "name": "round",
671
557
  "default": "`false`",
672
- "description": "是否在页面回退时自动关闭",
558
+ "description": "是否为圆形按钮",
673
559
  "value": {
674
560
  "type": "boolean",
675
561
  "kind": "expression"
676
562
  }
677
563
  },
678
564
  {
679
- "name": "close-on-click-action",
565
+ "name": "disabled",
680
566
  "default": "`false`",
681
- "description": "是否在点击选项后关闭",
567
+ "description": "是否禁用按钮",
682
568
  "value": {
683
569
  "type": "boolean",
684
570
  "kind": "expression"
685
571
  }
686
572
  },
687
573
  {
688
- "name": "close-on-click-overlay",
689
- "default": "`true`",
690
- "description": "是否在点击遮罩层后关闭",
574
+ "name": "hairline",
575
+ "default": "`false`",
576
+ "description": "是否使用 0.5px 边框",
691
577
  "value": {
692
578
  "type": "boolean",
693
579
  "kind": "expression"
694
580
  }
695
581
  },
696
582
  {
697
- "name": "safe-area-inset-bottom",
698
- "default": "`true`",
699
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
583
+ "name": "loading",
584
+ "default": "`false`",
585
+ "description": "是否显示为加载状态",
700
586
  "value": {
701
587
  "type": "boolean",
702
588
  "kind": "expression"
703
589
  }
704
590
  },
705
591
  {
706
- "name": "get-container",
592
+ "name": "loading-text",
707
593
  "default": "-",
708
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
594
+ "description": "加载状态提示文字",
709
595
  "value": {
710
- "type": "string | () => Element",
596
+ "type": "string",
711
597
  "kind": "expression"
712
598
  }
713
- }
714
- ]
715
- },
716
- {
717
- "name": "van-button",
718
- "slots": [
719
- {
720
- "name": "default",
721
- "description": "按钮内容"
722
599
  },
723
600
  {
724
- "name": "icon",
725
- "description": "自定义图标"
726
- },
727
- {
728
- "name": "loading",
729
- "description": "自定义加载图标"
730
- }
731
- ],
732
- "events": [
733
- {
734
- "name": "click",
735
- "description": "点击按钮,且按钮状态不为加载或禁用时触发"
736
- },
737
- {
738
- "name": "touchstart",
739
- "description": "开始触摸按钮时触发"
740
- }
741
- ],
742
- "attributes": [
743
- {
744
- "name": "type",
745
- "default": "`default`",
746
- "description": "类型,可选值为 `primary` `info` `warning` `danger`",
601
+ "name": "loading-type",
602
+ "default": "`circular`",
603
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
747
604
  "value": {
748
605
  "type": "string",
749
606
  "kind": "expression"
750
607
  }
751
608
  },
752
609
  {
753
- "name": "size",
754
- "default": "`normal`",
755
- "description": "尺寸,可选值为 `large` `small` `mini`",
610
+ "name": "loading-size",
611
+ "default": "`20px`",
612
+ "description": "加载图标大小",
756
613
  "value": {
757
614
  "type": "string",
758
615
  "kind": "expression"
759
616
  }
760
617
  },
761
618
  {
762
- "name": "text",
619
+ "name": "url",
763
620
  "default": "-",
764
- "description": "按钮文字",
621
+ "description": "点击后跳转的链接地址",
765
622
  "value": {
766
623
  "type": "string",
767
624
  "kind": "expression"
768
625
  }
769
626
  },
770
627
  {
771
- "name": "color",
628
+ "name": "to",
772
629
  "default": "-",
773
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
630
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
774
631
  "value": {
775
- "type": "string",
632
+ "type": "string | object",
776
633
  "kind": "expression"
777
634
  }
778
635
  },
779
636
  {
780
- "name": "icon",
781
- "default": "-",
782
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
637
+ "name": "replace",
638
+ "default": "`false`",
639
+ "description": "是否在跳转时替换当前页面历史",
783
640
  "value": {
784
- "type": "string",
641
+ "type": "boolean",
785
642
  "kind": "expression"
786
643
  }
644
+ }
645
+ ]
646
+ },
647
+ {
648
+ "name": "van-area",
649
+ "slots": [
650
+ {
651
+ "name": "title",
652
+ "description": "自定义标题内容"
787
653
  },
788
654
  {
789
- "name": "icon-prefix",
790
- "default": "`van-icon`",
791
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
792
- "value": {
793
- "type": "string",
794
- "kind": "expression"
795
- }
655
+ "name": "columns-top",
656
+ "description": "自定义选项上方内容"
796
657
  },
797
658
  {
798
- "name": "icon-position",
799
- "default": "`left`",
800
- "description": "图标展示位置,可选值为 `right`",
801
- "value": {
802
- "type": "string",
803
- "kind": "expression"
804
- }
659
+ "name": "columns-bottom",
660
+ "description": "自定义选项下方内容"
661
+ }
662
+ ],
663
+ "events": [
664
+ {
665
+ "name": "confirm",
666
+ "description": "点击右上方完成按钮"
805
667
  },
806
668
  {
807
- "name": "tag",
808
- "default": "`button`",
809
- "description": "按钮根节点的 HTML 标签",
810
- "value": {
811
- "type": "string",
812
- "kind": "expression"
813
- }
669
+ "name": "cancel",
670
+ "description": "点击取消按钮时"
814
671
  },
815
672
  {
816
- "name": "native-type",
673
+ "name": "change",
674
+ "description": "选项改变时触发"
675
+ }
676
+ ],
677
+ "attributes": [
678
+ {
679
+ "name": "value",
817
680
  "default": "-",
818
- "description": "原生 button 标签的 type 属性",
681
+ "description": "当前选中的省市区`code`",
819
682
  "value": {
820
683
  "type": "string",
821
684
  "kind": "expression"
822
685
  }
823
686
  },
824
687
  {
825
- "name": "block",
826
- "default": "`false`",
827
- "description": "是否为块级元素",
688
+ "name": "title",
689
+ "default": "-",
690
+ "description": "顶部栏标题",
828
691
  "value": {
829
- "type": "boolean",
692
+ "type": "string",
830
693
  "kind": "expression"
831
694
  }
832
695
  },
833
696
  {
834
- "name": "plain",
835
- "default": "`false`",
836
- "description": "是否为朴素按钮",
697
+ "name": "confirm-button-text",
698
+ "default": "`确认`",
699
+ "description": "确认按钮文字",
837
700
  "value": {
838
- "type": "boolean",
701
+ "type": "string",
839
702
  "kind": "expression"
840
703
  }
841
704
  },
842
705
  {
843
- "name": "square",
844
- "default": "`false`",
845
- "description": "是否为方形按钮",
706
+ "name": "cancel-button-text",
707
+ "default": "`取消`",
708
+ "description": "取消按钮文字",
846
709
  "value": {
847
- "type": "boolean",
710
+ "type": "string",
848
711
  "kind": "expression"
849
712
  }
850
713
  },
851
714
  {
852
- "name": "round",
853
- "default": "`false`",
854
- "description": "是否为圆形按钮",
715
+ "name": "area-list",
716
+ "default": "-",
717
+ "description": "省市区数据,格式见下方",
855
718
  "value": {
856
- "type": "boolean",
719
+ "type": "object",
857
720
  "kind": "expression"
858
721
  }
859
722
  },
860
723
  {
861
- "name": "disabled",
862
- "default": "`false`",
863
- "description": "是否禁用按钮",
724
+ "name": "columns-placeholder",
725
+ "default": "`[]`",
726
+ "description": "列占位提示文字",
864
727
  "value": {
865
- "type": "boolean",
728
+ "type": "string[]",
866
729
  "kind": "expression"
867
730
  }
868
731
  },
869
732
  {
870
- "name": "hairline",
733
+ "name": "loading",
871
734
  "default": "`false`",
872
- "description": "是否使用 0.5px 边框",
735
+ "description": "是否显示加载状态",
873
736
  "value": {
874
737
  "type": "boolean",
875
738
  "kind": "expression"
876
739
  }
877
740
  },
878
741
  {
879
- "name": "loading",
742
+ "name": "readonly",
880
743
  "default": "`false`",
881
- "description": "是否显示为加载状态",
744
+ "description": "是否为只读状态,只读状态下无法切换选项",
882
745
  "value": {
883
746
  "type": "boolean",
884
747
  "kind": "expression"
885
748
  }
886
749
  },
887
750
  {
888
- "name": "loading-text",
889
- "default": "-",
890
- "description": "加载状态提示文字",
751
+ "name": "item-height",
752
+ "default": "`44`",
753
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
891
754
  "value": {
892
- "type": "string",
755
+ "type": "number | string",
893
756
  "kind": "expression"
894
757
  }
895
758
  },
896
759
  {
897
- "name": "loading-type",
898
- "default": "`circular`",
899
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
760
+ "name": "columns-num",
761
+ "default": "`3`",
762
+ "description": "显示列数,3-省市区,2-省市,1-省",
900
763
  "value": {
901
- "type": "string",
764
+ "type": "number | string",
902
765
  "kind": "expression"
903
766
  }
904
767
  },
905
768
  {
906
- "name": "loading-size",
907
- "default": "`20px`",
908
- "description": "加载图标大小",
769
+ "name": "visible-item-count",
770
+ "default": "`6`",
771
+ "description": "可见的选项个数",
909
772
  "value": {
910
- "type": "string",
773
+ "type": "number | string",
911
774
  "kind": "expression"
912
775
  }
913
776
  },
914
777
  {
915
- "name": "url",
916
- "default": "-",
917
- "description": "点击后跳转的链接地址",
778
+ "name": "swipe-duration",
779
+ "default": "`1000`",
780
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
918
781
  "value": {
919
- "type": "string",
782
+ "type": "number | string",
920
783
  "kind": "expression"
921
784
  }
922
785
  },
923
786
  {
924
- "name": "to",
787
+ "name": "is-oversea-code",
925
788
  "default": "-",
926
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
927
- "value": {
928
- "type": "string | object",
929
- "kind": "expression"
930
- }
931
- },
932
- {
933
- "name": "replace",
934
- "default": "`false`",
935
- "description": "是否在跳转时替换当前页面历史",
789
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
936
790
  "value": {
937
- "type": "boolean",
791
+ "type": "() => boolean",
938
792
  "kind": "expression"
939
793
  }
940
794
  }
@@ -1282,59 +1136,205 @@
1282
1136
  "default": "`选择天数不能超过 xx 天`",
1283
1137
  "description": "选择超过最多可选天数时的提示文案",
1284
1138
  "value": {
1285
- "type": "string",
1139
+ "type": "string",
1140
+ "kind": "expression"
1141
+ }
1142
+ }
1143
+ ]
1144
+ },
1145
+ {
1146
+ "name": "van-action-sheet",
1147
+ "slots": [
1148
+ {
1149
+ "name": "default",
1150
+ "description": "自定义面板的展示内容"
1151
+ },
1152
+ {
1153
+ "name": "description",
1154
+ "description": "自定义描述文案"
1155
+ }
1156
+ ],
1157
+ "events": [
1158
+ {
1159
+ "name": "select",
1160
+ "description": "点击选项时触发,禁用或加载状态下不会触发"
1161
+ },
1162
+ {
1163
+ "name": "cancel",
1164
+ "description": "点击取消按钮时触发"
1165
+ },
1166
+ {
1167
+ "name": "open",
1168
+ "description": "打开面板时触发"
1169
+ },
1170
+ {
1171
+ "name": "close",
1172
+ "description": "关闭面板时触发"
1173
+ },
1174
+ {
1175
+ "name": "opened",
1176
+ "description": "打开面板且动画结束后触发"
1177
+ },
1178
+ {
1179
+ "name": "closed",
1180
+ "description": "关闭面板且动画结束后触发"
1181
+ },
1182
+ {
1183
+ "name": "click-overlay",
1184
+ "description": "点击遮罩层时触发"
1185
+ }
1186
+ ],
1187
+ "attributes": [
1188
+ {
1189
+ "name": "v-model (value)",
1190
+ "default": "`false`",
1191
+ "description": "是否显示动作面板",
1192
+ "value": {
1193
+ "type": "boolean",
1194
+ "kind": "expression"
1195
+ }
1196
+ },
1197
+ {
1198
+ "name": "actions",
1199
+ "default": "`[]`",
1200
+ "description": "面板选项列表",
1201
+ "value": {
1202
+ "type": "Action[]",
1203
+ "kind": "expression"
1204
+ }
1205
+ },
1206
+ {
1207
+ "name": "title",
1208
+ "default": "-",
1209
+ "description": "顶部标题",
1210
+ "value": {
1211
+ "type": "string",
1212
+ "kind": "expression"
1213
+ }
1214
+ },
1215
+ {
1216
+ "name": "cancel-text",
1217
+ "default": "-",
1218
+ "description": "取消按钮文字",
1219
+ "value": {
1220
+ "type": "string",
1221
+ "kind": "expression"
1222
+ }
1223
+ },
1224
+ {
1225
+ "name": "description",
1226
+ "default": "-",
1227
+ "description": "选项上方的描述信息",
1228
+ "value": {
1229
+ "type": "string",
1230
+ "kind": "expression"
1231
+ }
1232
+ },
1233
+ {
1234
+ "name": "closeable",
1235
+ "default": "`true`",
1236
+ "description": "是否显示关闭图标",
1237
+ "value": {
1238
+ "type": "boolean",
1239
+ "kind": "expression"
1240
+ }
1241
+ },
1242
+ {
1243
+ "name": "close-icon",
1244
+ "default": "`cross`",
1245
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
1246
+ "value": {
1247
+ "type": "string",
1248
+ "kind": "expression"
1249
+ }
1250
+ },
1251
+ {
1252
+ "name": "duration",
1253
+ "default": "`0.3`",
1254
+ "description": "动画时长,单位秒",
1255
+ "value": {
1256
+ "type": "number | string",
1257
+ "kind": "expression"
1258
+ }
1259
+ },
1260
+ {
1261
+ "name": "round",
1262
+ "default": "`true`",
1263
+ "description": "是否显示圆角",
1264
+ "value": {
1265
+ "type": "boolean",
1266
+ "kind": "expression"
1267
+ }
1268
+ },
1269
+ {
1270
+ "name": "overlay",
1271
+ "default": "`true`",
1272
+ "description": "是否显示遮罩层",
1273
+ "value": {
1274
+ "type": "boolean",
1275
+ "kind": "expression"
1276
+ }
1277
+ },
1278
+ {
1279
+ "name": "lock-scroll",
1280
+ "default": "`true`",
1281
+ "description": "是否锁定背景滚动",
1282
+ "value": {
1283
+ "type": "boolean",
1284
+ "kind": "expression"
1285
+ }
1286
+ },
1287
+ {
1288
+ "name": "lazy-render",
1289
+ "default": "`true`",
1290
+ "description": "是否在显示弹层时才渲染节点",
1291
+ "value": {
1292
+ "type": "boolean",
1293
+ "kind": "expression"
1294
+ }
1295
+ },
1296
+ {
1297
+ "name": "close-on-popstate",
1298
+ "default": "`false`",
1299
+ "description": "是否在页面回退时自动关闭",
1300
+ "value": {
1301
+ "type": "boolean",
1286
1302
  "kind": "expression"
1287
1303
  }
1288
- }
1289
- ]
1290
- },
1291
- {
1292
- "name": "van-badge",
1293
- "slots": [
1294
- {
1295
- "name": "default",
1296
- "description": "徽标包裹的子元素"
1297
1304
  },
1298
1305
  {
1299
- "name": "content",
1300
- "description": "自定义徽标内容"
1301
- }
1302
- ],
1303
- "events": [],
1304
- "attributes": [
1305
- {
1306
- "name": "content",
1307
- "default": "-",
1308
- "description": "徽标内容",
1306
+ "name": "close-on-click-action",
1307
+ "default": "`false`",
1308
+ "description": "是否在点击选项后关闭",
1309
1309
  "value": {
1310
- "type": "number | string",
1310
+ "type": "boolean",
1311
1311
  "kind": "expression"
1312
1312
  }
1313
1313
  },
1314
1314
  {
1315
- "name": "color",
1316
- "default": "`#ee0a24`",
1317
- "description": "徽标背景颜色",
1315
+ "name": "close-on-click-overlay",
1316
+ "default": "`true`",
1317
+ "description": "是否在点击遮罩层后关闭",
1318
1318
  "value": {
1319
- "type": "string",
1319
+ "type": "boolean",
1320
1320
  "kind": "expression"
1321
1321
  }
1322
1322
  },
1323
1323
  {
1324
- "name": "dot",
1325
- "default": "`false`",
1326
- "description": "是否展示为小红点",
1324
+ "name": "safe-area-inset-bottom",
1325
+ "default": "`true`",
1326
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1327
1327
  "value": {
1328
1328
  "type": "boolean",
1329
1329
  "kind": "expression"
1330
1330
  }
1331
1331
  },
1332
1332
  {
1333
- "name": "max",
1333
+ "name": "get-container",
1334
1334
  "default": "-",
1335
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
1335
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
1336
1336
  "value": {
1337
- "type": "number | string",
1337
+ "type": "string | () => Element",
1338
1338
  "kind": "expression"
1339
1339
  }
1340
1340
  }
@@ -4932,6 +4932,15 @@
4932
4932
  "kind": "expression"
4933
4933
  }
4934
4934
  },
4935
+ {
4936
+ "name": "overlay-style",
4937
+ "default": "-",
4938
+ "description": "自定义遮罩层样式",
4939
+ "value": {
4940
+ "type": "object",
4941
+ "kind": "expression"
4942
+ }
4943
+ },
4935
4944
  {
4936
4945
  "name": "get-container",
4937
4946
  "default": "-",
@@ -8823,282 +8832,87 @@
8823
8832
  "description": "左侧标题",
8824
8833
  "value": {
8825
8834
  "type": "string",
8826
- "kind": "expression"
8827
- }
8828
- },
8829
- {
8830
- "name": "border",
8831
- "default": "`true`",
8832
- "description": "是否展示单元格内边框",
8833
- "value": {
8834
- "type": "boolean",
8835
- "kind": "expression"
8836
- }
8837
- },
8838
- {
8839
- "name": "cell-size",
8840
- "default": "-",
8841
- "description": "单元格大小,可选值为 `large`",
8842
- "value": {
8843
- "type": "string",
8844
- "kind": "expression"
8845
- }
8846
- },
8847
- {
8848
- "name": "loading",
8849
- "default": "`false`",
8850
- "description": "是否为加载状态",
8851
- "value": {
8852
- "type": "boolean",
8853
- "kind": "expression"
8854
- }
8855
- },
8856
- {
8857
- "name": "disabled",
8858
- "default": "`false`",
8859
- "description": "是否为禁用状态",
8860
- "value": {
8861
- "type": "boolean",
8862
- "kind": "expression"
8863
- }
8864
- },
8865
- {
8866
- "name": "size",
8867
- "default": "`24px`",
8868
- "description": "开关尺寸",
8869
- "value": {
8870
- "type": "number | string",
8871
- "kind": "expression"
8872
- }
8873
- },
8874
- {
8875
- "name": "active-color",
8876
- "default": "`#1989fa`",
8877
- "description": "开关时的背景色",
8878
- "value": {
8879
- "type": "string",
8880
- "kind": "expression"
8881
- }
8882
- },
8883
- {
8884
- "name": "inactive-color",
8885
- "default": "`white`",
8886
- "description": "开关时的背景色",
8887
- "value": {
8888
- "type": "string",
8889
- "kind": "expression"
8890
- }
8891
- },
8892
- {
8893
- "name": "active-value",
8894
- "default": "`true`",
8895
- "description": "打开时的值",
8896
- "value": {
8897
- "type": "any",
8898
- "kind": "expression"
8899
- }
8900
- },
8901
- {
8902
- "name": "inactive-value",
8903
- "default": "`false`",
8904
- "description": "关闭时的值",
8905
- "value": {
8906
- "type": "any",
8907
- "kind": "expression"
8908
- }
8909
- }
8910
- ]
8911
- },
8912
- {
8913
- "name": "van-tabbar",
8914
- "slots": [],
8915
- "events": [
8916
- {
8917
- "name": "change",
8918
- "description": "切换标签时触发"
8919
- }
8920
- ],
8921
- "attributes": [
8922
- {
8923
- "name": "v-model",
8924
- "default": "`0`",
8925
- "description": "当前选中标签的名称或索引值",
8926
- "value": {
8927
- "type": "number | string",
8928
- "kind": "expression"
8929
- }
8930
- },
8931
- {
8932
- "name": "fixed",
8933
- "default": "`true`",
8934
- "description": "是否固定在底部",
8935
- "value": {
8936
- "type": "boolean",
8937
- "kind": "expression"
8938
- }
8939
- },
8940
- {
8941
- "name": "border",
8942
- "default": "`true`",
8943
- "description": "是否显示外边框",
8944
- "value": {
8945
- "type": "boolean",
8946
- "kind": "expression"
8947
- }
8948
- },
8949
- {
8950
- "name": "z-index",
8951
- "default": "`1`",
8952
- "description": "元素 z-index",
8953
- "value": {
8954
- "type": "number | string",
8955
- "kind": "expression"
8956
- }
8957
- },
8958
- {
8959
- "name": "active-color",
8960
- "default": "`#1989fa`",
8961
- "description": "选中标签的颜色",
8962
- "value": {
8963
- "type": "string",
8964
- "kind": "expression"
8965
- }
8966
- },
8967
- {
8968
- "name": "inactive-color",
8969
- "default": "`#7d7e80`",
8970
- "description": "未选中标签的颜色",
8971
- "value": {
8972
- "type": "string",
8973
- "kind": "expression"
8974
- }
8975
- },
8976
- {
8977
- "name": "route",
8978
- "default": "`false`",
8979
- "description": "是否开启路由模式",
8980
- "value": {
8981
- "type": "boolean",
8982
- "kind": "expression"
8983
- }
8984
- },
8985
- {
8986
- "name": "placeholder",
8987
- "default": "`false`",
8988
- "description": "固定在底部时,是否在标签位置生成一个等高的占位元素",
8989
- "value": {
8990
- "type": "boolean",
8991
- "kind": "expression"
8992
- }
8993
- },
8994
- {
8995
- "name": "safe-area-inset-bottom",
8996
- "default": "`false`",
8997
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启",
8998
- "value": {
8999
- "type": "boolean",
9000
- "kind": "expression"
9001
- }
9002
- },
9003
- {
9004
- "name": "before-change",
9005
- "default": "-",
9006
- "description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise",
9007
- "value": {
9008
- "type": "(name) => boolean | Promise",
9009
- "kind": "expression"
9010
- }
9011
- }
9012
- ]
9013
- },
9014
- {
9015
- "name": "van-tabbar-item",
9016
- "slots": [
9017
- {
9018
- "name": "icon",
9019
- "description": "自定义图标"
9020
- }
9021
- ],
9022
- "events": [],
9023
- "attributes": [
8835
+ "kind": "expression"
8836
+ }
8837
+ },
9024
8838
  {
9025
- "name": "name",
9026
- "default": "当前标签的索引值",
9027
- "description": "标签名称,作为匹配的标识符",
8839
+ "name": "border",
8840
+ "default": "`true`",
8841
+ "description": "是否展示单元格内边框",
9028
8842
  "value": {
9029
- "type": "number | string",
8843
+ "type": "boolean",
9030
8844
  "kind": "expression"
9031
8845
  }
9032
8846
  },
9033
8847
  {
9034
- "name": "icon",
8848
+ "name": "cell-size",
9035
8849
  "default": "-",
9036
- "description": "[图标名称](#/zh-CN/icon)或图片链接",
8850
+ "description": "单元格大小,可选值为 `large`",
9037
8851
  "value": {
9038
8852
  "type": "string",
9039
8853
  "kind": "expression"
9040
8854
  }
9041
8855
  },
9042
8856
  {
9043
- "name": "icon-prefix",
9044
- "default": "`van-icon`",
9045
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
8857
+ "name": "loading",
8858
+ "default": "`false`",
8859
+ "description": "是否为加载状态",
9046
8860
  "value": {
9047
- "type": "string",
8861
+ "type": "boolean",
9048
8862
  "kind": "expression"
9049
8863
  }
9050
8864
  },
9051
8865
  {
9052
- "name": "dot",
8866
+ "name": "disabled",
9053
8867
  "default": "`false`",
9054
- "description": "是否显示图标右上角小红点",
8868
+ "description": "是否为禁用状态",
9055
8869
  "value": {
9056
8870
  "type": "boolean",
9057
8871
  "kind": "expression"
9058
8872
  }
9059
8873
  },
9060
8874
  {
9061
- "name": "badge",
9062
- "default": "-",
9063
- "description": "图标右上角徽标的内容",
8875
+ "name": "size",
8876
+ "default": "`24px`",
8877
+ "description": "开关尺寸",
9064
8878
  "value": {
9065
8879
  "type": "number | string",
9066
8880
  "kind": "expression"
9067
8881
  }
9068
8882
  },
9069
8883
  {
9070
- "name": "info",
9071
- "default": "-",
9072
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
8884
+ "name": "active-color",
8885
+ "default": "`#1989fa`",
8886
+ "description": "开关时的背景色",
9073
8887
  "value": {
9074
- "type": "number | string",
8888
+ "type": "string",
9075
8889
  "kind": "expression"
9076
8890
  }
9077
8891
  },
9078
8892
  {
9079
- "name": "url",
9080
- "default": "-",
9081
- "description": "点击后跳转的链接地址",
8893
+ "name": "inactive-color",
8894
+ "default": "`white`",
8895
+ "description": "开关时的背景色",
9082
8896
  "value": {
9083
8897
  "type": "string",
9084
8898
  "kind": "expression"
9085
8899
  }
9086
8900
  },
9087
8901
  {
9088
- "name": "to",
9089
- "default": "-",
9090
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
8902
+ "name": "active-value",
8903
+ "default": "`true`",
8904
+ "description": "打开时的值",
9091
8905
  "value": {
9092
- "type": "string | object",
8906
+ "type": "any",
9093
8907
  "kind": "expression"
9094
8908
  }
9095
8909
  },
9096
8910
  {
9097
- "name": "replace",
8911
+ "name": "inactive-value",
9098
8912
  "default": "`false`",
9099
- "description": "是否在跳转时替换当前页面历史",
8913
+ "description": "关闭时的值",
9100
8914
  "value": {
9101
- "type": "boolean",
8915
+ "type": "any",
9102
8916
  "kind": "expression"
9103
8917
  }
9104
8918
  }
@@ -9427,6 +9241,201 @@
9427
9241
  }
9428
9242
  ]
9429
9243
  },
9244
+ {
9245
+ "name": "van-tabbar",
9246
+ "slots": [],
9247
+ "events": [
9248
+ {
9249
+ "name": "change",
9250
+ "description": "切换标签时触发"
9251
+ }
9252
+ ],
9253
+ "attributes": [
9254
+ {
9255
+ "name": "v-model",
9256
+ "default": "`0`",
9257
+ "description": "当前选中标签的名称或索引值",
9258
+ "value": {
9259
+ "type": "number | string",
9260
+ "kind": "expression"
9261
+ }
9262
+ },
9263
+ {
9264
+ "name": "fixed",
9265
+ "default": "`true`",
9266
+ "description": "是否固定在底部",
9267
+ "value": {
9268
+ "type": "boolean",
9269
+ "kind": "expression"
9270
+ }
9271
+ },
9272
+ {
9273
+ "name": "border",
9274
+ "default": "`true`",
9275
+ "description": "是否显示外边框",
9276
+ "value": {
9277
+ "type": "boolean",
9278
+ "kind": "expression"
9279
+ }
9280
+ },
9281
+ {
9282
+ "name": "z-index",
9283
+ "default": "`1`",
9284
+ "description": "元素 z-index",
9285
+ "value": {
9286
+ "type": "number | string",
9287
+ "kind": "expression"
9288
+ }
9289
+ },
9290
+ {
9291
+ "name": "active-color",
9292
+ "default": "`#1989fa`",
9293
+ "description": "选中标签的颜色",
9294
+ "value": {
9295
+ "type": "string",
9296
+ "kind": "expression"
9297
+ }
9298
+ },
9299
+ {
9300
+ "name": "inactive-color",
9301
+ "default": "`#7d7e80`",
9302
+ "description": "未选中标签的颜色",
9303
+ "value": {
9304
+ "type": "string",
9305
+ "kind": "expression"
9306
+ }
9307
+ },
9308
+ {
9309
+ "name": "route",
9310
+ "default": "`false`",
9311
+ "description": "是否开启路由模式",
9312
+ "value": {
9313
+ "type": "boolean",
9314
+ "kind": "expression"
9315
+ }
9316
+ },
9317
+ {
9318
+ "name": "placeholder",
9319
+ "default": "`false`",
9320
+ "description": "固定在底部时,是否在标签位置生成一个等高的占位元素",
9321
+ "value": {
9322
+ "type": "boolean",
9323
+ "kind": "expression"
9324
+ }
9325
+ },
9326
+ {
9327
+ "name": "safe-area-inset-bottom",
9328
+ "default": "`false`",
9329
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启",
9330
+ "value": {
9331
+ "type": "boolean",
9332
+ "kind": "expression"
9333
+ }
9334
+ },
9335
+ {
9336
+ "name": "before-change",
9337
+ "default": "-",
9338
+ "description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise",
9339
+ "value": {
9340
+ "type": "(name) => boolean | Promise",
9341
+ "kind": "expression"
9342
+ }
9343
+ }
9344
+ ]
9345
+ },
9346
+ {
9347
+ "name": "van-tabbar-item",
9348
+ "slots": [
9349
+ {
9350
+ "name": "icon",
9351
+ "description": "自定义图标"
9352
+ }
9353
+ ],
9354
+ "events": [],
9355
+ "attributes": [
9356
+ {
9357
+ "name": "name",
9358
+ "default": "当前标签的索引值",
9359
+ "description": "标签名称,作为匹配的标识符",
9360
+ "value": {
9361
+ "type": "number | string",
9362
+ "kind": "expression"
9363
+ }
9364
+ },
9365
+ {
9366
+ "name": "icon",
9367
+ "default": "-",
9368
+ "description": "[图标名称](#/zh-CN/icon)或图片链接",
9369
+ "value": {
9370
+ "type": "string",
9371
+ "kind": "expression"
9372
+ }
9373
+ },
9374
+ {
9375
+ "name": "icon-prefix",
9376
+ "default": "`van-icon`",
9377
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
9378
+ "value": {
9379
+ "type": "string",
9380
+ "kind": "expression"
9381
+ }
9382
+ },
9383
+ {
9384
+ "name": "dot",
9385
+ "default": "`false`",
9386
+ "description": "是否显示图标右上角小红点",
9387
+ "value": {
9388
+ "type": "boolean",
9389
+ "kind": "expression"
9390
+ }
9391
+ },
9392
+ {
9393
+ "name": "badge",
9394
+ "default": "-",
9395
+ "description": "图标右上角徽标的内容",
9396
+ "value": {
9397
+ "type": "number | string",
9398
+ "kind": "expression"
9399
+ }
9400
+ },
9401
+ {
9402
+ "name": "info",
9403
+ "default": "-",
9404
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
9405
+ "value": {
9406
+ "type": "number | string",
9407
+ "kind": "expression"
9408
+ }
9409
+ },
9410
+ {
9411
+ "name": "url",
9412
+ "default": "-",
9413
+ "description": "点击后跳转的链接地址",
9414
+ "value": {
9415
+ "type": "string",
9416
+ "kind": "expression"
9417
+ }
9418
+ },
9419
+ {
9420
+ "name": "to",
9421
+ "default": "-",
9422
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
9423
+ "value": {
9424
+ "type": "string | object",
9425
+ "kind": "expression"
9426
+ }
9427
+ },
9428
+ {
9429
+ "name": "replace",
9430
+ "default": "`false`",
9431
+ "description": "是否在跳转时替换当前页面历史",
9432
+ "value": {
9433
+ "type": "boolean",
9434
+ "kind": "expression"
9435
+ }
9436
+ }
9437
+ ]
9438
+ },
9430
9439
  {
9431
9440
  "name": "van-tag",
9432
9441
  "slots": [