vant 2.12.43 → 2.12.46
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/README.md +1 -0
- package/README.zh-CN.md +3 -2
- package/changelog.generated.md +12 -0
- package/es/dialog/Dialog.js +41 -8
- package/es/index.js +1 -1
- package/es/sku/utils/sku-helper.js +2 -2
- package/es/tabbar/index.js +1 -1
- package/es/tabbar-item/index.js +10 -8
- package/es/utils/validate/email.js +2 -2
- package/lib/dialog/Dialog.js +40 -7
- package/lib/index.js +1 -1
- package/lib/sku/utils/sku-helper.js +2 -2
- package/lib/tabbar/index.js +1 -1
- package/lib/tabbar-item/index.js +10 -8
- package/lib/utils/validate/email.js +2 -2
- package/lib/vant.js +56 -21
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +341 -341
- package/vetur/tags.json +97 -97
- package/vetur/web-types.json +1093 -1093
package/vetur/attributes.json
CHANGED
@@ -67,109 +67,57 @@
|
|
67
67
|
"type": "string | () => Element",
|
68
68
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
69
69
|
},
|
70
|
-
"van-
|
71
|
-
"type": "object",
|
72
|
-
"description": "地区列表, 默认值: -"
|
73
|
-
},
|
74
|
-
"van-address-edit/area-columns-placeholder": {
|
75
|
-
"type": "string[]",
|
76
|
-
"description": "地区选择列占位提示文字, 默认值: `[]`"
|
77
|
-
},
|
78
|
-
"van-address-edit/area-placeholder": {
|
70
|
+
"van-area/value": {
|
79
71
|
"type": "string",
|
80
|
-
"description": "
|
81
|
-
},
|
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": {
|
91
|
-
"type": "boolean",
|
92
|
-
"description": "是否显示邮政编码, 默认值: `false`"
|
93
|
-
},
|
94
|
-
"van-address-edit/show-delete": {
|
95
|
-
"type": "boolean",
|
96
|
-
"description": "是否显示删除按钮, 默认值: `false`"
|
97
|
-
},
|
98
|
-
"van-address-edit/show-set-default": {
|
99
|
-
"type": "boolean",
|
100
|
-
"description": "是否显示默认地址栏, 默认值: `false`"
|
101
|
-
},
|
102
|
-
"van-address-edit/show-search-result": {
|
103
|
-
"type": "boolean",
|
104
|
-
"description": "是否显示搜索结果, 默认值: `false`"
|
105
|
-
},
|
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`"
|
72
|
+
"description": "当前选中的省市区`code`, 默认值: -"
|
113
73
|
},
|
114
|
-
"van-
|
115
|
-
"type": "
|
116
|
-
"description": "
|
74
|
+
"van-area/title": {
|
75
|
+
"type": "string",
|
76
|
+
"description": "顶部栏标题, 默认值: -"
|
117
77
|
},
|
118
|
-
"van-
|
78
|
+
"van-area/confirm-button-text": {
|
119
79
|
"type": "string",
|
120
|
-
"description": "
|
80
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
121
81
|
},
|
122
|
-
"van-
|
82
|
+
"van-area/cancel-button-text": {
|
123
83
|
"type": "string",
|
124
|
-
"description": "
|
84
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
125
85
|
},
|
126
|
-
"van-
|
127
|
-
"type": "
|
128
|
-
"description": "
|
86
|
+
"van-area/area-list": {
|
87
|
+
"type": "object",
|
88
|
+
"description": "省市区数据,格式见下方, 默认值: -"
|
129
89
|
},
|
130
|
-
"van-
|
131
|
-
"type": "
|
132
|
-
"description": "
|
90
|
+
"van-area/columns-placeholder": {
|
91
|
+
"type": "string[]",
|
92
|
+
"description": "列占位提示文字, 默认值: `[]`"
|
133
93
|
},
|
134
|
-
"van-
|
94
|
+
"van-area/loading": {
|
135
95
|
"type": "boolean",
|
136
|
-
"description": "
|
96
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
137
97
|
},
|
138
|
-
"van-
|
98
|
+
"van-area/readonly": {
|
139
99
|
"type": "boolean",
|
140
|
-
"description": "
|
141
|
-
},
|
142
|
-
"van-address-edit/tel-validator": {
|
143
|
-
"type": "string => boolean",
|
144
|
-
"description": "手机号格式校验函数, 默认值: -"
|
100
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
145
101
|
},
|
146
|
-
"van-
|
102
|
+
"van-area/item-height": {
|
147
103
|
"type": "number | string",
|
148
|
-
"description": "
|
149
|
-
},
|
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": "自定义校验函数, 默认值: -"
|
104
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
157
105
|
},
|
158
|
-
"van-
|
106
|
+
"van-area/columns-num": {
|
159
107
|
"type": "number | string",
|
160
|
-
"description": "
|
161
|
-
},
|
162
|
-
"van-badge/color": {
|
163
|
-
"type": "string",
|
164
|
-
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
108
|
+
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
165
109
|
},
|
166
|
-
"van-
|
167
|
-
"type": "
|
168
|
-
"description": "
|
110
|
+
"van-area/visible-item-count": {
|
111
|
+
"type": "number | string",
|
112
|
+
"description": "可见的选项个数, 默认值: `6`"
|
169
113
|
},
|
170
|
-
"van-
|
114
|
+
"van-area/swipe-duration": {
|
171
115
|
"type": "number | string",
|
172
|
-
"description": "
|
116
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
117
|
+
},
|
118
|
+
"van-area/is-oversea-code": {
|
119
|
+
"type": "() => boolean",
|
120
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
173
121
|
},
|
174
122
|
"van-button/type": {
|
175
123
|
"type": "string",
|
@@ -259,58 +207,6 @@
|
|
259
207
|
"type": "boolean",
|
260
208
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
261
209
|
},
|
262
|
-
"van-area/value": {
|
263
|
-
"type": "string",
|
264
|
-
"description": "当前选中的省市区`code`, 默认值: -"
|
265
|
-
},
|
266
|
-
"van-area/title": {
|
267
|
-
"type": "string",
|
268
|
-
"description": "顶部栏标题, 默认值: -"
|
269
|
-
},
|
270
|
-
"van-area/confirm-button-text": {
|
271
|
-
"type": "string",
|
272
|
-
"description": "确认按钮文字, 默认值: `确认`"
|
273
|
-
},
|
274
|
-
"van-area/cancel-button-text": {
|
275
|
-
"type": "string",
|
276
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
277
|
-
},
|
278
|
-
"van-area/area-list": {
|
279
|
-
"type": "object",
|
280
|
-
"description": "省市区数据,格式见下方, 默认值: -"
|
281
|
-
},
|
282
|
-
"van-area/columns-placeholder": {
|
283
|
-
"type": "string[]",
|
284
|
-
"description": "列占位提示文字, 默认值: `[]`"
|
285
|
-
},
|
286
|
-
"van-area/loading": {
|
287
|
-
"type": "boolean",
|
288
|
-
"description": "是否显示加载状态, 默认值: `false`"
|
289
|
-
},
|
290
|
-
"van-area/readonly": {
|
291
|
-
"type": "boolean",
|
292
|
-
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
293
|
-
},
|
294
|
-
"van-area/item-height": {
|
295
|
-
"type": "number | string",
|
296
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
297
|
-
},
|
298
|
-
"van-area/columns-num": {
|
299
|
-
"type": "number | string",
|
300
|
-
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
301
|
-
},
|
302
|
-
"van-area/visible-item-count": {
|
303
|
-
"type": "number | string",
|
304
|
-
"description": "可见的选项个数, 默认值: `6`"
|
305
|
-
},
|
306
|
-
"van-area/swipe-duration": {
|
307
|
-
"type": "number | string",
|
308
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
309
|
-
},
|
310
|
-
"van-area/is-oversea-code": {
|
311
|
-
"type": "() => boolean",
|
312
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
313
|
-
},
|
314
210
|
"van-calendar/type": {
|
315
211
|
"type": "string",
|
316
212
|
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
|
@@ -475,72 +371,204 @@
|
|
475
371
|
"type": "boolean",
|
476
372
|
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
477
373
|
},
|
478
|
-
"van-
|
479
|
-
"type": "
|
480
|
-
"description": "
|
481
|
-
},
|
482
|
-
"van-cascader/value": {
|
483
|
-
"type": "string | number",
|
484
|
-
"description": "选中项的值, 默认值: -"
|
374
|
+
"van-address-edit/area-list": {
|
375
|
+
"type": "object",
|
376
|
+
"description": "地区列表, 默认值: -"
|
485
377
|
},
|
486
|
-
"van-
|
487
|
-
"type": "
|
488
|
-
"description": "
|
378
|
+
"van-address-edit/area-columns-placeholder": {
|
379
|
+
"type": "string[]",
|
380
|
+
"description": "地区选择列占位提示文字, 默认值: `[]`"
|
489
381
|
},
|
490
|
-
"van-
|
382
|
+
"van-address-edit/area-placeholder": {
|
491
383
|
"type": "string",
|
492
|
-
"description": "
|
384
|
+
"description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
|
493
385
|
},
|
494
|
-
"van-
|
495
|
-
"type": "
|
496
|
-
"description": "
|
386
|
+
"van-address-edit/address-info": {
|
387
|
+
"type": "AddressInfo",
|
388
|
+
"description": "收货人信息初始值, 默认值: `{}`"
|
497
389
|
},
|
498
|
-
"van-
|
390
|
+
"van-address-edit/search-result": {
|
391
|
+
"type": "SearchResult[]",
|
392
|
+
"description": "详细地址搜索结果, 默认值: `[]`"
|
393
|
+
},
|
394
|
+
"van-address-edit/show-postal": {
|
499
395
|
"type": "boolean",
|
500
|
-
"description": "
|
396
|
+
"description": "是否显示邮政编码, 默认值: `false`"
|
501
397
|
},
|
502
|
-
"van-
|
398
|
+
"van-address-edit/show-delete": {
|
503
399
|
"type": "boolean",
|
504
|
-
"description": "
|
400
|
+
"description": "是否显示删除按钮, 默认值: `false`"
|
505
401
|
},
|
506
|
-
"van-
|
507
|
-
"type": "
|
508
|
-
"description": "
|
402
|
+
"van-address-edit/show-set-default": {
|
403
|
+
"type": "boolean",
|
404
|
+
"description": "是否显示默认地址栏, 默认值: `false`"
|
509
405
|
},
|
510
|
-
"van-
|
511
|
-
"type": "
|
512
|
-
"description": "
|
406
|
+
"van-address-edit/show-search-result": {
|
407
|
+
"type": "boolean",
|
408
|
+
"description": "是否显示搜索结果, 默认值: `false`"
|
513
409
|
},
|
514
|
-
"van-
|
410
|
+
"van-address-edit/show-area": {
|
515
411
|
"type": "boolean",
|
516
|
-
"description": "
|
412
|
+
"description": "是否显示地区, 默认值: `true`"
|
517
413
|
},
|
518
|
-
"van-
|
519
|
-
"type": "
|
520
|
-
"description": "
|
414
|
+
"van-address-edit/show-detail": {
|
415
|
+
"type": "boolean",
|
416
|
+
"description": "是否显示详细地址, 默认值: `true`"
|
521
417
|
},
|
522
|
-
"van-
|
523
|
-
"type": "
|
524
|
-
"description": "
|
418
|
+
"van-address-edit/disable-area": {
|
419
|
+
"type": "boolean",
|
420
|
+
"description": "是否禁用地区选择, 默认值: `false`"
|
525
421
|
},
|
526
|
-
"van-
|
422
|
+
"van-address-edit/save-button-text": {
|
527
423
|
"type": "string",
|
528
|
-
"description": "
|
424
|
+
"description": "保存按钮文字, 默认值: `保存`"
|
529
425
|
},
|
530
|
-
"van-
|
426
|
+
"van-address-edit/delete-button-text": {
|
531
427
|
"type": "string",
|
532
|
-
"description": "
|
428
|
+
"description": "删除按钮文字, 默认值: `删除`"
|
533
429
|
},
|
534
|
-
"van-
|
535
|
-
"type": "string",
|
536
|
-
"description": "
|
430
|
+
"van-address-edit/detail-rows": {
|
431
|
+
"type": "number | string",
|
432
|
+
"description": "详细地址输入框行数, 默认值: `1`"
|
537
433
|
},
|
538
|
-
"van-
|
539
|
-
"type": "string",
|
540
|
-
"description": "
|
434
|
+
"van-address-edit/detail-maxlength": {
|
435
|
+
"type": "number | string",
|
436
|
+
"description": "详细地址最大长度, 默认值: `200`"
|
541
437
|
},
|
542
|
-
"van-
|
543
|
-
"type": "
|
438
|
+
"van-address-edit/is-saving": {
|
439
|
+
"type": "boolean",
|
440
|
+
"description": "是否显示保存按钮加载动画, 默认值: `false`"
|
441
|
+
},
|
442
|
+
"van-address-edit/is-deleting": {
|
443
|
+
"type": "boolean",
|
444
|
+
"description": "是否显示删除按钮加载动画, 默认值: `false`"
|
445
|
+
},
|
446
|
+
"van-address-edit/tel-validator": {
|
447
|
+
"type": "string => boolean",
|
448
|
+
"description": "手机号格式校验函数, 默认值: -"
|
449
|
+
},
|
450
|
+
"van-address-edit/tel-maxlength": {
|
451
|
+
"type": "number | string",
|
452
|
+
"description": "手机号最大长度, 默认值: -"
|
453
|
+
},
|
454
|
+
"van-address-edit/postal-validator": {
|
455
|
+
"type": "string => boolean",
|
456
|
+
"description": "邮政编码格式校验函数, 默认值: -"
|
457
|
+
},
|
458
|
+
"van-address-edit/validator": {
|
459
|
+
"type": "(key, val) => string",
|
460
|
+
"description": "自定义校验函数, 默认值: -"
|
461
|
+
},
|
462
|
+
"van-badge/content": {
|
463
|
+
"type": "number | string",
|
464
|
+
"description": "徽标内容, 默认值: -"
|
465
|
+
},
|
466
|
+
"van-badge/color": {
|
467
|
+
"type": "string",
|
468
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
469
|
+
},
|
470
|
+
"van-badge/dot": {
|
471
|
+
"type": "boolean",
|
472
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
473
|
+
},
|
474
|
+
"van-badge/max": {
|
475
|
+
"type": "number | string",
|
476
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
477
|
+
},
|
478
|
+
"van-cascader/title": {
|
479
|
+
"type": "string",
|
480
|
+
"description": "顶部标题, 默认值: -"
|
481
|
+
},
|
482
|
+
"van-cascader/value": {
|
483
|
+
"type": "string | number",
|
484
|
+
"description": "选中项的值, 默认值: -"
|
485
|
+
},
|
486
|
+
"van-cascader/options": {
|
487
|
+
"type": "Option[]",
|
488
|
+
"description": "可选项数据源, 默认值: `[]`"
|
489
|
+
},
|
490
|
+
"van-cascader/placeholder": {
|
491
|
+
"type": "string",
|
492
|
+
"description": "未选中时的提示文案, 默认值: `请选择`"
|
493
|
+
},
|
494
|
+
"van-cascader/active-color": {
|
495
|
+
"type": "string",
|
496
|
+
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
497
|
+
},
|
498
|
+
"van-cascader/closeable": {
|
499
|
+
"type": "boolean",
|
500
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
501
|
+
},
|
502
|
+
"van-cascader/show-header": {
|
503
|
+
"type": "boolean",
|
504
|
+
"description": "是否展示标题栏, 默认值: `true`"
|
505
|
+
},
|
506
|
+
"van-cascader/field-names": {
|
507
|
+
"type": "object",
|
508
|
+
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
509
|
+
},
|
510
|
+
"van-address-list/v-model": {
|
511
|
+
"type": "string",
|
512
|
+
"description": "当前选中地址的 id, 默认值: -"
|
513
|
+
},
|
514
|
+
"van-address-list/list": {
|
515
|
+
"type": "Address[]",
|
516
|
+
"description": "地址列表, 默认值: `[]`"
|
517
|
+
},
|
518
|
+
"van-address-list/disabled-list": {
|
519
|
+
"type": "Address[]",
|
520
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
521
|
+
},
|
522
|
+
"van-address-list/disabled-text": {
|
523
|
+
"type": "string",
|
524
|
+
"description": "不可配送提示文案, 默认值: -"
|
525
|
+
},
|
526
|
+
"van-address-list/switchable": {
|
527
|
+
"type": "boolean",
|
528
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
529
|
+
},
|
530
|
+
"van-address-list/add-button-text": {
|
531
|
+
"type": "string",
|
532
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
533
|
+
},
|
534
|
+
"van-address-list/default-tag-text": {
|
535
|
+
"type": "string",
|
536
|
+
"description": "默认地址标签文字, 默认值: -"
|
537
|
+
},
|
538
|
+
"van-cell-group/title": {
|
539
|
+
"type": "string",
|
540
|
+
"description": "分组标题, 默认值: `-`"
|
541
|
+
},
|
542
|
+
"van-cell-group/border": {
|
543
|
+
"type": "boolean",
|
544
|
+
"description": "是否显示外边框, 默认值: `true`"
|
545
|
+
},
|
546
|
+
"van-cell/title": {
|
547
|
+
"type": "number | string",
|
548
|
+
"description": "左侧标题, 默认值: -"
|
549
|
+
},
|
550
|
+
"van-cell/value": {
|
551
|
+
"type": "number | string",
|
552
|
+
"description": "右侧内容, 默认值: -"
|
553
|
+
},
|
554
|
+
"van-cell/label": {
|
555
|
+
"type": "string",
|
556
|
+
"description": "标题下方的描述信息, 默认值: -"
|
557
|
+
},
|
558
|
+
"van-cell/size": {
|
559
|
+
"type": "string",
|
560
|
+
"description": "单元格大小,可选值为 `large`, 默认值: -"
|
561
|
+
},
|
562
|
+
"van-cell/icon": {
|
563
|
+
"type": "string",
|
564
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
565
|
+
},
|
566
|
+
"van-cell/icon-prefix": {
|
567
|
+
"type": "string",
|
568
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
569
|
+
},
|
570
|
+
"van-cell/url": {
|
571
|
+
"type": "string",
|
544
572
|
"description": "点击后跳转的链接地址, 默认值: -"
|
545
573
|
},
|
546
574
|
"van-cell/to": {
|
@@ -591,34 +619,6 @@
|
|
591
619
|
"type": "any",
|
592
620
|
"description": "描述信息额外类名, 默认值: -"
|
593
621
|
},
|
594
|
-
"van-address-list/v-model": {
|
595
|
-
"type": "string",
|
596
|
-
"description": "当前选中地址的 id, 默认值: -"
|
597
|
-
},
|
598
|
-
"van-address-list/list": {
|
599
|
-
"type": "Address[]",
|
600
|
-
"description": "地址列表, 默认值: `[]`"
|
601
|
-
},
|
602
|
-
"van-address-list/disabled-list": {
|
603
|
-
"type": "Address[]",
|
604
|
-
"description": "不可配送地址列表, 默认值: `[]`"
|
605
|
-
},
|
606
|
-
"van-address-list/disabled-text": {
|
607
|
-
"type": "string",
|
608
|
-
"description": "不可配送提示文案, 默认值: -"
|
609
|
-
},
|
610
|
-
"van-address-list/switchable": {
|
611
|
-
"type": "boolean",
|
612
|
-
"description": "是否允许切换地址, 默认值: `true`"
|
613
|
-
},
|
614
|
-
"van-address-list/add-button-text": {
|
615
|
-
"type": "string",
|
616
|
-
"description": "底部按钮文字, 默认值: `新增地址`"
|
617
|
-
},
|
618
|
-
"van-address-list/default-tag-text": {
|
619
|
-
"type": "string",
|
620
|
-
"description": "默认地址标签文字, 默认值: -"
|
621
|
-
},
|
622
622
|
"van-checkbox/v-model (value)": {
|
623
623
|
"type": "boolean",
|
624
624
|
"description": "是否为选中状态, 默认值: `false`"
|
@@ -1239,138 +1239,6 @@
|
|
1239
1239
|
"type": "string",
|
1240
1240
|
"description": "图片下方的描述文字, 默认值: -"
|
1241
1241
|
},
|
1242
|
-
"van-form/label-width": {
|
1243
|
-
"type": "number | string",
|
1244
|
-
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1245
|
-
},
|
1246
|
-
"van-form/label-align": {
|
1247
|
-
"type": "string",
|
1248
|
-
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1249
|
-
},
|
1250
|
-
"van-form/input-align": {
|
1251
|
-
"type": "string",
|
1252
|
-
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1253
|
-
},
|
1254
|
-
"van-form/error-message-align": {
|
1255
|
-
"type": "string",
|
1256
|
-
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1257
|
-
},
|
1258
|
-
"van-form/validate-trigger": {
|
1259
|
-
"type": "string",
|
1260
|
-
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
|
1261
|
-
},
|
1262
|
-
"van-form/colon": {
|
1263
|
-
"type": "boolean",
|
1264
|
-
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1265
|
-
},
|
1266
|
-
"van-form/disabled": {
|
1267
|
-
"type": "boolean",
|
1268
|
-
"description": "是否禁用表单中的所有输入框, 默认值: `false`"
|
1269
|
-
},
|
1270
|
-
"van-form/readonly": {
|
1271
|
-
"type": "boolean",
|
1272
|
-
"description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
|
1273
|
-
},
|
1274
|
-
"van-form/validate-first": {
|
1275
|
-
"type": "boolean",
|
1276
|
-
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1277
|
-
},
|
1278
|
-
"van-form/scroll-to-error": {
|
1279
|
-
"type": "boolean",
|
1280
|
-
"description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
|
1281
|
-
},
|
1282
|
-
"van-form/show-error": {
|
1283
|
-
"type": "boolean",
|
1284
|
-
"description": "是否在校验不通过时标红输入框, 默认值: `true`"
|
1285
|
-
},
|
1286
|
-
"van-form/show-error-message": {
|
1287
|
-
"type": "boolean",
|
1288
|
-
"description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
|
1289
|
-
},
|
1290
|
-
"van-form/submit-on-enter": {
|
1291
|
-
"type": "boolean",
|
1292
|
-
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1293
|
-
},
|
1294
|
-
"van-goods-action/safe-area-inset-bottom": {
|
1295
|
-
"type": "boolean",
|
1296
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
1297
|
-
},
|
1298
|
-
"van-goods-action-icon/text": {
|
1299
|
-
"type": "string",
|
1300
|
-
"description": "按钮文字, 默认值: -"
|
1301
|
-
},
|
1302
|
-
"van-goods-action-icon/icon": {
|
1303
|
-
"type": "string",
|
1304
|
-
"description": "图标, 默认值: -"
|
1305
|
-
},
|
1306
|
-
"van-goods-action-icon/color": {
|
1307
|
-
"type": "string",
|
1308
|
-
"description": "图标颜色, 默认值: `#323233`"
|
1309
|
-
},
|
1310
|
-
"van-goods-action-icon/icon-class": {
|
1311
|
-
"type": "any",
|
1312
|
-
"description": "图标额外类名, 默认值: -"
|
1313
|
-
},
|
1314
|
-
"van-goods-action-icon/dot": {
|
1315
|
-
"type": "boolean",
|
1316
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1317
|
-
},
|
1318
|
-
"van-goods-action-icon/badge": {
|
1319
|
-
"type": "number | string",
|
1320
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1321
|
-
},
|
1322
|
-
"van-goods-action-icon/info": {
|
1323
|
-
"type": "number | string",
|
1324
|
-
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
1325
|
-
},
|
1326
|
-
"van-goods-action-icon/url": {
|
1327
|
-
"type": "string",
|
1328
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
1329
|
-
},
|
1330
|
-
"van-goods-action-icon/to": {
|
1331
|
-
"type": "string | object",
|
1332
|
-
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1333
|
-
},
|
1334
|
-
"van-goods-action-icon/replace": {
|
1335
|
-
"type": "boolean",
|
1336
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1337
|
-
},
|
1338
|
-
"van-goods-action-button/text": {
|
1339
|
-
"type": "string",
|
1340
|
-
"description": "按钮文字, 默认值: -"
|
1341
|
-
},
|
1342
|
-
"van-goods-action-button/type": {
|
1343
|
-
"type": "string",
|
1344
|
-
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
1345
|
-
},
|
1346
|
-
"van-goods-action-button/color": {
|
1347
|
-
"type": "string",
|
1348
|
-
"description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
|
1349
|
-
},
|
1350
|
-
"van-goods-action-button/icon": {
|
1351
|
-
"type": "string",
|
1352
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1353
|
-
},
|
1354
|
-
"van-goods-action-button/disabled": {
|
1355
|
-
"type": "boolean",
|
1356
|
-
"description": "是否禁用按钮, 默认值: `false`"
|
1357
|
-
},
|
1358
|
-
"van-goods-action-button/loading": {
|
1359
|
-
"type": "boolean",
|
1360
|
-
"description": "是否显示为加载状态, 默认值: `false`"
|
1361
|
-
},
|
1362
|
-
"van-goods-action-button/url": {
|
1363
|
-
"type": "string",
|
1364
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
1365
|
-
},
|
1366
|
-
"van-goods-action-button/to": {
|
1367
|
-
"type": "string | object",
|
1368
|
-
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1369
|
-
},
|
1370
|
-
"van-goods-action-button/replace": {
|
1371
|
-
"type": "boolean",
|
1372
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1373
|
-
},
|
1374
1242
|
"van-field/v-model (value)": {
|
1375
1243
|
"type": "number | string",
|
1376
1244
|
"description": "当前输入的值, 默认值: -"
|
@@ -1511,6 +1379,138 @@
|
|
1511
1379
|
"type": "string",
|
1512
1380
|
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
1513
1381
|
},
|
1382
|
+
"van-form/label-width": {
|
1383
|
+
"type": "number | string",
|
1384
|
+
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1385
|
+
},
|
1386
|
+
"van-form/label-align": {
|
1387
|
+
"type": "string",
|
1388
|
+
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1389
|
+
},
|
1390
|
+
"van-form/input-align": {
|
1391
|
+
"type": "string",
|
1392
|
+
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1393
|
+
},
|
1394
|
+
"van-form/error-message-align": {
|
1395
|
+
"type": "string",
|
1396
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1397
|
+
},
|
1398
|
+
"van-form/validate-trigger": {
|
1399
|
+
"type": "string",
|
1400
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
|
1401
|
+
},
|
1402
|
+
"van-form/colon": {
|
1403
|
+
"type": "boolean",
|
1404
|
+
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1405
|
+
},
|
1406
|
+
"van-form/disabled": {
|
1407
|
+
"type": "boolean",
|
1408
|
+
"description": "是否禁用表单中的所有输入框, 默认值: `false`"
|
1409
|
+
},
|
1410
|
+
"van-form/readonly": {
|
1411
|
+
"type": "boolean",
|
1412
|
+
"description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
|
1413
|
+
},
|
1414
|
+
"van-form/validate-first": {
|
1415
|
+
"type": "boolean",
|
1416
|
+
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1417
|
+
},
|
1418
|
+
"van-form/scroll-to-error": {
|
1419
|
+
"type": "boolean",
|
1420
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
|
1421
|
+
},
|
1422
|
+
"van-form/show-error": {
|
1423
|
+
"type": "boolean",
|
1424
|
+
"description": "是否在校验不通过时标红输入框, 默认值: `true`"
|
1425
|
+
},
|
1426
|
+
"van-form/show-error-message": {
|
1427
|
+
"type": "boolean",
|
1428
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
|
1429
|
+
},
|
1430
|
+
"van-form/submit-on-enter": {
|
1431
|
+
"type": "boolean",
|
1432
|
+
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1433
|
+
},
|
1434
|
+
"van-goods-action/safe-area-inset-bottom": {
|
1435
|
+
"type": "boolean",
|
1436
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
1437
|
+
},
|
1438
|
+
"van-goods-action-icon/text": {
|
1439
|
+
"type": "string",
|
1440
|
+
"description": "按钮文字, 默认值: -"
|
1441
|
+
},
|
1442
|
+
"van-goods-action-icon/icon": {
|
1443
|
+
"type": "string",
|
1444
|
+
"description": "图标, 默认值: -"
|
1445
|
+
},
|
1446
|
+
"van-goods-action-icon/color": {
|
1447
|
+
"type": "string",
|
1448
|
+
"description": "图标颜色, 默认值: `#323233`"
|
1449
|
+
},
|
1450
|
+
"van-goods-action-icon/icon-class": {
|
1451
|
+
"type": "any",
|
1452
|
+
"description": "图标额外类名, 默认值: -"
|
1453
|
+
},
|
1454
|
+
"van-goods-action-icon/dot": {
|
1455
|
+
"type": "boolean",
|
1456
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1457
|
+
},
|
1458
|
+
"van-goods-action-icon/badge": {
|
1459
|
+
"type": "number | string",
|
1460
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1461
|
+
},
|
1462
|
+
"van-goods-action-icon/info": {
|
1463
|
+
"type": "number | string",
|
1464
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
|
1465
|
+
},
|
1466
|
+
"van-goods-action-icon/url": {
|
1467
|
+
"type": "string",
|
1468
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
1469
|
+
},
|
1470
|
+
"van-goods-action-icon/to": {
|
1471
|
+
"type": "string | object",
|
1472
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1473
|
+
},
|
1474
|
+
"van-goods-action-icon/replace": {
|
1475
|
+
"type": "boolean",
|
1476
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1477
|
+
},
|
1478
|
+
"van-goods-action-button/text": {
|
1479
|
+
"type": "string",
|
1480
|
+
"description": "按钮文字, 默认值: -"
|
1481
|
+
},
|
1482
|
+
"van-goods-action-button/type": {
|
1483
|
+
"type": "string",
|
1484
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
1485
|
+
},
|
1486
|
+
"van-goods-action-button/color": {
|
1487
|
+
"type": "string",
|
1488
|
+
"description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
|
1489
|
+
},
|
1490
|
+
"van-goods-action-button/icon": {
|
1491
|
+
"type": "string",
|
1492
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1493
|
+
},
|
1494
|
+
"van-goods-action-button/disabled": {
|
1495
|
+
"type": "boolean",
|
1496
|
+
"description": "是否禁用按钮, 默认值: `false`"
|
1497
|
+
},
|
1498
|
+
"van-goods-action-button/loading": {
|
1499
|
+
"type": "boolean",
|
1500
|
+
"description": "是否显示为加载状态, 默认值: `false`"
|
1501
|
+
},
|
1502
|
+
"van-goods-action-button/url": {
|
1503
|
+
"type": "string",
|
1504
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
1505
|
+
},
|
1506
|
+
"van-goods-action-button/to": {
|
1507
|
+
"type": "string | object",
|
1508
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1509
|
+
},
|
1510
|
+
"van-goods-action-button/replace": {
|
1511
|
+
"type": "boolean",
|
1512
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1513
|
+
},
|
1514
1514
|
"van-grid/column-num": {
|
1515
1515
|
"type": "number | string",
|
1516
1516
|
"description": "列数, 默认值: `4`"
|