vant 2.12.30 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "2.12.30",
3
+ "version": "2.12.31",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -155,50 +155,6 @@
155
155
  "type": "(key, val) => string",
156
156
  "description": "自定义校验函数, 默认值: -"
157
157
  },
158
- "van-address-list/v-model": {
159
- "type": "string",
160
- "description": "当前选中地址的 id, 默认值: -"
161
- },
162
- "van-address-list/list": {
163
- "type": "Address[]",
164
- "description": "地址列表, 默认值: `[]`"
165
- },
166
- "van-address-list/disabled-list": {
167
- "type": "Address[]",
168
- "description": "不可配送地址列表, 默认值: `[]`"
169
- },
170
- "van-address-list/disabled-text": {
171
- "type": "string",
172
- "description": "不可配送提示文案, 默认值: -"
173
- },
174
- "van-address-list/switchable": {
175
- "type": "boolean",
176
- "description": "是否允许切换地址, 默认值: `true`"
177
- },
178
- "van-address-list/add-button-text": {
179
- "type": "string",
180
- "description": "底部按钮文字, 默认值: `新增地址`"
181
- },
182
- "van-address-list/default-tag-text": {
183
- "type": "string",
184
- "description": "默认地址标签文字, 默认值: -"
185
- },
186
- "van-badge/content": {
187
- "type": "number | string",
188
- "description": "徽标内容, 默认值: -"
189
- },
190
- "van-badge/color": {
191
- "type": "string",
192
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
193
- },
194
- "van-badge/dot": {
195
- "type": "boolean",
196
- "description": "是否展示为小红点, 默认值: `false`"
197
- },
198
- "van-badge/max": {
199
- "type": "number | string",
200
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
201
- },
202
158
  "van-area/value": {
203
159
  "type": "string",
204
160
  "description": "当前选中的省市区`code`, 默认值: -"
@@ -251,6 +207,22 @@
251
207
  "type": "() => boolean",
252
208
  "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
253
209
  },
210
+ "van-badge/content": {
211
+ "type": "number | string",
212
+ "description": "徽标内容, 默认值: -"
213
+ },
214
+ "van-badge/color": {
215
+ "type": "string",
216
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
217
+ },
218
+ "van-badge/dot": {
219
+ "type": "boolean",
220
+ "description": "是否展示为小红点, 默认值: `false`"
221
+ },
222
+ "van-badge/max": {
223
+ "type": "number | string",
224
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
225
+ },
254
226
  "van-button/type": {
255
227
  "type": "string",
256
228
  "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
@@ -339,6 +311,34 @@
339
311
  "type": "boolean",
340
312
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
341
313
  },
314
+ "van-address-list/v-model": {
315
+ "type": "string",
316
+ "description": "当前选中地址的 id, 默认值: -"
317
+ },
318
+ "van-address-list/list": {
319
+ "type": "Address[]",
320
+ "description": "地址列表, 默认值: `[]`"
321
+ },
322
+ "van-address-list/disabled-list": {
323
+ "type": "Address[]",
324
+ "description": "不可配送地址列表, 默认值: `[]`"
325
+ },
326
+ "van-address-list/disabled-text": {
327
+ "type": "string",
328
+ "description": "不可配送提示文案, 默认值: -"
329
+ },
330
+ "van-address-list/switchable": {
331
+ "type": "boolean",
332
+ "description": "是否允许切换地址, 默认值: `true`"
333
+ },
334
+ "van-address-list/add-button-text": {
335
+ "type": "string",
336
+ "description": "底部按钮文字, 默认值: `新增地址`"
337
+ },
338
+ "van-address-list/default-tag-text": {
339
+ "type": "string",
340
+ "description": "默认地址标签文字, 默认值: -"
341
+ },
342
342
  "van-calendar/type": {
343
343
  "type": "string",
344
344
  "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
@@ -713,7 +713,7 @@
713
713
  },
714
714
  "van-circle/stroke-linecap": {
715
715
  "type": "string",
716
- "description": "进度条端点的形状,可选值为`sqaure` `butt`, 默认值: `round`"
716
+ "description": "进度条端点的形状,可选值为`square` `butt`, 默认值: `round`"
717
717
  },
718
718
  "van-circle/clockwise": {
719
719
  "type": "boolean",
package/vetur/tags.json CHANGED
@@ -46,25 +46,6 @@
46
46
  "validator"
47
47
  ]
48
48
  },
49
- "van-address-list": {
50
- "attributes": [
51
- "v-model",
52
- "list",
53
- "disabled-list",
54
- "disabled-text",
55
- "switchable",
56
- "add-button-text",
57
- "default-tag-text"
58
- ]
59
- },
60
- "van-badge": {
61
- "attributes": [
62
- "content",
63
- "color",
64
- "dot",
65
- "max"
66
- ]
67
- },
68
49
  "van-area": {
69
50
  "attributes": [
70
51
  "value",
@@ -82,6 +63,14 @@
82
63
  "is-oversea-code"
83
64
  ]
84
65
  },
66
+ "van-badge": {
67
+ "attributes": [
68
+ "content",
69
+ "color",
70
+ "dot",
71
+ "max"
72
+ ]
73
+ },
85
74
  "van-button": {
86
75
  "attributes": [
87
76
  "type",
@@ -108,6 +97,17 @@
108
97
  "replace"
109
98
  ]
110
99
  },
100
+ "van-address-list": {
101
+ "attributes": [
102
+ "v-model",
103
+ "list",
104
+ "disabled-list",
105
+ "disabled-text",
106
+ "switchable",
107
+ "add-button-text",
108
+ "default-tag-text"
109
+ ]
110
+ },
111
111
  "van-calendar": {
112
112
  "attributes": [
113
113
  "type",
@@ -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.30",
5
+ "version": "2.12.31",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -451,170 +451,6 @@
451
451
  }
452
452
  ]
453
453
  },
454
- {
455
- "name": "van-address-list",
456
- "slots": [
457
- {
458
- "name": "default",
459
- "description": "在列表下方插入内容"
460
- },
461
- {
462
- "name": "top",
463
- "description": "在顶部插入内容"
464
- },
465
- {
466
- "name": "item-bottom",
467
- "description": "在列表项底部插入内容"
468
- },
469
- {
470
- "name": "tag",
471
- "description": "列表项标签内容自定义"
472
- }
473
- ],
474
- "events": [
475
- {
476
- "name": "add",
477
- "description": "点击新增按钮时触发"
478
- },
479
- {
480
- "name": "edit",
481
- "description": "点击编辑按钮时触发"
482
- },
483
- {
484
- "name": "select",
485
- "description": "切换选中的地址时触发"
486
- },
487
- {
488
- "name": "edit-disabled",
489
- "description": "编辑不可配送的地址时触发"
490
- },
491
- {
492
- "name": "select-disabled",
493
- "description": "选中不可配送的地址时触发"
494
- },
495
- {
496
- "name": "click-item",
497
- "description": "点击任意地址时触发"
498
- }
499
- ],
500
- "attributes": [
501
- {
502
- "name": "v-model",
503
- "default": "-",
504
- "description": "当前选中地址的 id",
505
- "value": {
506
- "type": "string",
507
- "kind": "expression"
508
- }
509
- },
510
- {
511
- "name": "list",
512
- "default": "`[]`",
513
- "description": "地址列表",
514
- "value": {
515
- "type": "Address[]",
516
- "kind": "expression"
517
- }
518
- },
519
- {
520
- "name": "disabled-list",
521
- "default": "`[]`",
522
- "description": "不可配送地址列表",
523
- "value": {
524
- "type": "Address[]",
525
- "kind": "expression"
526
- }
527
- },
528
- {
529
- "name": "disabled-text",
530
- "default": "-",
531
- "description": "不可配送提示文案",
532
- "value": {
533
- "type": "string",
534
- "kind": "expression"
535
- }
536
- },
537
- {
538
- "name": "switchable",
539
- "default": "`true`",
540
- "description": "是否允许切换地址",
541
- "value": {
542
- "type": "boolean",
543
- "kind": "expression"
544
- }
545
- },
546
- {
547
- "name": "add-button-text",
548
- "default": "`新增地址`",
549
- "description": "底部按钮文字",
550
- "value": {
551
- "type": "string",
552
- "kind": "expression"
553
- }
554
- },
555
- {
556
- "name": "default-tag-text",
557
- "default": "-",
558
- "description": "默认地址标签文字",
559
- "value": {
560
- "type": "string",
561
- "kind": "expression"
562
- }
563
- }
564
- ]
565
- },
566
- {
567
- "name": "van-badge",
568
- "slots": [
569
- {
570
- "name": "default",
571
- "description": "徽标包裹的子元素"
572
- },
573
- {
574
- "name": "content",
575
- "description": "自定义徽标内容"
576
- }
577
- ],
578
- "events": [],
579
- "attributes": [
580
- {
581
- "name": "content",
582
- "default": "-",
583
- "description": "徽标内容",
584
- "value": {
585
- "type": "number | string",
586
- "kind": "expression"
587
- }
588
- },
589
- {
590
- "name": "color",
591
- "default": "`#ee0a24`",
592
- "description": "徽标背景颜色",
593
- "value": {
594
- "type": "string",
595
- "kind": "expression"
596
- }
597
- },
598
- {
599
- "name": "dot",
600
- "default": "`false`",
601
- "description": "是否展示为小红点",
602
- "value": {
603
- "type": "boolean",
604
- "kind": "expression"
605
- }
606
- },
607
- {
608
- "name": "max",
609
- "default": "-",
610
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
611
- "value": {
612
- "type": "number | string",
613
- "kind": "expression"
614
- }
615
- }
616
- ]
617
- },
618
454
  {
619
455
  "name": "van-area",
620
456
  "slots": [
@@ -765,6 +601,58 @@
765
601
  }
766
602
  ]
767
603
  },
604
+ {
605
+ "name": "van-badge",
606
+ "slots": [
607
+ {
608
+ "name": "default",
609
+ "description": "徽标包裹的子元素"
610
+ },
611
+ {
612
+ "name": "content",
613
+ "description": "自定义徽标内容"
614
+ }
615
+ ],
616
+ "events": [],
617
+ "attributes": [
618
+ {
619
+ "name": "content",
620
+ "default": "-",
621
+ "description": "徽标内容",
622
+ "value": {
623
+ "type": "number | string",
624
+ "kind": "expression"
625
+ }
626
+ },
627
+ {
628
+ "name": "color",
629
+ "default": "`#ee0a24`",
630
+ "description": "徽标背景颜色",
631
+ "value": {
632
+ "type": "string",
633
+ "kind": "expression"
634
+ }
635
+ },
636
+ {
637
+ "name": "dot",
638
+ "default": "`false`",
639
+ "description": "是否展示为小红点",
640
+ "value": {
641
+ "type": "boolean",
642
+ "kind": "expression"
643
+ }
644
+ },
645
+ {
646
+ "name": "max",
647
+ "default": "-",
648
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
649
+ "value": {
650
+ "type": "number | string",
651
+ "kind": "expression"
652
+ }
653
+ }
654
+ ]
655
+ },
768
656
  {
769
657
  "name": "van-button",
770
658
  "slots": [
@@ -992,6 +880,118 @@
992
880
  }
993
881
  ]
994
882
  },
883
+ {
884
+ "name": "van-address-list",
885
+ "slots": [
886
+ {
887
+ "name": "default",
888
+ "description": "在列表下方插入内容"
889
+ },
890
+ {
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": "点击任意地址时触发"
927
+ }
928
+ ],
929
+ "attributes": [
930
+ {
931
+ "name": "v-model",
932
+ "default": "-",
933
+ "description": "当前选中地址的 id",
934
+ "value": {
935
+ "type": "string",
936
+ "kind": "expression"
937
+ }
938
+ },
939
+ {
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": "不可配送提示文案",
961
+ "value": {
962
+ "type": "string",
963
+ "kind": "expression"
964
+ }
965
+ },
966
+ {
967
+ "name": "switchable",
968
+ "default": "`true`",
969
+ "description": "是否允许切换地址",
970
+ "value": {
971
+ "type": "boolean",
972
+ "kind": "expression"
973
+ }
974
+ },
975
+ {
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",
986
+ "default": "-",
987
+ "description": "默认地址标签文字",
988
+ "value": {
989
+ "type": "string",
990
+ "kind": "expression"
991
+ }
992
+ }
993
+ ]
994
+ },
995
995
  {
996
996
  "name": "van-calendar",
997
997
  "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,3 +0,0 @@
1
- ### [v2.12.30](https://github.com/youzan/vant/compare/v2.12.30-beta.1...v2.12.30)
2
-
3
- `2021-10-14`