vant 3.3.0 → 3.3.1

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": "3.3.0",
5
+ "version": "3.3.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -244,76 +244,72 @@
244
244
  ]
245
245
  },
246
246
  {
247
- "name": "van-action-sheet",
247
+ "name": "van-address-edit",
248
248
  "slots": [
249
249
  {
250
250
  "name": "default",
251
- "description": "自定义面板的展示内容"
252
- },
253
- {
254
- "name": "description",
255
- "description": "自定义描述文案"
256
- },
257
- {
258
- "name": "cancel",
259
- "description": "自定义取消按钮内容"
251
+ "description": "在邮政编码下方插入内容"
260
252
  }
261
253
  ],
262
254
  "events": [
263
255
  {
264
- "name": "select",
265
- "description": "点击选项时触发,禁用或加载状态下不会触发"
256
+ "name": "save",
257
+ "description": "点击保存按钮时触发"
266
258
  },
267
259
  {
268
- "name": "cancel",
269
- "description": "点击取消按钮时触发"
260
+ "name": "focus",
261
+ "description": "输入框聚焦时触发"
270
262
  },
271
263
  {
272
- "name": "open",
273
- "description": "打开面板时触发"
264
+ "name": "delete",
265
+ "description": "确认删除地址时触发"
274
266
  },
275
267
  {
276
- "name": "close",
277
- "description": "关闭面板时触发"
268
+ "name": "select-search",
269
+ "description": "选中搜索结果时触发"
278
270
  },
279
271
  {
280
- "name": "opened",
281
- "description": "打开面板且动画结束后触发"
272
+ "name": "click-area",
273
+ "description": "点击收件地区时触发"
282
274
  },
283
275
  {
284
- "name": "closed",
285
- "description": "关闭面板且动画结束后触发"
276
+ "name": "change-area",
277
+ "description": "修改收件地区时触发"
286
278
  },
287
279
  {
288
- "name": "click-overlay",
289
- "description": "点击遮罩层时触发"
280
+ "name": "change-detail",
281
+ "description": "修改详细地址时触发"
282
+ },
283
+ {
284
+ "name": "change-default",
285
+ "description": "切换是否使用默认地址时触发"
290
286
  }
291
287
  ],
292
288
  "attributes": [
293
289
  {
294
- "name": "v-model:show",
295
- "default": "`false`",
296
- "description": "是否显示动作面板",
290
+ "name": "area-list",
291
+ "default": "-",
292
+ "description": "地区列表",
297
293
  "options": [],
298
294
  "value": {
299
- "type": "boolean",
295
+ "type": "object",
300
296
  "kind": "expression"
301
297
  }
302
298
  },
303
299
  {
304
- "name": "actions",
300
+ "name": "area-columns-placeholder",
305
301
  "default": "`[]`",
306
- "description": "面板选项列表",
302
+ "description": "地区选择列占位提示文字",
307
303
  "options": [],
308
304
  "value": {
309
- "type": "ActionSheetAction[]",
305
+ "type": "string[]",
310
306
  "kind": "expression"
311
307
  }
312
308
  },
313
309
  {
314
- "name": "title",
315
- "default": "-",
316
- "description": "顶部标题",
310
+ "name": "area-placeholder",
311
+ "default": "`选择省 / 市 / 区`",
312
+ "description": "地区输入框占位提示文字",
317
313
  "options": [],
318
314
  "value": {
319
315
  "type": "string",
@@ -321,29 +317,29 @@
321
317
  }
322
318
  },
323
319
  {
324
- "name": "cancel-text",
325
- "default": "-",
326
- "description": "取消按钮文字",
320
+ "name": "address-info",
321
+ "default": "`{}`",
322
+ "description": "地址信息初始值",
327
323
  "options": [],
328
324
  "value": {
329
- "type": "string",
325
+ "type": "AddressEditInfo",
330
326
  "kind": "expression"
331
327
  }
332
328
  },
333
329
  {
334
- "name": "description",
335
- "default": "-",
336
- "description": "选项上方的描述信息",
330
+ "name": "search-result",
331
+ "default": "`[]`",
332
+ "description": "详细地址搜索结果",
337
333
  "options": [],
338
334
  "value": {
339
- "type": "string",
335
+ "type": "AddressEditSearchItem[]",
340
336
  "kind": "expression"
341
337
  }
342
338
  },
343
339
  {
344
- "name": "closeable",
345
- "default": "`true`",
346
- "description": "是否显示关闭图标",
340
+ "name": "show-postal",
341
+ "default": "`false`",
342
+ "description": "是否显示邮政编码",
347
343
  "options": [],
348
344
  "value": {
349
345
  "type": "boolean",
@@ -351,29 +347,39 @@
351
347
  }
352
348
  },
353
349
  {
354
- "name": "close-icon",
355
- "default": "`cross`",
356
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
350
+ "name": "show-delete",
351
+ "default": "`false`",
352
+ "description": "是否显示删除按钮",
357
353
  "options": [],
358
354
  "value": {
359
- "type": "string",
355
+ "type": "boolean",
360
356
  "kind": "expression"
361
357
  }
362
358
  },
363
359
  {
364
- "name": "duration",
365
- "default": "`0.3`",
366
- "description": "动画时长,单位秒,设置为 0 可以禁用动画",
360
+ "name": "show-set-default",
361
+ "default": "`false`",
362
+ "description": "是否显示默认地址栏",
367
363
  "options": [],
368
364
  "value": {
369
- "type": "number | string",
365
+ "type": "boolean",
370
366
  "kind": "expression"
371
367
  }
372
368
  },
373
369
  {
374
- "name": "round",
370
+ "name": "show-search-result",
371
+ "default": "`false`",
372
+ "description": "是否显示搜索结果",
373
+ "options": [],
374
+ "value": {
375
+ "type": "boolean",
376
+ "kind": "expression"
377
+ }
378
+ },
379
+ {
380
+ "name": "show-area",
375
381
  "default": "`true`",
376
- "description": "是否显示圆角",
382
+ "description": "是否显示地区",
377
383
  "options": [],
378
384
  "value": {
379
385
  "type": "boolean",
@@ -381,9 +387,9 @@
381
387
  }
382
388
  },
383
389
  {
384
- "name": "overlay",
390
+ "name": "show-detail",
385
391
  "default": "`true`",
386
- "description": "是否显示遮罩层",
392
+ "description": "是否显示详细地址",
387
393
  "options": [],
388
394
  "value": {
389
395
  "type": "boolean",
@@ -391,61 +397,59 @@
391
397
  }
392
398
  },
393
399
  {
394
- "name": "overlay-class",
395
- "default": "object_",
396
- "description": "自定义遮罩层类名",
397
- "options": [
398
- "-"
399
- ],
400
+ "name": "disable-area",
401
+ "default": "`false`",
402
+ "description": "是否禁用地区选择",
403
+ "options": [],
400
404
  "value": {
401
- "type": "string | Array \\",
405
+ "type": "boolean",
402
406
  "kind": "expression"
403
407
  }
404
408
  },
405
409
  {
406
- "name": "overlay-style",
407
- "default": "-",
408
- "description": "自定义遮罩层样式",
410
+ "name": "save-button-text",
411
+ "default": "`保存`",
412
+ "description": "保存按钮文字",
409
413
  "options": [],
410
414
  "value": {
411
- "type": "object",
415
+ "type": "string",
412
416
  "kind": "expression"
413
417
  }
414
418
  },
415
419
  {
416
- "name": "lock-scroll",
417
- "default": "`true`",
418
- "description": "是否锁定背景滚动",
420
+ "name": "delete-button-text",
421
+ "default": "`删除`",
422
+ "description": "删除按钮文字",
419
423
  "options": [],
420
424
  "value": {
421
- "type": "boolean",
425
+ "type": "string",
422
426
  "kind": "expression"
423
427
  }
424
428
  },
425
429
  {
426
- "name": "lazy-render",
427
- "default": "`true`",
428
- "description": "是否在显示弹层时才渲染节点",
430
+ "name": "detail-rows",
431
+ "default": "`1`",
432
+ "description": "详细地址输入框行数",
429
433
  "options": [],
430
434
  "value": {
431
- "type": "boolean",
435
+ "type": "number | string",
432
436
  "kind": "expression"
433
437
  }
434
438
  },
435
439
  {
436
- "name": "close-on-popstate",
437
- "default": "`true`",
438
- "description": "是否在页面回退时自动关闭",
440
+ "name": "detail-maxlength",
441
+ "default": "`200`",
442
+ "description": "详细地址最大长度",
439
443
  "options": [],
440
444
  "value": {
441
- "type": "boolean",
445
+ "type": "number | string",
442
446
  "kind": "expression"
443
447
  }
444
448
  },
445
449
  {
446
- "name": "close-on-click-action",
450
+ "name": "is-saving",
447
451
  "default": "`false`",
448
- "description": "是否在点击选项后关闭",
452
+ "description": "是否显示保存按钮加载动画",
449
453
  "options": [],
450
454
  "value": {
451
455
  "type": "boolean",
@@ -453,9 +457,9 @@
453
457
  }
454
458
  },
455
459
  {
456
- "name": "close-on-click-overlay",
457
- "default": "`true`",
458
- "description": "是否在点击遮罩层后关闭",
460
+ "name": "is-deleting",
461
+ "default": "`false`",
462
+ "description": "是否显示删除按钮加载动画",
459
463
  "options": [],
460
464
  "value": {
461
465
  "type": "boolean",
@@ -463,118 +467,128 @@
463
467
  }
464
468
  },
465
469
  {
466
- "name": "safe-area-inset-bottom",
467
- "default": "`true`",
468
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
470
+ "name": "tel-validator",
471
+ "default": "-",
472
+ "description": "手机号格式校验函数",
469
473
  "options": [],
470
474
  "value": {
471
- "type": "boolean",
475
+ "type": "string => boolean",
472
476
  "kind": "expression"
473
477
  }
474
478
  },
475
479
  {
476
- "name": "teleport",
480
+ "name": "tel-maxlength",
477
481
  "default": "-",
478
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
482
+ "description": "手机号最大长度",
479
483
  "options": [],
480
484
  "value": {
481
- "type": "string | Element",
485
+ "type": "number | string",
482
486
  "kind": "expression"
483
487
  }
484
488
  },
485
489
  {
486
- "name": "before-close",
490
+ "name": "postal-validator",
487
491
  "default": "-",
488
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
492
+ "description": "邮政编码格式校验函数",
489
493
  "options": [],
490
494
  "value": {
491
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
495
+ "type": "string => boolean",
496
+ "kind": "expression"
497
+ }
498
+ },
499
+ {
500
+ "name": "validator",
501
+ "default": "-",
502
+ "description": "自定义校验函数",
503
+ "options": [],
504
+ "value": {
505
+ "type": "(key, val) => string",
492
506
  "kind": "expression"
493
507
  }
494
508
  }
495
509
  ]
496
510
  },
497
511
  {
498
- "name": "van-address-list",
512
+ "name": "van-action-sheet",
499
513
  "slots": [
500
514
  {
501
515
  "name": "default",
502
- "description": "在列表下方插入内容"
503
- },
504
- {
505
- "name": "top",
506
- "description": "在顶部插入内容"
516
+ "description": "自定义面板的展示内容"
507
517
  },
508
518
  {
509
- "name": "item-bottom",
510
- "description": "在列表项底部插入内容"
519
+ "name": "description",
520
+ "description": "自定义描述文案"
511
521
  },
512
522
  {
513
- "name": "tag",
514
- "description": "自定义列表项标签内容"
523
+ "name": "cancel",
524
+ "description": "自定义取消按钮内容"
515
525
  }
516
526
  ],
517
527
  "events": [
518
528
  {
519
- "name": "add",
520
- "description": "点击新增按钮时触发"
529
+ "name": "select",
530
+ "description": "点击选项时触发,禁用或加载状态下不会触发"
521
531
  },
522
532
  {
523
- "name": "edit",
524
- "description": "点击编辑按钮时触发"
533
+ "name": "cancel",
534
+ "description": "点击取消按钮时触发"
525
535
  },
526
536
  {
527
- "name": "select",
528
- "description": "切换选中的地址时触发"
537
+ "name": "open",
538
+ "description": "打开面板时触发"
529
539
  },
530
540
  {
531
- "name": "edit-disabled",
532
- "description": "编辑不可配送的地址时触发"
541
+ "name": "close",
542
+ "description": "关闭面板时触发"
533
543
  },
534
544
  {
535
- "name": "select-disabled",
536
- "description": "选中不可配送的地址时触发"
545
+ "name": "opened",
546
+ "description": "打开面板且动画结束后触发"
537
547
  },
538
548
  {
539
- "name": "click-item",
540
- "description": "点击任意地址时触发"
549
+ "name": "closed",
550
+ "description": "关闭面板且动画结束后触发"
551
+ },
552
+ {
553
+ "name": "click-overlay",
554
+ "description": "点击遮罩层时触发"
541
555
  }
542
556
  ],
543
557
  "attributes": [
544
558
  {
545
- "name": "v-model",
546
- "default": "-",
547
- "description": "当前选中地址的 id",
559
+ "name": "v-model:show",
560
+ "default": "`false`",
561
+ "description": "是否显示动作面板",
548
562
  "options": [],
549
563
  "value": {
550
- "type": "string",
564
+ "type": "boolean",
551
565
  "kind": "expression"
552
566
  }
553
567
  },
554
568
  {
555
- "name": "list",
569
+ "name": "actions",
556
570
  "default": "`[]`",
557
- "description": "地址列表",
571
+ "description": "面板选项列表",
558
572
  "options": [],
559
573
  "value": {
560
- "type": "AddressListAddress[]",
574
+ "type": "ActionSheetAction[]",
561
575
  "kind": "expression"
562
576
  }
563
577
  },
564
578
  {
565
- "name": "disabled-list",
566
- "default": "`[]`",
567
- "description": "不可配送地址列表",
579
+ "name": "title",
580
+ "default": "-",
581
+ "description": "顶部标题",
568
582
  "options": [],
569
583
  "value": {
570
- "type": "AddressListAddress[]",
584
+ "type": "string",
571
585
  "kind": "expression"
572
586
  }
573
587
  },
574
588
  {
575
- "name": "disabled-text",
589
+ "name": "cancel-text",
576
590
  "default": "-",
577
- "description": "不可配送提示文案",
591
+ "description": "取消按钮文字",
578
592
  "options": [],
579
593
  "value": {
580
594
  "type": "string",
@@ -582,134 +596,91 @@
582
596
  }
583
597
  },
584
598
  {
585
- "name": "switchable",
586
- "default": "`true`",
587
- "description": "是否允许切换地址",
599
+ "name": "description",
600
+ "default": "-",
601
+ "description": "选项上方的描述信息",
588
602
  "options": [],
589
603
  "value": {
590
- "type": "boolean",
604
+ "type": "string",
591
605
  "kind": "expression"
592
606
  }
593
607
  },
594
608
  {
595
- "name": "add-button-text",
596
- "default": "`新增地址`",
597
- "description": "底部按钮文字",
609
+ "name": "closeable",
610
+ "default": "`true`",
611
+ "description": "是否显示关闭图标",
598
612
  "options": [],
599
613
  "value": {
600
- "type": "string",
614
+ "type": "boolean",
601
615
  "kind": "expression"
602
616
  }
603
617
  },
604
618
  {
605
- "name": "default-tag-text",
606
- "default": "-",
607
- "description": "默认地址标签文字",
619
+ "name": "close-icon",
620
+ "default": "`cross`",
621
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
608
622
  "options": [],
609
623
  "value": {
610
624
  "type": "string",
611
625
  "kind": "expression"
612
626
  }
613
- }
614
- ]
615
- },
616
- {
617
- "name": "van-address-edit",
618
- "slots": [
619
- {
620
- "name": "default",
621
- "description": "在邮政编码下方插入内容"
622
- }
623
- ],
624
- "events": [
625
- {
626
- "name": "save",
627
- "description": "点击保存按钮时触发"
628
- },
629
- {
630
- "name": "focus",
631
- "description": "输入框聚焦时触发"
632
- },
633
- {
634
- "name": "delete",
635
- "description": "确认删除地址时触发"
636
- },
637
- {
638
- "name": "select-search",
639
- "description": "选中搜索结果时触发"
640
- },
641
- {
642
- "name": "click-area",
643
- "description": "点击收件地区时触发"
644
- },
645
- {
646
- "name": "change-area",
647
- "description": "修改收件地区时触发"
648
627
  },
649
628
  {
650
- "name": "change-detail",
651
- "description": "修改详细地址时触发"
652
- },
653
- {
654
- "name": "change-default",
655
- "description": "切换是否使用默认地址时触发"
656
- }
657
- ],
658
- "attributes": [
659
- {
660
- "name": "area-list",
661
- "default": "-",
662
- "description": "地区列表",
629
+ "name": "duration",
630
+ "default": "`0.3`",
631
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画",
663
632
  "options": [],
664
633
  "value": {
665
- "type": "object",
634
+ "type": "number | string",
666
635
  "kind": "expression"
667
636
  }
668
637
  },
669
638
  {
670
- "name": "area-columns-placeholder",
671
- "default": "`[]`",
672
- "description": "地区选择列占位提示文字",
639
+ "name": "round",
640
+ "default": "`true`",
641
+ "description": "是否显示圆角",
673
642
  "options": [],
674
643
  "value": {
675
- "type": "string[]",
644
+ "type": "boolean",
676
645
  "kind": "expression"
677
646
  }
678
647
  },
679
648
  {
680
- "name": "area-placeholder",
681
- "default": "`选择省 / 市 / 区`",
682
- "description": "地区输入框占位提示文字",
649
+ "name": "overlay",
650
+ "default": "`true`",
651
+ "description": "是否显示遮罩层",
683
652
  "options": [],
684
653
  "value": {
685
- "type": "string",
654
+ "type": "boolean",
686
655
  "kind": "expression"
687
656
  }
688
657
  },
689
658
  {
690
- "name": "address-info",
691
- "default": "`{}`",
692
- "description": "地址信息初始值",
693
- "options": [],
659
+ "name": "overlay-class",
660
+ "default": "object_",
661
+ "description": "自定义遮罩层类名",
662
+ "options": [
663
+ "-"
664
+ ],
694
665
  "value": {
695
- "type": "AddressEditInfo",
666
+ "type": "string | Array \\",
696
667
  "kind": "expression"
697
668
  }
698
669
  },
699
670
  {
700
- "name": "search-result",
701
- "default": "`[]`",
702
- "description": "详细地址搜索结果",
671
+ "name": "overlay-style",
672
+ "default": "-",
673
+ "description": "自定义遮罩层样式",
703
674
  "options": [],
704
675
  "value": {
705
- "type": "AddressEditSearchItem[]",
676
+ "type": "object",
706
677
  "kind": "expression"
707
678
  }
708
679
  },
709
680
  {
710
- "name": "show-postal",
711
- "default": "`false`",
712
- "description": "是否显示邮政编码",
681
+ "name": "lock-scroll",
682
+ "default": "`true`",
683
+ "description": "是否锁定背景滚动",
713
684
  "options": [],
714
685
  "value": {
715
686
  "type": "boolean",
@@ -717,9 +688,9 @@
717
688
  }
718
689
  },
719
690
  {
720
- "name": "show-delete",
721
- "default": "`false`",
722
- "description": "是否显示删除按钮",
691
+ "name": "lazy-render",
692
+ "default": "`true`",
693
+ "description": "是否在显示弹层时才渲染节点",
723
694
  "options": [],
724
695
  "value": {
725
696
  "type": "boolean",
@@ -727,9 +698,9 @@
727
698
  }
728
699
  },
729
700
  {
730
- "name": "show-set-default",
731
- "default": "`false`",
732
- "description": "是否显示默认地址栏",
701
+ "name": "close-on-popstate",
702
+ "default": "`true`",
703
+ "description": "是否在页面回退时自动关闭",
733
704
  "options": [],
734
705
  "value": {
735
706
  "type": "boolean",
@@ -737,9 +708,9 @@
737
708
  }
738
709
  },
739
710
  {
740
- "name": "show-search-result",
711
+ "name": "close-on-click-action",
741
712
  "default": "`false`",
742
- "description": "是否显示搜索结果",
713
+ "description": "是否在点击选项后关闭",
743
714
  "options": [],
744
715
  "value": {
745
716
  "type": "boolean",
@@ -747,9 +718,9 @@
747
718
  }
748
719
  },
749
720
  {
750
- "name": "show-area",
721
+ "name": "close-on-click-overlay",
751
722
  "default": "`true`",
752
- "description": "是否显示地区",
723
+ "description": "是否在点击遮罩层后关闭",
753
724
  "options": [],
754
725
  "value": {
755
726
  "type": "boolean",
@@ -757,9 +728,9 @@
757
728
  }
758
729
  },
759
730
  {
760
- "name": "show-detail",
731
+ "name": "safe-area-inset-bottom",
761
732
  "default": "`true`",
762
- "description": "是否显示详细地址",
733
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
763
734
  "options": [],
764
735
  "value": {
765
736
  "type": "boolean",
@@ -767,112 +738,141 @@
767
738
  }
768
739
  },
769
740
  {
770
- "name": "disable-area",
771
- "default": "`false`",
772
- "description": "是否禁用地区选择",
741
+ "name": "teleport",
742
+ "default": "-",
743
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
773
744
  "options": [],
774
745
  "value": {
775
- "type": "boolean",
746
+ "type": "string | Element",
776
747
  "kind": "expression"
777
748
  }
778
749
  },
779
750
  {
780
- "name": "save-button-text",
781
- "default": "`保存`",
782
- "description": "保存按钮文字",
751
+ "name": "before-close",
752
+ "default": "-",
753
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
783
754
  "options": [],
784
755
  "value": {
785
- "type": "string",
756
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
786
757
  "kind": "expression"
787
758
  }
759
+ }
760
+ ]
761
+ },
762
+ {
763
+ "name": "van-address-list",
764
+ "slots": [
765
+ {
766
+ "name": "default",
767
+ "description": "在列表下方插入内容"
788
768
  },
789
769
  {
790
- "name": "delete-button-text",
791
- "default": "`删除`",
792
- "description": "删除按钮文字",
793
- "options": [],
794
- "value": {
795
- "type": "string",
796
- "kind": "expression"
797
- }
770
+ "name": "top",
771
+ "description": "在顶部插入内容"
798
772
  },
799
773
  {
800
- "name": "detail-rows",
801
- "default": "`1`",
802
- "description": "详细地址输入框行数",
803
- "options": [],
804
- "value": {
805
- "type": "number | string",
806
- "kind": "expression"
807
- }
774
+ "name": "item-bottom",
775
+ "description": "在列表项底部插入内容"
808
776
  },
809
777
  {
810
- "name": "detail-maxlength",
811
- "default": "`200`",
812
- "description": "详细地址最大长度",
778
+ "name": "tag",
779
+ "description": "自定义列表项标签内容"
780
+ }
781
+ ],
782
+ "events": [
783
+ {
784
+ "name": "add",
785
+ "description": "点击新增按钮时触发"
786
+ },
787
+ {
788
+ "name": "edit",
789
+ "description": "点击编辑按钮时触发"
790
+ },
791
+ {
792
+ "name": "select",
793
+ "description": "切换选中的地址时触发"
794
+ },
795
+ {
796
+ "name": "edit-disabled",
797
+ "description": "编辑不可配送的地址时触发"
798
+ },
799
+ {
800
+ "name": "select-disabled",
801
+ "description": "选中不可配送的地址时触发"
802
+ },
803
+ {
804
+ "name": "click-item",
805
+ "description": "点击任意地址时触发"
806
+ }
807
+ ],
808
+ "attributes": [
809
+ {
810
+ "name": "v-model",
811
+ "default": "-",
812
+ "description": "当前选中地址的 id",
813
813
  "options": [],
814
814
  "value": {
815
- "type": "number | string",
815
+ "type": "string",
816
816
  "kind": "expression"
817
817
  }
818
818
  },
819
819
  {
820
- "name": "is-saving",
821
- "default": "`false`",
822
- "description": "是否显示保存按钮加载动画",
820
+ "name": "list",
821
+ "default": "`[]`",
822
+ "description": "地址列表",
823
823
  "options": [],
824
824
  "value": {
825
- "type": "boolean",
825
+ "type": "AddressListAddress[]",
826
826
  "kind": "expression"
827
827
  }
828
828
  },
829
829
  {
830
- "name": "is-deleting",
831
- "default": "`false`",
832
- "description": "是否显示删除按钮加载动画",
830
+ "name": "disabled-list",
831
+ "default": "`[]`",
832
+ "description": "不可配送地址列表",
833
833
  "options": [],
834
834
  "value": {
835
- "type": "boolean",
835
+ "type": "AddressListAddress[]",
836
836
  "kind": "expression"
837
837
  }
838
838
  },
839
839
  {
840
- "name": "tel-validator",
840
+ "name": "disabled-text",
841
841
  "default": "-",
842
- "description": "手机号格式校验函数",
842
+ "description": "不可配送提示文案",
843
843
  "options": [],
844
844
  "value": {
845
- "type": "string => boolean",
845
+ "type": "string",
846
846
  "kind": "expression"
847
847
  }
848
848
  },
849
849
  {
850
- "name": "tel-maxlength",
851
- "default": "-",
852
- "description": "手机号最大长度",
850
+ "name": "switchable",
851
+ "default": "`true`",
852
+ "description": "是否允许切换地址",
853
853
  "options": [],
854
854
  "value": {
855
- "type": "number | string",
855
+ "type": "boolean",
856
856
  "kind": "expression"
857
857
  }
858
858
  },
859
859
  {
860
- "name": "postal-validator",
861
- "default": "-",
862
- "description": "邮政编码格式校验函数",
860
+ "name": "add-button-text",
861
+ "default": "`新增地址`",
862
+ "description": "底部按钮文字",
863
863
  "options": [],
864
864
  "value": {
865
- "type": "string => boolean",
865
+ "type": "string",
866
866
  "kind": "expression"
867
867
  }
868
868
  },
869
869
  {
870
- "name": "validator",
870
+ "name": "default-tag-text",
871
871
  "default": "-",
872
- "description": "自定义校验函数",
872
+ "description": "默认地址标签文字",
873
873
  "options": [],
874
874
  "value": {
875
- "type": "(key, val) => string",
875
+ "type": "string",
876
876
  "kind": "expression"
877
877
  }
878
878
  }