vant 2.12.40 → 2.12.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "2.12.40",
3
+ "version": "2.12.41",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -199,6 +199,190 @@
199
199
  "type": "number | string",
200
200
  "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
201
201
  },
202
+ "van-area/value": {
203
+ "type": "string",
204
+ "description": "当前选中的省市区`code`, 默认值: -"
205
+ },
206
+ "van-area/title": {
207
+ "type": "string",
208
+ "description": "顶部栏标题, 默认值: -"
209
+ },
210
+ "van-area/confirm-button-text": {
211
+ "type": "string",
212
+ "description": "确认按钮文字, 默认值: `确认`"
213
+ },
214
+ "van-area/cancel-button-text": {
215
+ "type": "string",
216
+ "description": "取消按钮文字, 默认值: `取消`"
217
+ },
218
+ "van-area/area-list": {
219
+ "type": "object",
220
+ "description": "省市区数据,格式见下方, 默认值: -"
221
+ },
222
+ "van-area/columns-placeholder": {
223
+ "type": "string[]",
224
+ "description": "列占位提示文字, 默认值: `[]`"
225
+ },
226
+ "van-area/loading": {
227
+ "type": "boolean",
228
+ "description": "是否显示加载状态, 默认值: `false`"
229
+ },
230
+ "van-area/readonly": {
231
+ "type": "boolean",
232
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
233
+ },
234
+ "van-area/item-height": {
235
+ "type": "number | string",
236
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
237
+ },
238
+ "van-area/columns-num": {
239
+ "type": "number | string",
240
+ "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
241
+ },
242
+ "van-area/visible-item-count": {
243
+ "type": "number | string",
244
+ "description": "可见的选项个数, 默认值: `6`"
245
+ },
246
+ "van-area/swipe-duration": {
247
+ "type": "number | string",
248
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
249
+ },
250
+ "van-area/is-oversea-code": {
251
+ "type": "() => boolean",
252
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
253
+ },
254
+ "van-button/type": {
255
+ "type": "string",
256
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
257
+ },
258
+ "van-button/size": {
259
+ "type": "string",
260
+ "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
261
+ },
262
+ "van-button/text": {
263
+ "type": "string",
264
+ "description": "按钮文字, 默认值: -"
265
+ },
266
+ "van-button/color": {
267
+ "type": "string",
268
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
269
+ },
270
+ "van-button/icon": {
271
+ "type": "string",
272
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
273
+ },
274
+ "van-button/icon-prefix": {
275
+ "type": "string",
276
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
277
+ },
278
+ "van-button/icon-position": {
279
+ "type": "string",
280
+ "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
281
+ },
282
+ "van-button/tag": {
283
+ "type": "string",
284
+ "description": "按钮根节点的 HTML 标签, 默认值: `button`"
285
+ },
286
+ "van-button/native-type": {
287
+ "type": "string",
288
+ "description": "原生 button 标签的 type 属性, 默认值: -"
289
+ },
290
+ "van-button/block": {
291
+ "type": "boolean",
292
+ "description": "是否为块级元素, 默认值: `false`"
293
+ },
294
+ "van-button/plain": {
295
+ "type": "boolean",
296
+ "description": "是否为朴素按钮, 默认值: `false`"
297
+ },
298
+ "van-button/square": {
299
+ "type": "boolean",
300
+ "description": "是否为方形按钮, 默认值: `false`"
301
+ },
302
+ "van-button/round": {
303
+ "type": "boolean",
304
+ "description": "是否为圆形按钮, 默认值: `false`"
305
+ },
306
+ "van-button/disabled": {
307
+ "type": "boolean",
308
+ "description": "是否禁用按钮, 默认值: `false`"
309
+ },
310
+ "van-button/hairline": {
311
+ "type": "boolean",
312
+ "description": "是否使用 0.5px 边框, 默认值: `false`"
313
+ },
314
+ "van-button/loading": {
315
+ "type": "boolean",
316
+ "description": "是否显示为加载状态, 默认值: `false`"
317
+ },
318
+ "van-button/loading-text": {
319
+ "type": "string",
320
+ "description": "加载状态提示文字, 默认值: -"
321
+ },
322
+ "van-button/loading-type": {
323
+ "type": "string",
324
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
325
+ },
326
+ "van-button/loading-size": {
327
+ "type": "string",
328
+ "description": "加载图标大小, 默认值: `20px`"
329
+ },
330
+ "van-button/url": {
331
+ "type": "string",
332
+ "description": "点击后跳转的链接地址, 默认值: -"
333
+ },
334
+ "van-button/to": {
335
+ "type": "string | object",
336
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
337
+ },
338
+ "van-button/replace": {
339
+ "type": "boolean",
340
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
341
+ },
342
+ "van-card/thumb": {
343
+ "type": "string",
344
+ "description": "左侧图片 URL, 默认值: -"
345
+ },
346
+ "van-card/title": {
347
+ "type": "string",
348
+ "description": "标题, 默认值: -"
349
+ },
350
+ "van-card/desc": {
351
+ "type": "string",
352
+ "description": "描述, 默认值: -"
353
+ },
354
+ "van-card/tag": {
355
+ "type": "string",
356
+ "description": "图片角标, 默认值: -"
357
+ },
358
+ "van-card/num": {
359
+ "type": "number | string",
360
+ "description": "商品数量, 默认值: -"
361
+ },
362
+ "van-card/price": {
363
+ "type": "number | string",
364
+ "description": "商品价格, 默认值: -"
365
+ },
366
+ "van-card/origin-price": {
367
+ "type": "number | string",
368
+ "description": "商品划线原价, 默认值: -"
369
+ },
370
+ "van-card/centered": {
371
+ "type": "boolean",
372
+ "description": "内容是否垂直居中, 默认值: `false`"
373
+ },
374
+ "van-card/currency": {
375
+ "type": "string",
376
+ "description": "货币符号, 默认值: `¥`"
377
+ },
378
+ "van-card/thumb-link": {
379
+ "type": "string",
380
+ "description": "点击左侧图片后跳转的链接地址, 默认值: -"
381
+ },
382
+ "van-card/lazy-load": {
383
+ "type": "boolean",
384
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
385
+ },
202
386
  "van-calendar/type": {
203
387
  "type": "string",
204
388
  "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
@@ -303,117 +487,21 @@
303
487
  "type": "number | string",
304
488
  "description": "日期区间最多可选天数, 默认值: 无限制"
305
489
  },
306
- "van-range/range-prompt": {
307
- "type": "string",
308
- "description": "范围选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
309
- },
310
- "van-range/allow-same-day": {
311
- "type": "boolean",
312
- "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
313
- },
314
- "van-multiple/max-range": {
315
- "type": "number | string",
316
- "description": "日期最多可选天数, 默认值: 无限制"
317
- },
318
- "van-multiple/range-prompt": {
319
- "type": "string",
320
- "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
321
- },
322
- "van-area/value": {
323
- "type": "string",
324
- "description": "当前选中的省市区`code`, 默认值: -"
325
- },
326
- "van-area/title": {
327
- "type": "string",
328
- "description": "顶部栏标题, 默认值: -"
329
- },
330
- "van-area/confirm-button-text": {
331
- "type": "string",
332
- "description": "确认按钮文字, 默认值: `确认`"
333
- },
334
- "van-area/cancel-button-text": {
335
- "type": "string",
336
- "description": "取消按钮文字, 默认值: `取消`"
337
- },
338
- "van-area/area-list": {
339
- "type": "object",
340
- "description": "省市区数据,格式见下方, 默认值: -"
341
- },
342
- "van-area/columns-placeholder": {
343
- "type": "string[]",
344
- "description": "列占位提示文字, 默认值: `[]`"
345
- },
346
- "van-area/loading": {
347
- "type": "boolean",
348
- "description": "是否显示加载状态, 默认值: `false`"
349
- },
350
- "van-area/readonly": {
351
- "type": "boolean",
352
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
353
- },
354
- "van-area/item-height": {
355
- "type": "number | string",
356
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
357
- },
358
- "van-area/columns-num": {
359
- "type": "number | string",
360
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
361
- },
362
- "van-area/visible-item-count": {
363
- "type": "number | string",
364
- "description": "可见的选项个数, 默认值: `6`"
365
- },
366
- "van-area/swipe-duration": {
367
- "type": "number | string",
368
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
369
- },
370
- "van-area/is-oversea-code": {
371
- "type": "() => boolean",
372
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
373
- },
374
- "van-card/thumb": {
375
- "type": "string",
376
- "description": "左侧图片 URL, 默认值: -"
377
- },
378
- "van-card/title": {
379
- "type": "string",
380
- "description": "标题, 默认值: -"
381
- },
382
- "van-card/desc": {
383
- "type": "string",
384
- "description": "描述, 默认值: -"
385
- },
386
- "van-card/tag": {
387
- "type": "string",
388
- "description": "图片角标, 默认值: -"
389
- },
390
- "van-card/num": {
391
- "type": "number | string",
392
- "description": "商品数量, 默认值: -"
393
- },
394
- "van-card/price": {
395
- "type": "number | string",
396
- "description": "商品价格, 默认值: -"
397
- },
398
- "van-card/origin-price": {
399
- "type": "number | string",
400
- "description": "商品划线原价, 默认值: -"
401
- },
402
- "van-card/centered": {
403
- "type": "boolean",
404
- "description": "内容是否垂直居中, 默认值: `false`"
405
- },
406
- "van-card/currency": {
407
- "type": "string",
408
- "description": "货币符号, 默认值: `¥`"
409
- },
410
- "van-card/thumb-link": {
490
+ "van-range/range-prompt": {
411
491
  "type": "string",
412
- "description": "点击左侧图片后跳转的链接地址, 默认值: -"
492
+ "description": "范围选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
413
493
  },
414
- "van-card/lazy-load": {
494
+ "van-range/allow-same-day": {
415
495
  "type": "boolean",
416
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
496
+ "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
497
+ },
498
+ "van-multiple/max-range": {
499
+ "type": "number | string",
500
+ "description": "日期最多可选天数, 默认值: 无限制"
501
+ },
502
+ "van-multiple/range-prompt": {
503
+ "type": "string",
504
+ "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
417
505
  },
418
506
  "van-cascader/title": {
419
507
  "type": "string",
@@ -531,94 +619,6 @@
531
619
  "type": "any",
532
620
  "description": "描述信息额外类名, 默认值: -"
533
621
  },
534
- "van-button/type": {
535
- "type": "string",
536
- "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
537
- },
538
- "van-button/size": {
539
- "type": "string",
540
- "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
541
- },
542
- "van-button/text": {
543
- "type": "string",
544
- "description": "按钮文字, 默认值: -"
545
- },
546
- "van-button/color": {
547
- "type": "string",
548
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
549
- },
550
- "van-button/icon": {
551
- "type": "string",
552
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
553
- },
554
- "van-button/icon-prefix": {
555
- "type": "string",
556
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
557
- },
558
- "van-button/icon-position": {
559
- "type": "string",
560
- "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
561
- },
562
- "van-button/tag": {
563
- "type": "string",
564
- "description": "按钮根节点的 HTML 标签, 默认值: `button`"
565
- },
566
- "van-button/native-type": {
567
- "type": "string",
568
- "description": "原生 button 标签的 type 属性, 默认值: -"
569
- },
570
- "van-button/block": {
571
- "type": "boolean",
572
- "description": "是否为块级元素, 默认值: `false`"
573
- },
574
- "van-button/plain": {
575
- "type": "boolean",
576
- "description": "是否为朴素按钮, 默认值: `false`"
577
- },
578
- "van-button/square": {
579
- "type": "boolean",
580
- "description": "是否为方形按钮, 默认值: `false`"
581
- },
582
- "van-button/round": {
583
- "type": "boolean",
584
- "description": "是否为圆形按钮, 默认值: `false`"
585
- },
586
- "van-button/disabled": {
587
- "type": "boolean",
588
- "description": "是否禁用按钮, 默认值: `false`"
589
- },
590
- "van-button/hairline": {
591
- "type": "boolean",
592
- "description": "是否使用 0.5px 边框, 默认值: `false`"
593
- },
594
- "van-button/loading": {
595
- "type": "boolean",
596
- "description": "是否显示为加载状态, 默认值: `false`"
597
- },
598
- "van-button/loading-text": {
599
- "type": "string",
600
- "description": "加载状态提示文字, 默认值: -"
601
- },
602
- "van-button/loading-type": {
603
- "type": "string",
604
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
605
- },
606
- "van-button/loading-size": {
607
- "type": "string",
608
- "description": "加载图标大小, 默认值: `20px`"
609
- },
610
- "van-button/url": {
611
- "type": "string",
612
- "description": "点击后跳转的链接地址, 默认值: -"
613
- },
614
- "van-button/to": {
615
- "type": "string | object",
616
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
617
- },
618
- "van-button/replace": {
619
- "type": "boolean",
620
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
621
- },
622
622
  "van-checkbox/v-model (value)": {
623
623
  "type": "boolean",
624
624
  "description": "是否为选中状态, 默认值: `false`"
@@ -987,6 +987,82 @@
987
987
  "type": "boolean",
988
988
  "description": "是否展示可用 / 不可用数量, 默认值: `true`"
989
989
  },
990
+ "van-datetime-picker/type": {
991
+ "type": "string",
992
+ "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
993
+ },
994
+ "van-datetime-picker/title": {
995
+ "type": "string",
996
+ "description": "顶部栏标题, 默认值: `''`"
997
+ },
998
+ "van-datetime-picker/confirm-button-text": {
999
+ "type": "string",
1000
+ "description": "确认按钮文字, 默认值: `确认`"
1001
+ },
1002
+ "van-datetime-picker/cancel-button-text": {
1003
+ "type": "string",
1004
+ "description": "取消按钮文字, 默认值: `取消`"
1005
+ },
1006
+ "van-datetime-picker/show-toolbar": {
1007
+ "type": "boolean",
1008
+ "description": "是否显示顶部栏, 默认值: `true`"
1009
+ },
1010
+ "van-datetime-picker/loading": {
1011
+ "type": "boolean",
1012
+ "description": "是否显示加载状态, 默认值: `false`"
1013
+ },
1014
+ "van-datetime-picker/readonly": {
1015
+ "type": "boolean",
1016
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
1017
+ },
1018
+ "van-datetime-picker/filter": {
1019
+ "type": "(type, vals) => vals",
1020
+ "description": "选项过滤函数, 默认值: -"
1021
+ },
1022
+ "van-datetime-picker/formatter": {
1023
+ "type": "(type, val) => val",
1024
+ "description": "选项格式化函数, 默认值: -"
1025
+ },
1026
+ "van-datetime-picker/columns-order": {
1027
+ "type": "string[]",
1028
+ "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
1029
+ },
1030
+ "van-datetime-picker/item-height": {
1031
+ "type": "number | string",
1032
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
1033
+ },
1034
+ "van-datetime-picker/visible-item-count": {
1035
+ "type": "number | string",
1036
+ "description": "可见的选项个数, 默认值: `6`"
1037
+ },
1038
+ "van-datetime-picker/swipe-duration": {
1039
+ "type": "number | string",
1040
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
1041
+ },
1042
+ "van-date-picker/min-date": {
1043
+ "type": "Date",
1044
+ "description": "可选的最小时间,精确到分钟, 默认值: 十年前"
1045
+ },
1046
+ "van-date-picker/max-date": {
1047
+ "type": "Date",
1048
+ "description": "可选的最大时间,精确到分钟, 默认值: 十年后"
1049
+ },
1050
+ "van-time-picker/min-hour": {
1051
+ "type": "number | string",
1052
+ "description": "可选的最小小时, 默认值: `0`"
1053
+ },
1054
+ "van-time-picker/max-hour": {
1055
+ "type": "number | string",
1056
+ "description": "可选的最大小时, 默认值: `23`"
1057
+ },
1058
+ "van-time-picker/min-minute": {
1059
+ "type": "number | string",
1060
+ "description": "可选的最小分钟, 默认值: `0`"
1061
+ },
1062
+ "van-time-picker/max-minute": {
1063
+ "type": "number | string",
1064
+ "description": "可选的最大分钟, 默认值: `59`"
1065
+ },
990
1066
  "van-dialog/v-model": {
991
1067
  "type": "boolean",
992
1068
  "description": "是否显示弹窗, 默认值: -"
@@ -1079,82 +1155,6 @@
1079
1155
  "type": "string | () => Element",
1080
1156
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1081
1157
  },
1082
- "van-datetime-picker/type": {
1083
- "type": "string",
1084
- "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
1085
- },
1086
- "van-datetime-picker/title": {
1087
- "type": "string",
1088
- "description": "顶部栏标题, 默认值: `''`"
1089
- },
1090
- "van-datetime-picker/confirm-button-text": {
1091
- "type": "string",
1092
- "description": "确认按钮文字, 默认值: `确认`"
1093
- },
1094
- "van-datetime-picker/cancel-button-text": {
1095
- "type": "string",
1096
- "description": "取消按钮文字, 默认值: `取消`"
1097
- },
1098
- "van-datetime-picker/show-toolbar": {
1099
- "type": "boolean",
1100
- "description": "是否显示顶部栏, 默认值: `true`"
1101
- },
1102
- "van-datetime-picker/loading": {
1103
- "type": "boolean",
1104
- "description": "是否显示加载状态, 默认值: `false`"
1105
- },
1106
- "van-datetime-picker/readonly": {
1107
- "type": "boolean",
1108
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
1109
- },
1110
- "van-datetime-picker/filter": {
1111
- "type": "(type, vals) => vals",
1112
- "description": "选项过滤函数, 默认值: -"
1113
- },
1114
- "van-datetime-picker/formatter": {
1115
- "type": "(type, val) => val",
1116
- "description": "选项格式化函数, 默认值: -"
1117
- },
1118
- "van-datetime-picker/columns-order": {
1119
- "type": "string[]",
1120
- "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
1121
- },
1122
- "van-datetime-picker/item-height": {
1123
- "type": "number | string",
1124
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
1125
- },
1126
- "van-datetime-picker/visible-item-count": {
1127
- "type": "number | string",
1128
- "description": "可见的选项个数, 默认值: `6`"
1129
- },
1130
- "van-datetime-picker/swipe-duration": {
1131
- "type": "number | string",
1132
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
1133
- },
1134
- "van-date-picker/min-date": {
1135
- "type": "Date",
1136
- "description": "可选的最小时间,精确到分钟, 默认值: 十年前"
1137
- },
1138
- "van-date-picker/max-date": {
1139
- "type": "Date",
1140
- "description": "可选的最大时间,精确到分钟, 默认值: 十年后"
1141
- },
1142
- "van-time-picker/min-hour": {
1143
- "type": "number | string",
1144
- "description": "可选的最小小时, 默认值: `0`"
1145
- },
1146
- "van-time-picker/max-hour": {
1147
- "type": "number | string",
1148
- "description": "可选的最大小时, 默认值: `23`"
1149
- },
1150
- "van-time-picker/min-minute": {
1151
- "type": "number | string",
1152
- "description": "可选的最小分钟, 默认值: `0`"
1153
- },
1154
- "van-time-picker/max-minute": {
1155
- "type": "number | string",
1156
- "description": "可选的最大分钟, 默认值: `59`"
1157
- },
1158
1158
  "van-divider/dashed": {
1159
1159
  "type": "boolean",
1160
1160
  "description": "是否使用虚线, 默认值: `false`"