vant 3.2.3 → 3.2.4
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 +90 -45
- package/es/address-edit/index.d.ts +2 -0
- package/es/area/index.d.ts +2 -0
- package/es/calendar/index.d.ts +2 -0
- package/es/checkbox/Checker.js +1 -1
- package/es/checkbox/index.d.ts +2 -0
- package/es/checkbox-group/index.d.ts +2 -0
- package/es/collapse-item/CollapseItem.js +3 -1
- package/es/collapse-item/index.d.ts +2 -0
- package/es/count-down/CountDown.d.ts +2 -10
- package/es/count-down/index.d.ts +3 -1
- package/es/count-down/types.d.ts +11 -0
- package/es/count-down/types.js +1 -0
- package/es/coupon-list/CouponList.js +4 -11
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.less +6 -1
- package/es/datetime-picker/index.d.ts +2 -0
- package/es/dialog/Dialog.d.ts +1 -4
- package/es/dialog/Dialog.js +2 -1
- package/es/dialog/function-call.d.ts +12 -37
- package/es/dialog/index.d.ts +2 -3
- package/es/dialog/types.d.ts +36 -0
- package/es/dialog/types.js +1 -0
- package/es/dropdown-item/index.d.ts +2 -0
- package/es/dropdown-menu/index.d.ts +2 -0
- package/es/field/Field.d.ts +8 -6
- package/es/field/Field.js +2 -2
- package/es/field/index.d.ts +6 -4
- package/es/form/index.d.ts +2 -0
- package/es/icon/index.css +1 -1
- package/es/image/Image.js +1 -2
- package/es/image-preview/index.d.ts +2 -0
- package/es/index-bar/index.d.ts +2 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/index.d.ts +2 -0
- package/es/notice-bar/index.d.ts +2 -0
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/function-call.d.ts +4 -17
- package/es/notify/index.d.ts +2 -3
- package/es/notify/types.d.ts +20 -0
- package/es/notify/types.js +1 -0
- package/es/picker/index.d.ts +2 -0
- package/es/popover/Popover.d.ts +1 -0
- package/es/progress/index.d.ts +2 -0
- package/es/search/Search.d.ts +8 -0
- package/es/search/index.d.ts +8 -0
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.less +1 -1
- package/es/swipe/index.d.ts +2 -0
- package/es/swipe-cell/index.d.ts +2 -0
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/utils.js +2 -4
- package/es/toast/Toast.d.ts +1 -2
- package/es/toast/Toast.js +2 -1
- package/es/toast/function-call.d.ts +2 -25
- package/es/toast/index.d.ts +2 -3
- package/es/toast/types.d.ts +32 -0
- package/es/toast/types.js +1 -0
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +2 -0
- package/es/uploader/index.less +0 -1
- package/lib/address-edit/index.d.ts +2 -0
- package/lib/area/index.d.ts +2 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/checkbox/Checker.js +1 -1
- package/lib/checkbox/index.d.ts +2 -0
- package/lib/checkbox-group/index.d.ts +2 -0
- package/lib/collapse-item/CollapseItem.js +3 -1
- package/lib/collapse-item/index.d.ts +2 -0
- package/lib/count-down/CountDown.d.ts +2 -10
- package/lib/count-down/index.d.ts +3 -1
- package/lib/count-down/types.d.ts +11 -0
- package/lib/count-down/types.js +3 -0
- package/lib/coupon-list/CouponList.js +4 -12
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.less +6 -1
- package/lib/datetime-picker/index.d.ts +2 -0
- package/lib/dialog/Dialog.d.ts +1 -4
- package/lib/dialog/function-call.d.ts +12 -37
- package/lib/dialog/index.d.ts +2 -3
- package/lib/dialog/types.d.ts +36 -0
- package/lib/dialog/types.js +3 -0
- package/lib/dropdown-item/index.d.ts +2 -0
- package/lib/dropdown-menu/index.d.ts +2 -0
- package/lib/field/Field.d.ts +8 -6
- package/lib/field/Field.js +2 -2
- package/lib/field/index.d.ts +6 -4
- package/lib/form/index.d.ts +2 -0
- package/lib/icon/index.css +1 -1
- package/lib/image/Image.js +1 -2
- package/lib/image-preview/index.d.ts +2 -0
- package/lib/index-bar/index.d.ts +2 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/index.d.ts +2 -0
- package/lib/notice-bar/index.d.ts +2 -0
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/function-call.d.ts +4 -17
- package/lib/notify/index.d.ts +2 -3
- package/lib/notify/types.d.ts +20 -0
- package/lib/notify/types.js +3 -0
- package/lib/picker/index.d.ts +2 -0
- package/lib/popover/Popover.d.ts +1 -0
- package/lib/progress/index.d.ts +2 -0
- package/lib/search/Search.d.ts +8 -0
- package/lib/search/index.d.ts +8 -0
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.less +1 -1
- package/lib/swipe/index.d.ts +2 -0
- package/lib/swipe-cell/index.d.ts +2 -0
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/utils.js +1 -4
- package/lib/toast/Toast.d.ts +1 -2
- package/lib/toast/function-call.d.ts +2 -25
- package/lib/toast/index.d.ts +2 -3
- package/lib/toast/types.d.ts +32 -0
- package/lib/toast/types.js +3 -0
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +2 -0
- package/lib/uploader/index.less +0 -1
- package/lib/vant.es.js +225 -269
- package/lib/vant.es.min.js +1 -1
- package/lib/vant.js +227 -271
- package/lib/vant.min.js +1 -1
- package/package.json +9 -9
- package/vetur/attributes.json +743 -731
- package/vetur/tags.json +234 -231
- package/vetur/web-types.json +2263 -2233
package/vetur/attributes.json
CHANGED
@@ -165,58 +165,6 @@
|
|
165
165
|
"type": "boolean",
|
166
166
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
167
167
|
},
|
168
|
-
"van-area/value": {
|
169
|
-
"type": "string",
|
170
|
-
"description": "当前选中项对应的地区码, 默认值: -"
|
171
|
-
},
|
172
|
-
"van-area/title": {
|
173
|
-
"type": "string",
|
174
|
-
"description": "顶部栏标题, 默认值: -"
|
175
|
-
},
|
176
|
-
"van-area/confirm-button-text": {
|
177
|
-
"type": "string",
|
178
|
-
"description": "确认按钮文字, 默认值: `确认`"
|
179
|
-
},
|
180
|
-
"van-area/cancel-button-text": {
|
181
|
-
"type": "string",
|
182
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
183
|
-
},
|
184
|
-
"van-area/area-list": {
|
185
|
-
"type": "object",
|
186
|
-
"description": "省市区数据,格式见下方, 默认值: -"
|
187
|
-
},
|
188
|
-
"van-area/columns-placeholder": {
|
189
|
-
"type": "string[]",
|
190
|
-
"description": "列占位提示文字, 默认值: `[]`"
|
191
|
-
},
|
192
|
-
"van-area/loading": {
|
193
|
-
"type": "boolean",
|
194
|
-
"description": "是否显示加载状态, 默认值: `false`"
|
195
|
-
},
|
196
|
-
"van-area/readonly": {
|
197
|
-
"type": "boolean",
|
198
|
-
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
199
|
-
},
|
200
|
-
"van-area/item-height": {
|
201
|
-
"type": "number | string",
|
202
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
203
|
-
},
|
204
|
-
"van-area/columns-num": {
|
205
|
-
"type": "number | string",
|
206
|
-
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
207
|
-
},
|
208
|
-
"van-area/visible-item-count": {
|
209
|
-
"type": "number | string",
|
210
|
-
"description": "可见的选项个数, 默认值: `6`"
|
211
|
-
},
|
212
|
-
"van-area/swipe-duration": {
|
213
|
-
"type": "number | string",
|
214
|
-
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
215
|
-
},
|
216
|
-
"van-area/is-oversea-code": {
|
217
|
-
"type": "() => boolean",
|
218
|
-
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
219
|
-
},
|
220
168
|
"van-address-edit/area-list": {
|
221
169
|
"type": "object",
|
222
170
|
"description": "地区列表, 默认值: -"
|
@@ -333,120 +281,57 @@
|
|
333
281
|
"type": "string",
|
334
282
|
"description": "默认地址标签文字, 默认值: -"
|
335
283
|
},
|
336
|
-
"van-
|
337
|
-
"type": "string",
|
338
|
-
"description": "类型,可选值为 `primary` `success` `warning` `danger`, 默认值: `default`"
|
339
|
-
},
|
340
|
-
"van-button/size": {
|
341
|
-
"type": "string",
|
342
|
-
"description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
|
343
|
-
},
|
344
|
-
"van-button/text": {
|
345
|
-
"type": "string",
|
346
|
-
"description": "按钮文字, 默认值: -"
|
347
|
-
},
|
348
|
-
"van-button/color": {
|
349
|
-
"type": "string",
|
350
|
-
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
|
351
|
-
},
|
352
|
-
"van-button/icon": {
|
353
|
-
"type": "string",
|
354
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
355
|
-
},
|
356
|
-
"van-button/icon-prefix": {
|
284
|
+
"van-area/value": {
|
357
285
|
"type": "string",
|
358
|
-
"description": "
|
286
|
+
"description": "当前选中项对应的地区码, 默认值: -"
|
359
287
|
},
|
360
|
-
"van-
|
288
|
+
"van-area/title": {
|
361
289
|
"type": "string",
|
362
|
-
"description": "
|
290
|
+
"description": "顶部栏标题, 默认值: -"
|
363
291
|
},
|
364
|
-
"van-button
|
292
|
+
"van-area/confirm-button-text": {
|
365
293
|
"type": "string",
|
366
|
-
"description": "
|
294
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
367
295
|
},
|
368
|
-
"van-
|
296
|
+
"van-area/cancel-button-text": {
|
369
297
|
"type": "string",
|
370
|
-
"description": "
|
371
|
-
},
|
372
|
-
"van-button/block": {
|
373
|
-
"type": "boolean",
|
374
|
-
"description": "是否为块级元素, 默认值: `false`"
|
375
|
-
},
|
376
|
-
"van-button/plain": {
|
377
|
-
"type": "boolean",
|
378
|
-
"description": "是否为朴素按钮, 默认值: `false`"
|
379
|
-
},
|
380
|
-
"van-button/square": {
|
381
|
-
"type": "boolean",
|
382
|
-
"description": "是否为方形按钮, 默认值: `false`"
|
298
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
383
299
|
},
|
384
|
-
"van-
|
385
|
-
"type": "
|
386
|
-
"description": "
|
300
|
+
"van-area/area-list": {
|
301
|
+
"type": "object",
|
302
|
+
"description": "省市区数据,格式见下方, 默认值: -"
|
387
303
|
},
|
388
|
-
"van-
|
389
|
-
"type": "
|
390
|
-
"description": "
|
304
|
+
"van-area/columns-placeholder": {
|
305
|
+
"type": "string[]",
|
306
|
+
"description": "列占位提示文字, 默认值: `[]`"
|
391
307
|
},
|
392
|
-
"van-
|
308
|
+
"van-area/loading": {
|
393
309
|
"type": "boolean",
|
394
|
-
"description": "
|
310
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
395
311
|
},
|
396
|
-
"van-
|
312
|
+
"van-area/readonly": {
|
397
313
|
"type": "boolean",
|
398
|
-
"description": "
|
399
|
-
},
|
400
|
-
"van-button/loading-text": {
|
401
|
-
"type": "string",
|
402
|
-
"description": "加载状态提示文字, 默认值: -"
|
403
|
-
},
|
404
|
-
"van-button/loading-type": {
|
405
|
-
"type": "string",
|
406
|
-
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
|
314
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
407
315
|
},
|
408
|
-
"van-
|
316
|
+
"van-area/item-height": {
|
409
317
|
"type": "number | string",
|
410
|
-
"description": "
|
411
|
-
},
|
412
|
-
"van-button/url": {
|
413
|
-
"type": "string",
|
414
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
415
|
-
},
|
416
|
-
"van-button/to": {
|
417
|
-
"type": "string | object",
|
418
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
419
|
-
},
|
420
|
-
"van-button/replace": {
|
421
|
-
"type": "boolean",
|
422
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
318
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
423
319
|
},
|
424
|
-
"van-
|
320
|
+
"van-area/columns-num": {
|
425
321
|
"type": "number | string",
|
426
|
-
"description": "
|
427
|
-
},
|
428
|
-
"van-badge/color": {
|
429
|
-
"type": "string",
|
430
|
-
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
431
|
-
},
|
432
|
-
"van-badge/dot": {
|
433
|
-
"type": "boolean",
|
434
|
-
"description": "是否展示为小红点, 默认值: `false`"
|
322
|
+
"description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
|
435
323
|
},
|
436
|
-
"van-
|
324
|
+
"van-area/visible-item-count": {
|
437
325
|
"type": "number | string",
|
438
|
-
"description": "
|
326
|
+
"description": "可见的选项个数, 默认值: `6`"
|
439
327
|
},
|
440
|
-
"van-
|
441
|
-
"type": "
|
442
|
-
"description": "
|
443
|
-
"options": [
|
444
|
-
"-"
|
445
|
-
]
|
328
|
+
"van-area/swipe-duration": {
|
329
|
+
"type": "number | string",
|
330
|
+
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
446
331
|
},
|
447
|
-
"van-
|
448
|
-
"type": "boolean",
|
449
|
-
"description": "
|
332
|
+
"van-area/is-oversea-code": {
|
333
|
+
"type": "() => boolean",
|
334
|
+
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
450
335
|
},
|
451
336
|
"van-calendar/type": {
|
452
337
|
"type": "string",
|
@@ -567,85 +452,200 @@
|
|
567
452
|
"type": "boolean",
|
568
453
|
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
569
454
|
},
|
570
|
-
"van-
|
455
|
+
"van-button/type": {
|
571
456
|
"type": "string",
|
572
|
-
"description": "
|
457
|
+
"description": "类型,可选值为 `primary` `success` `warning` `danger`, 默认值: `default`"
|
573
458
|
},
|
574
|
-
"van-
|
459
|
+
"van-button/size": {
|
575
460
|
"type": "string",
|
576
|
-
"description": "
|
461
|
+
"description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
|
577
462
|
},
|
578
|
-
"van-
|
463
|
+
"van-button/text": {
|
579
464
|
"type": "string",
|
580
|
-
"description": "
|
465
|
+
"description": "按钮文字, 默认值: -"
|
581
466
|
},
|
582
|
-
"van-
|
467
|
+
"van-button/color": {
|
583
468
|
"type": "string",
|
584
|
-
"description": "
|
585
|
-
},
|
586
|
-
"van-card/num": {
|
587
|
-
"type": "number | string",
|
588
|
-
"description": "商品数量, 默认值: -"
|
589
|
-
},
|
590
|
-
"van-card/price": {
|
591
|
-
"type": "number | string",
|
592
|
-
"description": "商品价格, 默认值: -"
|
593
|
-
},
|
594
|
-
"van-card/origin-price": {
|
595
|
-
"type": "number | string",
|
596
|
-
"description": "商品划线原价, 默认值: -"
|
597
|
-
},
|
598
|
-
"van-card/centered": {
|
599
|
-
"type": "boolean",
|
600
|
-
"description": "内容是否垂直居中, 默认值: `false`"
|
469
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
|
601
470
|
},
|
602
|
-
"van-
|
471
|
+
"van-button/icon": {
|
603
472
|
"type": "string",
|
604
|
-
"description": "
|
473
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
605
474
|
},
|
606
|
-
"van-
|
475
|
+
"van-button/icon-prefix": {
|
607
476
|
"type": "string",
|
608
|
-
"description": "
|
609
|
-
},
|
610
|
-
"van-card/lazy-load": {
|
611
|
-
"type": "boolean",
|
612
|
-
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
477
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
613
478
|
},
|
614
|
-
"van-
|
479
|
+
"van-button/icon-position": {
|
615
480
|
"type": "string",
|
616
|
-
"description": "
|
617
|
-
},
|
618
|
-
"van-cascader/value": {
|
619
|
-
"type": "string | number",
|
620
|
-
"description": "选中项的值, 默认值: -"
|
621
|
-
},
|
622
|
-
"van-cascader/options": {
|
623
|
-
"type": "Option[]",
|
624
|
-
"description": "可选项数据源, 默认值: `[]`"
|
481
|
+
"description": "图标展示位置,可选值为 `right`, 默认值: `left`"
|
625
482
|
},
|
626
|
-
"van-
|
483
|
+
"van-button/tag": {
|
627
484
|
"type": "string",
|
628
|
-
"description": "
|
485
|
+
"description": "按钮根节点的 HTML 标签, 默认值: `button`"
|
629
486
|
},
|
630
|
-
"van-
|
487
|
+
"van-button/native-type": {
|
631
488
|
"type": "string",
|
632
|
-
"description": "
|
489
|
+
"description": "原生 button 标签的 type 属性, 默认值: `button`"
|
633
490
|
},
|
634
|
-
"van-
|
491
|
+
"van-button/block": {
|
635
492
|
"type": "boolean",
|
636
|
-
"description": "
|
493
|
+
"description": "是否为块级元素, 默认值: `false`"
|
637
494
|
},
|
638
|
-
"van-
|
495
|
+
"van-button/plain": {
|
639
496
|
"type": "boolean",
|
640
|
-
"description": "
|
497
|
+
"description": "是否为朴素按钮, 默认值: `false`"
|
641
498
|
},
|
642
|
-
"van-
|
643
|
-
"type": "
|
644
|
-
"description": "
|
499
|
+
"van-button/square": {
|
500
|
+
"type": "boolean",
|
501
|
+
"description": "是否为方形按钮, 默认值: `false`"
|
645
502
|
},
|
646
|
-
"van-
|
647
|
-
"type": "
|
648
|
-
"description": "
|
503
|
+
"van-button/round": {
|
504
|
+
"type": "boolean",
|
505
|
+
"description": "是否为圆形按钮, 默认值: `false`"
|
506
|
+
},
|
507
|
+
"van-button/disabled": {
|
508
|
+
"type": "boolean",
|
509
|
+
"description": "是否禁用按钮, 默认值: `false`"
|
510
|
+
},
|
511
|
+
"van-button/hairline": {
|
512
|
+
"type": "boolean",
|
513
|
+
"description": "是否使用 0.5px 边框, 默认值: `false`"
|
514
|
+
},
|
515
|
+
"van-button/loading": {
|
516
|
+
"type": "boolean",
|
517
|
+
"description": "是否显示为加载状态, 默认值: `false`"
|
518
|
+
},
|
519
|
+
"van-button/loading-text": {
|
520
|
+
"type": "string",
|
521
|
+
"description": "加载状态提示文字, 默认值: -"
|
522
|
+
},
|
523
|
+
"van-button/loading-type": {
|
524
|
+
"type": "string",
|
525
|
+
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
|
526
|
+
},
|
527
|
+
"van-button/loading-size": {
|
528
|
+
"type": "number | string",
|
529
|
+
"description": "加载图标大小,默认单位为 `px`, 默认值: `20px`"
|
530
|
+
},
|
531
|
+
"van-button/url": {
|
532
|
+
"type": "string",
|
533
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
534
|
+
},
|
535
|
+
"van-button/to": {
|
536
|
+
"type": "string | object",
|
537
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
538
|
+
},
|
539
|
+
"van-button/replace": {
|
540
|
+
"type": "boolean",
|
541
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
542
|
+
},
|
543
|
+
"van-badge/content": {
|
544
|
+
"type": "number | string",
|
545
|
+
"description": "徽标内容, 默认值: -"
|
546
|
+
},
|
547
|
+
"van-badge/color": {
|
548
|
+
"type": "string",
|
549
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
550
|
+
},
|
551
|
+
"van-badge/dot": {
|
552
|
+
"type": "boolean",
|
553
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
554
|
+
},
|
555
|
+
"van-badge/max": {
|
556
|
+
"type": "number | string",
|
557
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
558
|
+
},
|
559
|
+
"van-badge/offset": {
|
560
|
+
"type": "[number | string, number \\",
|
561
|
+
"description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
|
562
|
+
"options": [
|
563
|
+
"-"
|
564
|
+
]
|
565
|
+
},
|
566
|
+
"van-badge/show-zero": {
|
567
|
+
"type": "boolean",
|
568
|
+
"description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
|
569
|
+
},
|
570
|
+
"van-card/thumb": {
|
571
|
+
"type": "string",
|
572
|
+
"description": "左侧图片 URL, 默认值: -"
|
573
|
+
},
|
574
|
+
"van-card/title": {
|
575
|
+
"type": "string",
|
576
|
+
"description": "标题, 默认值: -"
|
577
|
+
},
|
578
|
+
"van-card/desc": {
|
579
|
+
"type": "string",
|
580
|
+
"description": "描述, 默认值: -"
|
581
|
+
},
|
582
|
+
"van-card/tag": {
|
583
|
+
"type": "string",
|
584
|
+
"description": "图片角标, 默认值: -"
|
585
|
+
},
|
586
|
+
"van-card/num": {
|
587
|
+
"type": "number | string",
|
588
|
+
"description": "商品数量, 默认值: -"
|
589
|
+
},
|
590
|
+
"van-card/price": {
|
591
|
+
"type": "number | string",
|
592
|
+
"description": "商品价格, 默认值: -"
|
593
|
+
},
|
594
|
+
"van-card/origin-price": {
|
595
|
+
"type": "number | string",
|
596
|
+
"description": "商品划线原价, 默认值: -"
|
597
|
+
},
|
598
|
+
"van-card/centered": {
|
599
|
+
"type": "boolean",
|
600
|
+
"description": "内容是否垂直居中, 默认值: `false`"
|
601
|
+
},
|
602
|
+
"van-card/currency": {
|
603
|
+
"type": "string",
|
604
|
+
"description": "货币符号, 默认值: `¥`"
|
605
|
+
},
|
606
|
+
"van-card/thumb-link": {
|
607
|
+
"type": "string",
|
608
|
+
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
609
|
+
},
|
610
|
+
"van-card/lazy-load": {
|
611
|
+
"type": "boolean",
|
612
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
613
|
+
},
|
614
|
+
"van-cascader/title": {
|
615
|
+
"type": "string",
|
616
|
+
"description": "顶部标题, 默认值: -"
|
617
|
+
},
|
618
|
+
"van-cascader/value": {
|
619
|
+
"type": "string | number",
|
620
|
+
"description": "选中项的值, 默认值: -"
|
621
|
+
},
|
622
|
+
"van-cascader/options": {
|
623
|
+
"type": "Option[]",
|
624
|
+
"description": "可选项数据源, 默认值: `[]`"
|
625
|
+
},
|
626
|
+
"van-cascader/placeholder": {
|
627
|
+
"type": "string",
|
628
|
+
"description": "未选中时的提示文案, 默认值: `请选择`"
|
629
|
+
},
|
630
|
+
"van-cascader/active-color": {
|
631
|
+
"type": "string",
|
632
|
+
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
633
|
+
},
|
634
|
+
"van-cascader/swipeable": {
|
635
|
+
"type": "boolean",
|
636
|
+
"description": "是否开启手势左右滑动切换, 默认值: `false`"
|
637
|
+
},
|
638
|
+
"van-cascader/closeable": {
|
639
|
+
"type": "boolean",
|
640
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
641
|
+
},
|
642
|
+
"van-cascader/close-icon": {
|
643
|
+
"type": "string",
|
644
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
645
|
+
},
|
646
|
+
"van-cascader/field-names": {
|
647
|
+
"type": "object",
|
648
|
+
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
649
649
|
},
|
650
650
|
"van-cell-group/title": {
|
651
651
|
"type": "string",
|
@@ -807,6 +807,38 @@
|
|
807
807
|
"type": "string",
|
808
808
|
"description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
|
809
809
|
},
|
810
|
+
"van-row/gutter": {
|
811
|
+
"type": "number | string",
|
812
|
+
"description": "列元素之间的间距(单位为 px), 默认值: -"
|
813
|
+
},
|
814
|
+
"van-row/tag": {
|
815
|
+
"type": "string",
|
816
|
+
"description": "自定义元素标签, 默认值: `div`"
|
817
|
+
},
|
818
|
+
"van-row/justify": {
|
819
|
+
"type": "string",
|
820
|
+
"description": "主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`, 默认值: `start`"
|
821
|
+
},
|
822
|
+
"van-row/align": {
|
823
|
+
"type": "string",
|
824
|
+
"description": "交叉轴对齐方式,可选值为 `center` `bottom`, 默认值: `top`"
|
825
|
+
},
|
826
|
+
"van-row/wrap": {
|
827
|
+
"type": "boolean",
|
828
|
+
"description": "是否自动换行, 默认值: `true`"
|
829
|
+
},
|
830
|
+
"van-col/span": {
|
831
|
+
"type": "number | string",
|
832
|
+
"description": "列元素宽度, 默认值: -"
|
833
|
+
},
|
834
|
+
"van-col/offset": {
|
835
|
+
"type": "number | string",
|
836
|
+
"description": "列元素偏移距离, 默认值: -"
|
837
|
+
},
|
838
|
+
"van-col/tag": {
|
839
|
+
"type": "string",
|
840
|
+
"description": "自定义元素标签, 默认值: `div`"
|
841
|
+
},
|
810
842
|
"van-circle/v-model:current-rate": {
|
811
843
|
"type": "number",
|
812
844
|
"description": "当前进度, 默认值: -"
|
@@ -855,38 +887,6 @@
|
|
855
887
|
"type": "CircleStartPosition",
|
856
888
|
"description": "进度起始位置,可选值为 `left`、`right`、`bottom`, 默认值: `top`"
|
857
889
|
},
|
858
|
-
"van-row/gutter": {
|
859
|
-
"type": "number | string",
|
860
|
-
"description": "列元素之间的间距(单位为 px), 默认值: -"
|
861
|
-
},
|
862
|
-
"van-row/tag": {
|
863
|
-
"type": "string",
|
864
|
-
"description": "自定义元素标签, 默认值: `div`"
|
865
|
-
},
|
866
|
-
"van-row/justify": {
|
867
|
-
"type": "string",
|
868
|
-
"description": "主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`, 默认值: `start`"
|
869
|
-
},
|
870
|
-
"van-row/align": {
|
871
|
-
"type": "string",
|
872
|
-
"description": "交叉轴对齐方式,可选值为 `center` `bottom`, 默认值: `top`"
|
873
|
-
},
|
874
|
-
"van-row/wrap": {
|
875
|
-
"type": "boolean",
|
876
|
-
"description": "是否自动换行, 默认值: `true`"
|
877
|
-
},
|
878
|
-
"van-col/span": {
|
879
|
-
"type": "number | string",
|
880
|
-
"description": "列元素宽度, 默认值: -"
|
881
|
-
},
|
882
|
-
"van-col/offset": {
|
883
|
-
"type": "number | string",
|
884
|
-
"description": "列元素偏移距离, 默认值: -"
|
885
|
-
},
|
886
|
-
"van-col/tag": {
|
887
|
-
"type": "string",
|
888
|
-
"description": "自定义元素标签, 默认值: `div`"
|
889
|
-
},
|
890
890
|
"van-collapse/v-model": {
|
891
891
|
"type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
|
892
892
|
"description": "当前展开面板的 name, 默认值: string)[]_",
|
@@ -1540,6 +1540,34 @@
|
|
1540
1540
|
"type": "string",
|
1541
1541
|
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
1542
1542
|
},
|
1543
|
+
"van-icon/name": {
|
1544
|
+
"type": "string",
|
1545
|
+
"description": "图标名称或图片链接, 默认值: -"
|
1546
|
+
},
|
1547
|
+
"van-icon/dot": {
|
1548
|
+
"type": "boolean",
|
1549
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1550
|
+
},
|
1551
|
+
"van-icon/badge": {
|
1552
|
+
"type": "number | string",
|
1553
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1554
|
+
},
|
1555
|
+
"van-icon/color": {
|
1556
|
+
"type": "string",
|
1557
|
+
"description": "图标颜色, 默认值: `inherit`"
|
1558
|
+
},
|
1559
|
+
"van-icon/size": {
|
1560
|
+
"type": "number | string",
|
1561
|
+
"description": "图标大小,如 `20px` `2em`,默认单位为 `px`, 默认值: `inherit`"
|
1562
|
+
},
|
1563
|
+
"van-icon/class-prefix": {
|
1564
|
+
"type": "string",
|
1565
|
+
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1566
|
+
},
|
1567
|
+
"van-icon/tag": {
|
1568
|
+
"type": "string",
|
1569
|
+
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1570
|
+
},
|
1543
1571
|
"van-form/label-width": {
|
1544
1572
|
"type": "number | string",
|
1545
1573
|
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
@@ -1592,117 +1620,17 @@
|
|
1592
1620
|
"type": "boolean",
|
1593
1621
|
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1594
1622
|
},
|
1595
|
-
"van-
|
1623
|
+
"van-image/src": {
|
1596
1624
|
"type": "string",
|
1597
|
-
"description": "
|
1598
|
-
},
|
1599
|
-
"van-icon/dot": {
|
1600
|
-
"type": "boolean",
|
1601
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1625
|
+
"description": "图片链接, 默认值: -"
|
1602
1626
|
},
|
1603
|
-
"van-
|
1604
|
-
"type": "
|
1605
|
-
"description": "
|
1627
|
+
"van-image/fit": {
|
1628
|
+
"type": "string",
|
1629
|
+
"description": "图片填充模式, 默认值: `fill`"
|
1606
1630
|
},
|
1607
|
-
"van-
|
1631
|
+
"van-image/alt": {
|
1608
1632
|
"type": "string",
|
1609
|
-
"description": "
|
1610
|
-
},
|
1611
|
-
"van-icon/size": {
|
1612
|
-
"type": "number | string",
|
1613
|
-
"description": "图标大小,如 `20px` `2em`,默认单位为 `px`, 默认值: `inherit`"
|
1614
|
-
},
|
1615
|
-
"van-icon/class-prefix": {
|
1616
|
-
"type": "string",
|
1617
|
-
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1618
|
-
},
|
1619
|
-
"van-icon/tag": {
|
1620
|
-
"type": "string",
|
1621
|
-
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1622
|
-
},
|
1623
|
-
"van-grid/column-num": {
|
1624
|
-
"type": "number | string",
|
1625
|
-
"description": "列数, 默认值: `4`"
|
1626
|
-
},
|
1627
|
-
"van-grid/icon-size": {
|
1628
|
-
"type": "number | string",
|
1629
|
-
"description": "图标大小,默认单位为`px`, 默认值: `28px`"
|
1630
|
-
},
|
1631
|
-
"van-grid/gutter": {
|
1632
|
-
"type": "number | string",
|
1633
|
-
"description": "格子之间的间距,默认单位为`px`, 默认值: `0`"
|
1634
|
-
},
|
1635
|
-
"van-grid/border": {
|
1636
|
-
"type": "boolean",
|
1637
|
-
"description": "是否显示边框, 默认值: `true`"
|
1638
|
-
},
|
1639
|
-
"van-grid/center": {
|
1640
|
-
"type": "boolean",
|
1641
|
-
"description": "是否将格子内容居中显示, 默认值: `true`"
|
1642
|
-
},
|
1643
|
-
"van-grid/square": {
|
1644
|
-
"type": "boolean",
|
1645
|
-
"description": "是否将格子固定为正方形, 默认值: `false`"
|
1646
|
-
},
|
1647
|
-
"van-grid/clickable": {
|
1648
|
-
"type": "boolean",
|
1649
|
-
"description": "是否开启格子点击反馈, 默认值: `false`"
|
1650
|
-
},
|
1651
|
-
"van-grid/direction": {
|
1652
|
-
"type": "string",
|
1653
|
-
"description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
|
1654
|
-
},
|
1655
|
-
"van-grid-item/text": {
|
1656
|
-
"type": "string",
|
1657
|
-
"description": "文字, 默认值: -"
|
1658
|
-
},
|
1659
|
-
"van-grid-item/icon": {
|
1660
|
-
"type": "string",
|
1661
|
-
"description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1662
|
-
},
|
1663
|
-
"van-grid-item/icon-prefix": {
|
1664
|
-
"type": "string",
|
1665
|
-
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1666
|
-
},
|
1667
|
-
"van-grid-item/icon-color": {
|
1668
|
-
"type": "string",
|
1669
|
-
"description": "图标颜色,等同于 Icon 组件的 [color 属性](#/zh-CN/icon#props), 默认值: -"
|
1670
|
-
},
|
1671
|
-
"van-grid-item/reverse": {
|
1672
|
-
"type": "boolean",
|
1673
|
-
"description": "是否调换图标和文本的位置, 默认值: `false`"
|
1674
|
-
},
|
1675
|
-
"van-grid-item/dot": {
|
1676
|
-
"type": "boolean",
|
1677
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1678
|
-
},
|
1679
|
-
"van-grid-item/badge": {
|
1680
|
-
"type": "number | string",
|
1681
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1682
|
-
},
|
1683
|
-
"van-grid-item/url": {
|
1684
|
-
"type": "string",
|
1685
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
1686
|
-
},
|
1687
|
-
"van-grid-item/to": {
|
1688
|
-
"type": "string | object",
|
1689
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1690
|
-
},
|
1691
|
-
"van-grid-item/replace": {
|
1692
|
-
"type": "boolean",
|
1693
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1694
|
-
},
|
1695
|
-
"van-image/src": {
|
1696
|
-
"type": "string",
|
1697
|
-
"description": "图片链接, 默认值: -"
|
1698
|
-
},
|
1699
|
-
"van-image/fit": {
|
1700
|
-
"type": "string",
|
1701
|
-
"description": "图片填充模式, 默认值: `fill`"
|
1702
|
-
},
|
1703
|
-
"van-image/alt": {
|
1704
|
-
"type": "string",
|
1705
|
-
"description": "替代文本, 默认值: -"
|
1633
|
+
"description": "替代文本, 默认值: -"
|
1706
1634
|
},
|
1707
1635
|
"van-image/width": {
|
1708
1636
|
"type": "number | string",
|
@@ -1823,41 +1751,77 @@
|
|
1823
1751
|
"type": "string | Element",
|
1824
1752
|
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1825
1753
|
},
|
1826
|
-
"van-
|
1754
|
+
"van-grid/column-num": {
|
1755
|
+
"type": "number | string",
|
1756
|
+
"description": "列数, 默认值: `4`"
|
1757
|
+
},
|
1758
|
+
"van-grid/icon-size": {
|
1759
|
+
"type": "number | string",
|
1760
|
+
"description": "图标大小,默认单位为`px`, 默认值: `28px`"
|
1761
|
+
},
|
1762
|
+
"van-grid/gutter": {
|
1763
|
+
"type": "number | string",
|
1764
|
+
"description": "格子之间的间距,默认单位为`px`, 默认值: `0`"
|
1765
|
+
},
|
1766
|
+
"van-grid/border": {
|
1827
1767
|
"type": "boolean",
|
1828
|
-
"description": "
|
1768
|
+
"description": "是否显示边框, 默认值: `true`"
|
1829
1769
|
},
|
1830
|
-
"van-
|
1770
|
+
"van-grid/center": {
|
1831
1771
|
"type": "boolean",
|
1832
|
-
"description": "
|
1772
|
+
"description": "是否将格子内容居中显示, 默认值: `true`"
|
1833
1773
|
},
|
1834
|
-
"van-
|
1774
|
+
"van-grid/square": {
|
1835
1775
|
"type": "boolean",
|
1836
|
-
"description": "
|
1776
|
+
"description": "是否将格子固定为正方形, 默认值: `false`"
|
1837
1777
|
},
|
1838
|
-
"van-
|
1839
|
-
"type": "
|
1840
|
-
"description": "
|
1778
|
+
"van-grid/clickable": {
|
1779
|
+
"type": "boolean",
|
1780
|
+
"description": "是否开启格子点击反馈, 默认值: `false`"
|
1841
1781
|
},
|
1842
|
-
"van-
|
1782
|
+
"van-grid/direction": {
|
1843
1783
|
"type": "string",
|
1844
|
-
"description": "
|
1784
|
+
"description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
|
1845
1785
|
},
|
1846
|
-
"van-
|
1786
|
+
"van-grid-item/text": {
|
1847
1787
|
"type": "string",
|
1848
|
-
"description": "
|
1788
|
+
"description": "文字, 默认值: -"
|
1849
1789
|
},
|
1850
|
-
"van-
|
1790
|
+
"van-grid-item/icon": {
|
1851
1791
|
"type": "string",
|
1852
|
-
"description": "
|
1792
|
+
"description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1853
1793
|
},
|
1854
|
-
"van-
|
1794
|
+
"van-grid-item/icon-prefix": {
|
1795
|
+
"type": "string",
|
1796
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1797
|
+
},
|
1798
|
+
"van-grid-item/icon-color": {
|
1799
|
+
"type": "string",
|
1800
|
+
"description": "图标颜色,等同于 Icon 组件的 [color 属性](#/zh-CN/icon#props), 默认值: -"
|
1801
|
+
},
|
1802
|
+
"van-grid-item/reverse": {
|
1855
1803
|
"type": "boolean",
|
1856
|
-
"description": "
|
1804
|
+
"description": "是否调换图标和文本的位置, 默认值: `false`"
|
1857
1805
|
},
|
1858
|
-
"van-
|
1806
|
+
"van-grid-item/dot": {
|
1807
|
+
"type": "boolean",
|
1808
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1809
|
+
},
|
1810
|
+
"van-grid-item/badge": {
|
1811
|
+
"type": "number | string",
|
1812
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1813
|
+
},
|
1814
|
+
"van-grid-item/url": {
|
1859
1815
|
"type": "string",
|
1860
|
-
"description": "
|
1816
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
1817
|
+
},
|
1818
|
+
"van-grid-item/to": {
|
1819
|
+
"type": "string | object",
|
1820
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1821
|
+
},
|
1822
|
+
"van-grid-item/replace": {
|
1823
|
+
"type": "boolean",
|
1824
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1861
1825
|
},
|
1862
1826
|
"van-index-bar/index-list": {
|
1863
1827
|
"type": "string[] | number[]",
|
@@ -1887,6 +1851,78 @@
|
|
1887
1851
|
"type": "number | string",
|
1888
1852
|
"description": "索引字符, 默认值: -"
|
1889
1853
|
},
|
1854
|
+
"van-list/v-model:loading": {
|
1855
|
+
"type": "boolean",
|
1856
|
+
"description": "是否处于加载状态,加载过程中不触发 `load` 事件, 默认值: `false`"
|
1857
|
+
},
|
1858
|
+
"van-list/v-model:error": {
|
1859
|
+
"type": "boolean",
|
1860
|
+
"description": "是否加载失败,加载失败后点击错误提示可以重新触发 `load` 事件, 默认值: `false`"
|
1861
|
+
},
|
1862
|
+
"van-list/finished": {
|
1863
|
+
"type": "boolean",
|
1864
|
+
"description": "是否已加载完成,加载完成后不再触发 `load` 事件, 默认值: `false`"
|
1865
|
+
},
|
1866
|
+
"van-list/offset": {
|
1867
|
+
"type": "number | string",
|
1868
|
+
"description": "滚动条与底部距离小于 offset 时触发 `load` 事件, 默认值: `300`"
|
1869
|
+
},
|
1870
|
+
"van-list/loading-text": {
|
1871
|
+
"type": "string",
|
1872
|
+
"description": "加载过程中的提示文案, 默认值: `加载中...`"
|
1873
|
+
},
|
1874
|
+
"van-list/finished-text": {
|
1875
|
+
"type": "string",
|
1876
|
+
"description": "加载完成后的提示文案, 默认值: -"
|
1877
|
+
},
|
1878
|
+
"van-list/error-text": {
|
1879
|
+
"type": "string",
|
1880
|
+
"description": "加载失败后的提示文案, 默认值: -"
|
1881
|
+
},
|
1882
|
+
"van-list/immediate-check": {
|
1883
|
+
"type": "boolean",
|
1884
|
+
"description": "是否在初始化时立即执行滚动位置检查, 默认值: `true`"
|
1885
|
+
},
|
1886
|
+
"van-list/direction": {
|
1887
|
+
"type": "string",
|
1888
|
+
"description": "滚动触发加载的方向,可选值为 `up`, 默认值: `down`"
|
1889
|
+
},
|
1890
|
+
"van-notice-bar/mode": {
|
1891
|
+
"type": "string",
|
1892
|
+
"description": "通知栏模式,可选值为 `closeable` `link`, 默认值: `''`"
|
1893
|
+
},
|
1894
|
+
"van-notice-bar/text": {
|
1895
|
+
"type": "string",
|
1896
|
+
"description": "通知文本内容, 默认值: `''`"
|
1897
|
+
},
|
1898
|
+
"van-notice-bar/color": {
|
1899
|
+
"type": "string",
|
1900
|
+
"description": "通知文本颜色, 默认值: `#f60`"
|
1901
|
+
},
|
1902
|
+
"van-notice-bar/background": {
|
1903
|
+
"type": "string",
|
1904
|
+
"description": "滚动条背景, 默认值: `#fff7cc`"
|
1905
|
+
},
|
1906
|
+
"van-notice-bar/left-icon": {
|
1907
|
+
"type": "string",
|
1908
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1909
|
+
},
|
1910
|
+
"van-notice-bar/delay": {
|
1911
|
+
"type": "number | string",
|
1912
|
+
"description": "动画延迟时间 (s), 默认值: `1`"
|
1913
|
+
},
|
1914
|
+
"van-notice-bar/speed": {
|
1915
|
+
"type": "number | string",
|
1916
|
+
"description": "滚动速率 (px/s), 默认值: `60`"
|
1917
|
+
},
|
1918
|
+
"van-notice-bar/scrollable": {
|
1919
|
+
"type": "boolean",
|
1920
|
+
"description": "是否开启滚动播放,内容长度溢出时默认开启, 默认值: -"
|
1921
|
+
},
|
1922
|
+
"van-notice-bar/wrapable": {
|
1923
|
+
"type": "boolean",
|
1924
|
+
"description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
|
1925
|
+
},
|
1890
1926
|
"van-loading/color": {
|
1891
1927
|
"type": "string",
|
1892
1928
|
"description": "颜色, 默认值: `#c9c9c9`"
|
@@ -1947,113 +1983,17 @@
|
|
1947
1983
|
"type": "boolean",
|
1948
1984
|
"description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
1949
1985
|
},
|
1950
|
-
"van-
|
1986
|
+
"van-number-keyboard/v-model": {
|
1951
1987
|
"type": "string",
|
1952
|
-
"description": "
|
1988
|
+
"description": "当前输入值, 默认值: -"
|
1953
1989
|
},
|
1954
|
-
"van-
|
1955
|
-
"type": "
|
1956
|
-
"description": "
|
1990
|
+
"van-number-keyboard/show": {
|
1991
|
+
"type": "boolean",
|
1992
|
+
"description": "是否显示键盘, 默认值: -"
|
1957
1993
|
},
|
1958
|
-
"van-
|
1994
|
+
"van-number-keyboard/title": {
|
1959
1995
|
"type": "string",
|
1960
|
-
"description": "
|
1961
|
-
},
|
1962
|
-
"van-notice-bar/background": {
|
1963
|
-
"type": "string",
|
1964
|
-
"description": "滚动条背景, 默认值: `#fff7cc`"
|
1965
|
-
},
|
1966
|
-
"van-notice-bar/left-icon": {
|
1967
|
-
"type": "string",
|
1968
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1969
|
-
},
|
1970
|
-
"van-notice-bar/delay": {
|
1971
|
-
"type": "number | string",
|
1972
|
-
"description": "动画延迟时间 (s), 默认值: `1`"
|
1973
|
-
},
|
1974
|
-
"van-notice-bar/speed": {
|
1975
|
-
"type": "number | string",
|
1976
|
-
"description": "滚动速率 (px/s), 默认值: `60`"
|
1977
|
-
},
|
1978
|
-
"van-notice-bar/scrollable": {
|
1979
|
-
"type": "boolean",
|
1980
|
-
"description": "是否开启滚动播放,内容长度溢出时默认开启, 默认值: -"
|
1981
|
-
},
|
1982
|
-
"van-notice-bar/wrapable": {
|
1983
|
-
"type": "boolean",
|
1984
|
-
"description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
|
1985
|
-
},
|
1986
|
-
"van-overlay/show": {
|
1987
|
-
"type": "boolean",
|
1988
|
-
"description": "是否展示遮罩层, 默认值: `false`"
|
1989
|
-
},
|
1990
|
-
"van-overlay/z-index": {
|
1991
|
-
"type": "number | string",
|
1992
|
-
"description": "z-index 层级, 默认值: `1`"
|
1993
|
-
},
|
1994
|
-
"van-overlay/duration": {
|
1995
|
-
"type": "number | string",
|
1996
|
-
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
1997
|
-
},
|
1998
|
-
"van-overlay/class-name": {
|
1999
|
-
"type": "string",
|
2000
|
-
"description": "自定义类名, 默认值: -"
|
2001
|
-
},
|
2002
|
-
"van-overlay/custom-style": {
|
2003
|
-
"type": "object",
|
2004
|
-
"description": "自定义样式, 默认值: -"
|
2005
|
-
},
|
2006
|
-
"van-overlay/lock-scroll": {
|
2007
|
-
"type": "boolean",
|
2008
|
-
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
2009
|
-
},
|
2010
|
-
"van-pagination/v-model": {
|
2011
|
-
"type": "number",
|
2012
|
-
"description": "当前页码, 默认值: -"
|
2013
|
-
},
|
2014
|
-
"van-pagination/mode": {
|
2015
|
-
"type": "string",
|
2016
|
-
"description": "显示模式,可选值为 `simple`, 默认值: `multi`"
|
2017
|
-
},
|
2018
|
-
"van-pagination/prev-text": {
|
2019
|
-
"type": "string",
|
2020
|
-
"description": "上一页按钮文字, 默认值: `上一页`"
|
2021
|
-
},
|
2022
|
-
"van-pagination/next-text": {
|
2023
|
-
"type": "string",
|
2024
|
-
"description": "下一页按钮文字, 默认值: `下一页`"
|
2025
|
-
},
|
2026
|
-
"van-pagination/page-count": {
|
2027
|
-
"type": "number | string",
|
2028
|
-
"description": "总页数, 默认值: 根据页数计算"
|
2029
|
-
},
|
2030
|
-
"van-pagination/total-items": {
|
2031
|
-
"type": "number | string",
|
2032
|
-
"description": "总记录数, 默认值: `0`"
|
2033
|
-
},
|
2034
|
-
"van-pagination/items-per-page": {
|
2035
|
-
"type": "number | string",
|
2036
|
-
"description": "每页记录数, 默认值: `10`"
|
2037
|
-
},
|
2038
|
-
"van-pagination/show-page-size": {
|
2039
|
-
"type": "number | string",
|
2040
|
-
"description": "显示的页码个数, 默认值: `5`"
|
2041
|
-
},
|
2042
|
-
"van-pagination/force-ellipses": {
|
2043
|
-
"type": "boolean",
|
2044
|
-
"description": "是否显示省略号, 默认值: `false`"
|
2045
|
-
},
|
2046
|
-
"van-number-keyboard/v-model": {
|
2047
|
-
"type": "string",
|
2048
|
-
"description": "当前输入值, 默认值: -"
|
2049
|
-
},
|
2050
|
-
"van-number-keyboard/show": {
|
2051
|
-
"type": "boolean",
|
2052
|
-
"description": "是否显示键盘, 默认值: -"
|
2053
|
-
},
|
2054
|
-
"van-number-keyboard/title": {
|
2055
|
-
"type": "string",
|
2056
|
-
"description": "键盘标题, 默认值: -"
|
1996
|
+
"description": "键盘标题, 默认值: -"
|
2057
1997
|
},
|
2058
1998
|
"van-number-keyboard/theme": {
|
2059
1999
|
"type": "string",
|
@@ -2111,6 +2051,30 @@
|
|
2111
2051
|
"type": "boolean",
|
2112
2052
|
"description": "是否将通过随机顺序展示按键, 默认值: `false`"
|
2113
2053
|
},
|
2054
|
+
"van-overlay/show": {
|
2055
|
+
"type": "boolean",
|
2056
|
+
"description": "是否展示遮罩层, 默认值: `false`"
|
2057
|
+
},
|
2058
|
+
"van-overlay/z-index": {
|
2059
|
+
"type": "number | string",
|
2060
|
+
"description": "z-index 层级, 默认值: `1`"
|
2061
|
+
},
|
2062
|
+
"van-overlay/duration": {
|
2063
|
+
"type": "number | string",
|
2064
|
+
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
2065
|
+
},
|
2066
|
+
"van-overlay/class-name": {
|
2067
|
+
"type": "string",
|
2068
|
+
"description": "自定义类名, 默认值: -"
|
2069
|
+
},
|
2070
|
+
"van-overlay/custom-style": {
|
2071
|
+
"type": "object",
|
2072
|
+
"description": "自定义样式, 默认值: -"
|
2073
|
+
},
|
2074
|
+
"van-overlay/lock-scroll": {
|
2075
|
+
"type": "boolean",
|
2076
|
+
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
2077
|
+
},
|
2114
2078
|
"van-picker/columns": {
|
2115
2079
|
"type": "Column[]",
|
2116
2080
|
"description": "对象数组,配置每一列显示的数据, 默认值: `[]`"
|
@@ -2163,6 +2127,70 @@
|
|
2163
2127
|
"type": "number | string",
|
2164
2128
|
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
2165
2129
|
},
|
2130
|
+
"van-password-input/value": {
|
2131
|
+
"type": "string",
|
2132
|
+
"description": "密码值, 默认值: `''`"
|
2133
|
+
},
|
2134
|
+
"van-password-input/info": {
|
2135
|
+
"type": "string",
|
2136
|
+
"description": "输入框下方文字提示, 默认值: -"
|
2137
|
+
},
|
2138
|
+
"van-password-input/error-info": {
|
2139
|
+
"type": "string",
|
2140
|
+
"description": "输入框下方错误提示, 默认值: -"
|
2141
|
+
},
|
2142
|
+
"van-password-input/length": {
|
2143
|
+
"type": "number | string",
|
2144
|
+
"description": "密码最大长度, 默认值: `6`"
|
2145
|
+
},
|
2146
|
+
"van-password-input/gutter": {
|
2147
|
+
"type": "number | string",
|
2148
|
+
"description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
|
2149
|
+
},
|
2150
|
+
"van-password-input/mask": {
|
2151
|
+
"type": "boolean",
|
2152
|
+
"description": "是否隐藏密码内容, 默认值: `true`"
|
2153
|
+
},
|
2154
|
+
"van-password-input/focused": {
|
2155
|
+
"type": "boolean",
|
2156
|
+
"description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
|
2157
|
+
},
|
2158
|
+
"van-pagination/v-model": {
|
2159
|
+
"type": "number",
|
2160
|
+
"description": "当前页码, 默认值: -"
|
2161
|
+
},
|
2162
|
+
"van-pagination/mode": {
|
2163
|
+
"type": "string",
|
2164
|
+
"description": "显示模式,可选值为 `simple`, 默认值: `multi`"
|
2165
|
+
},
|
2166
|
+
"van-pagination/prev-text": {
|
2167
|
+
"type": "string",
|
2168
|
+
"description": "上一页按钮文字, 默认值: `上一页`"
|
2169
|
+
},
|
2170
|
+
"van-pagination/next-text": {
|
2171
|
+
"type": "string",
|
2172
|
+
"description": "下一页按钮文字, 默认值: `下一页`"
|
2173
|
+
},
|
2174
|
+
"van-pagination/page-count": {
|
2175
|
+
"type": "number | string",
|
2176
|
+
"description": "总页数, 默认值: 根据页数计算"
|
2177
|
+
},
|
2178
|
+
"van-pagination/total-items": {
|
2179
|
+
"type": "number | string",
|
2180
|
+
"description": "总记录数, 默认值: `0`"
|
2181
|
+
},
|
2182
|
+
"van-pagination/items-per-page": {
|
2183
|
+
"type": "number | string",
|
2184
|
+
"description": "每页记录数, 默认值: `10`"
|
2185
|
+
},
|
2186
|
+
"van-pagination/show-page-size": {
|
2187
|
+
"type": "number | string",
|
2188
|
+
"description": "显示的页码个数, 默认值: `5`"
|
2189
|
+
},
|
2190
|
+
"van-pagination/force-ellipses": {
|
2191
|
+
"type": "boolean",
|
2192
|
+
"description": "是否显示省略号, 默认值: `false`"
|
2193
|
+
},
|
2166
2194
|
"van-popover/v-model:show": {
|
2167
2195
|
"type": "boolean",
|
2168
2196
|
"description": "是否展示气泡弹出层, 默认值: `false`"
|
@@ -2230,34 +2258,6 @@
|
|
2230
2258
|
"type": "string",
|
2231
2259
|
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2232
2260
|
},
|
2233
|
-
"van-password-input/value": {
|
2234
|
-
"type": "string",
|
2235
|
-
"description": "密码值, 默认值: `''`"
|
2236
|
-
},
|
2237
|
-
"van-password-input/info": {
|
2238
|
-
"type": "string",
|
2239
|
-
"description": "输入框下方文字提示, 默认值: -"
|
2240
|
-
},
|
2241
|
-
"van-password-input/error-info": {
|
2242
|
-
"type": "string",
|
2243
|
-
"description": "输入框下方错误提示, 默认值: -"
|
2244
|
-
},
|
2245
|
-
"van-password-input/length": {
|
2246
|
-
"type": "number | string",
|
2247
|
-
"description": "密码最大长度, 默认值: `6`"
|
2248
|
-
},
|
2249
|
-
"van-password-input/gutter": {
|
2250
|
-
"type": "number | string",
|
2251
|
-
"description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
|
2252
|
-
},
|
2253
|
-
"van-password-input/mask": {
|
2254
|
-
"type": "boolean",
|
2255
|
-
"description": "是否隐藏密码内容, 默认值: `true`"
|
2256
|
-
},
|
2257
|
-
"van-password-input/focused": {
|
2258
|
-
"type": "boolean",
|
2259
|
-
"description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
|
2260
|
-
},
|
2261
2261
|
"van-popup/v-model:show": {
|
2262
2262
|
"type": "boolean",
|
2263
2263
|
"description": "是否显示弹出层, 默认值: `false`"
|
@@ -2341,6 +2341,42 @@
|
|
2341
2341
|
"type": "boolean",
|
2342
2342
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
2343
2343
|
},
|
2344
|
+
"van-progress/percentage": {
|
2345
|
+
"type": "number | string",
|
2346
|
+
"description": "进度百分比, 默认值: `0`"
|
2347
|
+
},
|
2348
|
+
"van-progress/stroke-width": {
|
2349
|
+
"type": "number | string",
|
2350
|
+
"description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
|
2351
|
+
},
|
2352
|
+
"van-progress/color": {
|
2353
|
+
"type": "string",
|
2354
|
+
"description": "进度条颜色, 默认值: `#1989fa`"
|
2355
|
+
},
|
2356
|
+
"van-progress/track-color": {
|
2357
|
+
"type": "string",
|
2358
|
+
"description": "轨道颜色, 默认值: `#e5e5e5`"
|
2359
|
+
},
|
2360
|
+
"van-progress/pivot-text": {
|
2361
|
+
"type": "string",
|
2362
|
+
"description": "进度文字内容, 默认值: 百分比"
|
2363
|
+
},
|
2364
|
+
"van-progress/pivot-color": {
|
2365
|
+
"type": "string",
|
2366
|
+
"description": "进度文字背景色, 默认值: 同进度条颜色"
|
2367
|
+
},
|
2368
|
+
"van-progress/text-color": {
|
2369
|
+
"type": "string",
|
2370
|
+
"description": "进度文字颜色, 默认值: `white`"
|
2371
|
+
},
|
2372
|
+
"van-progress/inactive": {
|
2373
|
+
"type": "boolean",
|
2374
|
+
"description": "是否置灰, 默认值: `false`"
|
2375
|
+
},
|
2376
|
+
"van-progress/show-pivot": {
|
2377
|
+
"type": "boolean",
|
2378
|
+
"description": "是否显示进度文字, 默认值: `true`"
|
2379
|
+
},
|
2344
2380
|
"van-pull-refresh/v-model": {
|
2345
2381
|
"type": "boolean",
|
2346
2382
|
"description": "是否处于加载中状态, 默认值: -"
|
@@ -2381,41 +2417,101 @@
|
|
2381
2417
|
"type": "boolean",
|
2382
2418
|
"description": "是否禁用下拉刷新, 默认值: `false`"
|
2383
2419
|
},
|
2384
|
-
"van-
|
2420
|
+
"van-search/v-model": {
|
2385
2421
|
"type": "number | string",
|
2386
|
-
"description": "
|
2422
|
+
"description": "当前输入的值, 默认值: -"
|
2387
2423
|
},
|
2388
|
-
"van-
|
2389
|
-
"type": "
|
2390
|
-
"description": "
|
2424
|
+
"van-search/label": {
|
2425
|
+
"type": "string",
|
2426
|
+
"description": "搜索框左侧文本, 默认值: -"
|
2391
2427
|
},
|
2392
|
-
"van-
|
2428
|
+
"van-search/name": {
|
2393
2429
|
"type": "string",
|
2394
|
-
"description": "
|
2430
|
+
"description": "名称,作为提交表单时的标识符, 默认值: -"
|
2395
2431
|
},
|
2396
|
-
"van-
|
2432
|
+
"van-search/shape": {
|
2397
2433
|
"type": "string",
|
2398
|
-
"description": "
|
2434
|
+
"description": "搜索框形状,可选值为 `round`, 默认值: `square`"
|
2399
2435
|
},
|
2400
|
-
"van-
|
2436
|
+
"van-search/id": {
|
2401
2437
|
"type": "string",
|
2402
|
-
"description": "
|
2438
|
+
"description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: -"
|
2403
2439
|
},
|
2404
|
-
"van-
|
2440
|
+
"van-search/background": {
|
2405
2441
|
"type": "string",
|
2406
|
-
"description": "
|
2442
|
+
"description": "搜索框外部背景色, 默认值: `#f2f2f2`"
|
2407
2443
|
},
|
2408
|
-
"van-
|
2444
|
+
"van-search/maxlength": {
|
2445
|
+
"type": "number | string",
|
2446
|
+
"description": "输入的最大字符数, 默认值: -"
|
2447
|
+
},
|
2448
|
+
"van-search/placeholder": {
|
2409
2449
|
"type": "string",
|
2410
|
-
"description": "
|
2450
|
+
"description": "占位提示文字, 默认值: -"
|
2411
2451
|
},
|
2412
|
-
"van-
|
2452
|
+
"van-search/clearable": {
|
2413
2453
|
"type": "boolean",
|
2414
|
-
"description": "
|
2454
|
+
"description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
|
2415
2455
|
},
|
2416
|
-
"van-
|
2456
|
+
"van-search/clear-icon": {
|
2457
|
+
"type": "string",
|
2458
|
+
"description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
|
2459
|
+
},
|
2460
|
+
"van-search/clear-trigger": {
|
2461
|
+
"type": "string",
|
2462
|
+
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
|
2463
|
+
},
|
2464
|
+
"van-search/autofocus": {
|
2417
2465
|
"type": "boolean",
|
2418
|
-
"description": "
|
2466
|
+
"description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
|
2467
|
+
},
|
2468
|
+
"van-search/show-action": {
|
2469
|
+
"type": "boolean",
|
2470
|
+
"description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
|
2471
|
+
},
|
2472
|
+
"van-search/action-text": {
|
2473
|
+
"type": "boolean",
|
2474
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
2475
|
+
},
|
2476
|
+
"van-search/disabled": {
|
2477
|
+
"type": "boolean",
|
2478
|
+
"description": "是否禁用输入框, 默认值: `false`"
|
2479
|
+
},
|
2480
|
+
"van-search/readonly": {
|
2481
|
+
"type": "boolean",
|
2482
|
+
"description": "是否将输入框设为只读状态,只读状态下无法输入内容, 默认值: `false`"
|
2483
|
+
},
|
2484
|
+
"van-search/error": {
|
2485
|
+
"type": "boolean",
|
2486
|
+
"description": "是否将输入内容标红, 默认值: `false`"
|
2487
|
+
},
|
2488
|
+
"van-search/error-message": {
|
2489
|
+
"type": "string",
|
2490
|
+
"description": "底部错误提示文案,为空时不展示, 默认值: -"
|
2491
|
+
},
|
2492
|
+
"van-search/formatter": {
|
2493
|
+
"type": "(val: string) => string",
|
2494
|
+
"description": "输入内容格式化函数, 默认值: -"
|
2495
|
+
},
|
2496
|
+
"van-search/format-trigger": {
|
2497
|
+
"type": "string",
|
2498
|
+
"description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
|
2499
|
+
},
|
2500
|
+
"van-search/input-align": {
|
2501
|
+
"type": "string",
|
2502
|
+
"description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
2503
|
+
},
|
2504
|
+
"van-search/left-icon": {
|
2505
|
+
"type": "string",
|
2506
|
+
"description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
|
2507
|
+
},
|
2508
|
+
"van-search/right-icon": {
|
2509
|
+
"type": "string",
|
2510
|
+
"description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2511
|
+
},
|
2512
|
+
"van-search/autocomplete": {
|
2513
|
+
"type": "string",
|
2514
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
2419
2515
|
},
|
2420
2516
|
"van-radio/name": {
|
2421
2517
|
"type": "any",
|
@@ -2465,145 +2561,61 @@
|
|
2465
2561
|
"type": "string",
|
2466
2562
|
"description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
|
2467
2563
|
},
|
2468
|
-
"van-rate/v-model": {
|
2469
|
-
"type": "number",
|
2470
|
-
"description": "当前分值, 默认值: -"
|
2471
|
-
},
|
2472
|
-
"van-rate/count": {
|
2473
|
-
"type": "number | string",
|
2474
|
-
"description": "图标总数, 默认值: `5`"
|
2475
|
-
},
|
2476
|
-
"van-rate/size": {
|
2477
|
-
"type": "number | string",
|
2478
|
-
"description": "图标大小,默认单位为`px`, 默认值: `20px`"
|
2479
|
-
},
|
2480
|
-
"van-rate/gutter": {
|
2481
|
-
"type": "number | string",
|
2482
|
-
"description": "图标间距,默认单位为`px`, 默认值: `4px`"
|
2483
|
-
},
|
2484
|
-
"van-rate/color": {
|
2485
|
-
"type": "string",
|
2486
|
-
"description": "选中时的颜色, 默认值: `#ee0a24`"
|
2487
|
-
},
|
2488
|
-
"van-rate/void-color": {
|
2489
|
-
"type": "string",
|
2490
|
-
"description": "未选中时的颜色, 默认值: `#c8c9cc`"
|
2491
|
-
},
|
2492
|
-
"van-rate/disabled-color": {
|
2493
|
-
"type": "string",
|
2494
|
-
"description": "禁用时的颜色, 默认值: `#c8c9cc`"
|
2495
|
-
},
|
2496
|
-
"van-rate/icon": {
|
2497
|
-
"type": "string",
|
2498
|
-
"description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
|
2499
|
-
},
|
2500
|
-
"van-rate/void-icon": {
|
2501
|
-
"type": "string",
|
2502
|
-
"description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
|
2503
|
-
},
|
2504
|
-
"van-rate/icon-prefix": {
|
2505
|
-
"type": "string",
|
2506
|
-
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2507
|
-
},
|
2508
|
-
"van-rate/allow-half": {
|
2509
|
-
"type": "boolean",
|
2510
|
-
"description": "是否允许半选, 默认值: `false`"
|
2511
|
-
},
|
2512
|
-
"van-rate/readonly": {
|
2513
|
-
"type": "boolean",
|
2514
|
-
"description": "是否为只读状态,只读状态下无法修改评分, 默认值: `false`"
|
2515
|
-
},
|
2516
|
-
"van-rate/disabled": {
|
2517
|
-
"type": "boolean",
|
2518
|
-
"description": "是否禁用评分, 默认值: `false`"
|
2519
|
-
},
|
2520
|
-
"van-rate/touchable": {
|
2521
|
-
"type": "boolean",
|
2522
|
-
"description": "是否可以通过滑动手势选择评分, 默认值: `true`"
|
2523
|
-
},
|
2524
|
-
"van-search/label": {
|
2525
|
-
"type": "string",
|
2526
|
-
"description": "搜索框左侧文本, 默认值: -"
|
2527
|
-
},
|
2528
|
-
"van-search/shape": {
|
2529
|
-
"type": "string",
|
2530
|
-
"description": "搜索框形状,可选值为 `round`, 默认值: `square`"
|
2531
|
-
},
|
2532
|
-
"van-search/id": {
|
2533
|
-
"type": "string",
|
2534
|
-
"description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: -"
|
2535
|
-
},
|
2536
|
-
"van-search/background": {
|
2537
|
-
"type": "string",
|
2538
|
-
"description": "搜索框外部背景色, 默认值: `#f2f2f2`"
|
2539
|
-
},
|
2540
|
-
"van-search/maxlength": {
|
2541
|
-
"type": "number | string",
|
2542
|
-
"description": "输入的最大字符数, 默认值: -"
|
2543
|
-
},
|
2544
|
-
"van-search/placeholder": {
|
2545
|
-
"type": "string",
|
2546
|
-
"description": "占位提示文字, 默认值: -"
|
2547
|
-
},
|
2548
|
-
"van-search/clearable": {
|
2549
|
-
"type": "boolean",
|
2550
|
-
"description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
|
2551
|
-
},
|
2552
|
-
"van-search/clear-icon": {
|
2553
|
-
"type": "string",
|
2554
|
-
"description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
|
2555
|
-
},
|
2556
|
-
"van-search/clear-trigger": {
|
2557
|
-
"type": "string",
|
2558
|
-
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
|
2559
|
-
},
|
2560
|
-
"van-search/autofocus": {
|
2561
|
-
"type": "boolean",
|
2562
|
-
"description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
|
2563
|
-
},
|
2564
|
-
"van-search/show-action": {
|
2565
|
-
"type": "boolean",
|
2566
|
-
"description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
|
2567
|
-
},
|
2568
|
-
"van-search/action-text": {
|
2569
|
-
"type": "boolean",
|
2570
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
2564
|
+
"van-rate/v-model": {
|
2565
|
+
"type": "number",
|
2566
|
+
"description": "当前分值, 默认值: -"
|
2571
2567
|
},
|
2572
|
-
"van-
|
2573
|
-
"type": "
|
2574
|
-
"description": "
|
2568
|
+
"van-rate/count": {
|
2569
|
+
"type": "number | string",
|
2570
|
+
"description": "图标总数, 默认值: `5`"
|
2575
2571
|
},
|
2576
|
-
"van-
|
2577
|
-
"type": "
|
2578
|
-
"description": "
|
2572
|
+
"van-rate/size": {
|
2573
|
+
"type": "number | string",
|
2574
|
+
"description": "图标大小,默认单位为`px`, 默认值: `20px`"
|
2579
2575
|
},
|
2580
|
-
"van-
|
2581
|
-
"type": "
|
2582
|
-
"description": "
|
2576
|
+
"van-rate/gutter": {
|
2577
|
+
"type": "number | string",
|
2578
|
+
"description": "图标间距,默认单位为`px`, 默认值: `4px`"
|
2583
2579
|
},
|
2584
|
-
"van-
|
2580
|
+
"van-rate/color": {
|
2585
2581
|
"type": "string",
|
2586
|
-
"description": "
|
2582
|
+
"description": "选中时的颜色, 默认值: `#ee0a24`"
|
2587
2583
|
},
|
2588
|
-
"van-
|
2589
|
-
"type": "
|
2590
|
-
"description": "
|
2584
|
+
"van-rate/void-color": {
|
2585
|
+
"type": "string",
|
2586
|
+
"description": "未选中时的颜色, 默认值: `#c8c9cc`"
|
2591
2587
|
},
|
2592
|
-
"van-
|
2588
|
+
"van-rate/disabled-color": {
|
2593
2589
|
"type": "string",
|
2594
|
-
"description": "
|
2590
|
+
"description": "禁用时的颜色, 默认值: `#c8c9cc`"
|
2595
2591
|
},
|
2596
|
-
"van-
|
2592
|
+
"van-rate/icon": {
|
2597
2593
|
"type": "string",
|
2598
|
-
"description": "
|
2594
|
+
"description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
|
2599
2595
|
},
|
2600
|
-
"van-
|
2596
|
+
"van-rate/void-icon": {
|
2601
2597
|
"type": "string",
|
2602
|
-
"description": "
|
2598
|
+
"description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
|
2603
2599
|
},
|
2604
|
-
"van-
|
2600
|
+
"van-rate/icon-prefix": {
|
2605
2601
|
"type": "string",
|
2606
|
-
"description": "
|
2602
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2603
|
+
},
|
2604
|
+
"van-rate/allow-half": {
|
2605
|
+
"type": "boolean",
|
2606
|
+
"description": "是否允许半选, 默认值: `false`"
|
2607
|
+
},
|
2608
|
+
"van-rate/readonly": {
|
2609
|
+
"type": "boolean",
|
2610
|
+
"description": "是否为只读状态,只读状态下无法修改评分, 默认值: `false`"
|
2611
|
+
},
|
2612
|
+
"van-rate/disabled": {
|
2613
|
+
"type": "boolean",
|
2614
|
+
"description": "是否禁用评分, 默认值: `false`"
|
2615
|
+
},
|
2616
|
+
"van-rate/touchable": {
|
2617
|
+
"type": "boolean",
|
2618
|
+
"description": "是否可以通过滑动手势选择评分, 默认值: `true`"
|
2607
2619
|
},
|
2608
2620
|
"van-share-sheet/v-model:show": {
|
2609
2621
|
"type": "boolean",
|
@@ -2704,49 +2716,6 @@
|
|
2704
2716
|
"type": "boolean",
|
2705
2717
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
2706
2718
|
},
|
2707
|
-
"van-skeleton/row": {
|
2708
|
-
"type": "number | string",
|
2709
|
-
"description": "段落占位图行数, 默认值: `0`"
|
2710
|
-
},
|
2711
|
-
"van-skeleton/row-width": {
|
2712
|
-
"type": "number | string \\",
|
2713
|
-
"description": "段落占位图宽度,可传数组来设置每一行的宽度, 默认值: <br>(number \\",
|
2714
|
-
"options": [
|
2715
|
-
"string)[]_"
|
2716
|
-
]
|
2717
|
-
},
|
2718
|
-
"van-skeleton/title": {
|
2719
|
-
"type": "boolean",
|
2720
|
-
"description": "是否显示标题占位图, 默认值: `false`"
|
2721
|
-
},
|
2722
|
-
"van-skeleton/avatar": {
|
2723
|
-
"type": "boolean",
|
2724
|
-
"description": "是否显示头像占位图, 默认值: `false`"
|
2725
|
-
},
|
2726
|
-
"van-skeleton/loading": {
|
2727
|
-
"type": "boolean",
|
2728
|
-
"description": "是否显示骨架屏,传 `false` 时会展示子组件内容, 默认值: `true`"
|
2729
|
-
},
|
2730
|
-
"van-skeleton/animate": {
|
2731
|
-
"type": "boolean",
|
2732
|
-
"description": "是否开启动画, 默认值: `true`"
|
2733
|
-
},
|
2734
|
-
"van-skeleton/round": {
|
2735
|
-
"type": "boolean",
|
2736
|
-
"description": "是否将标题和段落显示为圆角风格, 默认值: `false`"
|
2737
|
-
},
|
2738
|
-
"van-skeleton/title-width": {
|
2739
|
-
"type": "number | string",
|
2740
|
-
"description": "标题占位图宽度, 默认值: `40%`"
|
2741
|
-
},
|
2742
|
-
"van-skeleton/avatar-size": {
|
2743
|
-
"type": "number | string",
|
2744
|
-
"description": "头像占位图大小, 默认值: `32px`"
|
2745
|
-
},
|
2746
|
-
"van-skeleton/avatar-shape": {
|
2747
|
-
"type": "string",
|
2748
|
-
"description": "头像占位图形状,可选值为 `square`, 默认值: `round`"
|
2749
|
-
},
|
2750
2719
|
"van-slider/v-model": {
|
2751
2720
|
"type": "number | [number, number]",
|
2752
2721
|
"description": "当前进度百分比,在双滑块模式下为数组格式, 默认值: `0`"
|
@@ -2799,6 +2768,49 @@
|
|
2799
2768
|
"type": "boolean",
|
2800
2769
|
"description": "是否垂直展示, 默认值: `false`"
|
2801
2770
|
},
|
2771
|
+
"van-skeleton/row": {
|
2772
|
+
"type": "number | string",
|
2773
|
+
"description": "段落占位图行数, 默认值: `0`"
|
2774
|
+
},
|
2775
|
+
"van-skeleton/row-width": {
|
2776
|
+
"type": "number | string \\",
|
2777
|
+
"description": "段落占位图宽度,可传数组来设置每一行的宽度, 默认值: <br>(number \\",
|
2778
|
+
"options": [
|
2779
|
+
"string)[]_"
|
2780
|
+
]
|
2781
|
+
},
|
2782
|
+
"van-skeleton/title": {
|
2783
|
+
"type": "boolean",
|
2784
|
+
"description": "是否显示标题占位图, 默认值: `false`"
|
2785
|
+
},
|
2786
|
+
"van-skeleton/avatar": {
|
2787
|
+
"type": "boolean",
|
2788
|
+
"description": "是否显示头像占位图, 默认值: `false`"
|
2789
|
+
},
|
2790
|
+
"van-skeleton/loading": {
|
2791
|
+
"type": "boolean",
|
2792
|
+
"description": "是否显示骨架屏,传 `false` 时会展示子组件内容, 默认值: `true`"
|
2793
|
+
},
|
2794
|
+
"van-skeleton/animate": {
|
2795
|
+
"type": "boolean",
|
2796
|
+
"description": "是否开启动画, 默认值: `true`"
|
2797
|
+
},
|
2798
|
+
"van-skeleton/round": {
|
2799
|
+
"type": "boolean",
|
2800
|
+
"description": "是否将标题和段落显示为圆角风格, 默认值: `false`"
|
2801
|
+
},
|
2802
|
+
"van-skeleton/title-width": {
|
2803
|
+
"type": "number | string",
|
2804
|
+
"description": "标题占位图宽度, 默认值: `40%`"
|
2805
|
+
},
|
2806
|
+
"van-skeleton/avatar-size": {
|
2807
|
+
"type": "number | string",
|
2808
|
+
"description": "头像占位图大小, 默认值: `32px`"
|
2809
|
+
},
|
2810
|
+
"van-skeleton/avatar-shape": {
|
2811
|
+
"type": "string",
|
2812
|
+
"description": "头像占位图形状,可选值为 `square`, 默认值: `round`"
|
2813
|
+
},
|
2802
2814
|
"van-stepper/v-model": {
|
2803
2815
|
"type": "number | string",
|
2804
2816
|
"description": "当前输入的值, 默认值: -"
|
@@ -2890,58 +2902,6 @@
|
|
2890
2902
|
"type": "boolean",
|
2891
2903
|
"description": "是否允许输入的值为空, 默认值: `false`"
|
2892
2904
|
},
|
2893
|
-
"van-steps/active": {
|
2894
|
-
"type": "number | string",
|
2895
|
-
"description": "当前步骤对应的索引值, 默认值: `0`"
|
2896
|
-
},
|
2897
|
-
"van-steps/direction": {
|
2898
|
-
"type": "string",
|
2899
|
-
"description": "步骤条方向,可选值为 `vertical`, 默认值: `horizontal`"
|
2900
|
-
},
|
2901
|
-
"van-steps/active-icon": {
|
2902
|
-
"type": "string",
|
2903
|
-
"description": "当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: `checked`"
|
2904
|
-
},
|
2905
|
-
"van-steps/inactive-icon": {
|
2906
|
-
"type": "string",
|
2907
|
-
"description": "非当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
|
2908
|
-
},
|
2909
|
-
"van-steps/finish-icon": {
|
2910
|
-
"type": "string",
|
2911
|
-
"description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
|
2912
|
-
},
|
2913
|
-
"van-steps/active-color": {
|
2914
|
-
"type": "string",
|
2915
|
-
"description": "当前步骤和已完成步骤的颜色, 默认值: `#07c160`"
|
2916
|
-
},
|
2917
|
-
"van-steps/inactive-color": {
|
2918
|
-
"type": "string",
|
2919
|
-
"description": "未激活步骤的颜色, 默认值: `#969799`"
|
2920
|
-
},
|
2921
|
-
"van-steps/icon-prefix": {
|
2922
|
-
"type": "string",
|
2923
|
-
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2924
|
-
},
|
2925
|
-
"van-sticky/position": {
|
2926
|
-
"type": "string",
|
2927
|
-
"description": "吸附位置,可选值为 `bottom`, 默认值: `top`"
|
2928
|
-
},
|
2929
|
-
"van-sticky/offset-top": {
|
2930
|
-
"type": "number | string",
|
2931
|
-
"description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
2932
|
-
},
|
2933
|
-
"van-sticky/offset-bottom": {
|
2934
|
-
"type": "number | string",
|
2935
|
-
"description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
2936
|
-
},
|
2937
|
-
"van-sticky/z-index": {
|
2938
|
-
"type": "number | string",
|
2939
|
-
"description": "吸顶时的 z-index, 默认值: `99`"
|
2940
|
-
},
|
2941
|
-
"van-sticky/container": {
|
2942
|
-
"type": "Element",
|
2943
|
-
"description": "容器对应的 HTML 节点, 默认值: -"
|
2944
|
-
},
|
2945
2905
|
"van-submit-bar/price": {
|
2946
2906
|
"type": "number",
|
2947
2907
|
"description": "金额(单位分), 默认值: -"
|
@@ -2998,6 +2958,58 @@
|
|
2998
2958
|
"type": "boolean",
|
2999
2959
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
3000
2960
|
},
|
2961
|
+
"van-sticky/position": {
|
2962
|
+
"type": "string",
|
2963
|
+
"description": "吸附位置,可选值为 `bottom`, 默认值: `top`"
|
2964
|
+
},
|
2965
|
+
"van-sticky/offset-top": {
|
2966
|
+
"type": "number | string",
|
2967
|
+
"description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
2968
|
+
},
|
2969
|
+
"van-sticky/offset-bottom": {
|
2970
|
+
"type": "number | string",
|
2971
|
+
"description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
2972
|
+
},
|
2973
|
+
"van-sticky/z-index": {
|
2974
|
+
"type": "number | string",
|
2975
|
+
"description": "吸顶时的 z-index, 默认值: `99`"
|
2976
|
+
},
|
2977
|
+
"van-sticky/container": {
|
2978
|
+
"type": "Element",
|
2979
|
+
"description": "容器对应的 HTML 节点, 默认值: -"
|
2980
|
+
},
|
2981
|
+
"van-steps/active": {
|
2982
|
+
"type": "number | string",
|
2983
|
+
"description": "当前步骤对应的索引值, 默认值: `0`"
|
2984
|
+
},
|
2985
|
+
"van-steps/direction": {
|
2986
|
+
"type": "string",
|
2987
|
+
"description": "步骤条方向,可选值为 `vertical`, 默认值: `horizontal`"
|
2988
|
+
},
|
2989
|
+
"van-steps/active-icon": {
|
2990
|
+
"type": "string",
|
2991
|
+
"description": "当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: `checked`"
|
2992
|
+
},
|
2993
|
+
"van-steps/inactive-icon": {
|
2994
|
+
"type": "string",
|
2995
|
+
"description": "非当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
|
2996
|
+
},
|
2997
|
+
"van-steps/finish-icon": {
|
2998
|
+
"type": "string",
|
2999
|
+
"description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
|
3000
|
+
},
|
3001
|
+
"van-steps/active-color": {
|
3002
|
+
"type": "string",
|
3003
|
+
"description": "当前步骤和已完成步骤的颜色, 默认值: `#07c160`"
|
3004
|
+
},
|
3005
|
+
"van-steps/inactive-color": {
|
3006
|
+
"type": "string",
|
3007
|
+
"description": "未激活步骤的颜色, 默认值: `#969799`"
|
3008
|
+
},
|
3009
|
+
"van-steps/icon-prefix": {
|
3010
|
+
"type": "string",
|
3011
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
3012
|
+
},
|
3001
3013
|
"van-swipe-cell/name": {
|
3002
3014
|
"type": "number | string",
|
3003
3015
|
"description": "标识符,可以在事件参数中获取到, 默认值: `''`"
|
@@ -3144,7 +3156,7 @@
|
|
3144
3156
|
},
|
3145
3157
|
"van-tabs/sticky": {
|
3146
3158
|
"type": "boolean",
|
3147
|
-
"description": "
|
3159
|
+
"description": "是否使用粘性布局, 默认值: `false`"
|
3148
3160
|
},
|
3149
3161
|
"van-tabs/swipeable": {
|
3150
3162
|
"type": "boolean",
|
@@ -3160,7 +3172,7 @@
|
|
3160
3172
|
},
|
3161
3173
|
"van-tabs/offset-top": {
|
3162
3174
|
"type": "number | string",
|
3163
|
-
"description": "
|
3175
|
+
"description": "粘性布局下吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
3164
3176
|
},
|
3165
3177
|
"van-tabs/swipe-threshold": {
|
3166
3178
|
"type": "number | string",
|