vant 2.12.54 → 2.13.0
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/es/icon/index.css +1 -1
- package/es/icon/local.css +1 -0
- package/es/icon/local.less +1 -1
- package/es/index.js +1 -1
- package/es/picker/PickerColumn.js +3 -4
- package/lib/icon/index.css +1 -1
- package/lib/icon/local.css +1 -0
- package/lib/icon/local.less +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/picker/PickerColumn.js +3 -4
- package/lib/vant.js +4 -5
- package/lib/vant.min.js +1 -1
- package/package.json +2 -2
- package/vetur/attributes.json +214 -214
- package/vetur/tags.json +74 -74
- package/vetur/web-types.json +559 -559
- package/changelog.generated.md +0 -12
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vant",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.13.0",
|
4
4
|
"description": "Mobile UI Components built on Vue",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -57,7 +57,7 @@
|
|
57
57
|
"license": "MIT",
|
58
58
|
"dependencies": {
|
59
59
|
"@babel/runtime": "7.x",
|
60
|
-
"@vant/icons": "^
|
60
|
+
"@vant/icons": "^3.0.0",
|
61
61
|
"@vant/popperjs": "^1.1.0",
|
62
62
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
63
63
|
"vue-lazyload": "1.2.3"
|
package/vetur/attributes.json
CHANGED
@@ -67,73 +67,137 @@
|
|
67
67
|
"type": "string | () => Element",
|
68
68
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
69
69
|
},
|
70
|
-
"van-
|
71
|
-
"type": "
|
72
|
-
"description": "
|
70
|
+
"van-address-edit/area-list": {
|
71
|
+
"type": "object",
|
72
|
+
"description": "地区列表, 默认值: -"
|
73
73
|
},
|
74
|
-
"van-
|
74
|
+
"van-address-edit/area-columns-placeholder": {
|
75
|
+
"type": "string[]",
|
76
|
+
"description": "地区选择列占位提示文字, 默认值: `[]`"
|
77
|
+
},
|
78
|
+
"van-address-edit/area-placeholder": {
|
75
79
|
"type": "string",
|
76
|
-
"description": "
|
80
|
+
"description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
|
77
81
|
},
|
78
|
-
"van-
|
82
|
+
"van-address-edit/address-info": {
|
83
|
+
"type": "AddressInfo",
|
84
|
+
"description": "收货人信息初始值, 默认值: `{}`"
|
85
|
+
},
|
86
|
+
"van-address-edit/search-result": {
|
87
|
+
"type": "SearchResult[]",
|
88
|
+
"description": "详细地址搜索结果, 默认值: `[]`"
|
89
|
+
},
|
90
|
+
"van-address-edit/show-postal": {
|
79
91
|
"type": "boolean",
|
80
|
-
"description": "
|
92
|
+
"description": "是否显示邮政编码, 默认值: `false`"
|
81
93
|
},
|
82
|
-
"van-
|
83
|
-
"type": "
|
84
|
-
"description": "
|
94
|
+
"van-address-edit/show-delete": {
|
95
|
+
"type": "boolean",
|
96
|
+
"description": "是否显示删除按钮, 默认值: `false`"
|
85
97
|
},
|
86
|
-
"van-
|
87
|
-
"type": "
|
88
|
-
"description": "
|
98
|
+
"van-address-edit/show-set-default": {
|
99
|
+
"type": "boolean",
|
100
|
+
"description": "是否显示默认地址栏, 默认值: `false`"
|
89
101
|
},
|
90
|
-
"van-
|
91
|
-
"type": "
|
92
|
-
"description": "
|
102
|
+
"van-address-edit/show-search-result": {
|
103
|
+
"type": "boolean",
|
104
|
+
"description": "是否显示搜索结果, 默认值: `false`"
|
93
105
|
},
|
94
|
-
"van-
|
106
|
+
"van-address-edit/show-area": {
|
107
|
+
"type": "boolean",
|
108
|
+
"description": "是否显示地区, 默认值: `true`"
|
109
|
+
},
|
110
|
+
"van-address-edit/show-detail": {
|
111
|
+
"type": "boolean",
|
112
|
+
"description": "是否显示详细地址, 默认值: `true`"
|
113
|
+
},
|
114
|
+
"van-address-edit/disable-area": {
|
115
|
+
"type": "boolean",
|
116
|
+
"description": "是否禁用地区选择, 默认值: `false`"
|
117
|
+
},
|
118
|
+
"van-address-edit/save-button-text": {
|
95
119
|
"type": "string",
|
96
|
-
"description": "
|
120
|
+
"description": "保存按钮文字, 默认值: `保存`"
|
97
121
|
},
|
98
|
-
"van-
|
122
|
+
"van-address-edit/delete-button-text": {
|
99
123
|
"type": "string",
|
100
|
-
"description": "
|
124
|
+
"description": "删除按钮文字, 默认值: `删除`"
|
101
125
|
},
|
102
|
-
"van-
|
103
|
-
"type": "
|
104
|
-
"description": "
|
126
|
+
"van-address-edit/detail-rows": {
|
127
|
+
"type": "number | string",
|
128
|
+
"description": "详细地址输入框行数, 默认值: `1`"
|
105
129
|
},
|
106
|
-
"van-
|
107
|
-
"type": "string
|
108
|
-
"description": "
|
130
|
+
"van-address-edit/detail-maxlength": {
|
131
|
+
"type": "number | string",
|
132
|
+
"description": "详细地址最大长度, 默认值: `200`"
|
109
133
|
},
|
110
|
-
"van-
|
134
|
+
"van-address-edit/is-saving": {
|
111
135
|
"type": "boolean",
|
112
|
-
"description": "
|
136
|
+
"description": "是否显示保存按钮加载动画, 默认值: `false`"
|
113
137
|
},
|
114
|
-
"van-
|
138
|
+
"van-address-edit/is-deleting": {
|
115
139
|
"type": "boolean",
|
116
|
-
"description": "
|
140
|
+
"description": "是否显示删除按钮加载动画, 默认值: `false`"
|
117
141
|
},
|
118
|
-
"van-
|
119
|
-
"type": "
|
120
|
-
"description": "
|
142
|
+
"van-address-edit/tel-validator": {
|
143
|
+
"type": "string => boolean",
|
144
|
+
"description": "手机号格式校验函数, 默认值: -"
|
121
145
|
},
|
122
|
-
"van-
|
146
|
+
"van-address-edit/tel-maxlength": {
|
123
147
|
"type": "number | string",
|
124
|
-
"description": "
|
148
|
+
"description": "手机号最大长度, 默认值: -"
|
125
149
|
},
|
126
|
-
"van-
|
150
|
+
"van-address-edit/postal-validator": {
|
151
|
+
"type": "string => boolean",
|
152
|
+
"description": "邮政编码格式校验函数, 默认值: -"
|
153
|
+
},
|
154
|
+
"van-address-edit/validator": {
|
155
|
+
"type": "(key, val) => string",
|
156
|
+
"description": "自定义校验函数, 默认值: -"
|
157
|
+
},
|
158
|
+
"van-badge/content": {
|
127
159
|
"type": "number | string",
|
128
|
-
"description": "
|
160
|
+
"description": "徽标内容, 默认值: -"
|
129
161
|
},
|
130
|
-
"van-
|
162
|
+
"van-badge/color": {
|
163
|
+
"type": "string",
|
164
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
165
|
+
},
|
166
|
+
"van-badge/dot": {
|
167
|
+
"type": "boolean",
|
168
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
169
|
+
},
|
170
|
+
"van-badge/max": {
|
131
171
|
"type": "number | string",
|
132
|
-
"description": "
|
172
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
133
173
|
},
|
134
|
-
"van-
|
135
|
-
"type": "
|
136
|
-
"description": "
|
174
|
+
"van-address-list/v-model": {
|
175
|
+
"type": "string",
|
176
|
+
"description": "当前选中地址的 id, 默认值: -"
|
177
|
+
},
|
178
|
+
"van-address-list/list": {
|
179
|
+
"type": "Address[]",
|
180
|
+
"description": "地址列表, 默认值: `[]`"
|
181
|
+
},
|
182
|
+
"van-address-list/disabled-list": {
|
183
|
+
"type": "Address[]",
|
184
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
185
|
+
},
|
186
|
+
"van-address-list/disabled-text": {
|
187
|
+
"type": "string",
|
188
|
+
"description": "不可配送提示文案, 默认值: -"
|
189
|
+
},
|
190
|
+
"van-address-list/switchable": {
|
191
|
+
"type": "boolean",
|
192
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
193
|
+
},
|
194
|
+
"van-address-list/add-button-text": {
|
195
|
+
"type": "string",
|
196
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
197
|
+
},
|
198
|
+
"van-address-list/default-tag-text": {
|
199
|
+
"type": "string",
|
200
|
+
"description": "默认地址标签文字, 默认值: -"
|
137
201
|
},
|
138
202
|
"van-button/type": {
|
139
203
|
"type": "string",
|
@@ -223,77 +287,57 @@
|
|
223
287
|
"type": "boolean",
|
224
288
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
225
289
|
},
|
226
|
-
"van-
|
290
|
+
"van-area/value": {
|
227
291
|
"type": "string",
|
228
|
-
"description": "
|
229
|
-
},
|
230
|
-
"van-address-list/list": {
|
231
|
-
"type": "Address[]",
|
232
|
-
"description": "地址列表, 默认值: `[]`"
|
233
|
-
},
|
234
|
-
"van-address-list/disabled-list": {
|
235
|
-
"type": "Address[]",
|
236
|
-
"description": "不可配送地址列表, 默认值: `[]`"
|
292
|
+
"description": "当前选中的省市区`code`, 默认值: -"
|
237
293
|
},
|
238
|
-
"van-
|
294
|
+
"van-area/title": {
|
239
295
|
"type": "string",
|
240
|
-
"description": "
|
241
|
-
},
|
242
|
-
"van-address-list/switchable": {
|
243
|
-
"type": "boolean",
|
244
|
-
"description": "是否允许切换地址, 默认值: `true`"
|
296
|
+
"description": "顶部栏标题, 默认值: -"
|
245
297
|
},
|
246
|
-
"van-
|
298
|
+
"van-area/confirm-button-text": {
|
247
299
|
"type": "string",
|
248
|
-
"description": "
|
300
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
249
301
|
},
|
250
|
-
"van-
|
302
|
+
"van-area/cancel-button-text": {
|
251
303
|
"type": "string",
|
252
|
-
"description": "
|
304
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
253
305
|
},
|
254
|
-
"van-
|
255
|
-
"type": "
|
256
|
-
"description": "
|
306
|
+
"van-area/area-list": {
|
307
|
+
"type": "object",
|
308
|
+
"description": "省市区数据,格式见下方, 默认值: -"
|
257
309
|
},
|
258
|
-
"van-
|
259
|
-
"type": "string",
|
260
|
-
"description": "
|
310
|
+
"van-area/columns-placeholder": {
|
311
|
+
"type": "string[]",
|
312
|
+
"description": "列占位提示文字, 默认值: `[]`"
|
261
313
|
},
|
262
|
-
"van-
|
263
|
-
"type": "
|
264
|
-
"description": "
|
314
|
+
"van-area/loading": {
|
315
|
+
"type": "boolean",
|
316
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
265
317
|
},
|
266
|
-
"van-
|
267
|
-
"type": "
|
268
|
-
"description": "
|
318
|
+
"van-area/readonly": {
|
319
|
+
"type": "boolean",
|
320
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
269
321
|
},
|
270
|
-
"van-
|
322
|
+
"van-area/item-height": {
|
271
323
|
"type": "number | string",
|
272
|
-
"description": "
|
324
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
273
325
|
},
|
274
|
-
"van-
|
326
|
+
"van-area/columns-num": {
|
275
327
|
"type": "number | string",
|
276
|
-
"description": "
|
328
|
+
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
277
329
|
},
|
278
|
-
"van-
|
330
|
+
"van-area/visible-item-count": {
|
279
331
|
"type": "number | string",
|
280
|
-
"description": "
|
281
|
-
},
|
282
|
-
"van-card/centered": {
|
283
|
-
"type": "boolean",
|
284
|
-
"description": "内容是否垂直居中, 默认值: `false`"
|
285
|
-
},
|
286
|
-
"van-card/currency": {
|
287
|
-
"type": "string",
|
288
|
-
"description": "货币符号, 默认值: `¥`"
|
332
|
+
"description": "可见的选项个数, 默认值: `6`"
|
289
333
|
},
|
290
|
-
"van-
|
291
|
-
"type": "string",
|
292
|
-
"description": "
|
334
|
+
"van-area/swipe-duration": {
|
335
|
+
"type": "number | string",
|
336
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
293
337
|
},
|
294
|
-
"van-
|
295
|
-
"type": "boolean",
|
296
|
-
"description": "
|
338
|
+
"van-area/is-oversea-code": {
|
339
|
+
"type": "() => boolean",
|
340
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
297
341
|
},
|
298
342
|
"van-calendar/type": {
|
299
343
|
"type": "string",
|
@@ -407,6 +451,50 @@
|
|
407
451
|
"type": "boolean",
|
408
452
|
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
409
453
|
},
|
454
|
+
"van-card/thumb": {
|
455
|
+
"type": "string",
|
456
|
+
"description": "左侧图片 URL, 默认值: -"
|
457
|
+
},
|
458
|
+
"van-card/title": {
|
459
|
+
"type": "string",
|
460
|
+
"description": "标题, 默认值: -"
|
461
|
+
},
|
462
|
+
"van-card/desc": {
|
463
|
+
"type": "string",
|
464
|
+
"description": "描述, 默认值: -"
|
465
|
+
},
|
466
|
+
"van-card/tag": {
|
467
|
+
"type": "string",
|
468
|
+
"description": "图片角标, 默认值: -"
|
469
|
+
},
|
470
|
+
"van-card/num": {
|
471
|
+
"type": "number | string",
|
472
|
+
"description": "商品数量, 默认值: -"
|
473
|
+
},
|
474
|
+
"van-card/price": {
|
475
|
+
"type": "number | string",
|
476
|
+
"description": "商品价格, 默认值: -"
|
477
|
+
},
|
478
|
+
"van-card/origin-price": {
|
479
|
+
"type": "number | string",
|
480
|
+
"description": "商品划线原价, 默认值: -"
|
481
|
+
},
|
482
|
+
"van-card/centered": {
|
483
|
+
"type": "boolean",
|
484
|
+
"description": "内容是否垂直居中, 默认值: `false`"
|
485
|
+
},
|
486
|
+
"van-card/currency": {
|
487
|
+
"type": "string",
|
488
|
+
"description": "货币符号, 默认值: `¥`"
|
489
|
+
},
|
490
|
+
"van-card/thumb-link": {
|
491
|
+
"type": "string",
|
492
|
+
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
493
|
+
},
|
494
|
+
"van-card/lazy-load": {
|
495
|
+
"type": "boolean",
|
496
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
497
|
+
},
|
410
498
|
"van-cascader/title": {
|
411
499
|
"type": "string",
|
412
500
|
"description": "顶部标题, 默认值: -"
|
@@ -439,94 +527,6 @@
|
|
439
527
|
"type": "object",
|
440
528
|
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
441
529
|
},
|
442
|
-
"van-address-edit/area-list": {
|
443
|
-
"type": "object",
|
444
|
-
"description": "地区列表, 默认值: -"
|
445
|
-
},
|
446
|
-
"van-address-edit/area-columns-placeholder": {
|
447
|
-
"type": "string[]",
|
448
|
-
"description": "地区选择列占位提示文字, 默认值: `[]`"
|
449
|
-
},
|
450
|
-
"van-address-edit/area-placeholder": {
|
451
|
-
"type": "string",
|
452
|
-
"description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
|
453
|
-
},
|
454
|
-
"van-address-edit/address-info": {
|
455
|
-
"type": "AddressInfo",
|
456
|
-
"description": "收货人信息初始值, 默认值: `{}`"
|
457
|
-
},
|
458
|
-
"van-address-edit/search-result": {
|
459
|
-
"type": "SearchResult[]",
|
460
|
-
"description": "详细地址搜索结果, 默认值: `[]`"
|
461
|
-
},
|
462
|
-
"van-address-edit/show-postal": {
|
463
|
-
"type": "boolean",
|
464
|
-
"description": "是否显示邮政编码, 默认值: `false`"
|
465
|
-
},
|
466
|
-
"van-address-edit/show-delete": {
|
467
|
-
"type": "boolean",
|
468
|
-
"description": "是否显示删除按钮, 默认值: `false`"
|
469
|
-
},
|
470
|
-
"van-address-edit/show-set-default": {
|
471
|
-
"type": "boolean",
|
472
|
-
"description": "是否显示默认地址栏, 默认值: `false`"
|
473
|
-
},
|
474
|
-
"van-address-edit/show-search-result": {
|
475
|
-
"type": "boolean",
|
476
|
-
"description": "是否显示搜索结果, 默认值: `false`"
|
477
|
-
},
|
478
|
-
"van-address-edit/show-area": {
|
479
|
-
"type": "boolean",
|
480
|
-
"description": "是否显示地区, 默认值: `true`"
|
481
|
-
},
|
482
|
-
"van-address-edit/show-detail": {
|
483
|
-
"type": "boolean",
|
484
|
-
"description": "是否显示详细地址, 默认值: `true`"
|
485
|
-
},
|
486
|
-
"van-address-edit/disable-area": {
|
487
|
-
"type": "boolean",
|
488
|
-
"description": "是否禁用地区选择, 默认值: `false`"
|
489
|
-
},
|
490
|
-
"van-address-edit/save-button-text": {
|
491
|
-
"type": "string",
|
492
|
-
"description": "保存按钮文字, 默认值: `保存`"
|
493
|
-
},
|
494
|
-
"van-address-edit/delete-button-text": {
|
495
|
-
"type": "string",
|
496
|
-
"description": "删除按钮文字, 默认值: `删除`"
|
497
|
-
},
|
498
|
-
"van-address-edit/detail-rows": {
|
499
|
-
"type": "number | string",
|
500
|
-
"description": "详细地址输入框行数, 默认值: `1`"
|
501
|
-
},
|
502
|
-
"van-address-edit/detail-maxlength": {
|
503
|
-
"type": "number | string",
|
504
|
-
"description": "详细地址最大长度, 默认值: `200`"
|
505
|
-
},
|
506
|
-
"van-address-edit/is-saving": {
|
507
|
-
"type": "boolean",
|
508
|
-
"description": "是否显示保存按钮加载动画, 默认值: `false`"
|
509
|
-
},
|
510
|
-
"van-address-edit/is-deleting": {
|
511
|
-
"type": "boolean",
|
512
|
-
"description": "是否显示删除按钮加载动画, 默认值: `false`"
|
513
|
-
},
|
514
|
-
"van-address-edit/tel-validator": {
|
515
|
-
"type": "string => boolean",
|
516
|
-
"description": "手机号格式校验函数, 默认值: -"
|
517
|
-
},
|
518
|
-
"van-address-edit/tel-maxlength": {
|
519
|
-
"type": "number | string",
|
520
|
-
"description": "手机号最大长度, 默认值: -"
|
521
|
-
},
|
522
|
-
"van-address-edit/postal-validator": {
|
523
|
-
"type": "string => boolean",
|
524
|
-
"description": "邮政编码格式校验函数, 默认值: -"
|
525
|
-
},
|
526
|
-
"van-address-edit/validator": {
|
527
|
-
"type": "(key, val) => string",
|
528
|
-
"description": "自定义校验函数, 默认值: -"
|
529
|
-
},
|
530
530
|
"van-cell/title": {
|
531
531
|
"type": "number | string",
|
532
532
|
"description": "左侧标题, 默认值: -"
|
@@ -1503,38 +1503,6 @@
|
|
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
|
-
},
|
1538
1506
|
"van-image/src": {
|
1539
1507
|
"type": "string",
|
1540
1508
|
"description": "图片链接, 默认值: -"
|
@@ -1587,6 +1555,38 @@
|
|
1587
1555
|
"type": "string",
|
1588
1556
|
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1589
1557
|
},
|
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 数组, 默认值: `[]`"
|