vant 2.12.39 → 2.12.40

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.39",
3
+ "version": "2.12.40",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -12,6 +12,9 @@
12
12
  "types",
13
13
  "vetur"
14
14
  ],
15
+ "npm": {
16
+ "tag": "latest-v2"
17
+ },
15
18
  "publishConfig": {
16
19
  "registry": "https://registry.npmjs.org/"
17
20
  },
@@ -1,4 +1,72 @@
1
1
  {
2
+ "van-action-sheet/v-model (value)": {
3
+ "type": "boolean",
4
+ "description": "是否显示动作面板, 默认值: `false`"
5
+ },
6
+ "van-action-sheet/actions": {
7
+ "type": "Action[]",
8
+ "description": "面板选项列表, 默认值: `[]`"
9
+ },
10
+ "van-action-sheet/title": {
11
+ "type": "string",
12
+ "description": "顶部标题, 默认值: -"
13
+ },
14
+ "van-action-sheet/cancel-text": {
15
+ "type": "string",
16
+ "description": "取消按钮文字, 默认值: -"
17
+ },
18
+ "van-action-sheet/description": {
19
+ "type": "string",
20
+ "description": "选项上方的描述信息, 默认值: -"
21
+ },
22
+ "van-action-sheet/closeable": {
23
+ "type": "boolean",
24
+ "description": "是否显示关闭图标, 默认值: `true`"
25
+ },
26
+ "van-action-sheet/close-icon": {
27
+ "type": "string",
28
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
29
+ },
30
+ "van-action-sheet/duration": {
31
+ "type": "number | string",
32
+ "description": "动画时长,单位秒, 默认值: `0.3`"
33
+ },
34
+ "van-action-sheet/round": {
35
+ "type": "boolean",
36
+ "description": "是否显示圆角, 默认值: `true`"
37
+ },
38
+ "van-action-sheet/overlay": {
39
+ "type": "boolean",
40
+ "description": "是否显示遮罩层, 默认值: `true`"
41
+ },
42
+ "van-action-sheet/lock-scroll": {
43
+ "type": "boolean",
44
+ "description": "是否锁定背景滚动, 默认值: `true`"
45
+ },
46
+ "van-action-sheet/lazy-render": {
47
+ "type": "boolean",
48
+ "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
49
+ },
50
+ "van-action-sheet/close-on-popstate": {
51
+ "type": "boolean",
52
+ "description": "是否在页面回退时自动关闭, 默认值: `false`"
53
+ },
54
+ "van-action-sheet/close-on-click-action": {
55
+ "type": "boolean",
56
+ "description": "是否在点击选项后关闭, 默认值: `false`"
57
+ },
58
+ "van-action-sheet/close-on-click-overlay": {
59
+ "type": "boolean",
60
+ "description": "是否在点击遮罩层后关闭, 默认值: `true`"
61
+ },
62
+ "van-action-sheet/safe-area-inset-bottom": {
63
+ "type": "boolean",
64
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
65
+ },
66
+ "van-action-sheet/get-container": {
67
+ "type": "string | () => Element",
68
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
69
+ },
2
70
  "van-address-edit/area-list": {
3
71
  "type": "object",
4
72
  "description": "地区列表, 默认值: -"
@@ -131,146 +199,6 @@
131
199
  "type": "number | string",
132
200
  "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
133
201
  },
134
- "van-area/value": {
135
- "type": "string",
136
- "description": "当前选中的省市区`code`, 默认值: -"
137
- },
138
- "van-area/title": {
139
- "type": "string",
140
- "description": "顶部栏标题, 默认值: -"
141
- },
142
- "van-area/confirm-button-text": {
143
- "type": "string",
144
- "description": "确认按钮文字, 默认值: `确认`"
145
- },
146
- "van-area/cancel-button-text": {
147
- "type": "string",
148
- "description": "取消按钮文字, 默认值: `取消`"
149
- },
150
- "van-area/area-list": {
151
- "type": "object",
152
- "description": "省市区数据,格式见下方, 默认值: -"
153
- },
154
- "van-area/columns-placeholder": {
155
- "type": "string[]",
156
- "description": "列占位提示文字, 默认值: `[]`"
157
- },
158
- "van-area/loading": {
159
- "type": "boolean",
160
- "description": "是否显示加载状态, 默认值: `false`"
161
- },
162
- "van-area/readonly": {
163
- "type": "boolean",
164
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
165
- },
166
- "van-area/item-height": {
167
- "type": "number | string",
168
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
169
- },
170
- "van-area/columns-num": {
171
- "type": "number | string",
172
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
173
- },
174
- "van-area/visible-item-count": {
175
- "type": "number | string",
176
- "description": "可见的选项个数, 默认值: `6`"
177
- },
178
- "van-area/swipe-duration": {
179
- "type": "number | string",
180
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
181
- },
182
- "van-area/is-oversea-code": {
183
- "type": "() => boolean",
184
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
185
- },
186
- "van-button/type": {
187
- "type": "string",
188
- "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
189
- },
190
- "van-button/size": {
191
- "type": "string",
192
- "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
193
- },
194
- "van-button/text": {
195
- "type": "string",
196
- "description": "按钮文字, 默认值: -"
197
- },
198
- "van-button/color": {
199
- "type": "string",
200
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
201
- },
202
- "van-button/icon": {
203
- "type": "string",
204
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
205
- },
206
- "van-button/icon-prefix": {
207
- "type": "string",
208
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
209
- },
210
- "van-button/icon-position": {
211
- "type": "string",
212
- "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
213
- },
214
- "van-button/tag": {
215
- "type": "string",
216
- "description": "按钮根节点的 HTML 标签, 默认值: `button`"
217
- },
218
- "van-button/native-type": {
219
- "type": "string",
220
- "description": "原生 button 标签的 type 属性, 默认值: -"
221
- },
222
- "van-button/block": {
223
- "type": "boolean",
224
- "description": "是否为块级元素, 默认值: `false`"
225
- },
226
- "van-button/plain": {
227
- "type": "boolean",
228
- "description": "是否为朴素按钮, 默认值: `false`"
229
- },
230
- "van-button/square": {
231
- "type": "boolean",
232
- "description": "是否为方形按钮, 默认值: `false`"
233
- },
234
- "van-button/round": {
235
- "type": "boolean",
236
- "description": "是否为圆形按钮, 默认值: `false`"
237
- },
238
- "van-button/disabled": {
239
- "type": "boolean",
240
- "description": "是否禁用按钮, 默认值: `false`"
241
- },
242
- "van-button/hairline": {
243
- "type": "boolean",
244
- "description": "是否使用 0.5px 边框, 默认值: `false`"
245
- },
246
- "van-button/loading": {
247
- "type": "boolean",
248
- "description": "是否显示为加载状态, 默认值: `false`"
249
- },
250
- "van-button/loading-text": {
251
- "type": "string",
252
- "description": "加载状态提示文字, 默认值: -"
253
- },
254
- "van-button/loading-type": {
255
- "type": "string",
256
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
257
- },
258
- "van-button/loading-size": {
259
- "type": "string",
260
- "description": "加载图标大小, 默认值: `20px`"
261
- },
262
- "van-button/url": {
263
- "type": "string",
264
- "description": "点击后跳转的链接地址, 默认值: -"
265
- },
266
- "van-button/to": {
267
- "type": "string | object",
268
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
269
- },
270
- "van-button/replace": {
271
- "type": "boolean",
272
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
273
- },
274
202
  "van-calendar/type": {
275
203
  "type": "string",
276
204
  "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
@@ -391,33 +319,57 @@
391
319
  "type": "string",
392
320
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
393
321
  },
394
- "van-cascader/title": {
322
+ "van-area/value": {
395
323
  "type": "string",
396
- "description": "顶部标题, 默认值: -"
397
- },
398
- "van-cascader/value": {
399
- "type": "string | number",
400
- "description": "选中项的值, 默认值: -"
324
+ "description": "当前选中的省市区`code`, 默认值: -"
401
325
  },
402
- "van-cascader/options": {
403
- "type": "Option[]",
404
- "description": "可选项数据源, 默认值: `[]`"
326
+ "van-area/title": {
327
+ "type": "string",
328
+ "description": "顶部栏标题, 默认值: -"
405
329
  },
406
- "van-cascader/placeholder": {
330
+ "van-area/confirm-button-text": {
407
331
  "type": "string",
408
- "description": "未选中时的提示文案, 默认值: `请选择`"
332
+ "description": "确认按钮文字, 默认值: `确认`"
409
333
  },
410
- "van-cascader/active-color": {
334
+ "van-area/cancel-button-text": {
411
335
  "type": "string",
412
- "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
336
+ "description": "取消按钮文字, 默认值: `取消`"
413
337
  },
414
- "van-cascader/closeable": {
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": {
415
347
  "type": "boolean",
416
- "description": "是否显示关闭图标, 默认值: `true`"
348
+ "description": "是否显示加载状态, 默认值: `false`"
417
349
  },
418
- "van-cascader/field-names": {
419
- "type": "object",
420
- "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
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`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
421
373
  },
422
374
  "van-card/thumb": {
423
375
  "type": "string",
@@ -463,6 +415,38 @@
463
415
  "type": "boolean",
464
416
  "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
465
417
  },
418
+ "van-cascader/title": {
419
+ "type": "string",
420
+ "description": "顶部标题, 默认值: -"
421
+ },
422
+ "van-cascader/value": {
423
+ "type": "string | number",
424
+ "description": "选中项的值, 默认值: -"
425
+ },
426
+ "van-cascader/options": {
427
+ "type": "Option[]",
428
+ "description": "可选项数据源, 默认值: `[]`"
429
+ },
430
+ "van-cascader/placeholder": {
431
+ "type": "string",
432
+ "description": "未选中时的提示文案, 默认值: `请选择`"
433
+ },
434
+ "van-cascader/active-color": {
435
+ "type": "string",
436
+ "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
437
+ },
438
+ "van-cascader/closeable": {
439
+ "type": "boolean",
440
+ "description": "是否显示关闭图标, 默认值: `true`"
441
+ },
442
+ "van-cascader/show-header": {
443
+ "type": "boolean",
444
+ "description": "是否展示标题栏, 默认值: `true`"
445
+ },
446
+ "van-cascader/field-names": {
447
+ "type": "object",
448
+ "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
449
+ },
466
450
  "van-cell-group/title": {
467
451
  "type": "string",
468
452
  "description": "分组标题, 默认值: `-`"
@@ -547,73 +531,93 @@
547
531
  "type": "any",
548
532
  "description": "描述信息额外类名, 默认值: -"
549
533
  },
550
- "van-action-sheet/v-model (value)": {
551
- "type": "boolean",
552
- "description": "是否显示动作面板, 默认值: `false`"
534
+ "van-button/type": {
535
+ "type": "string",
536
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
553
537
  },
554
- "van-action-sheet/actions": {
555
- "type": "Action[]",
556
- "description": "面板选项列表, 默认值: `[]`"
538
+ "van-button/size": {
539
+ "type": "string",
540
+ "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
557
541
  },
558
- "van-action-sheet/title": {
542
+ "van-button/text": {
559
543
  "type": "string",
560
- "description": "顶部标题, 默认值: -"
544
+ "description": "按钮文字, 默认值: -"
561
545
  },
562
- "van-action-sheet/cancel-text": {
546
+ "van-button/color": {
563
547
  "type": "string",
564
- "description": "取消按钮文字, 默认值: -"
548
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
565
549
  },
566
- "van-action-sheet/description": {
550
+ "van-button/icon": {
567
551
  "type": "string",
568
- "description": "选项上方的描述信息, 默认值: -"
552
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
569
553
  },
570
- "van-action-sheet/closeable": {
571
- "type": "boolean",
572
- "description": "是否显示关闭图标, 默认值: `true`"
554
+ "van-button/icon-prefix": {
555
+ "type": "string",
556
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
573
557
  },
574
- "van-action-sheet/close-icon": {
558
+ "van-button/icon-position": {
575
559
  "type": "string",
576
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
560
+ "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
577
561
  },
578
- "van-action-sheet/duration": {
579
- "type": "number | string",
580
- "description": "动画时长,单位秒, 默认值: `0.3`"
562
+ "van-button/tag": {
563
+ "type": "string",
564
+ "description": "按钮根节点的 HTML 标签, 默认值: `button`"
581
565
  },
582
- "van-action-sheet/round": {
583
- "type": "boolean",
584
- "description": "是否显示圆角, 默认值: `true`"
566
+ "van-button/native-type": {
567
+ "type": "string",
568
+ "description": "原生 button 标签的 type 属性, 默认值: -"
585
569
  },
586
- "van-action-sheet/overlay": {
570
+ "van-button/block": {
587
571
  "type": "boolean",
588
- "description": "是否显示遮罩层, 默认值: `true`"
572
+ "description": "是否为块级元素, 默认值: `false`"
589
573
  },
590
- "van-action-sheet/lock-scroll": {
574
+ "van-button/plain": {
591
575
  "type": "boolean",
592
- "description": "是否锁定背景滚动, 默认值: `true`"
576
+ "description": "是否为朴素按钮, 默认值: `false`"
593
577
  },
594
- "van-action-sheet/lazy-render": {
578
+ "van-button/square": {
595
579
  "type": "boolean",
596
- "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
580
+ "description": "是否为方形按钮, 默认值: `false`"
597
581
  },
598
- "van-action-sheet/close-on-popstate": {
582
+ "van-button/round": {
599
583
  "type": "boolean",
600
- "description": "是否在页面回退时自动关闭, 默认值: `false`"
584
+ "description": "是否为圆形按钮, 默认值: `false`"
601
585
  },
602
- "van-action-sheet/close-on-click-action": {
586
+ "van-button/disabled": {
603
587
  "type": "boolean",
604
- "description": "是否在点击选项后关闭, 默认值: `false`"
588
+ "description": "是否禁用按钮, 默认值: `false`"
605
589
  },
606
- "van-action-sheet/close-on-click-overlay": {
590
+ "van-button/hairline": {
607
591
  "type": "boolean",
608
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
592
+ "description": "是否使用 0.5px 边框, 默认值: `false`"
609
593
  },
610
- "van-action-sheet/safe-area-inset-bottom": {
594
+ "van-button/loading": {
611
595
  "type": "boolean",
612
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
596
+ "description": "是否显示为加载状态, 默认值: `false`"
613
597
  },
614
- "van-action-sheet/get-container": {
615
- "type": "string | () => Element",
616
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
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`"
617
621
  },
618
622
  "van-checkbox/v-model (value)": {
619
623
  "type": "boolean",
@@ -983,82 +987,6 @@
983
987
  "type": "boolean",
984
988
  "description": "是否展示可用 / 不可用数量, 默认值: `true`"
985
989
  },
986
- "van-datetime-picker/type": {
987
- "type": "string",
988
- "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
989
- },
990
- "van-datetime-picker/title": {
991
- "type": "string",
992
- "description": "顶部栏标题, 默认值: `''`"
993
- },
994
- "van-datetime-picker/confirm-button-text": {
995
- "type": "string",
996
- "description": "确认按钮文字, 默认值: `确认`"
997
- },
998
- "van-datetime-picker/cancel-button-text": {
999
- "type": "string",
1000
- "description": "取消按钮文字, 默认值: `取消`"
1001
- },
1002
- "van-datetime-picker/show-toolbar": {
1003
- "type": "boolean",
1004
- "description": "是否显示顶部栏, 默认值: `true`"
1005
- },
1006
- "van-datetime-picker/loading": {
1007
- "type": "boolean",
1008
- "description": "是否显示加载状态, 默认值: `false`"
1009
- },
1010
- "van-datetime-picker/readonly": {
1011
- "type": "boolean",
1012
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
1013
- },
1014
- "van-datetime-picker/filter": {
1015
- "type": "(type, vals) => vals",
1016
- "description": "选项过滤函数, 默认值: -"
1017
- },
1018
- "van-datetime-picker/formatter": {
1019
- "type": "(type, val) => val",
1020
- "description": "选项格式化函数, 默认值: -"
1021
- },
1022
- "van-datetime-picker/columns-order": {
1023
- "type": "string[]",
1024
- "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
1025
- },
1026
- "van-datetime-picker/item-height": {
1027
- "type": "number | string",
1028
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
1029
- },
1030
- "van-datetime-picker/visible-item-count": {
1031
- "type": "number | string",
1032
- "description": "可见的选项个数, 默认值: `6`"
1033
- },
1034
- "van-datetime-picker/swipe-duration": {
1035
- "type": "number | string",
1036
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
1037
- },
1038
- "van-date-picker/min-date": {
1039
- "type": "Date",
1040
- "description": "可选的最小时间,精确到分钟, 默认值: 十年前"
1041
- },
1042
- "van-date-picker/max-date": {
1043
- "type": "Date",
1044
- "description": "可选的最大时间,精确到分钟, 默认值: 十年后"
1045
- },
1046
- "van-time-picker/min-hour": {
1047
- "type": "number | string",
1048
- "description": "可选的最小小时, 默认值: `0`"
1049
- },
1050
- "van-time-picker/max-hour": {
1051
- "type": "number | string",
1052
- "description": "可选的最大小时, 默认值: `23`"
1053
- },
1054
- "van-time-picker/min-minute": {
1055
- "type": "number | string",
1056
- "description": "可选的最小分钟, 默认值: `0`"
1057
- },
1058
- "van-time-picker/max-minute": {
1059
- "type": "number | string",
1060
- "description": "可选的最大分钟, 默认值: `59`"
1061
- },
1062
990
  "van-dialog/v-model": {
1063
991
  "type": "boolean",
1064
992
  "description": "是否显示弹窗, 默认值: -"
@@ -1151,6 +1079,82 @@
1151
1079
  "type": "string | () => Element",
1152
1080
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1153
1081
  },
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
+ },
1154
1158
  "van-divider/dashed": {
1155
1159
  "type": "boolean",
1156
1160
  "description": "是否使用虚线, 默认值: `false`"