vant 2.12.29 → 2.12.31

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.29",
5
+ "version": "2.12.31",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -452,112 +452,202 @@
452
452
  ]
453
453
  },
454
454
  {
455
- "name": "van-address-list",
455
+ "name": "van-area",
456
456
  "slots": [
457
457
  {
458
- "name": "default",
459
- "description": "在列表下方插入内容"
460
- },
461
- {
462
- "name": "top",
463
- "description": "在顶部插入内容"
458
+ "name": "title",
459
+ "description": "自定义标题内容"
464
460
  },
465
461
  {
466
- "name": "item-bottom",
467
- "description": "在列表项底部插入内容"
462
+ "name": "columns-top",
463
+ "description": "自定义选项上方内容"
468
464
  },
469
465
  {
470
- "name": "tag",
471
- "description": "列表项标签内容自定义"
466
+ "name": "columns-bottom",
467
+ "description": "自定义选项下方内容"
472
468
  }
473
469
  ],
474
470
  "events": [
475
471
  {
476
- "name": "add",
477
- "description": "点击新增按钮时触发"
472
+ "name": "confirm",
473
+ "description": "点击右上方完成按钮"
478
474
  },
479
475
  {
480
- "name": "edit",
481
- "description": "点击编辑按钮时触发"
476
+ "name": "cancel",
477
+ "description": "点击取消按钮时"
482
478
  },
483
479
  {
484
- "name": "select",
485
- "description": "切换选中的地址时触发"
480
+ "name": "change",
481
+ "description": "选项改变时触发"
482
+ }
483
+ ],
484
+ "attributes": [
485
+ {
486
+ "name": "value",
487
+ "default": "-",
488
+ "description": "当前选中的省市区`code`",
489
+ "value": {
490
+ "type": "string",
491
+ "kind": "expression"
492
+ }
486
493
  },
487
494
  {
488
- "name": "edit-disabled",
489
- "description": "编辑不可配送的地址时触发"
495
+ "name": "title",
496
+ "default": "-",
497
+ "description": "顶部栏标题",
498
+ "value": {
499
+ "type": "string",
500
+ "kind": "expression"
501
+ }
490
502
  },
491
503
  {
492
- "name": "select-disabled",
493
- "description": "选中不可配送的地址时触发"
504
+ "name": "confirm-button-text",
505
+ "default": "`确认`",
506
+ "description": "确认按钮文字",
507
+ "value": {
508
+ "type": "string",
509
+ "kind": "expression"
510
+ }
494
511
  },
495
512
  {
496
- "name": "click-item",
497
- "description": "点击任意地址时触发"
498
- }
499
- ],
500
- "attributes": [
513
+ "name": "cancel-button-text",
514
+ "default": "`取消`",
515
+ "description": "取消按钮文字",
516
+ "value": {
517
+ "type": "string",
518
+ "kind": "expression"
519
+ }
520
+ },
501
521
  {
502
- "name": "v-model",
522
+ "name": "area-list",
503
523
  "default": "-",
504
- "description": "当前选中地址的 id",
524
+ "description": "省市区数据,格式见下方",
505
525
  "value": {
506
- "type": "string",
526
+ "type": "object",
507
527
  "kind": "expression"
508
528
  }
509
529
  },
510
530
  {
511
- "name": "list",
531
+ "name": "columns-placeholder",
512
532
  "default": "`[]`",
513
- "description": "地址列表",
533
+ "description": "列占位提示文字",
514
534
  "value": {
515
- "type": "Address[]",
535
+ "type": "string[]",
516
536
  "kind": "expression"
517
537
  }
518
538
  },
519
539
  {
520
- "name": "disabled-list",
521
- "default": "`[]`",
522
- "description": "不可配送地址列表",
540
+ "name": "loading",
541
+ "default": "`false`",
542
+ "description": "是否显示加载状态",
523
543
  "value": {
524
- "type": "Address[]",
544
+ "type": "boolean",
525
545
  "kind": "expression"
526
546
  }
527
547
  },
528
548
  {
529
- "name": "disabled-text",
549
+ "name": "readonly",
550
+ "default": "`false`",
551
+ "description": "是否为只读状态,只读状态下无法切换选项",
552
+ "value": {
553
+ "type": "boolean",
554
+ "kind": "expression"
555
+ }
556
+ },
557
+ {
558
+ "name": "item-height",
559
+ "default": "`44`",
560
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
561
+ "value": {
562
+ "type": "number | string",
563
+ "kind": "expression"
564
+ }
565
+ },
566
+ {
567
+ "name": "columns-num",
568
+ "default": "`3`",
569
+ "description": "显示列数,3-省市区,2-省市,1-省",
570
+ "value": {
571
+ "type": "number | string",
572
+ "kind": "expression"
573
+ }
574
+ },
575
+ {
576
+ "name": "visible-item-count",
577
+ "default": "`6`",
578
+ "description": "可见的选项个数",
579
+ "value": {
580
+ "type": "number | string",
581
+ "kind": "expression"
582
+ }
583
+ },
584
+ {
585
+ "name": "swipe-duration",
586
+ "default": "`1000`",
587
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
588
+ "value": {
589
+ "type": "number | string",
590
+ "kind": "expression"
591
+ }
592
+ },
593
+ {
594
+ "name": "is-oversea-code",
530
595
  "default": "-",
531
- "description": "不可配送提示文案",
596
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
532
597
  "value": {
533
- "type": "string",
598
+ "type": "() => boolean",
534
599
  "kind": "expression"
535
600
  }
601
+ }
602
+ ]
603
+ },
604
+ {
605
+ "name": "van-badge",
606
+ "slots": [
607
+ {
608
+ "name": "default",
609
+ "description": "徽标包裹的子元素"
536
610
  },
537
611
  {
538
- "name": "switchable",
539
- "default": "`true`",
540
- "description": "是否允许切换地址",
612
+ "name": "content",
613
+ "description": "自定义徽标内容"
614
+ }
615
+ ],
616
+ "events": [],
617
+ "attributes": [
618
+ {
619
+ "name": "content",
620
+ "default": "-",
621
+ "description": "徽标内容",
541
622
  "value": {
542
- "type": "boolean",
623
+ "type": "number | string",
543
624
  "kind": "expression"
544
625
  }
545
626
  },
546
627
  {
547
- "name": "add-button-text",
548
- "default": "`新增地址`",
549
- "description": "底部按钮文字",
628
+ "name": "color",
629
+ "default": "`#ee0a24`",
630
+ "description": "徽标背景颜色",
550
631
  "value": {
551
632
  "type": "string",
552
633
  "kind": "expression"
553
634
  }
554
635
  },
555
636
  {
556
- "name": "default-tag-text",
637
+ "name": "dot",
638
+ "default": "`false`",
639
+ "description": "是否展示为小红点",
640
+ "value": {
641
+ "type": "boolean",
642
+ "kind": "expression"
643
+ }
644
+ },
645
+ {
646
+ "name": "max",
557
647
  "default": "-",
558
- "description": "默认地址标签文字",
648
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
559
649
  "value": {
560
- "type": "string",
650
+ "type": "number | string",
561
651
  "kind": "expression"
562
652
  }
563
653
  }
@@ -791,52 +881,112 @@
791
881
  ]
792
882
  },
793
883
  {
794
- "name": "van-badge",
884
+ "name": "van-address-list",
795
885
  "slots": [
796
886
  {
797
887
  "name": "default",
798
- "description": "徽标包裹的子元素"
888
+ "description": "在列表下方插入内容"
799
889
  },
800
890
  {
801
- "name": "content",
802
- "description": "自定义徽标内容"
891
+ "name": "top",
892
+ "description": "在顶部插入内容"
893
+ },
894
+ {
895
+ "name": "item-bottom",
896
+ "description": "在列表项底部插入内容"
897
+ },
898
+ {
899
+ "name": "tag",
900
+ "description": "列表项标签内容自定义"
901
+ }
902
+ ],
903
+ "events": [
904
+ {
905
+ "name": "add",
906
+ "description": "点击新增按钮时触发"
907
+ },
908
+ {
909
+ "name": "edit",
910
+ "description": "点击编辑按钮时触发"
911
+ },
912
+ {
913
+ "name": "select",
914
+ "description": "切换选中的地址时触发"
915
+ },
916
+ {
917
+ "name": "edit-disabled",
918
+ "description": "编辑不可配送的地址时触发"
919
+ },
920
+ {
921
+ "name": "select-disabled",
922
+ "description": "选中不可配送的地址时触发"
923
+ },
924
+ {
925
+ "name": "click-item",
926
+ "description": "点击任意地址时触发"
803
927
  }
804
928
  ],
805
- "events": [],
806
929
  "attributes": [
807
930
  {
808
- "name": "content",
931
+ "name": "v-model",
809
932
  "default": "-",
810
- "description": "徽标内容",
933
+ "description": "当前选中地址的 id",
811
934
  "value": {
812
- "type": "number | string",
935
+ "type": "string",
813
936
  "kind": "expression"
814
937
  }
815
938
  },
816
939
  {
817
- "name": "color",
818
- "default": "`#ee0a24`",
819
- "description": "徽标背景颜色",
940
+ "name": "list",
941
+ "default": "`[]`",
942
+ "description": "地址列表",
943
+ "value": {
944
+ "type": "Address[]",
945
+ "kind": "expression"
946
+ }
947
+ },
948
+ {
949
+ "name": "disabled-list",
950
+ "default": "`[]`",
951
+ "description": "不可配送地址列表",
952
+ "value": {
953
+ "type": "Address[]",
954
+ "kind": "expression"
955
+ }
956
+ },
957
+ {
958
+ "name": "disabled-text",
959
+ "default": "-",
960
+ "description": "不可配送提示文案",
820
961
  "value": {
821
962
  "type": "string",
822
963
  "kind": "expression"
823
964
  }
824
965
  },
825
966
  {
826
- "name": "dot",
827
- "default": "`false`",
828
- "description": "是否展示为小红点",
967
+ "name": "switchable",
968
+ "default": "`true`",
969
+ "description": "是否允许切换地址",
829
970
  "value": {
830
971
  "type": "boolean",
831
972
  "kind": "expression"
832
973
  }
833
974
  },
834
975
  {
835
- "name": "max",
976
+ "name": "add-button-text",
977
+ "default": "`新增地址`",
978
+ "description": "底部按钮文字",
979
+ "value": {
980
+ "type": "string",
981
+ "kind": "expression"
982
+ }
983
+ },
984
+ {
985
+ "name": "default-tag-text",
836
986
  "default": "-",
837
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
987
+ "description": "默认地址标签文字",
838
988
  "value": {
839
- "type": "number | string",
989
+ "type": "string",
840
990
  "kind": "expression"
841
991
  }
842
992
  }
@@ -1190,156 +1340,6 @@
1190
1340
  }
1191
1341
  ]
1192
1342
  },
1193
- {
1194
- "name": "van-area",
1195
- "slots": [
1196
- {
1197
- "name": "title",
1198
- "description": "自定义标题内容"
1199
- },
1200
- {
1201
- "name": "columns-top",
1202
- "description": "自定义选项上方内容"
1203
- },
1204
- {
1205
- "name": "columns-bottom",
1206
- "description": "自定义选项下方内容"
1207
- }
1208
- ],
1209
- "events": [
1210
- {
1211
- "name": "confirm",
1212
- "description": "点击右上方完成按钮"
1213
- },
1214
- {
1215
- "name": "cancel",
1216
- "description": "点击取消按钮时"
1217
- },
1218
- {
1219
- "name": "change",
1220
- "description": "选项改变时触发"
1221
- }
1222
- ],
1223
- "attributes": [
1224
- {
1225
- "name": "value",
1226
- "default": "-",
1227
- "description": "当前选中的省市区`code`",
1228
- "value": {
1229
- "type": "string",
1230
- "kind": "expression"
1231
- }
1232
- },
1233
- {
1234
- "name": "title",
1235
- "default": "-",
1236
- "description": "顶部栏标题",
1237
- "value": {
1238
- "type": "string",
1239
- "kind": "expression"
1240
- }
1241
- },
1242
- {
1243
- "name": "confirm-button-text",
1244
- "default": "`确认`",
1245
- "description": "确认按钮文字",
1246
- "value": {
1247
- "type": "string",
1248
- "kind": "expression"
1249
- }
1250
- },
1251
- {
1252
- "name": "cancel-button-text",
1253
- "default": "`取消`",
1254
- "description": "取消按钮文字",
1255
- "value": {
1256
- "type": "string",
1257
- "kind": "expression"
1258
- }
1259
- },
1260
- {
1261
- "name": "area-list",
1262
- "default": "-",
1263
- "description": "省市区数据,格式见下方",
1264
- "value": {
1265
- "type": "object",
1266
- "kind": "expression"
1267
- }
1268
- },
1269
- {
1270
- "name": "columns-placeholder",
1271
- "default": "`[]`",
1272
- "description": "列占位提示文字",
1273
- "value": {
1274
- "type": "string[]",
1275
- "kind": "expression"
1276
- }
1277
- },
1278
- {
1279
- "name": "loading",
1280
- "default": "`false`",
1281
- "description": "是否显示加载状态",
1282
- "value": {
1283
- "type": "boolean",
1284
- "kind": "expression"
1285
- }
1286
- },
1287
- {
1288
- "name": "readonly",
1289
- "default": "`false`",
1290
- "description": "是否为只读状态,只读状态下无法切换选项",
1291
- "value": {
1292
- "type": "boolean",
1293
- "kind": "expression"
1294
- }
1295
- },
1296
- {
1297
- "name": "item-height",
1298
- "default": "`44`",
1299
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
1300
- "value": {
1301
- "type": "number | string",
1302
- "kind": "expression"
1303
- }
1304
- },
1305
- {
1306
- "name": "columns-num",
1307
- "default": "`3`",
1308
- "description": "显示列数,3-省市区,2-省市,1-省",
1309
- "value": {
1310
- "type": "number | string",
1311
- "kind": "expression"
1312
- }
1313
- },
1314
- {
1315
- "name": "visible-item-count",
1316
- "default": "`6`",
1317
- "description": "可见的选项个数",
1318
- "value": {
1319
- "type": "number | string",
1320
- "kind": "expression"
1321
- }
1322
- },
1323
- {
1324
- "name": "swipe-duration",
1325
- "default": "`1000`",
1326
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
1327
- "value": {
1328
- "type": "number | string",
1329
- "kind": "expression"
1330
- }
1331
- },
1332
- {
1333
- "name": "is-oversea-code",
1334
- "default": "-",
1335
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
1336
- "value": {
1337
- "type": "() => boolean",
1338
- "kind": "expression"
1339
- }
1340
- }
1341
- ]
1342
- },
1343
1343
  {
1344
1344
  "name": "van-card",
1345
1345
  "slots": [
@@ -2100,7 +2100,7 @@
2100
2100
  {
2101
2101
  "name": "stroke-linecap",
2102
2102
  "default": "`round`",
2103
- "description": "进度条端点的形状,可选值为`sqaure` `butt`",
2103
+ "description": "进度条端点的形状,可选值为`square` `butt`",
2104
2104
  "value": {
2105
2105
  "type": "string",
2106
2106
  "kind": "expression"
@@ -1,12 +0,0 @@
1
- ### [v2.12.29](https://github.com/youzan/vant/compare/v2.12.28...v2.12.29)
2
-
3
- `2021-09-22`
4
-
5
- **Bug Fixes**
6
-
7
- - Tabs: failed to scroll into view when render multiple tabs [#9542](https://github.com/youzan/vant/issues/9542)
8
-
9
- **Document**
10
-
11
- - changelog: 2.12.28 [1639ed](https://github.com/youzan/vant/commit/1639ed2fabfa16836f010534244f6b255015cda9)
12
- - Uploader: add faq [#9530](https://github.com/youzan/vant/issues/9530)