vant 2.12.46 → 2.12.47
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 +6 -7
- package/es/index.js +1 -1
- package/es/locale/lang/vi-VN.js +91 -0
- package/lib/index.js +1 -1
- package/lib/locale/lang/vi-VN.js +96 -0
- package/lib/vant.js +1 -1
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +224 -224
- package/vetur/tags.json +79 -79
- package/vetur/web-types.json +739 -739
package/vetur/web-types.json
CHANGED
@@ -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.
|
5
|
+
"version": "2.12.47",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -355,575 +355,638 @@
|
|
355
355
|
]
|
356
356
|
},
|
357
357
|
{
|
358
|
-
"name": "van-
|
358
|
+
"name": "van-address-list",
|
359
359
|
"slots": [
|
360
360
|
{
|
361
361
|
"name": "default",
|
362
|
-
"description": "
|
362
|
+
"description": "在列表下方插入内容"
|
363
363
|
},
|
364
364
|
{
|
365
|
-
"name": "
|
366
|
-
"description": "
|
365
|
+
"name": "top",
|
366
|
+
"description": "在顶部插入内容"
|
367
367
|
},
|
368
368
|
{
|
369
|
-
"name": "
|
370
|
-
"description": "
|
369
|
+
"name": "item-bottom",
|
370
|
+
"description": "在列表项底部插入内容"
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"name": "tag",
|
374
|
+
"description": "列表项标签内容自定义"
|
371
375
|
}
|
372
376
|
],
|
373
377
|
"events": [
|
374
378
|
{
|
375
|
-
"name": "
|
376
|
-
"description": "
|
379
|
+
"name": "add",
|
380
|
+
"description": "点击新增按钮时触发"
|
377
381
|
},
|
378
382
|
{
|
379
|
-
"name": "
|
380
|
-
"description": "
|
383
|
+
"name": "edit",
|
384
|
+
"description": "点击编辑按钮时触发"
|
385
|
+
},
|
386
|
+
{
|
387
|
+
"name": "select",
|
388
|
+
"description": "切换选中的地址时触发"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"name": "edit-disabled",
|
392
|
+
"description": "编辑不可配送的地址时触发"
|
393
|
+
},
|
394
|
+
{
|
395
|
+
"name": "select-disabled",
|
396
|
+
"description": "选中不可配送的地址时触发"
|
397
|
+
},
|
398
|
+
{
|
399
|
+
"name": "click-item",
|
400
|
+
"description": "点击任意地址时触发"
|
381
401
|
}
|
382
402
|
],
|
383
403
|
"attributes": [
|
384
404
|
{
|
385
|
-
"name": "
|
386
|
-
"default": "
|
387
|
-
"description": "
|
405
|
+
"name": "v-model",
|
406
|
+
"default": "-",
|
407
|
+
"description": "当前选中地址的 id",
|
388
408
|
"value": {
|
389
409
|
"type": "string",
|
390
410
|
"kind": "expression"
|
391
411
|
}
|
392
412
|
},
|
393
413
|
{
|
394
|
-
"name": "
|
395
|
-
"default": "`
|
396
|
-
"description": "
|
414
|
+
"name": "list",
|
415
|
+
"default": "`[]`",
|
416
|
+
"description": "地址列表",
|
397
417
|
"value": {
|
398
|
-
"type": "
|
418
|
+
"type": "Address[]",
|
399
419
|
"kind": "expression"
|
400
420
|
}
|
401
421
|
},
|
402
422
|
{
|
403
|
-
"name": "
|
404
|
-
"default": "
|
405
|
-
"description": "
|
423
|
+
"name": "disabled-list",
|
424
|
+
"default": "`[]`",
|
425
|
+
"description": "不可配送地址列表",
|
406
426
|
"value": {
|
407
|
-
"type": "
|
427
|
+
"type": "Address[]",
|
408
428
|
"kind": "expression"
|
409
429
|
}
|
410
430
|
},
|
411
431
|
{
|
412
|
-
"name": "
|
432
|
+
"name": "disabled-text",
|
413
433
|
"default": "-",
|
414
|
-
"description": "
|
434
|
+
"description": "不可配送提示文案",
|
415
435
|
"value": {
|
416
436
|
"type": "string",
|
417
437
|
"kind": "expression"
|
418
438
|
}
|
419
439
|
},
|
420
440
|
{
|
421
|
-
"name": "
|
422
|
-
"default": "
|
423
|
-
"description": "
|
441
|
+
"name": "switchable",
|
442
|
+
"default": "`true`",
|
443
|
+
"description": "是否允许切换地址",
|
424
444
|
"value": {
|
425
|
-
"type": "
|
445
|
+
"type": "boolean",
|
426
446
|
"kind": "expression"
|
427
447
|
}
|
428
448
|
},
|
429
449
|
{
|
430
|
-
"name": "
|
431
|
-
"default": "
|
432
|
-
"description": "
|
450
|
+
"name": "add-button-text",
|
451
|
+
"default": "`新增地址`",
|
452
|
+
"description": "底部按钮文字",
|
433
453
|
"value": {
|
434
454
|
"type": "string",
|
435
455
|
"kind": "expression"
|
436
456
|
}
|
437
457
|
},
|
438
458
|
{
|
439
|
-
"name": "
|
440
|
-
"default": "
|
441
|
-
"description": "
|
459
|
+
"name": "default-tag-text",
|
460
|
+
"default": "-",
|
461
|
+
"description": "默认地址标签文字",
|
442
462
|
"value": {
|
443
463
|
"type": "string",
|
444
464
|
"kind": "expression"
|
445
465
|
}
|
466
|
+
}
|
467
|
+
]
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"name": "van-badge",
|
471
|
+
"slots": [
|
472
|
+
{
|
473
|
+
"name": "default",
|
474
|
+
"description": "徽标包裹的子元素"
|
446
475
|
},
|
447
476
|
{
|
448
|
-
"name": "
|
449
|
-
"
|
450
|
-
|
477
|
+
"name": "content",
|
478
|
+
"description": "自定义徽标内容"
|
479
|
+
}
|
480
|
+
],
|
481
|
+
"events": [],
|
482
|
+
"attributes": [
|
483
|
+
{
|
484
|
+
"name": "content",
|
485
|
+
"default": "-",
|
486
|
+
"description": "徽标内容",
|
451
487
|
"value": {
|
452
|
-
"type": "string",
|
488
|
+
"type": "number | string",
|
453
489
|
"kind": "expression"
|
454
490
|
}
|
455
491
|
},
|
456
492
|
{
|
457
|
-
"name": "
|
458
|
-
"default": "
|
459
|
-
"description": "
|
493
|
+
"name": "color",
|
494
|
+
"default": "`#ee0a24`",
|
495
|
+
"description": "徽标背景颜色",
|
460
496
|
"value": {
|
461
497
|
"type": "string",
|
462
498
|
"kind": "expression"
|
463
499
|
}
|
464
500
|
},
|
465
501
|
{
|
466
|
-
"name": "
|
502
|
+
"name": "dot",
|
467
503
|
"default": "`false`",
|
468
|
-
"description": "
|
504
|
+
"description": "是否展示为小红点",
|
469
505
|
"value": {
|
470
506
|
"type": "boolean",
|
471
507
|
"kind": "expression"
|
472
508
|
}
|
473
509
|
},
|
474
510
|
{
|
475
|
-
"name": "
|
476
|
-
"default": "
|
477
|
-
"description": "
|
511
|
+
"name": "max",
|
512
|
+
"default": "-",
|
513
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
478
514
|
"value": {
|
479
|
-
"type": "
|
515
|
+
"type": "number | string",
|
480
516
|
"kind": "expression"
|
481
517
|
}
|
518
|
+
}
|
519
|
+
]
|
520
|
+
},
|
521
|
+
{
|
522
|
+
"name": "van-address-edit",
|
523
|
+
"slots": [
|
524
|
+
{
|
525
|
+
"name": "default",
|
526
|
+
"description": "在邮政编码下方插入内容"
|
527
|
+
}
|
528
|
+
],
|
529
|
+
"events": [
|
530
|
+
{
|
531
|
+
"name": "save",
|
532
|
+
"description": "点击保存按钮时触发"
|
482
533
|
},
|
483
534
|
{
|
484
|
-
"name": "
|
485
|
-
"
|
486
|
-
|
535
|
+
"name": "focus",
|
536
|
+
"description": "输入框聚焦时触发"
|
537
|
+
},
|
538
|
+
{
|
539
|
+
"name": "delete",
|
540
|
+
"description": "确认删除地址时触发"
|
541
|
+
},
|
542
|
+
{
|
543
|
+
"name": "cancel-delete",
|
544
|
+
"description": "取消删除地址时触发"
|
545
|
+
},
|
546
|
+
{
|
547
|
+
"name": "select-search",
|
548
|
+
"description": "选中搜索结果时触发"
|
549
|
+
},
|
550
|
+
{
|
551
|
+
"name": "click-area",
|
552
|
+
"description": "点击收件地区时触发"
|
553
|
+
},
|
554
|
+
{
|
555
|
+
"name": "change-area",
|
556
|
+
"description": "修改收件地区时触发"
|
557
|
+
},
|
558
|
+
{
|
559
|
+
"name": "change-detail",
|
560
|
+
"description": "修改详细地址时触发"
|
561
|
+
},
|
562
|
+
{
|
563
|
+
"name": "change-default",
|
564
|
+
"description": "切换是否使用默认地址时触发"
|
565
|
+
}
|
566
|
+
],
|
567
|
+
"attributes": [
|
568
|
+
{
|
569
|
+
"name": "area-list",
|
570
|
+
"default": "-",
|
571
|
+
"description": "地区列表",
|
487
572
|
"value": {
|
488
|
-
"type": "
|
573
|
+
"type": "object",
|
489
574
|
"kind": "expression"
|
490
575
|
}
|
491
576
|
},
|
492
577
|
{
|
493
|
-
"name": "
|
494
|
-
"default": "`
|
495
|
-
"description": "
|
578
|
+
"name": "area-columns-placeholder",
|
579
|
+
"default": "`[]`",
|
580
|
+
"description": "地区选择列占位提示文字",
|
496
581
|
"value": {
|
497
|
-
"type": "
|
582
|
+
"type": "string[]",
|
498
583
|
"kind": "expression"
|
499
584
|
}
|
500
585
|
},
|
501
586
|
{
|
502
|
-
"name": "
|
503
|
-
"default": "
|
504
|
-
"description": "
|
587
|
+
"name": "area-placeholder",
|
588
|
+
"default": "`选择省 / 市 / 区`",
|
589
|
+
"description": "地区输入框占位提示文字",
|
505
590
|
"value": {
|
506
|
-
"type": "
|
591
|
+
"type": "string",
|
507
592
|
"kind": "expression"
|
508
593
|
}
|
509
594
|
},
|
510
595
|
{
|
511
|
-
"name": "
|
512
|
-
"default": "`
|
513
|
-
"description": "
|
596
|
+
"name": "address-info",
|
597
|
+
"default": "`{}`",
|
598
|
+
"description": "收货人信息初始值",
|
514
599
|
"value": {
|
515
|
-
"type": "
|
600
|
+
"type": "AddressInfo",
|
516
601
|
"kind": "expression"
|
517
602
|
}
|
518
603
|
},
|
519
604
|
{
|
520
|
-
"name": "
|
605
|
+
"name": "search-result",
|
606
|
+
"default": "`[]`",
|
607
|
+
"description": "详细地址搜索结果",
|
608
|
+
"value": {
|
609
|
+
"type": "SearchResult[]",
|
610
|
+
"kind": "expression"
|
611
|
+
}
|
612
|
+
},
|
613
|
+
{
|
614
|
+
"name": "show-postal",
|
521
615
|
"default": "`false`",
|
522
|
-
"description": "
|
616
|
+
"description": "是否显示邮政编码",
|
523
617
|
"value": {
|
524
618
|
"type": "boolean",
|
525
619
|
"kind": "expression"
|
526
620
|
}
|
527
621
|
},
|
528
622
|
{
|
529
|
-
"name": "
|
530
|
-
"default": "
|
531
|
-
"description": "
|
623
|
+
"name": "show-delete",
|
624
|
+
"default": "`false`",
|
625
|
+
"description": "是否显示删除按钮",
|
532
626
|
"value": {
|
533
|
-
"type": "
|
627
|
+
"type": "boolean",
|
534
628
|
"kind": "expression"
|
535
629
|
}
|
536
630
|
},
|
537
631
|
{
|
538
|
-
"name": "
|
539
|
-
"default": "`
|
540
|
-
"description": "
|
632
|
+
"name": "show-set-default",
|
633
|
+
"default": "`false`",
|
634
|
+
"description": "是否显示默认地址栏",
|
541
635
|
"value": {
|
542
|
-
"type": "
|
636
|
+
"type": "boolean",
|
543
637
|
"kind": "expression"
|
544
638
|
}
|
545
639
|
},
|
546
640
|
{
|
547
|
-
"name": "
|
548
|
-
"default": "`
|
549
|
-
"description": "
|
641
|
+
"name": "show-search-result",
|
642
|
+
"default": "`false`",
|
643
|
+
"description": "是否显示搜索结果",
|
550
644
|
"value": {
|
551
|
-
"type": "
|
645
|
+
"type": "boolean",
|
552
646
|
"kind": "expression"
|
553
647
|
}
|
554
648
|
},
|
555
649
|
{
|
556
|
-
"name": "
|
557
|
-
"default": "
|
558
|
-
"description": "
|
650
|
+
"name": "show-area",
|
651
|
+
"default": "`true`",
|
652
|
+
"description": "是否显示地区",
|
559
653
|
"value": {
|
560
|
-
"type": "
|
654
|
+
"type": "boolean",
|
561
655
|
"kind": "expression"
|
562
656
|
}
|
563
657
|
},
|
564
658
|
{
|
565
|
-
"name": "
|
566
|
-
"default": "
|
567
|
-
"description": "
|
659
|
+
"name": "show-detail",
|
660
|
+
"default": "`true`",
|
661
|
+
"description": "是否显示详细地址",
|
568
662
|
"value": {
|
569
|
-
"type": "
|
663
|
+
"type": "boolean",
|
570
664
|
"kind": "expression"
|
571
665
|
}
|
572
666
|
},
|
573
667
|
{
|
574
|
-
"name": "
|
668
|
+
"name": "disable-area",
|
575
669
|
"default": "`false`",
|
576
|
-
"description": "
|
670
|
+
"description": "是否禁用地区选择",
|
577
671
|
"value": {
|
578
672
|
"type": "boolean",
|
579
673
|
"kind": "expression"
|
580
674
|
}
|
581
|
-
}
|
582
|
-
]
|
583
|
-
},
|
584
|
-
{
|
585
|
-
"name": "van-calendar",
|
586
|
-
"slots": [
|
587
|
-
{
|
588
|
-
"name": "title",
|
589
|
-
"description": "自定义标题"
|
590
|
-
},
|
591
|
-
{
|
592
|
-
"name": "footer",
|
593
|
-
"description": "自定义底部区域内容"
|
594
|
-
},
|
595
|
-
{
|
596
|
-
"name": "top-info",
|
597
|
-
"description": "自定义日期上方的提示信息"
|
598
675
|
},
|
599
676
|
{
|
600
|
-
"name": "
|
601
|
-
"
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
"description": "点击并选中任意日期时触发"
|
608
|
-
},
|
609
|
-
{
|
610
|
-
"name": "confirm",
|
611
|
-
"description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
|
612
|
-
},
|
613
|
-
{
|
614
|
-
"name": "open",
|
615
|
-
"description": "打开弹出层时触发"
|
616
|
-
},
|
617
|
-
{
|
618
|
-
"name": "close",
|
619
|
-
"description": "关闭弹出层时触发"
|
620
|
-
},
|
621
|
-
{
|
622
|
-
"name": "opened",
|
623
|
-
"description": "打开弹出层且动画结束后触发"
|
624
|
-
},
|
625
|
-
{
|
626
|
-
"name": "closed",
|
627
|
-
"description": "关闭弹出层且动画结束后触发"
|
628
|
-
},
|
629
|
-
{
|
630
|
-
"name": "unselect",
|
631
|
-
"description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
|
677
|
+
"name": "save-button-text",
|
678
|
+
"default": "`保存`",
|
679
|
+
"description": "保存按钮文字",
|
680
|
+
"value": {
|
681
|
+
"type": "string",
|
682
|
+
"kind": "expression"
|
683
|
+
}
|
632
684
|
},
|
633
685
|
{
|
634
|
-
"name": "
|
635
|
-
"
|
636
|
-
|
637
|
-
],
|
638
|
-
"attributes": [
|
639
|
-
{
|
640
|
-
"name": "type",
|
641
|
-
"default": "`single`",
|
642
|
-
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
|
686
|
+
"name": "delete-button-text",
|
687
|
+
"default": "`删除`",
|
688
|
+
"description": "删除按钮文字",
|
643
689
|
"value": {
|
644
690
|
"type": "string",
|
645
691
|
"kind": "expression"
|
646
692
|
}
|
647
693
|
},
|
648
694
|
{
|
649
|
-
"name": "
|
650
|
-
"default": "
|
651
|
-
"description": "
|
695
|
+
"name": "detail-rows",
|
696
|
+
"default": "`1`",
|
697
|
+
"description": "详细地址输入框行数",
|
652
698
|
"value": {
|
653
|
-
"type": "string",
|
699
|
+
"type": "number | string",
|
654
700
|
"kind": "expression"
|
655
701
|
}
|
656
702
|
},
|
657
703
|
{
|
658
|
-
"name": "
|
659
|
-
"default": "
|
660
|
-
"description": "
|
704
|
+
"name": "detail-maxlength",
|
705
|
+
"default": "`200`",
|
706
|
+
"description": "详细地址最大长度",
|
661
707
|
"value": {
|
662
|
-
"type": "string",
|
708
|
+
"type": "number | string",
|
663
709
|
"kind": "expression"
|
664
710
|
}
|
665
711
|
},
|
666
712
|
{
|
667
|
-
"name": "
|
668
|
-
"default": "
|
669
|
-
"description": "
|
713
|
+
"name": "is-saving",
|
714
|
+
"default": "`false`",
|
715
|
+
"description": "是否显示保存按钮加载动画",
|
670
716
|
"value": {
|
671
|
-
"type": "
|
717
|
+
"type": "boolean",
|
672
718
|
"kind": "expression"
|
673
719
|
}
|
674
720
|
},
|
675
721
|
{
|
676
|
-
"name": "
|
677
|
-
"default": "
|
678
|
-
"description": "
|
722
|
+
"name": "is-deleting",
|
723
|
+
"default": "`false`",
|
724
|
+
"description": "是否显示删除按钮加载动画",
|
679
725
|
"value": {
|
680
|
-
"type": "
|
726
|
+
"type": "boolean",
|
681
727
|
"kind": "expression"
|
682
728
|
}
|
683
729
|
},
|
684
730
|
{
|
685
|
-
"name": "
|
686
|
-
"default": "
|
687
|
-
"description": "
|
731
|
+
"name": "tel-validator",
|
732
|
+
"default": "-",
|
733
|
+
"description": "手机号格式校验函数",
|
688
734
|
"value": {
|
689
|
-
"type": "
|
735
|
+
"type": "string => boolean",
|
690
736
|
"kind": "expression"
|
691
737
|
}
|
692
738
|
},
|
693
739
|
{
|
694
|
-
"name": "
|
695
|
-
"default": "
|
696
|
-
"description": "
|
740
|
+
"name": "tel-maxlength",
|
741
|
+
"default": "-",
|
742
|
+
"description": "手机号最大长度",
|
697
743
|
"value": {
|
698
744
|
"type": "number | string",
|
699
745
|
"kind": "expression"
|
700
746
|
}
|
701
747
|
},
|
702
748
|
{
|
703
|
-
"name": "
|
749
|
+
"name": "postal-validator",
|
704
750
|
"default": "-",
|
705
|
-
"description": "
|
751
|
+
"description": "邮政编码格式校验函数",
|
706
752
|
"value": {
|
707
|
-
"type": "
|
753
|
+
"type": "string => boolean",
|
708
754
|
"kind": "expression"
|
709
755
|
}
|
710
756
|
},
|
711
757
|
{
|
712
|
-
"name": "
|
713
|
-
"default": "
|
714
|
-
"description": "
|
758
|
+
"name": "validator",
|
759
|
+
"default": "-",
|
760
|
+
"description": "自定义校验函数",
|
715
761
|
"value": {
|
716
|
-
"type": "
|
762
|
+
"type": "(key, val) => string",
|
717
763
|
"kind": "expression"
|
718
764
|
}
|
765
|
+
}
|
766
|
+
]
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"name": "van-button",
|
770
|
+
"slots": [
|
771
|
+
{
|
772
|
+
"name": "default",
|
773
|
+
"description": "按钮内容"
|
719
774
|
},
|
720
775
|
{
|
721
|
-
"name": "
|
722
|
-
"
|
723
|
-
|
776
|
+
"name": "icon",
|
777
|
+
"description": "自定义图标"
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"name": "loading",
|
781
|
+
"description": "自定义加载图标"
|
782
|
+
}
|
783
|
+
],
|
784
|
+
"events": [
|
785
|
+
{
|
786
|
+
"name": "click",
|
787
|
+
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"name": "touchstart",
|
791
|
+
"description": "开始触摸按钮时触发"
|
792
|
+
}
|
793
|
+
],
|
794
|
+
"attributes": [
|
795
|
+
{
|
796
|
+
"name": "type",
|
797
|
+
"default": "`default`",
|
798
|
+
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
724
799
|
"value": {
|
725
|
-
"type": "
|
800
|
+
"type": "string",
|
726
801
|
"kind": "expression"
|
727
802
|
}
|
728
803
|
},
|
729
804
|
{
|
730
|
-
"name": "
|
731
|
-
"default": "`
|
732
|
-
"description": "
|
805
|
+
"name": "size",
|
806
|
+
"default": "`normal`",
|
807
|
+
"description": "尺寸,可选值为 `large` `small` `mini`",
|
733
808
|
"value": {
|
734
|
-
"type": "
|
809
|
+
"type": "string",
|
735
810
|
"kind": "expression"
|
736
811
|
}
|
737
812
|
},
|
738
813
|
{
|
739
|
-
"name": "
|
740
|
-
"default": "
|
741
|
-
"description": "
|
814
|
+
"name": "text",
|
815
|
+
"default": "-",
|
816
|
+
"description": "按钮文字",
|
817
|
+
"value": {
|
818
|
+
"type": "string",
|
819
|
+
"kind": "expression"
|
820
|
+
}
|
821
|
+
},
|
822
|
+
{
|
823
|
+
"name": "color",
|
824
|
+
"default": "-",
|
825
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
742
826
|
"value": {
|
743
|
-
"type": "
|
827
|
+
"type": "string",
|
744
828
|
"kind": "expression"
|
745
829
|
}
|
746
830
|
},
|
747
831
|
{
|
748
|
-
"name": "
|
749
|
-
"default": "
|
750
|
-
"description": "
|
832
|
+
"name": "icon",
|
833
|
+
"default": "-",
|
834
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
751
835
|
"value": {
|
752
|
-
"type": "
|
836
|
+
"type": "string",
|
753
837
|
"kind": "expression"
|
754
838
|
}
|
755
839
|
},
|
756
840
|
{
|
757
|
-
"name": "
|
758
|
-
"default": "`
|
759
|
-
"description": "
|
841
|
+
"name": "icon-prefix",
|
842
|
+
"default": "`van-icon`",
|
843
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
760
844
|
"value": {
|
761
|
-
"type": "
|
845
|
+
"type": "string",
|
762
846
|
"kind": "expression"
|
763
847
|
}
|
764
848
|
},
|
765
849
|
{
|
766
|
-
"name": "
|
767
|
-
"default": "`
|
768
|
-
"description": "
|
850
|
+
"name": "icon-position",
|
851
|
+
"default": "`left`",
|
852
|
+
"description": "图标展示位置,可选值为 `right`",
|
769
853
|
"value": {
|
770
|
-
"type": "
|
854
|
+
"type": "string",
|
771
855
|
"kind": "expression"
|
772
856
|
}
|
773
857
|
},
|
774
858
|
{
|
775
|
-
"name": "
|
776
|
-
"default": "
|
777
|
-
"description": "
|
859
|
+
"name": "tag",
|
860
|
+
"default": "`button`",
|
861
|
+
"description": "按钮根节点的 HTML 标签",
|
778
862
|
"value": {
|
779
863
|
"type": "string",
|
780
864
|
"kind": "expression"
|
781
865
|
}
|
782
866
|
},
|
783
867
|
{
|
784
|
-
"name": "
|
785
|
-
"default": "
|
786
|
-
"description": "
|
868
|
+
"name": "native-type",
|
869
|
+
"default": "-",
|
870
|
+
"description": "原生 button 标签的 type 属性",
|
787
871
|
"value": {
|
788
872
|
"type": "string",
|
789
873
|
"kind": "expression"
|
790
874
|
}
|
791
875
|
},
|
792
876
|
{
|
793
|
-
"name": "
|
794
|
-
"default": "`
|
795
|
-
"description": "
|
877
|
+
"name": "block",
|
878
|
+
"default": "`false`",
|
879
|
+
"description": "是否为块级元素",
|
796
880
|
"value": {
|
797
|
-
"type": "
|
881
|
+
"type": "boolean",
|
798
882
|
"kind": "expression"
|
799
883
|
}
|
800
|
-
}
|
801
|
-
]
|
802
|
-
},
|
803
|
-
{
|
804
|
-
"name": "van-poppable",
|
805
|
-
"slots": [],
|
806
|
-
"events": [],
|
807
|
-
"attributes": [
|
884
|
+
},
|
808
885
|
{
|
809
|
-
"name": "
|
886
|
+
"name": "plain",
|
810
887
|
"default": "`false`",
|
811
|
-
"description": "
|
888
|
+
"description": "是否为朴素按钮",
|
812
889
|
"value": {
|
813
890
|
"type": "boolean",
|
814
891
|
"kind": "expression"
|
815
892
|
}
|
816
893
|
},
|
817
894
|
{
|
818
|
-
"name": "
|
819
|
-
"default": "`
|
820
|
-
"description": "
|
895
|
+
"name": "square",
|
896
|
+
"default": "`false`",
|
897
|
+
"description": "是否为方形按钮",
|
821
898
|
"value": {
|
822
|
-
"type": "
|
899
|
+
"type": "boolean",
|
823
900
|
"kind": "expression"
|
824
901
|
}
|
825
902
|
},
|
826
903
|
{
|
827
904
|
"name": "round",
|
828
|
-
"default": "`
|
829
|
-
"description": "
|
905
|
+
"default": "`false`",
|
906
|
+
"description": "是否为圆形按钮",
|
830
907
|
"value": {
|
831
908
|
"type": "boolean",
|
832
909
|
"kind": "expression"
|
833
910
|
}
|
834
911
|
},
|
835
912
|
{
|
836
|
-
"name": "
|
837
|
-
"default": "`
|
838
|
-
"description": "
|
913
|
+
"name": "disabled",
|
914
|
+
"default": "`false`",
|
915
|
+
"description": "是否禁用按钮",
|
839
916
|
"value": {
|
840
917
|
"type": "boolean",
|
841
918
|
"kind": "expression"
|
842
919
|
}
|
843
920
|
},
|
844
921
|
{
|
845
|
-
"name": "
|
846
|
-
"default": "`
|
847
|
-
"description": "
|
922
|
+
"name": "hairline",
|
923
|
+
"default": "`false`",
|
924
|
+
"description": "是否使用 0.5px 边框",
|
848
925
|
"value": {
|
849
926
|
"type": "boolean",
|
850
927
|
"kind": "expression"
|
851
928
|
}
|
852
929
|
},
|
853
930
|
{
|
854
|
-
"name": "
|
855
|
-
"default": "`
|
856
|
-
"description": "
|
931
|
+
"name": "loading",
|
932
|
+
"default": "`false`",
|
933
|
+
"description": "是否显示为加载状态",
|
857
934
|
"value": {
|
858
935
|
"type": "boolean",
|
859
936
|
"kind": "expression"
|
860
937
|
}
|
861
938
|
},
|
862
939
|
{
|
863
|
-
"name": "
|
940
|
+
"name": "loading-text",
|
864
941
|
"default": "-",
|
865
|
-
"description": "
|
942
|
+
"description": "加载状态提示文字",
|
866
943
|
"value": {
|
867
|
-
"type": "string
|
944
|
+
"type": "string",
|
868
945
|
"kind": "expression"
|
869
946
|
}
|
870
|
-
}
|
871
|
-
]
|
872
|
-
},
|
873
|
-
{
|
874
|
-
"name": "van-range",
|
875
|
-
"slots": [],
|
876
|
-
"events": [],
|
877
|
-
"attributes": [
|
947
|
+
},
|
878
948
|
{
|
879
|
-
"name": "
|
880
|
-
"default": "
|
881
|
-
"description": "
|
949
|
+
"name": "loading-type",
|
950
|
+
"default": "`circular`",
|
951
|
+
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
|
882
952
|
"value": {
|
883
|
-
"type": "
|
953
|
+
"type": "string",
|
884
954
|
"kind": "expression"
|
885
955
|
}
|
886
956
|
},
|
887
957
|
{
|
888
|
-
"name": "
|
889
|
-
"default": "
|
890
|
-
"description": "
|
958
|
+
"name": "loading-size",
|
959
|
+
"default": "`20px`",
|
960
|
+
"description": "加载图标大小",
|
891
961
|
"value": {
|
892
962
|
"type": "string",
|
893
963
|
"kind": "expression"
|
894
964
|
}
|
895
965
|
},
|
896
966
|
{
|
897
|
-
"name": "
|
898
|
-
"default": "
|
899
|
-
"description": "
|
967
|
+
"name": "url",
|
968
|
+
"default": "-",
|
969
|
+
"description": "点击后跳转的链接地址",
|
900
970
|
"value": {
|
901
|
-
"type": "
|
971
|
+
"type": "string",
|
902
972
|
"kind": "expression"
|
903
973
|
}
|
904
|
-
}
|
905
|
-
]
|
906
|
-
},
|
907
|
-
{
|
908
|
-
"name": "van-multiple",
|
909
|
-
"slots": [],
|
910
|
-
"events": [],
|
911
|
-
"attributes": [
|
974
|
+
},
|
912
975
|
{
|
913
|
-
"name": "
|
914
|
-
"default": "
|
915
|
-
"description": "
|
976
|
+
"name": "to",
|
977
|
+
"default": "-",
|
978
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
916
979
|
"value": {
|
917
|
-
"type": "
|
980
|
+
"type": "string | object",
|
918
981
|
"kind": "expression"
|
919
982
|
}
|
920
983
|
},
|
921
984
|
{
|
922
|
-
"name": "
|
923
|
-
"default": "
|
924
|
-
"description": "
|
985
|
+
"name": "replace",
|
986
|
+
"default": "`false`",
|
987
|
+
"description": "是否在跳转时替换当前页面历史",
|
925
988
|
"value": {
|
926
|
-
"type": "
|
989
|
+
"type": "boolean",
|
927
990
|
"kind": "expression"
|
928
991
|
}
|
929
992
|
}
|
@@ -1090,512 +1153,449 @@
|
|
1090
1153
|
]
|
1091
1154
|
},
|
1092
1155
|
{
|
1093
|
-
"name": "van-
|
1156
|
+
"name": "van-calendar",
|
1094
1157
|
"slots": [
|
1095
1158
|
{
|
1096
|
-
"name": "
|
1097
|
-
"description": "
|
1159
|
+
"name": "title",
|
1160
|
+
"description": "自定义标题"
|
1161
|
+
},
|
1162
|
+
{
|
1163
|
+
"name": "footer",
|
1164
|
+
"description": "自定义底部区域内容"
|
1165
|
+
},
|
1166
|
+
{
|
1167
|
+
"name": "top-info",
|
1168
|
+
"description": "自定义日期上方的提示信息"
|
1169
|
+
},
|
1170
|
+
{
|
1171
|
+
"name": "bottom-info",
|
1172
|
+
"description": "自定义日期下方的提示信息"
|
1098
1173
|
}
|
1099
1174
|
],
|
1100
1175
|
"events": [
|
1101
1176
|
{
|
1102
|
-
"name": "
|
1103
|
-
"description": "
|
1104
|
-
},
|
1105
|
-
{
|
1106
|
-
"name": "focus",
|
1107
|
-
"description": "输入框聚焦时触发"
|
1177
|
+
"name": "select",
|
1178
|
+
"description": "点击并选中任意日期时触发"
|
1108
1179
|
},
|
1109
1180
|
{
|
1110
|
-
"name": "
|
1111
|
-
"description": "
|
1181
|
+
"name": "confirm",
|
1182
|
+
"description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
|
1112
1183
|
},
|
1113
1184
|
{
|
1114
|
-
"name": "
|
1115
|
-
"description": "
|
1185
|
+
"name": "open",
|
1186
|
+
"description": "打开弹出层时触发"
|
1116
1187
|
},
|
1117
1188
|
{
|
1118
|
-
"name": "
|
1119
|
-
"description": "
|
1189
|
+
"name": "close",
|
1190
|
+
"description": "关闭弹出层时触发"
|
1120
1191
|
},
|
1121
1192
|
{
|
1122
|
-
"name": "
|
1123
|
-
"description": "
|
1193
|
+
"name": "opened",
|
1194
|
+
"description": "打开弹出层且动画结束后触发"
|
1124
1195
|
},
|
1125
1196
|
{
|
1126
|
-
"name": "
|
1127
|
-
"description": "
|
1197
|
+
"name": "closed",
|
1198
|
+
"description": "关闭弹出层且动画结束后触发"
|
1128
1199
|
},
|
1129
1200
|
{
|
1130
|
-
"name": "
|
1131
|
-
"description": "
|
1201
|
+
"name": "unselect",
|
1202
|
+
"description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
|
1132
1203
|
},
|
1133
1204
|
{
|
1134
|
-
"name": "
|
1135
|
-
"description": "
|
1205
|
+
"name": "month-show",
|
1206
|
+
"description": "当某个月份进入可视区域时触发"
|
1136
1207
|
}
|
1137
1208
|
],
|
1138
1209
|
"attributes": [
|
1139
1210
|
{
|
1140
|
-
"name": "
|
1141
|
-
"default": "
|
1142
|
-
"description": "
|
1143
|
-
"value": {
|
1144
|
-
"type": "object",
|
1145
|
-
"kind": "expression"
|
1146
|
-
}
|
1147
|
-
},
|
1148
|
-
{
|
1149
|
-
"name": "area-columns-placeholder",
|
1150
|
-
"default": "`[]`",
|
1151
|
-
"description": "地区选择列占位提示文字",
|
1152
|
-
"value": {
|
1153
|
-
"type": "string[]",
|
1154
|
-
"kind": "expression"
|
1155
|
-
}
|
1156
|
-
},
|
1157
|
-
{
|
1158
|
-
"name": "area-placeholder",
|
1159
|
-
"default": "`选择省 / 市 / 区`",
|
1160
|
-
"description": "地区输入框占位提示文字",
|
1211
|
+
"name": "type",
|
1212
|
+
"default": "`single`",
|
1213
|
+
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
|
1161
1214
|
"value": {
|
1162
1215
|
"type": "string",
|
1163
1216
|
"kind": "expression"
|
1164
1217
|
}
|
1165
1218
|
},
|
1166
1219
|
{
|
1167
|
-
"name": "
|
1168
|
-
"default": "
|
1169
|
-
"description": "
|
1170
|
-
"value": {
|
1171
|
-
"type": "AddressInfo",
|
1172
|
-
"kind": "expression"
|
1173
|
-
}
|
1174
|
-
},
|
1175
|
-
{
|
1176
|
-
"name": "search-result",
|
1177
|
-
"default": "`[]`",
|
1178
|
-
"description": "详细地址搜索结果",
|
1220
|
+
"name": "title",
|
1221
|
+
"default": "`日期选择`",
|
1222
|
+
"description": "日历标题",
|
1179
1223
|
"value": {
|
1180
|
-
"type": "
|
1224
|
+
"type": "string",
|
1181
1225
|
"kind": "expression"
|
1182
1226
|
}
|
1183
1227
|
},
|
1184
1228
|
{
|
1185
|
-
"name": "
|
1186
|
-
"default": "`
|
1187
|
-
"description": "
|
1229
|
+
"name": "color",
|
1230
|
+
"default": "`#ee0a24`",
|
1231
|
+
"description": "主题色,对底部按钮和选中日期生效",
|
1188
1232
|
"value": {
|
1189
|
-
"type": "
|
1233
|
+
"type": "string",
|
1190
1234
|
"kind": "expression"
|
1191
1235
|
}
|
1192
1236
|
},
|
1193
1237
|
{
|
1194
|
-
"name": "
|
1195
|
-
"default": "
|
1196
|
-
"description": "
|
1238
|
+
"name": "min-date",
|
1239
|
+
"default": "当前日期",
|
1240
|
+
"description": "可选择的最小日期",
|
1197
1241
|
"value": {
|
1198
|
-
"type": "
|
1242
|
+
"type": "Date",
|
1199
1243
|
"kind": "expression"
|
1200
1244
|
}
|
1201
1245
|
},
|
1202
1246
|
{
|
1203
|
-
"name": "
|
1204
|
-
"default": "
|
1205
|
-
"description": "
|
1247
|
+
"name": "max-date",
|
1248
|
+
"default": "当前日期的六个月后",
|
1249
|
+
"description": "可选择的最大日期",
|
1206
1250
|
"value": {
|
1207
|
-
"type": "
|
1251
|
+
"type": "Date",
|
1208
1252
|
"kind": "expression"
|
1209
1253
|
}
|
1210
1254
|
},
|
1211
1255
|
{
|
1212
|
-
"name": "
|
1213
|
-
"default": "
|
1214
|
-
"description": "
|
1256
|
+
"name": "default-date",
|
1257
|
+
"default": "null_",
|
1258
|
+
"description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
|
1215
1259
|
"value": {
|
1216
|
-
"type": "
|
1260
|
+
"type": "Date | Date[] \\",
|
1217
1261
|
"kind": "expression"
|
1218
1262
|
}
|
1219
1263
|
},
|
1220
1264
|
{
|
1221
|
-
"name": "
|
1222
|
-
"default": "`
|
1223
|
-
"description": "
|
1265
|
+
"name": "row-height",
|
1266
|
+
"default": "`64`",
|
1267
|
+
"description": "日期行高",
|
1224
1268
|
"value": {
|
1225
|
-
"type": "
|
1269
|
+
"type": "number | string",
|
1226
1270
|
"kind": "expression"
|
1227
1271
|
}
|
1228
1272
|
},
|
1229
1273
|
{
|
1230
|
-
"name": "
|
1231
|
-
"default": "
|
1232
|
-
"description": "
|
1274
|
+
"name": "formatter",
|
1275
|
+
"default": "-",
|
1276
|
+
"description": "日期格式化函数",
|
1233
1277
|
"value": {
|
1234
|
-
"type": "
|
1278
|
+
"type": "(day: Day) => Day",
|
1235
1279
|
"kind": "expression"
|
1236
1280
|
}
|
1237
1281
|
},
|
1238
1282
|
{
|
1239
|
-
"name": "
|
1240
|
-
"default": "`
|
1241
|
-
"description": "
|
1283
|
+
"name": "poppable",
|
1284
|
+
"default": "`true`",
|
1285
|
+
"description": "是否以弹层的形式展示日历",
|
1242
1286
|
"value": {
|
1243
1287
|
"type": "boolean",
|
1244
1288
|
"kind": "expression"
|
1245
1289
|
}
|
1246
1290
|
},
|
1247
1291
|
{
|
1248
|
-
"name": "
|
1249
|
-
"default": "
|
1250
|
-
"description": "
|
1292
|
+
"name": "lazy-render",
|
1293
|
+
"default": "`true`",
|
1294
|
+
"description": "是否只渲染可视区域的内容",
|
1251
1295
|
"value": {
|
1252
|
-
"type": "
|
1296
|
+
"type": "boolean",
|
1253
1297
|
"kind": "expression"
|
1254
1298
|
}
|
1255
1299
|
},
|
1256
1300
|
{
|
1257
|
-
"name": "
|
1258
|
-
"default": "
|
1259
|
-
"description": "
|
1301
|
+
"name": "show-mark",
|
1302
|
+
"default": "`true`",
|
1303
|
+
"description": "是否显示月份背景水印",
|
1260
1304
|
"value": {
|
1261
|
-
"type": "
|
1305
|
+
"type": "boolean",
|
1262
1306
|
"kind": "expression"
|
1263
1307
|
}
|
1264
1308
|
},
|
1265
1309
|
{
|
1266
|
-
"name": "
|
1267
|
-
"default": "`
|
1268
|
-
"description": "
|
1310
|
+
"name": "show-title",
|
1311
|
+
"default": "`true`",
|
1312
|
+
"description": "是否展示日历标题",
|
1269
1313
|
"value": {
|
1270
|
-
"type": "
|
1314
|
+
"type": "boolean",
|
1271
1315
|
"kind": "expression"
|
1272
1316
|
}
|
1273
1317
|
},
|
1274
1318
|
{
|
1275
|
-
"name": "
|
1276
|
-
"default": "`
|
1277
|
-
"description": "
|
1319
|
+
"name": "show-subtitle",
|
1320
|
+
"default": "`true`",
|
1321
|
+
"description": "是否展示日历副标题(年月)",
|
1278
1322
|
"value": {
|
1279
|
-
"type": "
|
1323
|
+
"type": "boolean",
|
1280
1324
|
"kind": "expression"
|
1281
1325
|
}
|
1282
1326
|
},
|
1283
1327
|
{
|
1284
|
-
"name": "
|
1285
|
-
"default": "`
|
1286
|
-
"description": "
|
1328
|
+
"name": "show-confirm",
|
1329
|
+
"default": "`true`",
|
1330
|
+
"description": "是否展示确认按钮",
|
1287
1331
|
"value": {
|
1288
1332
|
"type": "boolean",
|
1289
1333
|
"kind": "expression"
|
1290
1334
|
}
|
1291
1335
|
},
|
1292
1336
|
{
|
1293
|
-
"name": "
|
1337
|
+
"name": "readonly",
|
1294
1338
|
"default": "`false`",
|
1295
|
-
"description": "
|
1339
|
+
"description": "是否为只读状态,只读状态下不能选择日期",
|
1296
1340
|
"value": {
|
1297
1341
|
"type": "boolean",
|
1298
1342
|
"kind": "expression"
|
1299
1343
|
}
|
1300
1344
|
},
|
1301
1345
|
{
|
1302
|
-
"name": "
|
1303
|
-
"default": "
|
1304
|
-
"description": "
|
1305
|
-
"value": {
|
1306
|
-
"type": "string => boolean",
|
1307
|
-
"kind": "expression"
|
1308
|
-
}
|
1309
|
-
},
|
1310
|
-
{
|
1311
|
-
"name": "tel-maxlength",
|
1312
|
-
"default": "-",
|
1313
|
-
"description": "手机号最大长度",
|
1346
|
+
"name": "confirm-text",
|
1347
|
+
"default": "`确定`",
|
1348
|
+
"description": "确认按钮的文字",
|
1314
1349
|
"value": {
|
1315
|
-
"type": "
|
1350
|
+
"type": "string",
|
1316
1351
|
"kind": "expression"
|
1317
1352
|
}
|
1318
1353
|
},
|
1319
1354
|
{
|
1320
|
-
"name": "
|
1321
|
-
"default": "
|
1322
|
-
"description": "
|
1355
|
+
"name": "confirm-disabled-text",
|
1356
|
+
"default": "`确定`",
|
1357
|
+
"description": "确认按钮处于禁用状态时的文字",
|
1323
1358
|
"value": {
|
1324
|
-
"type": "string
|
1359
|
+
"type": "string",
|
1325
1360
|
"kind": "expression"
|
1326
1361
|
}
|
1327
1362
|
},
|
1328
1363
|
{
|
1329
|
-
"name": "
|
1330
|
-
"default": "
|
1331
|
-
"description": "
|
1364
|
+
"name": "first-day-of-week",
|
1365
|
+
"default": "`0`",
|
1366
|
+
"description": "设置周起始日",
|
1332
1367
|
"value": {
|
1333
|
-
"type": "
|
1368
|
+
"type": "0-6",
|
1334
1369
|
"kind": "expression"
|
1335
1370
|
}
|
1336
1371
|
}
|
1337
1372
|
]
|
1338
1373
|
},
|
1339
1374
|
{
|
1340
|
-
"name": "van-
|
1341
|
-
"slots": [
|
1342
|
-
{
|
1343
|
-
"name": "default",
|
1344
|
-
"description": "徽标包裹的子元素"
|
1345
|
-
},
|
1346
|
-
{
|
1347
|
-
"name": "content",
|
1348
|
-
"description": "自定义徽标内容"
|
1349
|
-
}
|
1350
|
-
],
|
1375
|
+
"name": "van-poppable",
|
1376
|
+
"slots": [],
|
1351
1377
|
"events": [],
|
1352
1378
|
"attributes": [
|
1353
1379
|
{
|
1354
|
-
"name": "
|
1355
|
-
"default": "
|
1356
|
-
"description": "
|
1380
|
+
"name": "v-model",
|
1381
|
+
"default": "`false`",
|
1382
|
+
"description": "是否显示日历弹窗",
|
1357
1383
|
"value": {
|
1358
|
-
"type": "
|
1384
|
+
"type": "boolean",
|
1359
1385
|
"kind": "expression"
|
1360
1386
|
}
|
1361
1387
|
},
|
1362
1388
|
{
|
1363
|
-
"name": "
|
1364
|
-
"default": "
|
1365
|
-
"description": "
|
1389
|
+
"name": "position",
|
1390
|
+
"default": "`bottom`",
|
1391
|
+
"description": "弹出位置,可选值为 `top` `right` `left`",
|
1366
1392
|
"value": {
|
1367
1393
|
"type": "string",
|
1368
1394
|
"kind": "expression"
|
1369
1395
|
}
|
1370
1396
|
},
|
1371
1397
|
{
|
1372
|
-
"name": "
|
1373
|
-
"default": "`
|
1374
|
-
"description": "
|
1398
|
+
"name": "round",
|
1399
|
+
"default": "`true`",
|
1400
|
+
"description": "是否显示圆角弹窗",
|
1375
1401
|
"value": {
|
1376
1402
|
"type": "boolean",
|
1377
1403
|
"kind": "expression"
|
1378
1404
|
}
|
1379
1405
|
},
|
1380
1406
|
{
|
1381
|
-
"name": "
|
1382
|
-
"default": "
|
1383
|
-
"description": "
|
1407
|
+
"name": "close-on-popstate",
|
1408
|
+
"default": "`true`",
|
1409
|
+
"description": "是否在页面回退时自动关闭",
|
1384
1410
|
"value": {
|
1385
|
-
"type": "
|
1411
|
+
"type": "boolean",
|
1386
1412
|
"kind": "expression"
|
1387
1413
|
}
|
1388
|
-
}
|
1389
|
-
]
|
1390
|
-
},
|
1391
|
-
{
|
1392
|
-
"name": "van-cascader",
|
1393
|
-
"slots": [
|
1394
|
-
{
|
1395
|
-
"name": "title",
|
1396
|
-
"description": "自定义顶部标题"
|
1397
|
-
},
|
1398
|
-
{
|
1399
|
-
"name": "option",
|
1400
|
-
"description": "自定义选项文字"
|
1401
|
-
}
|
1402
|
-
],
|
1403
|
-
"events": [
|
1404
|
-
{
|
1405
|
-
"name": "change",
|
1406
|
-
"description": "选中项变化时触发"
|
1407
|
-
},
|
1408
|
-
{
|
1409
|
-
"name": "finish",
|
1410
|
-
"description": "全部选项选择完成后触发"
|
1411
1414
|
},
|
1412
1415
|
{
|
1413
|
-
"name": "close",
|
1414
|
-
"
|
1415
|
-
|
1416
|
-
],
|
1417
|
-
"attributes": [
|
1418
|
-
{
|
1419
|
-
"name": "title",
|
1420
|
-
"default": "-",
|
1421
|
-
"description": "顶部标题",
|
1416
|
+
"name": "close-on-click-overlay",
|
1417
|
+
"default": "`true`",
|
1418
|
+
"description": "是否在点击遮罩层后关闭",
|
1422
1419
|
"value": {
|
1423
|
-
"type": "
|
1420
|
+
"type": "boolean",
|
1424
1421
|
"kind": "expression"
|
1425
1422
|
}
|
1426
1423
|
},
|
1427
1424
|
{
|
1428
|
-
"name": "
|
1429
|
-
"default": "
|
1430
|
-
"description": "
|
1425
|
+
"name": "safe-area-inset-bottom",
|
1426
|
+
"default": "`true`",
|
1427
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
1431
1428
|
"value": {
|
1432
|
-
"type": "
|
1429
|
+
"type": "boolean",
|
1433
1430
|
"kind": "expression"
|
1434
1431
|
}
|
1435
1432
|
},
|
1436
1433
|
{
|
1437
|
-
"name": "
|
1438
|
-
"default": "
|
1439
|
-
"description": "
|
1434
|
+
"name": "get-container",
|
1435
|
+
"default": "-",
|
1436
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
1440
1437
|
"value": {
|
1441
|
-
"type": "
|
1438
|
+
"type": "string | () => Element",
|
1442
1439
|
"kind": "expression"
|
1443
1440
|
}
|
1444
|
-
}
|
1441
|
+
}
|
1442
|
+
]
|
1443
|
+
},
|
1444
|
+
{
|
1445
|
+
"name": "van-range",
|
1446
|
+
"slots": [],
|
1447
|
+
"events": [],
|
1448
|
+
"attributes": [
|
1445
1449
|
{
|
1446
|
-
"name": "
|
1447
|
-
"default": "
|
1448
|
-
"description": "
|
1450
|
+
"name": "max-range",
|
1451
|
+
"default": "无限制",
|
1452
|
+
"description": "日期区间最多可选天数",
|
1449
1453
|
"value": {
|
1450
|
-
"type": "string",
|
1454
|
+
"type": "number | string",
|
1451
1455
|
"kind": "expression"
|
1452
1456
|
}
|
1453
1457
|
},
|
1454
1458
|
{
|
1455
|
-
"name": "
|
1456
|
-
"default": "
|
1457
|
-
"description": "
|
1459
|
+
"name": "range-prompt",
|
1460
|
+
"default": "`选择天数不能超过 xx 天`",
|
1461
|
+
"description": "范围选择超过最多可选天数时的提示文案",
|
1458
1462
|
"value": {
|
1459
1463
|
"type": "string",
|
1460
1464
|
"kind": "expression"
|
1461
1465
|
}
|
1462
1466
|
},
|
1463
1467
|
{
|
1464
|
-
"name": "
|
1465
|
-
"default": "`
|
1466
|
-
"description": "
|
1468
|
+
"name": "allow-same-day",
|
1469
|
+
"default": "`false`",
|
1470
|
+
"description": "是否允许日期范围的起止时间为同一天",
|
1467
1471
|
"value": {
|
1468
1472
|
"type": "boolean",
|
1469
1473
|
"kind": "expression"
|
1470
1474
|
}
|
1471
|
-
}
|
1475
|
+
}
|
1476
|
+
]
|
1477
|
+
},
|
1478
|
+
{
|
1479
|
+
"name": "van-multiple",
|
1480
|
+
"slots": [],
|
1481
|
+
"events": [],
|
1482
|
+
"attributes": [
|
1472
1483
|
{
|
1473
|
-
"name": "
|
1474
|
-
"default": "
|
1475
|
-
"description": "
|
1484
|
+
"name": "max-range",
|
1485
|
+
"default": "无限制",
|
1486
|
+
"description": "日期最多可选天数",
|
1476
1487
|
"value": {
|
1477
|
-
"type": "
|
1488
|
+
"type": "number | string",
|
1478
1489
|
"kind": "expression"
|
1479
1490
|
}
|
1480
1491
|
},
|
1481
1492
|
{
|
1482
|
-
"name": "
|
1483
|
-
"default": "
|
1484
|
-
"description": "
|
1493
|
+
"name": "range-prompt",
|
1494
|
+
"default": "`选择天数不能超过 xx 天`",
|
1495
|
+
"description": "选择超过最多可选天数时的提示文案",
|
1485
1496
|
"value": {
|
1486
|
-
"type": "
|
1497
|
+
"type": "string",
|
1487
1498
|
"kind": "expression"
|
1488
1499
|
}
|
1489
1500
|
}
|
1490
1501
|
]
|
1491
1502
|
},
|
1492
1503
|
{
|
1493
|
-
"name": "van-
|
1504
|
+
"name": "van-cascader",
|
1494
1505
|
"slots": [
|
1495
1506
|
{
|
1496
|
-
"name": "
|
1497
|
-
"description": "
|
1498
|
-
},
|
1499
|
-
{
|
1500
|
-
"name": "top",
|
1501
|
-
"description": "在顶部插入内容"
|
1502
|
-
},
|
1503
|
-
{
|
1504
|
-
"name": "item-bottom",
|
1505
|
-
"description": "在列表项底部插入内容"
|
1507
|
+
"name": "title",
|
1508
|
+
"description": "自定义顶部标题"
|
1506
1509
|
},
|
1507
1510
|
{
|
1508
|
-
"name": "
|
1509
|
-
"description": "
|
1511
|
+
"name": "option",
|
1512
|
+
"description": "自定义选项文字"
|
1510
1513
|
}
|
1511
1514
|
],
|
1512
1515
|
"events": [
|
1513
1516
|
{
|
1514
|
-
"name": "
|
1515
|
-
"description": "
|
1516
|
-
},
|
1517
|
-
{
|
1518
|
-
"name": "edit",
|
1519
|
-
"description": "点击编辑按钮时触发"
|
1520
|
-
},
|
1521
|
-
{
|
1522
|
-
"name": "select",
|
1523
|
-
"description": "切换选中的地址时触发"
|
1524
|
-
},
|
1525
|
-
{
|
1526
|
-
"name": "edit-disabled",
|
1527
|
-
"description": "编辑不可配送的地址时触发"
|
1517
|
+
"name": "change",
|
1518
|
+
"description": "选中项变化时触发"
|
1528
1519
|
},
|
1529
1520
|
{
|
1530
|
-
"name": "
|
1531
|
-
"description": "
|
1521
|
+
"name": "finish",
|
1522
|
+
"description": "全部选项选择完成后触发"
|
1532
1523
|
},
|
1533
1524
|
{
|
1534
|
-
"name": "
|
1535
|
-
"description": "
|
1525
|
+
"name": "close",
|
1526
|
+
"description": "点击关闭图标时触发"
|
1536
1527
|
}
|
1537
1528
|
],
|
1538
1529
|
"attributes": [
|
1539
1530
|
{
|
1540
|
-
"name": "
|
1531
|
+
"name": "title",
|
1541
1532
|
"default": "-",
|
1542
|
-
"description": "
|
1533
|
+
"description": "顶部标题",
|
1543
1534
|
"value": {
|
1544
1535
|
"type": "string",
|
1545
1536
|
"kind": "expression"
|
1546
1537
|
}
|
1547
1538
|
},
|
1548
1539
|
{
|
1549
|
-
"name": "
|
1550
|
-
"default": "
|
1551
|
-
"description": "
|
1540
|
+
"name": "value",
|
1541
|
+
"default": "-",
|
1542
|
+
"description": "选中项的值",
|
1552
1543
|
"value": {
|
1553
|
-
"type": "
|
1544
|
+
"type": "string | number",
|
1554
1545
|
"kind": "expression"
|
1555
1546
|
}
|
1556
1547
|
},
|
1557
1548
|
{
|
1558
|
-
"name": "
|
1549
|
+
"name": "options",
|
1559
1550
|
"default": "`[]`",
|
1560
|
-
"description": "
|
1551
|
+
"description": "可选项数据源",
|
1561
1552
|
"value": {
|
1562
|
-
"type": "
|
1553
|
+
"type": "Option[]",
|
1563
1554
|
"kind": "expression"
|
1564
1555
|
}
|
1565
1556
|
},
|
1566
1557
|
{
|
1567
|
-
"name": "
|
1568
|
-
"default": "
|
1569
|
-
"description": "
|
1558
|
+
"name": "placeholder",
|
1559
|
+
"default": "`请选择`",
|
1560
|
+
"description": "未选中时的提示文案",
|
1570
1561
|
"value": {
|
1571
1562
|
"type": "string",
|
1572
1563
|
"kind": "expression"
|
1573
1564
|
}
|
1574
1565
|
},
|
1575
1566
|
{
|
1576
|
-
"name": "
|
1567
|
+
"name": "active-color",
|
1568
|
+
"default": "`#ee0a24`",
|
1569
|
+
"description": "选中状态的高亮颜色",
|
1570
|
+
"value": {
|
1571
|
+
"type": "string",
|
1572
|
+
"kind": "expression"
|
1573
|
+
}
|
1574
|
+
},
|
1575
|
+
{
|
1576
|
+
"name": "closeable",
|
1577
1577
|
"default": "`true`",
|
1578
|
-
"description": "
|
1578
|
+
"description": "是否显示关闭图标",
|
1579
1579
|
"value": {
|
1580
1580
|
"type": "boolean",
|
1581
1581
|
"kind": "expression"
|
1582
1582
|
}
|
1583
1583
|
},
|
1584
1584
|
{
|
1585
|
-
"name": "
|
1586
|
-
"default": "
|
1587
|
-
"description": "
|
1585
|
+
"name": "show-header",
|
1586
|
+
"default": "`true`",
|
1587
|
+
"description": "是否展示标题栏",
|
1588
1588
|
"value": {
|
1589
|
-
"type": "
|
1589
|
+
"type": "boolean",
|
1590
1590
|
"kind": "expression"
|
1591
1591
|
}
|
1592
1592
|
},
|
1593
1593
|
{
|
1594
|
-
"name": "
|
1595
|
-
"default": "
|
1596
|
-
"description": "
|
1594
|
+
"name": "field-names",
|
1595
|
+
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
1596
|
+
"description": "自定义 `options` 结构中的字段",
|
1597
1597
|
"value": {
|
1598
|
-
"type": "
|
1598
|
+
"type": "object",
|
1599
1599
|
"kind": "expression"
|
1600
1600
|
}
|
1601
1601
|
}
|
@@ -8386,278 +8386,138 @@
|
|
8386
8386
|
"events": [
|
8387
8387
|
{
|
8388
8388
|
"name": "submit",
|
8389
|
-
"description": "按钮点击事件回调"
|
8390
|
-
}
|
8391
|
-
],
|
8392
|
-
"attributes": [
|
8393
|
-
{
|
8394
|
-
"name": "price",
|
8395
|
-
"default": "-",
|
8396
|
-
"description": "价格(单位分)",
|
8397
|
-
"value": {
|
8398
|
-
"type": "number",
|
8399
|
-
"kind": "expression"
|
8400
|
-
}
|
8401
|
-
},
|
8402
|
-
{
|
8403
|
-
"name": "decimal-length",
|
8404
|
-
"default": "`2`",
|
8405
|
-
"description": "价格小数点位数",
|
8406
|
-
"value": {
|
8407
|
-
"type": "number | string",
|
8408
|
-
"kind": "expression"
|
8409
|
-
}
|
8410
|
-
},
|
8411
|
-
{
|
8412
|
-
"name": "label",
|
8413
|
-
"default": "`合计:`",
|
8414
|
-
"description": "价格左侧文案",
|
8415
|
-
"value": {
|
8416
|
-
"type": "string",
|
8417
|
-
"kind": "expression"
|
8418
|
-
}
|
8419
|
-
},
|
8420
|
-
{
|
8421
|
-
"name": "suffix-label",
|
8422
|
-
"default": "-",
|
8423
|
-
"description": "价格右侧文案",
|
8424
|
-
"value": {
|
8425
|
-
"type": "string",
|
8426
|
-
"kind": "expression"
|
8427
|
-
}
|
8428
|
-
},
|
8429
|
-
{
|
8430
|
-
"name": "text-align",
|
8431
|
-
"default": "`right`",
|
8432
|
-
"description": "价格文案对齐方向,可选值为 `left`",
|
8433
|
-
"value": {
|
8434
|
-
"type": "string",
|
8435
|
-
"kind": "expression"
|
8436
|
-
}
|
8437
|
-
},
|
8438
|
-
{
|
8439
|
-
"name": "button-text",
|
8440
|
-
"default": "-",
|
8441
|
-
"description": "按钮文字",
|
8442
|
-
"value": {
|
8443
|
-
"type": "string",
|
8444
|
-
"kind": "expression"
|
8445
|
-
}
|
8446
|
-
},
|
8447
|
-
{
|
8448
|
-
"name": "button-type",
|
8449
|
-
"default": "`danger`",
|
8450
|
-
"description": "按钮类型",
|
8451
|
-
"value": {
|
8452
|
-
"type": "string",
|
8453
|
-
"kind": "expression"
|
8454
|
-
}
|
8455
|
-
},
|
8456
|
-
{
|
8457
|
-
"name": "button-color",
|
8458
|
-
"default": "-",
|
8459
|
-
"description": "自定义按钮颜色",
|
8460
|
-
"value": {
|
8461
|
-
"type": "string",
|
8462
|
-
"kind": "expression"
|
8463
|
-
}
|
8464
|
-
},
|
8465
|
-
{
|
8466
|
-
"name": "tip",
|
8467
|
-
"default": "-",
|
8468
|
-
"description": "在订单栏上方的提示文案",
|
8469
|
-
"value": {
|
8470
|
-
"type": "string",
|
8471
|
-
"kind": "expression"
|
8472
|
-
}
|
8473
|
-
},
|
8474
|
-
{
|
8475
|
-
"name": "tip-icon",
|
8476
|
-
"default": "-",
|
8477
|
-
"description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
|
8478
|
-
"value": {
|
8479
|
-
"type": "string",
|
8480
|
-
"kind": "expression"
|
8481
|
-
}
|
8482
|
-
},
|
8483
|
-
{
|
8484
|
-
"name": "currency",
|
8485
|
-
"default": "`¥`",
|
8486
|
-
"description": "货币符号",
|
8487
|
-
"value": {
|
8488
|
-
"type": "string",
|
8489
|
-
"kind": "expression"
|
8490
|
-
}
|
8491
|
-
},
|
8492
|
-
{
|
8493
|
-
"name": "disabled",
|
8494
|
-
"default": "`false`",
|
8495
|
-
"description": "是否禁用按钮",
|
8496
|
-
"value": {
|
8497
|
-
"type": "boolean",
|
8498
|
-
"kind": "expression"
|
8499
|
-
}
|
8500
|
-
},
|
8501
|
-
{
|
8502
|
-
"name": "loading",
|
8503
|
-
"default": "`false`",
|
8504
|
-
"description": "是否显示将按钮显示为加载中状态",
|
8505
|
-
"value": {
|
8506
|
-
"type": "boolean",
|
8507
|
-
"kind": "expression"
|
8508
|
-
}
|
8509
|
-
},
|
8510
|
-
{
|
8511
|
-
"name": "safe-area-inset-bottom",
|
8512
|
-
"default": "`true`",
|
8513
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
8514
|
-
"value": {
|
8515
|
-
"type": "boolean",
|
8516
|
-
"kind": "expression"
|
8517
|
-
}
|
8518
|
-
}
|
8519
|
-
]
|
8520
|
-
},
|
8521
|
-
{
|
8522
|
-
"name": "van-swipe",
|
8523
|
-
"slots": [
|
8524
|
-
{
|
8525
|
-
"name": "default",
|
8526
|
-
"description": "轮播内容"
|
8527
|
-
},
|
8528
|
-
{
|
8529
|
-
"name": "indicator",
|
8530
|
-
"description": "自定义指示器"
|
8531
|
-
}
|
8532
|
-
],
|
8533
|
-
"events": [
|
8534
|
-
{
|
8535
|
-
"name": "change",
|
8536
|
-
"description": "每一页轮播结束后触发"
|
8389
|
+
"description": "按钮点击事件回调"
|
8537
8390
|
}
|
8538
8391
|
],
|
8539
8392
|
"attributes": [
|
8540
8393
|
{
|
8541
|
-
"name": "
|
8394
|
+
"name": "price",
|
8542
8395
|
"default": "-",
|
8543
|
-
"description": "
|
8396
|
+
"description": "价格(单位分)",
|
8544
8397
|
"value": {
|
8545
|
-
"type": "number
|
8398
|
+
"type": "number",
|
8546
8399
|
"kind": "expression"
|
8547
8400
|
}
|
8548
8401
|
},
|
8549
8402
|
{
|
8550
|
-
"name": "
|
8551
|
-
"default": "`
|
8552
|
-
"description": "
|
8403
|
+
"name": "decimal-length",
|
8404
|
+
"default": "`2`",
|
8405
|
+
"description": "价格小数点位数",
|
8553
8406
|
"value": {
|
8554
8407
|
"type": "number | string",
|
8555
8408
|
"kind": "expression"
|
8556
8409
|
}
|
8557
8410
|
},
|
8558
8411
|
{
|
8559
|
-
"name": "
|
8560
|
-
"default": "
|
8561
|
-
"description": "
|
8412
|
+
"name": "label",
|
8413
|
+
"default": "`合计:`",
|
8414
|
+
"description": "价格左侧文案",
|
8562
8415
|
"value": {
|
8563
|
-
"type": "
|
8416
|
+
"type": "string",
|
8564
8417
|
"kind": "expression"
|
8565
8418
|
}
|
8566
8419
|
},
|
8567
8420
|
{
|
8568
|
-
"name": "
|
8569
|
-
"default": "
|
8570
|
-
"description": "
|
8421
|
+
"name": "suffix-label",
|
8422
|
+
"default": "-",
|
8423
|
+
"description": "价格右侧文案",
|
8571
8424
|
"value": {
|
8572
|
-
"type": "
|
8425
|
+
"type": "string",
|
8573
8426
|
"kind": "expression"
|
8574
8427
|
}
|
8575
8428
|
},
|
8576
8429
|
{
|
8577
|
-
"name": "
|
8578
|
-
"default": "`
|
8579
|
-
"description": "
|
8430
|
+
"name": "text-align",
|
8431
|
+
"default": "`right`",
|
8432
|
+
"description": "价格文案对齐方向,可选值为 `left`",
|
8580
8433
|
"value": {
|
8581
|
-
"type": "
|
8434
|
+
"type": "string",
|
8582
8435
|
"kind": "expression"
|
8583
8436
|
}
|
8584
8437
|
},
|
8585
8438
|
{
|
8586
|
-
"name": "
|
8587
|
-
"default": "
|
8588
|
-
"description": "
|
8439
|
+
"name": "button-text",
|
8440
|
+
"default": "-",
|
8441
|
+
"description": "按钮文字",
|
8589
8442
|
"value": {
|
8590
|
-
"type": "
|
8443
|
+
"type": "string",
|
8591
8444
|
"kind": "expression"
|
8592
8445
|
}
|
8593
8446
|
},
|
8594
8447
|
{
|
8595
|
-
"name": "
|
8596
|
-
"default": "`
|
8597
|
-
"description": "
|
8448
|
+
"name": "button-type",
|
8449
|
+
"default": "`danger`",
|
8450
|
+
"description": "按钮类型",
|
8598
8451
|
"value": {
|
8599
|
-
"type": "
|
8452
|
+
"type": "string",
|
8600
8453
|
"kind": "expression"
|
8601
8454
|
}
|
8602
8455
|
},
|
8603
8456
|
{
|
8604
|
-
"name": "
|
8605
|
-
"default": "
|
8606
|
-
"description": "
|
8457
|
+
"name": "button-color",
|
8458
|
+
"default": "-",
|
8459
|
+
"description": "自定义按钮颜色",
|
8607
8460
|
"value": {
|
8608
|
-
"type": "
|
8461
|
+
"type": "string",
|
8609
8462
|
"kind": "expression"
|
8610
8463
|
}
|
8611
8464
|
},
|
8612
8465
|
{
|
8613
|
-
"name": "
|
8614
|
-
"default": "
|
8615
|
-
"description": "
|
8466
|
+
"name": "tip",
|
8467
|
+
"default": "-",
|
8468
|
+
"description": "在订单栏上方的提示文案",
|
8616
8469
|
"value": {
|
8617
|
-
"type": "
|
8470
|
+
"type": "string",
|
8618
8471
|
"kind": "expression"
|
8619
8472
|
}
|
8620
8473
|
},
|
8621
8474
|
{
|
8622
|
-
"name": "
|
8623
|
-
"default": "
|
8624
|
-
"description": "
|
8475
|
+
"name": "tip-icon",
|
8476
|
+
"default": "-",
|
8477
|
+
"description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
|
8478
|
+
"value": {
|
8479
|
+
"type": "string",
|
8480
|
+
"kind": "expression"
|
8481
|
+
}
|
8482
|
+
},
|
8483
|
+
{
|
8484
|
+
"name": "currency",
|
8485
|
+
"default": "`¥`",
|
8486
|
+
"description": "货币符号",
|
8487
|
+
"value": {
|
8488
|
+
"type": "string",
|
8489
|
+
"kind": "expression"
|
8490
|
+
}
|
8491
|
+
},
|
8492
|
+
{
|
8493
|
+
"name": "disabled",
|
8494
|
+
"default": "`false`",
|
8495
|
+
"description": "是否禁用按钮",
|
8625
8496
|
"value": {
|
8626
8497
|
"type": "boolean",
|
8627
8498
|
"kind": "expression"
|
8628
8499
|
}
|
8629
8500
|
},
|
8630
8501
|
{
|
8631
|
-
"name": "
|
8502
|
+
"name": "loading",
|
8632
8503
|
"default": "`false`",
|
8633
|
-
"description": "
|
8504
|
+
"description": "是否显示将按钮显示为加载中状态",
|
8634
8505
|
"value": {
|
8635
8506
|
"type": "boolean",
|
8636
8507
|
"kind": "expression"
|
8637
8508
|
}
|
8638
8509
|
},
|
8639
8510
|
{
|
8640
|
-
"name": "
|
8641
|
-
"default": "
|
8642
|
-
"description": "
|
8511
|
+
"name": "safe-area-inset-bottom",
|
8512
|
+
"default": "`true`",
|
8513
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
8643
8514
|
"value": {
|
8644
|
-
"type": "
|
8515
|
+
"type": "boolean",
|
8645
8516
|
"kind": "expression"
|
8646
8517
|
}
|
8647
8518
|
}
|
8648
8519
|
]
|
8649
8520
|
},
|
8650
|
-
{
|
8651
|
-
"name": "van-swipe-item",
|
8652
|
-
"slots": [],
|
8653
|
-
"events": [
|
8654
|
-
{
|
8655
|
-
"name": "click",
|
8656
|
-
"description": "点击时触发"
|
8657
|
-
}
|
8658
|
-
],
|
8659
|
-
"attributes": []
|
8660
|
-
},
|
8661
8521
|
{
|
8662
8522
|
"name": "van-swipe-cell",
|
8663
8523
|
"slots": [
|
@@ -8944,6 +8804,146 @@
|
|
8944
8804
|
}
|
8945
8805
|
]
|
8946
8806
|
},
|
8807
|
+
{
|
8808
|
+
"name": "van-swipe",
|
8809
|
+
"slots": [
|
8810
|
+
{
|
8811
|
+
"name": "default",
|
8812
|
+
"description": "轮播内容"
|
8813
|
+
},
|
8814
|
+
{
|
8815
|
+
"name": "indicator",
|
8816
|
+
"description": "自定义指示器"
|
8817
|
+
}
|
8818
|
+
],
|
8819
|
+
"events": [
|
8820
|
+
{
|
8821
|
+
"name": "change",
|
8822
|
+
"description": "每一页轮播结束后触发"
|
8823
|
+
}
|
8824
|
+
],
|
8825
|
+
"attributes": [
|
8826
|
+
{
|
8827
|
+
"name": "autoplay",
|
8828
|
+
"default": "-",
|
8829
|
+
"description": "自动轮播间隔,单位为 ms",
|
8830
|
+
"value": {
|
8831
|
+
"type": "number | string",
|
8832
|
+
"kind": "expression"
|
8833
|
+
}
|
8834
|
+
},
|
8835
|
+
{
|
8836
|
+
"name": "duration",
|
8837
|
+
"default": "`500`",
|
8838
|
+
"description": "动画时长,单位为 ms",
|
8839
|
+
"value": {
|
8840
|
+
"type": "number | string",
|
8841
|
+
"kind": "expression"
|
8842
|
+
}
|
8843
|
+
},
|
8844
|
+
{
|
8845
|
+
"name": "initial-swipe",
|
8846
|
+
"default": "`0`",
|
8847
|
+
"description": "初始位置索引值",
|
8848
|
+
"value": {
|
8849
|
+
"type": "number | string",
|
8850
|
+
"kind": "expression"
|
8851
|
+
}
|
8852
|
+
},
|
8853
|
+
{
|
8854
|
+
"name": "width",
|
8855
|
+
"default": "`auto`",
|
8856
|
+
"description": "滑块宽度,单位为`px`",
|
8857
|
+
"value": {
|
8858
|
+
"type": "number | string",
|
8859
|
+
"kind": "expression"
|
8860
|
+
}
|
8861
|
+
},
|
8862
|
+
{
|
8863
|
+
"name": "height",
|
8864
|
+
"default": "`auto`",
|
8865
|
+
"description": "滑块高度,单位为`px`",
|
8866
|
+
"value": {
|
8867
|
+
"type": "number | string",
|
8868
|
+
"kind": "expression"
|
8869
|
+
}
|
8870
|
+
},
|
8871
|
+
{
|
8872
|
+
"name": "loop",
|
8873
|
+
"default": "`true`",
|
8874
|
+
"description": "是否开启循环播放",
|
8875
|
+
"value": {
|
8876
|
+
"type": "boolean",
|
8877
|
+
"kind": "expression"
|
8878
|
+
}
|
8879
|
+
},
|
8880
|
+
{
|
8881
|
+
"name": "show-indicators",
|
8882
|
+
"default": "`true`",
|
8883
|
+
"description": "是否显示指示器",
|
8884
|
+
"value": {
|
8885
|
+
"type": "boolean",
|
8886
|
+
"kind": "expression"
|
8887
|
+
}
|
8888
|
+
},
|
8889
|
+
{
|
8890
|
+
"name": "vertical",
|
8891
|
+
"default": "`false`",
|
8892
|
+
"description": "是否为纵向滚动",
|
8893
|
+
"value": {
|
8894
|
+
"type": "boolean",
|
8895
|
+
"kind": "expression"
|
8896
|
+
}
|
8897
|
+
},
|
8898
|
+
{
|
8899
|
+
"name": "touchable",
|
8900
|
+
"default": "`true`",
|
8901
|
+
"description": "是否可以通过手势滑动",
|
8902
|
+
"value": {
|
8903
|
+
"type": "boolean",
|
8904
|
+
"kind": "expression"
|
8905
|
+
}
|
8906
|
+
},
|
8907
|
+
{
|
8908
|
+
"name": "stop-propagation",
|
8909
|
+
"default": "`true`",
|
8910
|
+
"description": "是否阻止滑动事件冒泡",
|
8911
|
+
"value": {
|
8912
|
+
"type": "boolean",
|
8913
|
+
"kind": "expression"
|
8914
|
+
}
|
8915
|
+
},
|
8916
|
+
{
|
8917
|
+
"name": "lazy-render",
|
8918
|
+
"default": "`false`",
|
8919
|
+
"description": "是否延迟渲染未展示的轮播",
|
8920
|
+
"value": {
|
8921
|
+
"type": "boolean",
|
8922
|
+
"kind": "expression"
|
8923
|
+
}
|
8924
|
+
},
|
8925
|
+
{
|
8926
|
+
"name": "indicator-color",
|
8927
|
+
"default": "`#1989fa`",
|
8928
|
+
"description": "指示器颜色",
|
8929
|
+
"value": {
|
8930
|
+
"type": "string",
|
8931
|
+
"kind": "expression"
|
8932
|
+
}
|
8933
|
+
}
|
8934
|
+
]
|
8935
|
+
},
|
8936
|
+
{
|
8937
|
+
"name": "van-swipe-item",
|
8938
|
+
"slots": [],
|
8939
|
+
"events": [
|
8940
|
+
{
|
8941
|
+
"name": "click",
|
8942
|
+
"description": "点击时触发"
|
8943
|
+
}
|
8944
|
+
],
|
8945
|
+
"attributes": []
|
8946
|
+
},
|
8947
8947
|
{
|
8948
8948
|
"name": "van-tabs",
|
8949
8949
|
"slots": [
|