vant 2.12.31 → 2.12.34

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.31",
3
+ "version": "2.12.34",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -207,6 +207,34 @@
207
207
  "type": "() => boolean",
208
208
  "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
209
209
  },
210
+ "van-address-list/v-model": {
211
+ "type": "string",
212
+ "description": "当前选中地址的 id, 默认值: -"
213
+ },
214
+ "van-address-list/list": {
215
+ "type": "Address[]",
216
+ "description": "地址列表, 默认值: `[]`"
217
+ },
218
+ "van-address-list/disabled-list": {
219
+ "type": "Address[]",
220
+ "description": "不可配送地址列表, 默认值: `[]`"
221
+ },
222
+ "van-address-list/disabled-text": {
223
+ "type": "string",
224
+ "description": "不可配送提示文案, 默认值: -"
225
+ },
226
+ "van-address-list/switchable": {
227
+ "type": "boolean",
228
+ "description": "是否允许切换地址, 默认值: `true`"
229
+ },
230
+ "van-address-list/add-button-text": {
231
+ "type": "string",
232
+ "description": "底部按钮文字, 默认值: `新增地址`"
233
+ },
234
+ "van-address-list/default-tag-text": {
235
+ "type": "string",
236
+ "description": "默认地址标签文字, 默认值: -"
237
+ },
210
238
  "van-badge/content": {
211
239
  "type": "number | string",
212
240
  "description": "徽标内容, 默认值: -"
@@ -311,34 +339,6 @@
311
339
  "type": "boolean",
312
340
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
313
341
  },
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`"
@@ -871,22 +871,6 @@
871
871
  "type": "string",
872
872
  "description": "默认联系人标签文案, 默认值: -"
873
873
  },
874
- "van-count-down/time": {
875
- "type": "number | string",
876
- "description": "倒计时时长,单位毫秒, 默认值: `0`"
877
- },
878
- "van-count-down/format": {
879
- "type": "string",
880
- "description": "时间格式, 默认值: `HH:mm:ss`"
881
- },
882
- "van-count-down/auto-start": {
883
- "type": "boolean",
884
- "description": "是否自动开始倒计时, 默认值: `true`"
885
- },
886
- "van-count-down/millisecond": {
887
- "type": "boolean",
888
- "description": "是否开启毫秒级渲染, 默认值: `false`"
889
- },
890
874
  "van-coupon-cell/title": {
891
875
  "type": "string",
892
876
  "description": "单元格标题, 默认值: `优惠券`"
@@ -983,6 +967,22 @@
983
967
  "type": "boolean",
984
968
  "description": "是否展示可用 / 不可用数量, 默认值: `true`"
985
969
  },
970
+ "van-count-down/time": {
971
+ "type": "number | string",
972
+ "description": "倒计时时长,单位毫秒, 默认值: `0`"
973
+ },
974
+ "van-count-down/format": {
975
+ "type": "string",
976
+ "description": "时间格式, 默认值: `HH:mm:ss`"
977
+ },
978
+ "van-count-down/auto-start": {
979
+ "type": "boolean",
980
+ "description": "是否自动开始倒计时, 默认值: `true`"
981
+ },
982
+ "van-count-down/millisecond": {
983
+ "type": "boolean",
984
+ "description": "是否开启毫秒级渲染, 默认值: `false`"
985
+ },
986
986
  "van-datetime-picker/type": {
987
987
  "type": "string",
988
988
  "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
@@ -1145,7 +1145,7 @@
1145
1145
  },
1146
1146
  "van-dialog/transition": {
1147
1147
  "type": "string",
1148
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: -"
1148
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: -"
1149
1149
  },
1150
1150
  "van-dialog/get-container": {
1151
1151
  "type": "string | () => Element",
@@ -1713,7 +1713,7 @@
1713
1713
  },
1714
1714
  "van-image-preview/transition": {
1715
1715
  "type": "string",
1716
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: `van-fade`"
1716
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: `van-fade`"
1717
1717
  },
1718
1718
  "van-image-preview/get-container": {
1719
1719
  "type": "string | () => Element",
@@ -2197,7 +2197,7 @@
2197
2197
  },
2198
2198
  "van-popup/transition": {
2199
2199
  "type": "string",
2200
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性, 默认值: -"
2200
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性, 默认值: -"
2201
2201
  },
2202
2202
  "van-popup/transition-appear": {
2203
2203
  "type": "boolean",
package/vetur/tags.json CHANGED
@@ -63,6 +63,17 @@
63
63
  "is-oversea-code"
64
64
  ]
65
65
  },
66
+ "van-address-list": {
67
+ "attributes": [
68
+ "v-model",
69
+ "list",
70
+ "disabled-list",
71
+ "disabled-text",
72
+ "switchable",
73
+ "add-button-text",
74
+ "default-tag-text"
75
+ ]
76
+ },
66
77
  "van-badge": {
67
78
  "attributes": [
68
79
  "content",
@@ -97,17 +108,6 @@
97
108
  "replace"
98
109
  ]
99
110
  },
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",
@@ -313,14 +313,6 @@
313
313
  "default-tag-text"
314
314
  ]
315
315
  },
316
- "van-count-down": {
317
- "attributes": [
318
- "time",
319
- "format",
320
- "auto-start",
321
- "millisecond"
322
- ]
323
- },
324
316
  "van-coupon-cell": {
325
317
  "attributes": [
326
318
  "title",
@@ -353,6 +345,14 @@
353
345
  "show-count"
354
346
  ]
355
347
  },
348
+ "van-count-down": {
349
+ "attributes": [
350
+ "time",
351
+ "format",
352
+ "auto-start",
353
+ "millisecond"
354
+ ]
355
+ },
356
356
  "van-datetime-picker": {
357
357
  "attributes": [
358
358
  "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.31",
5
+ "version": "2.12.34",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -601,6 +601,118 @@
601
601
  }
602
602
  ]
603
603
  },
604
+ {
605
+ "name": "van-address-list",
606
+ "slots": [
607
+ {
608
+ "name": "default",
609
+ "description": "在列表下方插入内容"
610
+ },
611
+ {
612
+ "name": "top",
613
+ "description": "在顶部插入内容"
614
+ },
615
+ {
616
+ "name": "item-bottom",
617
+ "description": "在列表项底部插入内容"
618
+ },
619
+ {
620
+ "name": "tag",
621
+ "description": "列表项标签内容自定义"
622
+ }
623
+ ],
624
+ "events": [
625
+ {
626
+ "name": "add",
627
+ "description": "点击新增按钮时触发"
628
+ },
629
+ {
630
+ "name": "edit",
631
+ "description": "点击编辑按钮时触发"
632
+ },
633
+ {
634
+ "name": "select",
635
+ "description": "切换选中的地址时触发"
636
+ },
637
+ {
638
+ "name": "edit-disabled",
639
+ "description": "编辑不可配送的地址时触发"
640
+ },
641
+ {
642
+ "name": "select-disabled",
643
+ "description": "选中不可配送的地址时触发"
644
+ },
645
+ {
646
+ "name": "click-item",
647
+ "description": "点击任意地址时触发"
648
+ }
649
+ ],
650
+ "attributes": [
651
+ {
652
+ "name": "v-model",
653
+ "default": "-",
654
+ "description": "当前选中地址的 id",
655
+ "value": {
656
+ "type": "string",
657
+ "kind": "expression"
658
+ }
659
+ },
660
+ {
661
+ "name": "list",
662
+ "default": "`[]`",
663
+ "description": "地址列表",
664
+ "value": {
665
+ "type": "Address[]",
666
+ "kind": "expression"
667
+ }
668
+ },
669
+ {
670
+ "name": "disabled-list",
671
+ "default": "`[]`",
672
+ "description": "不可配送地址列表",
673
+ "value": {
674
+ "type": "Address[]",
675
+ "kind": "expression"
676
+ }
677
+ },
678
+ {
679
+ "name": "disabled-text",
680
+ "default": "-",
681
+ "description": "不可配送提示文案",
682
+ "value": {
683
+ "type": "string",
684
+ "kind": "expression"
685
+ }
686
+ },
687
+ {
688
+ "name": "switchable",
689
+ "default": "`true`",
690
+ "description": "是否允许切换地址",
691
+ "value": {
692
+ "type": "boolean",
693
+ "kind": "expression"
694
+ }
695
+ },
696
+ {
697
+ "name": "add-button-text",
698
+ "default": "`新增地址`",
699
+ "description": "底部按钮文字",
700
+ "value": {
701
+ "type": "string",
702
+ "kind": "expression"
703
+ }
704
+ },
705
+ {
706
+ "name": "default-tag-text",
707
+ "default": "-",
708
+ "description": "默认地址标签文字",
709
+ "value": {
710
+ "type": "string",
711
+ "kind": "expression"
712
+ }
713
+ }
714
+ ]
715
+ },
604
716
  {
605
717
  "name": "van-badge",
606
718
  "slots": [
@@ -880,118 +992,6 @@
880
992
  }
881
993
  ]
882
994
  },
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": [
@@ -2571,63 +2571,6 @@
2571
2571
  }
2572
2572
  ]
2573
2573
  },
2574
- {
2575
- "name": "van-count-down",
2576
- "slots": [
2577
- {
2578
- "name": "default",
2579
- "description": "自定义内容"
2580
- }
2581
- ],
2582
- "events": [
2583
- {
2584
- "name": "finish",
2585
- "description": "倒计时结束时触发"
2586
- },
2587
- {
2588
- "name": "change",
2589
- "description": "倒计时变化时触发"
2590
- }
2591
- ],
2592
- "attributes": [
2593
- {
2594
- "name": "time",
2595
- "default": "`0`",
2596
- "description": "倒计时时长,单位毫秒",
2597
- "value": {
2598
- "type": "number | string",
2599
- "kind": "expression"
2600
- }
2601
- },
2602
- {
2603
- "name": "format",
2604
- "default": "`HH:mm:ss`",
2605
- "description": "时间格式",
2606
- "value": {
2607
- "type": "string",
2608
- "kind": "expression"
2609
- }
2610
- },
2611
- {
2612
- "name": "auto-start",
2613
- "default": "`true`",
2614
- "description": "是否自动开始倒计时",
2615
- "value": {
2616
- "type": "boolean",
2617
- "kind": "expression"
2618
- }
2619
- },
2620
- {
2621
- "name": "millisecond",
2622
- "default": "`false`",
2623
- "description": "是否开启毫秒级渲染",
2624
- "value": {
2625
- "type": "boolean",
2626
- "kind": "expression"
2627
- }
2628
- }
2629
- ]
2630
- },
2631
2574
  {
2632
2575
  "name": "van-coupon-cell",
2633
2576
  "slots": [],
@@ -2876,6 +2819,63 @@
2876
2819
  }
2877
2820
  ]
2878
2821
  },
2822
+ {
2823
+ "name": "van-count-down",
2824
+ "slots": [
2825
+ {
2826
+ "name": "default",
2827
+ "description": "自定义内容"
2828
+ }
2829
+ ],
2830
+ "events": [
2831
+ {
2832
+ "name": "finish",
2833
+ "description": "倒计时结束时触发"
2834
+ },
2835
+ {
2836
+ "name": "change",
2837
+ "description": "倒计时变化时触发"
2838
+ }
2839
+ ],
2840
+ "attributes": [
2841
+ {
2842
+ "name": "time",
2843
+ "default": "`0`",
2844
+ "description": "倒计时时长,单位毫秒",
2845
+ "value": {
2846
+ "type": "number | string",
2847
+ "kind": "expression"
2848
+ }
2849
+ },
2850
+ {
2851
+ "name": "format",
2852
+ "default": "`HH:mm:ss`",
2853
+ "description": "时间格式",
2854
+ "value": {
2855
+ "type": "string",
2856
+ "kind": "expression"
2857
+ }
2858
+ },
2859
+ {
2860
+ "name": "auto-start",
2861
+ "default": "`true`",
2862
+ "description": "是否自动开始倒计时",
2863
+ "value": {
2864
+ "type": "boolean",
2865
+ "kind": "expression"
2866
+ }
2867
+ },
2868
+ {
2869
+ "name": "millisecond",
2870
+ "default": "`false`",
2871
+ "description": "是否开启毫秒级渲染",
2872
+ "value": {
2873
+ "type": "boolean",
2874
+ "kind": "expression"
2875
+ }
2876
+ }
2877
+ ]
2878
+ },
2879
2879
  {
2880
2880
  "name": "van-datetime-picker",
2881
2881
  "slots": [
@@ -3341,7 +3341,7 @@
3341
3341
  {
3342
3342
  "name": "transition",
3343
3343
  "default": "-",
3344
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
3344
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
3345
3345
  "value": {
3346
3346
  "type": "string",
3347
3347
  "kind": "expression"
@@ -4926,7 +4926,7 @@
4926
4926
  {
4927
4927
  "name": "transition",
4928
4928
  "default": "`van-fade`",
4929
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
4929
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
4930
4930
  "value": {
4931
4931
  "type": "string",
4932
4932
  "kind": "expression"
@@ -6386,7 +6386,7 @@
6386
6386
  {
6387
6387
  "name": "transition",
6388
6388
  "default": "-",
6389
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6389
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6390
6390
  "value": {
6391
6391
  "type": "string",
6392
6392
  "kind": "expression"