vant 2.12.49 → 2.12.50
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 -15
- package/es/index.js +1 -1
- package/es/uploader/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/uploader/index.js +1 -1
- package/lib/vant.js +2 -2
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/types/image-preview.d.ts +1 -0
- package/vetur/attributes.json +76 -76
- package/vetur/tags.json +31 -31
- package/vetur/web-types.json +253 -253
package/package.json
CHANGED
package/types/image-preview.d.ts
CHANGED
@@ -23,6 +23,7 @@ export type ImagePreviewOptions =
|
|
23
23
|
closeIconPosition?: string;
|
24
24
|
getContainer?: string | (() => Element);
|
25
25
|
onClose?(): void;
|
26
|
+
onScale?(data: { index: number; scale: number }): void;
|
26
27
|
onChange?(index: number): void;
|
27
28
|
swipeTo?(index: number, options?: SwipeToOptions): void;
|
28
29
|
};
|
package/vetur/attributes.json
CHANGED
@@ -67,34 +67,6 @@
|
|
67
67
|
"type": "string | () => Element",
|
68
68
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
69
69
|
},
|
70
|
-
"van-address-list/v-model": {
|
71
|
-
"type": "string",
|
72
|
-
"description": "当前选中地址的 id, 默认值: -"
|
73
|
-
},
|
74
|
-
"van-address-list/list": {
|
75
|
-
"type": "Address[]",
|
76
|
-
"description": "地址列表, 默认值: `[]`"
|
77
|
-
},
|
78
|
-
"van-address-list/disabled-list": {
|
79
|
-
"type": "Address[]",
|
80
|
-
"description": "不可配送地址列表, 默认值: `[]`"
|
81
|
-
},
|
82
|
-
"van-address-list/disabled-text": {
|
83
|
-
"type": "string",
|
84
|
-
"description": "不可配送提示文案, 默认值: -"
|
85
|
-
},
|
86
|
-
"van-address-list/switchable": {
|
87
|
-
"type": "boolean",
|
88
|
-
"description": "是否允许切换地址, 默认值: `true`"
|
89
|
-
},
|
90
|
-
"van-address-list/add-button-text": {
|
91
|
-
"type": "string",
|
92
|
-
"description": "底部按钮文字, 默认值: `新增地址`"
|
93
|
-
},
|
94
|
-
"van-address-list/default-tag-text": {
|
95
|
-
"type": "string",
|
96
|
-
"description": "默认地址标签文字, 默认值: -"
|
97
|
-
},
|
98
70
|
"van-address-edit/area-list": {
|
99
71
|
"type": "object",
|
100
72
|
"description": "地区列表, 默认值: -"
|
@@ -183,6 +155,34 @@
|
|
183
155
|
"type": "(key, val) => string",
|
184
156
|
"description": "自定义校验函数, 默认值: -"
|
185
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
186
|
"van-area/value": {
|
187
187
|
"type": "string",
|
188
188
|
"description": "当前选中的省市区`code`, 默认值: -"
|
@@ -795,22 +795,6 @@
|
|
795
795
|
"type": "string",
|
796
796
|
"description": "添加时的文案提示, 默认值: `添加联系人`"
|
797
797
|
},
|
798
|
-
"van-contact-list/v-model": {
|
799
|
-
"type": "number | string",
|
800
|
-
"description": "当前选中联系人的 id, 默认值: -"
|
801
|
-
},
|
802
|
-
"van-contact-list/list": {
|
803
|
-
"type": "Contact[]",
|
804
|
-
"description": "联系人列表, 默认值: `[]`"
|
805
|
-
},
|
806
|
-
"van-contact-list/add-text": {
|
807
|
-
"type": "string",
|
808
|
-
"description": "新建按钮文案, 默认值: `新建联系人`"
|
809
|
-
},
|
810
|
-
"van-contact-list/default-tag-text": {
|
811
|
-
"type": "string",
|
812
|
-
"description": "默认联系人标签文案, 默认值: -"
|
813
|
-
},
|
814
798
|
"van-contact-edit/contact-info": {
|
815
799
|
"type": "Contact",
|
816
800
|
"description": "联系人信息, 默认值: `{}`"
|
@@ -839,6 +823,22 @@
|
|
839
823
|
"type": "string",
|
840
824
|
"description": "默认联系人栏文案, 默认值: -"
|
841
825
|
},
|
826
|
+
"van-contact-list/v-model": {
|
827
|
+
"type": "number | string",
|
828
|
+
"description": "当前选中联系人的 id, 默认值: -"
|
829
|
+
},
|
830
|
+
"van-contact-list/list": {
|
831
|
+
"type": "Contact[]",
|
832
|
+
"description": "联系人列表, 默认值: `[]`"
|
833
|
+
},
|
834
|
+
"van-contact-list/add-text": {
|
835
|
+
"type": "string",
|
836
|
+
"description": "新建按钮文案, 默认值: `新建联系人`"
|
837
|
+
},
|
838
|
+
"van-contact-list/default-tag-text": {
|
839
|
+
"type": "string",
|
840
|
+
"description": "默认联系人标签文案, 默认值: -"
|
841
|
+
},
|
842
842
|
"van-count-down/time": {
|
843
843
|
"type": "number | string",
|
844
844
|
"description": "倒计时时长,单位毫秒, 默认值: `0`"
|
@@ -1503,6 +1503,38 @@
|
|
1503
1503
|
"type": "boolean",
|
1504
1504
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1505
1505
|
},
|
1506
|
+
"van-icon/name": {
|
1507
|
+
"type": "string",
|
1508
|
+
"description": "图标名称或图片链接, 默认值: -"
|
1509
|
+
},
|
1510
|
+
"van-icon/dot": {
|
1511
|
+
"type": "boolean",
|
1512
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1513
|
+
},
|
1514
|
+
"van-icon/badge": {
|
1515
|
+
"type": "number | string",
|
1516
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1517
|
+
},
|
1518
|
+
"van-icon/info": {
|
1519
|
+
"type": "number | string",
|
1520
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
1521
|
+
},
|
1522
|
+
"van-icon/color": {
|
1523
|
+
"type": "string",
|
1524
|
+
"description": "图标颜色, 默认值: `inherit`"
|
1525
|
+
},
|
1526
|
+
"van-icon/size": {
|
1527
|
+
"type": "number | string",
|
1528
|
+
"description": "图标大小,如 `20px` `2em`,默认单位为`px`, 默认值: `inherit`"
|
1529
|
+
},
|
1530
|
+
"van-icon/class-prefix": {
|
1531
|
+
"type": "string",
|
1532
|
+
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1533
|
+
},
|
1534
|
+
"van-icon/tag": {
|
1535
|
+
"type": "string",
|
1536
|
+
"description": "HTML 标签, 默认值: `i`"
|
1537
|
+
},
|
1506
1538
|
"van-image/src": {
|
1507
1539
|
"type": "string",
|
1508
1540
|
"description": "图片链接, 默认值: -"
|
@@ -1555,38 +1587,6 @@
|
|
1555
1587
|
"type": "string",
|
1556
1588
|
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1557
1589
|
},
|
1558
|
-
"van-icon/name": {
|
1559
|
-
"type": "string",
|
1560
|
-
"description": "图标名称或图片链接, 默认值: -"
|
1561
|
-
},
|
1562
|
-
"van-icon/dot": {
|
1563
|
-
"type": "boolean",
|
1564
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1565
|
-
},
|
1566
|
-
"van-icon/badge": {
|
1567
|
-
"type": "number | string",
|
1568
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1569
|
-
},
|
1570
|
-
"van-icon/info": {
|
1571
|
-
"type": "number | string",
|
1572
|
-
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
1573
|
-
},
|
1574
|
-
"van-icon/color": {
|
1575
|
-
"type": "string",
|
1576
|
-
"description": "图标颜色, 默认值: `inherit`"
|
1577
|
-
},
|
1578
|
-
"van-icon/size": {
|
1579
|
-
"type": "number | string",
|
1580
|
-
"description": "图标大小,如 `20px` `2em`,默认单位为`px`, 默认值: `inherit`"
|
1581
|
-
},
|
1582
|
-
"van-icon/class-prefix": {
|
1583
|
-
"type": "string",
|
1584
|
-
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1585
|
-
},
|
1586
|
-
"van-icon/tag": {
|
1587
|
-
"type": "string",
|
1588
|
-
"description": "HTML 标签, 默认值: `i`"
|
1589
|
-
},
|
1590
1590
|
"van-image-preview/images": {
|
1591
1591
|
"type": "string[]",
|
1592
1592
|
"description": "需要预览的图片 URL 数组, 默认值: `[]`"
|
package/vetur/tags.json
CHANGED
@@ -20,17 +20,6 @@
|
|
20
20
|
"get-container"
|
21
21
|
]
|
22
22
|
},
|
23
|
-
"van-address-list": {
|
24
|
-
"attributes": [
|
25
|
-
"v-model",
|
26
|
-
"list",
|
27
|
-
"disabled-list",
|
28
|
-
"disabled-text",
|
29
|
-
"switchable",
|
30
|
-
"add-button-text",
|
31
|
-
"default-tag-text"
|
32
|
-
]
|
33
|
-
},
|
34
23
|
"van-address-edit": {
|
35
24
|
"attributes": [
|
36
25
|
"area-list",
|
@@ -57,6 +46,17 @@
|
|
57
46
|
"validator"
|
58
47
|
]
|
59
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
60
|
"van-area": {
|
61
61
|
"attributes": [
|
62
62
|
"value",
|
@@ -268,14 +268,6 @@
|
|
268
268
|
"add-text"
|
269
269
|
]
|
270
270
|
},
|
271
|
-
"van-contact-list": {
|
272
|
-
"attributes": [
|
273
|
-
"v-model",
|
274
|
-
"list",
|
275
|
-
"add-text",
|
276
|
-
"default-tag-text"
|
277
|
-
]
|
278
|
-
},
|
279
271
|
"van-contact-edit": {
|
280
272
|
"attributes": [
|
281
273
|
"contact-info",
|
@@ -287,6 +279,14 @@
|
|
287
279
|
"set-default-label"
|
288
280
|
]
|
289
281
|
},
|
282
|
+
"van-contact-list": {
|
283
|
+
"attributes": [
|
284
|
+
"v-model",
|
285
|
+
"list",
|
286
|
+
"add-text",
|
287
|
+
"default-tag-text"
|
288
|
+
]
|
289
|
+
},
|
290
290
|
"van-count-down": {
|
291
291
|
"attributes": [
|
292
292
|
"time",
|
@@ -506,6 +506,18 @@
|
|
506
506
|
"replace"
|
507
507
|
]
|
508
508
|
},
|
509
|
+
"van-icon": {
|
510
|
+
"attributes": [
|
511
|
+
"name",
|
512
|
+
"dot",
|
513
|
+
"badge",
|
514
|
+
"info",
|
515
|
+
"color",
|
516
|
+
"size",
|
517
|
+
"class-prefix",
|
518
|
+
"tag"
|
519
|
+
]
|
520
|
+
},
|
509
521
|
"van-image": {
|
510
522
|
"attributes": [
|
511
523
|
"src",
|
@@ -523,18 +535,6 @@
|
|
523
535
|
"icon-prefix"
|
524
536
|
]
|
525
537
|
},
|
526
|
-
"van-icon": {
|
527
|
-
"attributes": [
|
528
|
-
"name",
|
529
|
-
"dot",
|
530
|
-
"badge",
|
531
|
-
"info",
|
532
|
-
"color",
|
533
|
-
"size",
|
534
|
-
"class-prefix",
|
535
|
-
"tag"
|
536
|
-
]
|
537
|
-
},
|
538
538
|
"van-image-preview": {
|
539
539
|
"attributes": [
|
540
540
|
"images",
|