vant 2.12.53 → 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/es/popover/index.js +14 -2
- package/es/search/index.css +1 -1
- package/es/search/index.less +1 -1
- 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/popover/index.js +13 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.less +1 -1
- package/lib/vant.js +17 -6
- package/lib/vant.min.js +1 -1
- package/package.json +2 -2
- package/vetur/attributes.json +364 -364
- package/vetur/tags.json +123 -123
- package/vetur/web-types.json +949 -949
package/vetur/attributes.json
CHANGED
@@ -1,32 +1,4 @@
|
|
1
1
|
{
|
2
|
-
"van-address-list/v-model": {
|
3
|
-
"type": "string",
|
4
|
-
"description": "当前选中地址的 id, 默认值: -"
|
5
|
-
},
|
6
|
-
"van-address-list/list": {
|
7
|
-
"type": "Address[]",
|
8
|
-
"description": "地址列表, 默认值: `[]`"
|
9
|
-
},
|
10
|
-
"van-address-list/disabled-list": {
|
11
|
-
"type": "Address[]",
|
12
|
-
"description": "不可配送地址列表, 默认值: `[]`"
|
13
|
-
},
|
14
|
-
"van-address-list/disabled-text": {
|
15
|
-
"type": "string",
|
16
|
-
"description": "不可配送提示文案, 默认值: -"
|
17
|
-
},
|
18
|
-
"van-address-list/switchable": {
|
19
|
-
"type": "boolean",
|
20
|
-
"description": "是否允许切换地址, 默认值: `true`"
|
21
|
-
},
|
22
|
-
"van-address-list/add-button-text": {
|
23
|
-
"type": "string",
|
24
|
-
"description": "底部按钮文字, 默认值: `新增地址`"
|
25
|
-
},
|
26
|
-
"van-address-list/default-tag-text": {
|
27
|
-
"type": "string",
|
28
|
-
"description": "默认地址标签文字, 默认值: -"
|
29
|
-
},
|
30
2
|
"van-action-sheet/v-model (value)": {
|
31
3
|
"type": "boolean",
|
32
4
|
"description": "是否显示动作面板, 默认值: `false`"
|
@@ -183,57 +155,49 @@
|
|
183
155
|
"type": "(key, val) => string",
|
184
156
|
"description": "自定义校验函数, 默认值: -"
|
185
157
|
},
|
186
|
-
"van-
|
187
|
-
"type": "string",
|
188
|
-
"description": "
|
158
|
+
"van-badge/content": {
|
159
|
+
"type": "number | string",
|
160
|
+
"description": "徽标内容, 默认值: -"
|
189
161
|
},
|
190
|
-
"van-
|
162
|
+
"van-badge/color": {
|
191
163
|
"type": "string",
|
192
|
-
"description": "
|
164
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
193
165
|
},
|
194
|
-
"van-
|
195
|
-
"type": "
|
196
|
-
"description": "
|
166
|
+
"van-badge/dot": {
|
167
|
+
"type": "boolean",
|
168
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
197
169
|
},
|
198
|
-
"van-
|
170
|
+
"van-badge/max": {
|
171
|
+
"type": "number | string",
|
172
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
173
|
+
},
|
174
|
+
"van-address-list/v-model": {
|
199
175
|
"type": "string",
|
200
|
-
"description": "
|
176
|
+
"description": "当前选中地址的 id, 默认值: -"
|
201
177
|
},
|
202
|
-
"van-
|
203
|
-
"type": "
|
204
|
-
"description": "
|
178
|
+
"van-address-list/list": {
|
179
|
+
"type": "Address[]",
|
180
|
+
"description": "地址列表, 默认值: `[]`"
|
205
181
|
},
|
206
|
-
"van-
|
207
|
-
"type": "
|
208
|
-
"description": "
|
182
|
+
"van-address-list/disabled-list": {
|
183
|
+
"type": "Address[]",
|
184
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
209
185
|
},
|
210
|
-
"van-
|
211
|
-
"type": "
|
212
|
-
"description": "
|
186
|
+
"van-address-list/disabled-text": {
|
187
|
+
"type": "string",
|
188
|
+
"description": "不可配送提示文案, 默认值: -"
|
213
189
|
},
|
214
|
-
"van-
|
190
|
+
"van-address-list/switchable": {
|
215
191
|
"type": "boolean",
|
216
|
-
"description": "
|
217
|
-
},
|
218
|
-
"van-area/item-height": {
|
219
|
-
"type": "number | string",
|
220
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
221
|
-
},
|
222
|
-
"van-area/columns-num": {
|
223
|
-
"type": "number | string",
|
224
|
-
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
225
|
-
},
|
226
|
-
"van-area/visible-item-count": {
|
227
|
-
"type": "number | string",
|
228
|
-
"description": "可见的选项个数, 默认值: `6`"
|
192
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
229
193
|
},
|
230
|
-
"van-
|
231
|
-
"type": "
|
232
|
-
"description": "
|
194
|
+
"van-address-list/add-button-text": {
|
195
|
+
"type": "string",
|
196
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
233
197
|
},
|
234
|
-
"van-
|
235
|
-
"type": "
|
236
|
-
"description": "
|
198
|
+
"van-address-list/default-tag-text": {
|
199
|
+
"type": "string",
|
200
|
+
"description": "默认地址标签文字, 默认值: -"
|
237
201
|
},
|
238
202
|
"van-button/type": {
|
239
203
|
"type": "string",
|
@@ -323,21 +287,57 @@
|
|
323
287
|
"type": "boolean",
|
324
288
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
325
289
|
},
|
326
|
-
"van-
|
327
|
-
"type": "
|
328
|
-
"description": "
|
290
|
+
"van-area/value": {
|
291
|
+
"type": "string",
|
292
|
+
"description": "当前选中的省市区`code`, 默认值: -"
|
329
293
|
},
|
330
|
-
"van-
|
294
|
+
"van-area/title": {
|
331
295
|
"type": "string",
|
332
|
-
"description": "
|
296
|
+
"description": "顶部栏标题, 默认值: -"
|
333
297
|
},
|
334
|
-
"van-
|
298
|
+
"van-area/confirm-button-text": {
|
299
|
+
"type": "string",
|
300
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
301
|
+
},
|
302
|
+
"van-area/cancel-button-text": {
|
303
|
+
"type": "string",
|
304
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
305
|
+
},
|
306
|
+
"van-area/area-list": {
|
307
|
+
"type": "object",
|
308
|
+
"description": "省市区数据,格式见下方, 默认值: -"
|
309
|
+
},
|
310
|
+
"van-area/columns-placeholder": {
|
311
|
+
"type": "string[]",
|
312
|
+
"description": "列占位提示文字, 默认值: `[]`"
|
313
|
+
},
|
314
|
+
"van-area/loading": {
|
335
315
|
"type": "boolean",
|
336
|
-
"description": "
|
316
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
337
317
|
},
|
338
|
-
"van-
|
318
|
+
"van-area/readonly": {
|
319
|
+
"type": "boolean",
|
320
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
321
|
+
},
|
322
|
+
"van-area/item-height": {
|
339
323
|
"type": "number | string",
|
340
|
-
"description": "
|
324
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
325
|
+
},
|
326
|
+
"van-area/columns-num": {
|
327
|
+
"type": "number | string",
|
328
|
+
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
329
|
+
},
|
330
|
+
"van-area/visible-item-count": {
|
331
|
+
"type": "number | string",
|
332
|
+
"description": "可见的选项个数, 默认值: `6`"
|
333
|
+
},
|
334
|
+
"van-area/swipe-duration": {
|
335
|
+
"type": "number | string",
|
336
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
337
|
+
},
|
338
|
+
"van-area/is-oversea-code": {
|
339
|
+
"type": "() => boolean",
|
340
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
341
341
|
},
|
342
342
|
"van-calendar/type": {
|
343
343
|
"type": "string",
|
@@ -603,50 +603,6 @@
|
|
603
603
|
"type": "any",
|
604
604
|
"description": "描述信息额外类名, 默认值: -"
|
605
605
|
},
|
606
|
-
"van-circle/v-model": {
|
607
|
-
"type": "number",
|
608
|
-
"description": "当前进度, 默认值: -"
|
609
|
-
},
|
610
|
-
"van-circle/rate": {
|
611
|
-
"type": "number | string",
|
612
|
-
"description": "目标进度, 默认值: `100`"
|
613
|
-
},
|
614
|
-
"van-circle/size": {
|
615
|
-
"type": "number | string",
|
616
|
-
"description": "圆环直径,默认单位为 `px`, 默认值: `100px`"
|
617
|
-
},
|
618
|
-
"van-circle/color": {
|
619
|
-
"type": "string | object",
|
620
|
-
"description": "进度条颜色,传入对象格式可以定义渐变色, 默认值: `#1989fa`"
|
621
|
-
},
|
622
|
-
"van-circle/layer-color": {
|
623
|
-
"type": "string",
|
624
|
-
"description": "轨道颜色, 默认值: `white`"
|
625
|
-
},
|
626
|
-
"van-circle/fill": {
|
627
|
-
"type": "string",
|
628
|
-
"description": "填充颜色, 默认值: `none`"
|
629
|
-
},
|
630
|
-
"van-circle/speed": {
|
631
|
-
"type": "number | string",
|
632
|
-
"description": "动画速度(单位为 rate/s), 默认值: `0`"
|
633
|
-
},
|
634
|
-
"van-circle/text": {
|
635
|
-
"type": "string",
|
636
|
-
"description": "文字, 默认值: -"
|
637
|
-
},
|
638
|
-
"van-circle/stroke-width": {
|
639
|
-
"type": "number | string",
|
640
|
-
"description": "进度条宽度, 默认值: `40`"
|
641
|
-
},
|
642
|
-
"van-circle/stroke-linecap": {
|
643
|
-
"type": "string",
|
644
|
-
"description": "进度条端点的形状,可选值为`square` `butt`, 默认值: `round`"
|
645
|
-
},
|
646
|
-
"van-circle/clockwise": {
|
647
|
-
"type": "boolean",
|
648
|
-
"description": "是否顺时针增加, 默认值: `true`"
|
649
|
-
},
|
650
606
|
"van-checkbox/v-model (value)": {
|
651
607
|
"type": "any[]",
|
652
608
|
"description": "所有选中项的标识符, 默认值: -"
|
@@ -691,6 +647,50 @@
|
|
691
647
|
"type": "string",
|
692
648
|
"description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
|
693
649
|
},
|
650
|
+
"van-circle/v-model": {
|
651
|
+
"type": "number",
|
652
|
+
"description": "当前进度, 默认值: -"
|
653
|
+
},
|
654
|
+
"van-circle/rate": {
|
655
|
+
"type": "number | string",
|
656
|
+
"description": "目标进度, 默认值: `100`"
|
657
|
+
},
|
658
|
+
"van-circle/size": {
|
659
|
+
"type": "number | string",
|
660
|
+
"description": "圆环直径,默认单位为 `px`, 默认值: `100px`"
|
661
|
+
},
|
662
|
+
"van-circle/color": {
|
663
|
+
"type": "string | object",
|
664
|
+
"description": "进度条颜色,传入对象格式可以定义渐变色, 默认值: `#1989fa`"
|
665
|
+
},
|
666
|
+
"van-circle/layer-color": {
|
667
|
+
"type": "string",
|
668
|
+
"description": "轨道颜色, 默认值: `white`"
|
669
|
+
},
|
670
|
+
"van-circle/fill": {
|
671
|
+
"type": "string",
|
672
|
+
"description": "填充颜色, 默认值: `none`"
|
673
|
+
},
|
674
|
+
"van-circle/speed": {
|
675
|
+
"type": "number | string",
|
676
|
+
"description": "动画速度(单位为 rate/s), 默认值: `0`"
|
677
|
+
},
|
678
|
+
"van-circle/text": {
|
679
|
+
"type": "string",
|
680
|
+
"description": "文字, 默认值: -"
|
681
|
+
},
|
682
|
+
"van-circle/stroke-width": {
|
683
|
+
"type": "number | string",
|
684
|
+
"description": "进度条宽度, 默认值: `40`"
|
685
|
+
},
|
686
|
+
"van-circle/stroke-linecap": {
|
687
|
+
"type": "string",
|
688
|
+
"description": "进度条端点的形状,可选值为`square` `butt`, 默认值: `round`"
|
689
|
+
},
|
690
|
+
"van-circle/clockwise": {
|
691
|
+
"type": "boolean",
|
692
|
+
"description": "是否顺时针增加, 默认值: `true`"
|
693
|
+
},
|
694
694
|
"van-layout/type": {
|
695
695
|
"type": "string",
|
696
696
|
"description": "布局方式,可选值为`flex`, 默认值: -"
|
@@ -1015,18 +1015,6 @@
|
|
1015
1015
|
"type": "number | string",
|
1016
1016
|
"description": "可选的最大分钟, 默认值: `59`"
|
1017
1017
|
},
|
1018
|
-
"van-divider/dashed": {
|
1019
|
-
"type": "boolean",
|
1020
|
-
"description": "是否使用虚线, 默认值: `false`"
|
1021
|
-
},
|
1022
|
-
"van-divider/hairline": {
|
1023
|
-
"type": "boolean",
|
1024
|
-
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1025
|
-
},
|
1026
|
-
"van-divider/content-position": {
|
1027
|
-
"type": "string",
|
1028
|
-
"description": "内容位置,可选值为`left` `right`, 默认值: `center`"
|
1029
|
-
},
|
1030
1018
|
"van-dialog/v-model": {
|
1031
1019
|
"type": "boolean",
|
1032
1020
|
"description": "是否显示弹窗, 默认值: -"
|
@@ -1119,6 +1107,18 @@
|
|
1119
1107
|
"type": "string | () => Element",
|
1120
1108
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
1121
1109
|
},
|
1110
|
+
"van-divider/dashed": {
|
1111
|
+
"type": "boolean",
|
1112
|
+
"description": "是否使用虚线, 默认值: `false`"
|
1113
|
+
},
|
1114
|
+
"van-divider/hairline": {
|
1115
|
+
"type": "boolean",
|
1116
|
+
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1117
|
+
},
|
1118
|
+
"van-divider/content-position": {
|
1119
|
+
"type": "string",
|
1120
|
+
"description": "内容位置,可选值为`left` `right`, 默认值: `center`"
|
1121
|
+
},
|
1122
1122
|
"van-dropdown-menu/active-color": {
|
1123
1123
|
"type": "string",
|
1124
1124
|
"description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
|
@@ -1187,253 +1187,253 @@
|
|
1187
1187
|
"type": "string",
|
1188
1188
|
"description": "图片下方的描述文字, 默认值: -"
|
1189
1189
|
},
|
1190
|
-
"van-
|
1190
|
+
"van-field/v-model (value)": {
|
1191
1191
|
"type": "number | string",
|
1192
|
-
"description": "
|
1192
|
+
"description": "当前输入的值, 默认值: -"
|
1193
1193
|
},
|
1194
|
-
"van-
|
1194
|
+
"van-field/label": {
|
1195
1195
|
"type": "string",
|
1196
|
-
"description": "
|
1196
|
+
"description": "输入框左侧文本, 默认值: -"
|
1197
1197
|
},
|
1198
|
-
"van-
|
1198
|
+
"van-field/name": {
|
1199
1199
|
"type": "string",
|
1200
|
-
"description": "
|
1200
|
+
"description": "名称,提交表单的标识符, 默认值: -"
|
1201
1201
|
},
|
1202
|
-
"van-
|
1202
|
+
"van-field/type": {
|
1203
1203
|
"type": "string",
|
1204
|
-
"description": "
|
1204
|
+
"description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等, 默认值: `text`"
|
1205
1205
|
},
|
1206
|
-
"van-
|
1206
|
+
"van-field/size": {
|
1207
1207
|
"type": "string",
|
1208
|
-
"description": "
|
1208
|
+
"description": "大小,可选值为 `large`, 默认值: -"
|
1209
1209
|
},
|
1210
|
-
"van-
|
1210
|
+
"van-field/maxlength": {
|
1211
|
+
"type": "number | string",
|
1212
|
+
"description": "输入的最大字符数, 默认值: -"
|
1213
|
+
},
|
1214
|
+
"van-field/placeholder": {
|
1215
|
+
"type": "string",
|
1216
|
+
"description": "输入框占位提示文字, 默认值: -"
|
1217
|
+
},
|
1218
|
+
"van-field/border": {
|
1219
|
+
"type": "boolean",
|
1220
|
+
"description": "是否显示内边框, 默认值: `true`"
|
1221
|
+
},
|
1222
|
+
"van-field/disabled": {
|
1223
|
+
"type": "boolean",
|
1224
|
+
"description": "是否禁用输入框, 默认值: `false`"
|
1225
|
+
},
|
1226
|
+
"van-field/readonly": {
|
1227
|
+
"type": "boolean",
|
1228
|
+
"description": "是否只读, 默认值: `false`"
|
1229
|
+
},
|
1230
|
+
"van-field/colon": {
|
1211
1231
|
"type": "boolean",
|
1212
1232
|
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1213
1233
|
},
|
1214
|
-
"van-
|
1234
|
+
"van-field/required": {
|
1215
1235
|
"type": "boolean",
|
1216
|
-
"description": "
|
1236
|
+
"description": "是否显示表单必填星号, 默认值: `false`"
|
1217
1237
|
},
|
1218
|
-
"van-
|
1238
|
+
"van-field/center": {
|
1219
1239
|
"type": "boolean",
|
1220
|
-
"description": "
|
1240
|
+
"description": "是否使内容垂直居中, 默认值: `false`"
|
1221
1241
|
},
|
1222
|
-
"van-
|
1242
|
+
"van-field/clearable": {
|
1223
1243
|
"type": "boolean",
|
1224
|
-
"description": "
|
1244
|
+
"description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `false`"
|
1225
1245
|
},
|
1226
|
-
"van-
|
1246
|
+
"van-field/clear-trigger": {
|
1247
|
+
"type": "string",
|
1248
|
+
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
|
1249
|
+
},
|
1250
|
+
"van-field/clickable": {
|
1227
1251
|
"type": "boolean",
|
1228
|
-
"description": "
|
1252
|
+
"description": "是否开启点击反馈, 默认值: `false`"
|
1229
1253
|
},
|
1230
|
-
"van-
|
1254
|
+
"van-field/is-link": {
|
1231
1255
|
"type": "boolean",
|
1232
|
-
"description": "
|
1256
|
+
"description": "是否展示右侧箭头并开启点击反馈, 默认值: `false`"
|
1233
1257
|
},
|
1234
|
-
"van-
|
1258
|
+
"van-field/autofocus": {
|
1235
1259
|
"type": "boolean",
|
1236
|
-
"description": "
|
1260
|
+
"description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
|
1237
1261
|
},
|
1238
|
-
"van-
|
1262
|
+
"van-field/show-word-limit": {
|
1239
1263
|
"type": "boolean",
|
1240
|
-
"description": "
|
1264
|
+
"description": "是否显示字数统计,需要设置`maxlength`属性, 默认值: `false`"
|
1241
1265
|
},
|
1242
|
-
"van-
|
1266
|
+
"van-field/error": {
|
1243
1267
|
"type": "boolean",
|
1244
|
-
"description": "
|
1268
|
+
"description": "是否将输入内容标红, 默认值: `false`"
|
1245
1269
|
},
|
1246
|
-
"van-
|
1270
|
+
"van-field/error-message": {
|
1247
1271
|
"type": "string",
|
1248
|
-
"description": "
|
1272
|
+
"description": "底部错误提示文案,为空时不展示, 默认值: -"
|
1249
1273
|
},
|
1250
|
-
"van-
|
1274
|
+
"van-field/formatter": {
|
1275
|
+
"type": "Function",
|
1276
|
+
"description": "输入内容格式化函数, 默认值: -"
|
1277
|
+
},
|
1278
|
+
"van-field/format-trigger": {
|
1251
1279
|
"type": "string",
|
1252
|
-
"description": "
|
1280
|
+
"description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
|
1253
1281
|
},
|
1254
|
-
"van-
|
1282
|
+
"van-field/arrow-direction": {
|
1255
1283
|
"type": "string",
|
1256
|
-
"description": "
|
1284
|
+
"description": "箭头方向,可选值为 `left` `up` `down`, 默认值: `right`"
|
1257
1285
|
},
|
1258
|
-
"van-
|
1286
|
+
"van-field/label-class": {
|
1259
1287
|
"type": "any",
|
1260
|
-
"description": "
|
1261
|
-
},
|
1262
|
-
"van-goods-action/dot": {
|
1263
|
-
"type": "boolean",
|
1264
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1265
|
-
},
|
1266
|
-
"van-goods-action/badge": {
|
1267
|
-
"type": "number | string",
|
1268
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1288
|
+
"description": "左侧文本额外类名, 默认值: -"
|
1269
1289
|
},
|
1270
|
-
"van-
|
1290
|
+
"van-field/label-width": {
|
1271
1291
|
"type": "number | string",
|
1272
|
-
"description": "
|
1292
|
+
"description": "左侧文本宽度,默认单位为`px`, 默认值: `6.2em`"
|
1273
1293
|
},
|
1274
|
-
"van-
|
1294
|
+
"van-field/label-align": {
|
1275
1295
|
"type": "string",
|
1276
|
-
"description": "
|
1277
|
-
},
|
1278
|
-
"van-goods-action/to": {
|
1279
|
-
"type": "string | object",
|
1280
|
-
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1281
|
-
},
|
1282
|
-
"van-goods-action/replace": {
|
1283
|
-
"type": "boolean",
|
1284
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1296
|
+
"description": "左侧文本对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1285
1297
|
},
|
1286
|
-
"van-
|
1298
|
+
"van-field/input-align": {
|
1287
1299
|
"type": "string",
|
1288
|
-
"description": "
|
1289
|
-
},
|
1290
|
-
"van-goods-action/disabled": {
|
1291
|
-
"type": "boolean",
|
1292
|
-
"description": "是否禁用按钮, 默认值: `false`"
|
1300
|
+
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1293
1301
|
},
|
1294
|
-
"van-
|
1295
|
-
"type": "
|
1296
|
-
"description": "
|
1302
|
+
"van-field/error-message-align": {
|
1303
|
+
"type": "string",
|
1304
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1297
1305
|
},
|
1298
|
-
"van-field/
|
1299
|
-
"type": "
|
1300
|
-
"description": "
|
1306
|
+
"van-field/autosize": {
|
1307
|
+
"type": "boolean | object",
|
1308
|
+
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`, 默认值: `false`"
|
1301
1309
|
},
|
1302
|
-
"van-field/
|
1310
|
+
"van-field/left-icon": {
|
1303
1311
|
"type": "string",
|
1304
|
-
"description": "
|
1312
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1305
1313
|
},
|
1306
|
-
"van-field/
|
1314
|
+
"van-field/right-icon": {
|
1307
1315
|
"type": "string",
|
1308
|
-
"description": "
|
1316
|
+
"description": "右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1309
1317
|
},
|
1310
|
-
"van-field/
|
1318
|
+
"van-field/icon-prefix": {
|
1311
1319
|
"type": "string",
|
1312
|
-
"description": "
|
1320
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1313
1321
|
},
|
1314
|
-
"van-field/
|
1322
|
+
"van-field/rules": {
|
1323
|
+
"type": "Rule[]",
|
1324
|
+
"description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou), 默认值: -"
|
1325
|
+
},
|
1326
|
+
"van-field/autocomplete": {
|
1315
1327
|
"type": "string",
|
1316
|
-
"description": "
|
1328
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
1317
1329
|
},
|
1318
|
-
"van-
|
1330
|
+
"van-form/label-width": {
|
1319
1331
|
"type": "number | string",
|
1320
|
-
"description": "
|
1332
|
+
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1321
1333
|
},
|
1322
|
-
"van-
|
1334
|
+
"van-form/label-align": {
|
1323
1335
|
"type": "string",
|
1324
|
-
"description": "
|
1336
|
+
"description": "表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1325
1337
|
},
|
1326
|
-
"van-
|
1327
|
-
"type": "
|
1328
|
-
"description": "
|
1338
|
+
"van-form/input-align": {
|
1339
|
+
"type": "string",
|
1340
|
+
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1329
1341
|
},
|
1330
|
-
"van-
|
1331
|
-
"type": "
|
1332
|
-
"description": "
|
1342
|
+
"van-form/error-message-align": {
|
1343
|
+
"type": "string",
|
1344
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1333
1345
|
},
|
1334
|
-
"van-
|
1335
|
-
"type": "
|
1336
|
-
"description": "
|
1346
|
+
"van-form/validate-trigger": {
|
1347
|
+
"type": "string",
|
1348
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
|
1337
1349
|
},
|
1338
|
-
"van-
|
1350
|
+
"van-form/colon": {
|
1339
1351
|
"type": "boolean",
|
1340
1352
|
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1341
1353
|
},
|
1342
|
-
"van-
|
1343
|
-
"type": "boolean",
|
1344
|
-
"description": "是否显示表单必填星号, 默认值: `false`"
|
1345
|
-
},
|
1346
|
-
"van-field/center": {
|
1354
|
+
"van-form/disabled": {
|
1347
1355
|
"type": "boolean",
|
1348
|
-
"description": "
|
1356
|
+
"description": "是否禁用表单中的所有输入框, 默认值: `false`"
|
1349
1357
|
},
|
1350
|
-
"van-
|
1358
|
+
"van-form/readonly": {
|
1351
1359
|
"type": "boolean",
|
1352
|
-
"description": "
|
1360
|
+
"description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
|
1353
1361
|
},
|
1354
|
-
"van-
|
1355
|
-
"type": "
|
1356
|
-
"description": "
|
1362
|
+
"van-form/validate-first": {
|
1363
|
+
"type": "boolean",
|
1364
|
+
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1357
1365
|
},
|
1358
|
-
"van-
|
1366
|
+
"van-form/scroll-to-error": {
|
1359
1367
|
"type": "boolean",
|
1360
|
-
"description": "
|
1368
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
|
1361
1369
|
},
|
1362
|
-
"van-
|
1370
|
+
"van-form/show-error": {
|
1363
1371
|
"type": "boolean",
|
1364
|
-
"description": "
|
1372
|
+
"description": "是否在校验不通过时标红输入框, 默认值: `true`"
|
1365
1373
|
},
|
1366
|
-
"van-
|
1374
|
+
"van-form/show-error-message": {
|
1367
1375
|
"type": "boolean",
|
1368
|
-
"description": "
|
1376
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
|
1369
1377
|
},
|
1370
|
-
"van-
|
1378
|
+
"van-form/submit-on-enter": {
|
1371
1379
|
"type": "boolean",
|
1372
|
-
"description": "
|
1380
|
+
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1373
1381
|
},
|
1374
|
-
"van-
|
1382
|
+
"van-goods-action/safe-area-inset-bottom": {
|
1375
1383
|
"type": "boolean",
|
1376
|
-
"description": "
|
1384
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
1377
1385
|
},
|
1378
|
-
"van-
|
1386
|
+
"van-goods-action/text": {
|
1379
1387
|
"type": "string",
|
1380
|
-
"description": "
|
1381
|
-
},
|
1382
|
-
"van-field/formatter": {
|
1383
|
-
"type": "Function",
|
1384
|
-
"description": "输入内容格式化函数, 默认值: -"
|
1388
|
+
"description": "按钮文字, 默认值: -"
|
1385
1389
|
},
|
1386
|
-
"van-
|
1390
|
+
"van-goods-action/icon": {
|
1387
1391
|
"type": "string",
|
1388
|
-
"description": "
|
1392
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1389
1393
|
},
|
1390
|
-
"van-
|
1394
|
+
"van-goods-action/color": {
|
1391
1395
|
"type": "string",
|
1392
|
-
"description": "
|
1396
|
+
"description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
|
1393
1397
|
},
|
1394
|
-
"van-
|
1398
|
+
"van-goods-action/icon-class": {
|
1395
1399
|
"type": "any",
|
1396
|
-
"description": "
|
1400
|
+
"description": "图标额外类名, 默认值: -"
|
1397
1401
|
},
|
1398
|
-
"van-
|
1399
|
-
"type": "
|
1400
|
-
"description": "
|
1402
|
+
"van-goods-action/dot": {
|
1403
|
+
"type": "boolean",
|
1404
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1401
1405
|
},
|
1402
|
-
"van-
|
1403
|
-
"type": "string",
|
1404
|
-
"description": "
|
1406
|
+
"van-goods-action/badge": {
|
1407
|
+
"type": "number | string",
|
1408
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1405
1409
|
},
|
1406
|
-
"van-
|
1407
|
-
"type": "string",
|
1408
|
-
"description": "
|
1410
|
+
"van-goods-action/info": {
|
1411
|
+
"type": "number | string",
|
1412
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
1409
1413
|
},
|
1410
|
-
"van-
|
1414
|
+
"van-goods-action/url": {
|
1411
1415
|
"type": "string",
|
1412
|
-
"description": "
|
1413
|
-
},
|
1414
|
-
"van-field/autosize": {
|
1415
|
-
"type": "boolean | object",
|
1416
|
-
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`, 默认值: `false`"
|
1416
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
1417
1417
|
},
|
1418
|
-
"van-
|
1419
|
-
"type": "string",
|
1420
|
-
"description": "
|
1418
|
+
"van-goods-action/to": {
|
1419
|
+
"type": "string | object",
|
1420
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1421
1421
|
},
|
1422
|
-
"van-
|
1423
|
-
"type": "
|
1424
|
-
"description": "
|
1422
|
+
"van-goods-action/replace": {
|
1423
|
+
"type": "boolean",
|
1424
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1425
1425
|
},
|
1426
|
-
"van-
|
1426
|
+
"van-goods-action/type": {
|
1427
1427
|
"type": "string",
|
1428
|
-
"description": "
|
1428
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
1429
1429
|
},
|
1430
|
-
"van-
|
1431
|
-
"type": "
|
1432
|
-
"description": "
|
1430
|
+
"van-goods-action/disabled": {
|
1431
|
+
"type": "boolean",
|
1432
|
+
"description": "是否禁用按钮, 默认值: `false`"
|
1433
1433
|
},
|
1434
|
-
"van-
|
1435
|
-
"type": "
|
1436
|
-
"description": "
|
1434
|
+
"van-goods-action/loading": {
|
1435
|
+
"type": "boolean",
|
1436
|
+
"description": "是否显示为加载状态, 默认值: `false`"
|
1437
1437
|
},
|
1438
1438
|
"van-grid/column-num": {
|
1439
1439
|
"type": "number | string",
|
@@ -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 数组, 默认值: `[]`"
|
@@ -1935,6 +1935,22 @@
|
|
1935
1935
|
"type": "boolean",
|
1936
1936
|
"description": "是否显示省略号, 默认值: `false`"
|
1937
1937
|
},
|
1938
|
+
"van-panel/title": {
|
1939
|
+
"type": "string",
|
1940
|
+
"description": "标题, 默认值: -"
|
1941
|
+
},
|
1942
|
+
"van-panel/desc": {
|
1943
|
+
"type": "string",
|
1944
|
+
"description": "描述, 默认值: -"
|
1945
|
+
},
|
1946
|
+
"van-panel/status": {
|
1947
|
+
"type": "string",
|
1948
|
+
"description": "状态, 默认值: -"
|
1949
|
+
},
|
1950
|
+
"van-panel/icon": {
|
1951
|
+
"type": "string",
|
1952
|
+
"description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1953
|
+
},
|
1938
1954
|
"van-password-input/value": {
|
1939
1955
|
"type": "string",
|
1940
1956
|
"description": "密码值, 默认值: `''`"
|
@@ -2019,22 +2035,6 @@
|
|
2019
2035
|
"type": "number | string",
|
2020
2036
|
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
2021
2037
|
},
|
2022
|
-
"van-panel/title": {
|
2023
|
-
"type": "string",
|
2024
|
-
"description": "标题, 默认值: -"
|
2025
|
-
},
|
2026
|
-
"van-panel/desc": {
|
2027
|
-
"type": "string",
|
2028
|
-
"description": "描述, 默认值: -"
|
2029
|
-
},
|
2030
|
-
"van-panel/status": {
|
2031
|
-
"type": "string",
|
2032
|
-
"description": "状态, 默认值: -"
|
2033
|
-
},
|
2034
|
-
"van-panel/icon": {
|
2035
|
-
"type": "string",
|
2036
|
-
"description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2037
|
-
},
|
2038
2038
|
"van-popover/v-model": {
|
2039
2039
|
"type": "boolean",
|
2040
2040
|
"description": "是否展示气泡弹出层, 默认值: `false`"
|
@@ -2305,7 +2305,7 @@
|
|
2305
2305
|
},
|
2306
2306
|
"van-rate/readonly": {
|
2307
2307
|
"type": "boolean",
|
2308
|
-
"description": "
|
2308
|
+
"description": "是否为只读状态, 默认值: `false`"
|
2309
2309
|
},
|
2310
2310
|
"van-rate/disabled": {
|
2311
2311
|
"type": "boolean",
|
@@ -3207,6 +3207,38 @@
|
|
3207
3207
|
"type": "boolean",
|
3208
3208
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
3209
3209
|
},
|
3210
|
+
"van-tag/type": {
|
3211
|
+
"type": "string",
|
3212
|
+
"description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
|
3213
|
+
},
|
3214
|
+
"van-tag/size": {
|
3215
|
+
"type": "string",
|
3216
|
+
"description": "大小, 可选值为`large` `medium`, 默认值: -"
|
3217
|
+
},
|
3218
|
+
"van-tag/color": {
|
3219
|
+
"type": "string",
|
3220
|
+
"description": "标签颜色, 默认值: -"
|
3221
|
+
},
|
3222
|
+
"van-tag/plain": {
|
3223
|
+
"type": "boolean",
|
3224
|
+
"description": "是否为空心样式, 默认值: `false`"
|
3225
|
+
},
|
3226
|
+
"van-tag/round": {
|
3227
|
+
"type": "boolean",
|
3228
|
+
"description": "是否为圆角样式, 默认值: `false`"
|
3229
|
+
},
|
3230
|
+
"van-tag/mark": {
|
3231
|
+
"type": "boolean",
|
3232
|
+
"description": "是否为标记样式, 默认值: `false`"
|
3233
|
+
},
|
3234
|
+
"van-tag/text-color": {
|
3235
|
+
"type": "string",
|
3236
|
+
"description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
|
3237
|
+
},
|
3238
|
+
"van-tag/closeable": {
|
3239
|
+
"type": "boolean",
|
3240
|
+
"description": "是否为可关闭标签, 默认值: `false`"
|
3241
|
+
},
|
3210
3242
|
"van-tree-select/items": {
|
3211
3243
|
"type": "Item[]",
|
3212
3244
|
"description": "分类显示所需的数据, 默认值: `[]`"
|
@@ -3322,37 +3354,5 @@
|
|
3322
3354
|
"van-uploader/upload-icon": {
|
3323
3355
|
"type": "string",
|
3324
3356
|
"description": "上传区域[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photograph`"
|
3325
|
-
},
|
3326
|
-
"van-tag/type": {
|
3327
|
-
"type": "string",
|
3328
|
-
"description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
|
3329
|
-
},
|
3330
|
-
"van-tag/size": {
|
3331
|
-
"type": "string",
|
3332
|
-
"description": "大小, 可选值为`large` `medium`, 默认值: -"
|
3333
|
-
},
|
3334
|
-
"van-tag/color": {
|
3335
|
-
"type": "string",
|
3336
|
-
"description": "标签颜色, 默认值: -"
|
3337
|
-
},
|
3338
|
-
"van-tag/plain": {
|
3339
|
-
"type": "boolean",
|
3340
|
-
"description": "是否为空心样式, 默认值: `false`"
|
3341
|
-
},
|
3342
|
-
"van-tag/round": {
|
3343
|
-
"type": "boolean",
|
3344
|
-
"description": "是否为圆角样式, 默认值: `false`"
|
3345
|
-
},
|
3346
|
-
"van-tag/mark": {
|
3347
|
-
"type": "boolean",
|
3348
|
-
"description": "是否为标记样式, 默认值: `false`"
|
3349
|
-
},
|
3350
|
-
"van-tag/text-color": {
|
3351
|
-
"type": "string",
|
3352
|
-
"description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
|
3353
|
-
},
|
3354
|
-
"van-tag/closeable": {
|
3355
|
-
"type": "boolean",
|
3356
|
-
"description": "是否为可关闭标签, 默认值: `false`"
|
3357
3357
|
}
|
3358
3358
|
}
|