vant 2.12.40 → 2.12.44

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.
@@ -1,71 +1,159 @@
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": "面板选项列表, 默认值: `[]`"
2
+ "van-area/value": {
3
+ "type": "string",
4
+ "description": "当前选中的省市区`code`, 默认值: -"
9
5
  },
10
- "van-action-sheet/title": {
6
+ "van-area/title": {
11
7
  "type": "string",
12
- "description": "顶部标题, 默认值: -"
8
+ "description": "顶部栏标题, 默认值: -"
13
9
  },
14
- "van-action-sheet/cancel-text": {
10
+ "van-area/confirm-button-text": {
15
11
  "type": "string",
16
- "description": "取消按钮文字, 默认值: -"
12
+ "description": "确认按钮文字, 默认值: `确认`"
17
13
  },
18
- "van-action-sheet/description": {
14
+ "van-area/cancel-button-text": {
19
15
  "type": "string",
20
- "description": "选项上方的描述信息, 默认值: -"
16
+ "description": "取消按钮文字, 默认值: `取消`"
21
17
  },
22
- "van-action-sheet/closeable": {
18
+ "van-area/area-list": {
19
+ "type": "object",
20
+ "description": "省市区数据,格式见下方, 默认值: -"
21
+ },
22
+ "van-area/columns-placeholder": {
23
+ "type": "string[]",
24
+ "description": "列占位提示文字, 默认值: `[]`"
25
+ },
26
+ "van-area/loading": {
23
27
  "type": "boolean",
24
- "description": "是否显示关闭图标, 默认值: `true`"
28
+ "description": "是否显示加载状态, 默认值: `false`"
25
29
  },
26
- "van-action-sheet/close-icon": {
27
- "type": "string",
28
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
30
+ "van-area/readonly": {
31
+ "type": "boolean",
32
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
29
33
  },
30
- "van-action-sheet/duration": {
34
+ "van-area/item-height": {
31
35
  "type": "number | string",
32
- "description": "动画时长,单位秒, 默认值: `0.3`"
36
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
33
37
  },
34
- "van-action-sheet/round": {
38
+ "van-area/columns-num": {
39
+ "type": "number | string",
40
+ "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
41
+ },
42
+ "van-area/visible-item-count": {
43
+ "type": "number | string",
44
+ "description": "可见的选项个数, 默认值: `6`"
45
+ },
46
+ "van-area/swipe-duration": {
47
+ "type": "number | string",
48
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
49
+ },
50
+ "van-area/is-oversea-code": {
51
+ "type": "() => boolean",
52
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
53
+ },
54
+ "van-badge/content": {
55
+ "type": "number | string",
56
+ "description": "徽标内容, 默认值: -"
57
+ },
58
+ "van-badge/color": {
59
+ "type": "string",
60
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
61
+ },
62
+ "van-badge/dot": {
35
63
  "type": "boolean",
36
- "description": "是否显示圆角, 默认值: `true`"
64
+ "description": "是否展示为小红点, 默认值: `false`"
37
65
  },
38
- "van-action-sheet/overlay": {
66
+ "van-badge/max": {
67
+ "type": "number | string",
68
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
69
+ },
70
+ "van-button/type": {
71
+ "type": "string",
72
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
73
+ },
74
+ "van-button/size": {
75
+ "type": "string",
76
+ "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
77
+ },
78
+ "van-button/text": {
79
+ "type": "string",
80
+ "description": "按钮文字, 默认值: -"
81
+ },
82
+ "van-button/color": {
83
+ "type": "string",
84
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
85
+ },
86
+ "van-button/icon": {
87
+ "type": "string",
88
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
89
+ },
90
+ "van-button/icon-prefix": {
91
+ "type": "string",
92
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
93
+ },
94
+ "van-button/icon-position": {
95
+ "type": "string",
96
+ "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
97
+ },
98
+ "van-button/tag": {
99
+ "type": "string",
100
+ "description": "按钮根节点的 HTML 标签, 默认值: `button`"
101
+ },
102
+ "van-button/native-type": {
103
+ "type": "string",
104
+ "description": "原生 button 标签的 type 属性, 默认值: -"
105
+ },
106
+ "van-button/block": {
39
107
  "type": "boolean",
40
- "description": "是否显示遮罩层, 默认值: `true`"
108
+ "description": "是否为块级元素, 默认值: `false`"
41
109
  },
42
- "van-action-sheet/lock-scroll": {
110
+ "van-button/plain": {
43
111
  "type": "boolean",
44
- "description": "是否锁定背景滚动, 默认值: `true`"
112
+ "description": "是否为朴素按钮, 默认值: `false`"
45
113
  },
46
- "van-action-sheet/lazy-render": {
114
+ "van-button/square": {
47
115
  "type": "boolean",
48
- "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
116
+ "description": "是否为方形按钮, 默认值: `false`"
49
117
  },
50
- "van-action-sheet/close-on-popstate": {
118
+ "van-button/round": {
51
119
  "type": "boolean",
52
- "description": "是否在页面回退时自动关闭, 默认值: `false`"
120
+ "description": "是否为圆形按钮, 默认值: `false`"
53
121
  },
54
- "van-action-sheet/close-on-click-action": {
122
+ "van-button/disabled": {
55
123
  "type": "boolean",
56
- "description": "是否在点击选项后关闭, 默认值: `false`"
124
+ "description": "是否禁用按钮, 默认值: `false`"
57
125
  },
58
- "van-action-sheet/close-on-click-overlay": {
126
+ "van-button/hairline": {
59
127
  "type": "boolean",
60
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
128
+ "description": "是否使用 0.5px 边框, 默认值: `false`"
61
129
  },
62
- "van-action-sheet/safe-area-inset-bottom": {
130
+ "van-button/loading": {
63
131
  "type": "boolean",
64
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
132
+ "description": "是否显示为加载状态, 默认值: `false`"
65
133
  },
66
- "van-action-sheet/get-container": {
67
- "type": "string | () => Element",
68
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
134
+ "van-button/loading-text": {
135
+ "type": "string",
136
+ "description": "加载状态提示文字, 默认值: -"
137
+ },
138
+ "van-button/loading-type": {
139
+ "type": "string",
140
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
141
+ },
142
+ "van-button/loading-size": {
143
+ "type": "string",
144
+ "description": "加载图标大小, 默认值: `20px`"
145
+ },
146
+ "van-button/url": {
147
+ "type": "string",
148
+ "description": "点击后跳转的链接地址, 默认值: -"
149
+ },
150
+ "van-button/to": {
151
+ "type": "string | object",
152
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
153
+ },
154
+ "van-button/replace": {
155
+ "type": "boolean",
156
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
69
157
  },
70
158
  "van-address-edit/area-list": {
71
159
  "type": "object",
@@ -155,50 +243,6 @@
155
243
  "type": "(key, val) => string",
156
244
  "description": "自定义校验函数, 默认值: -"
157
245
  },
158
- "van-address-list/v-model": {
159
- "type": "string",
160
- "description": "当前选中地址的 id, 默认值: -"
161
- },
162
- "van-address-list/list": {
163
- "type": "Address[]",
164
- "description": "地址列表, 默认值: `[]`"
165
- },
166
- "van-address-list/disabled-list": {
167
- "type": "Address[]",
168
- "description": "不可配送地址列表, 默认值: `[]`"
169
- },
170
- "van-address-list/disabled-text": {
171
- "type": "string",
172
- "description": "不可配送提示文案, 默认值: -"
173
- },
174
- "van-address-list/switchable": {
175
- "type": "boolean",
176
- "description": "是否允许切换地址, 默认值: `true`"
177
- },
178
- "van-address-list/add-button-text": {
179
- "type": "string",
180
- "description": "底部按钮文字, 默认值: `新增地址`"
181
- },
182
- "van-address-list/default-tag-text": {
183
- "type": "string",
184
- "description": "默认地址标签文字, 默认值: -"
185
- },
186
- "van-badge/content": {
187
- "type": "number | string",
188
- "description": "徽标内容, 默认值: -"
189
- },
190
- "van-badge/color": {
191
- "type": "string",
192
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
193
- },
194
- "van-badge/dot": {
195
- "type": "boolean",
196
- "description": "是否展示为小红点, 默认值: `false`"
197
- },
198
- "van-badge/max": {
199
- "type": "number | string",
200
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
201
- },
202
246
  "van-calendar/type": {
203
247
  "type": "string",
204
248
  "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间, 默认值: `single`"
@@ -319,57 +363,101 @@
319
363
  "type": "string",
320
364
  "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
321
365
  },
322
- "van-area/value": {
366
+ "van-action-sheet/v-model (value)": {
367
+ "type": "boolean",
368
+ "description": "是否显示动作面板, 默认值: `false`"
369
+ },
370
+ "van-action-sheet/actions": {
371
+ "type": "Action[]",
372
+ "description": "面板选项列表, 默认值: `[]`"
373
+ },
374
+ "van-action-sheet/title": {
323
375
  "type": "string",
324
- "description": "当前选中的省市区`code`, 默认值: -"
376
+ "description": "顶部标题, 默认值: -"
325
377
  },
326
- "van-area/title": {
378
+ "van-action-sheet/cancel-text": {
327
379
  "type": "string",
328
- "description": "顶部栏标题, 默认值: -"
380
+ "description": "取消按钮文字, 默认值: -"
329
381
  },
330
- "van-area/confirm-button-text": {
382
+ "van-action-sheet/description": {
331
383
  "type": "string",
332
- "description": "确认按钮文字, 默认值: `确认`"
384
+ "description": "选项上方的描述信息, 默认值: -"
333
385
  },
334
- "van-area/cancel-button-text": {
386
+ "van-action-sheet/closeable": {
387
+ "type": "boolean",
388
+ "description": "是否显示关闭图标, 默认值: `true`"
389
+ },
390
+ "van-action-sheet/close-icon": {
335
391
  "type": "string",
336
- "description": "取消按钮文字, 默认值: `取消`"
392
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
337
393
  },
338
- "van-area/area-list": {
339
- "type": "object",
340
- "description": "省市区数据,格式见下方, 默认值: -"
394
+ "van-action-sheet/duration": {
395
+ "type": "number | string",
396
+ "description": "动画时长,单位秒, 默认值: `0.3`"
341
397
  },
342
- "van-area/columns-placeholder": {
343
- "type": "string[]",
344
- "description": "列占位提示文字, 默认值: `[]`"
398
+ "van-action-sheet/round": {
399
+ "type": "boolean",
400
+ "description": "是否显示圆角, 默认值: `true`"
345
401
  },
346
- "van-area/loading": {
402
+ "van-action-sheet/overlay": {
347
403
  "type": "boolean",
348
- "description": "是否显示加载状态, 默认值: `false`"
404
+ "description": "是否显示遮罩层, 默认值: `true`"
349
405
  },
350
- "van-area/readonly": {
406
+ "van-action-sheet/lock-scroll": {
351
407
  "type": "boolean",
352
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
408
+ "description": "是否锁定背景滚动, 默认值: `true`"
353
409
  },
354
- "van-area/item-height": {
355
- "type": "number | string",
356
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
410
+ "van-action-sheet/lazy-render": {
411
+ "type": "boolean",
412
+ "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
357
413
  },
358
- "van-area/columns-num": {
359
- "type": "number | string",
360
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
414
+ "van-action-sheet/close-on-popstate": {
415
+ "type": "boolean",
416
+ "description": "是否在页面回退时自动关闭, 默认值: `false`"
361
417
  },
362
- "van-area/visible-item-count": {
363
- "type": "number | string",
364
- "description": "可见的选项个数, 默认值: `6`"
418
+ "van-action-sheet/close-on-click-action": {
419
+ "type": "boolean",
420
+ "description": "是否在点击选项后关闭, 默认值: `false`"
365
421
  },
366
- "van-area/swipe-duration": {
367
- "type": "number | string",
368
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
422
+ "van-action-sheet/close-on-click-overlay": {
423
+ "type": "boolean",
424
+ "description": "是否在点击遮罩层后关闭, 默认值: `true`"
369
425
  },
370
- "van-area/is-oversea-code": {
371
- "type": "() => boolean",
372
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
426
+ "van-action-sheet/safe-area-inset-bottom": {
427
+ "type": "boolean",
428
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
429
+ },
430
+ "van-action-sheet/get-container": {
431
+ "type": "string | () => Element",
432
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
433
+ },
434
+ "van-address-list/v-model": {
435
+ "type": "string",
436
+ "description": "当前选中地址的 id, 默认值: -"
437
+ },
438
+ "van-address-list/list": {
439
+ "type": "Address[]",
440
+ "description": "地址列表, 默认值: `[]`"
441
+ },
442
+ "van-address-list/disabled-list": {
443
+ "type": "Address[]",
444
+ "description": "不可配送地址列表, 默认值: `[]`"
445
+ },
446
+ "van-address-list/disabled-text": {
447
+ "type": "string",
448
+ "description": "不可配送提示文案, 默认值: -"
449
+ },
450
+ "van-address-list/switchable": {
451
+ "type": "boolean",
452
+ "description": "是否允许切换地址, 默认值: `true`"
453
+ },
454
+ "van-address-list/add-button-text": {
455
+ "type": "string",
456
+ "description": "底部按钮文字, 默认值: `新增地址`"
457
+ },
458
+ "van-address-list/default-tag-text": {
459
+ "type": "string",
460
+ "description": "默认地址标签文字, 默认值: -"
373
461
  },
374
462
  "van-card/thumb": {
375
463
  "type": "string",
@@ -411,41 +499,9 @@
411
499
  "type": "string",
412
500
  "description": "点击左侧图片后跳转的链接地址, 默认值: -"
413
501
  },
414
- "van-card/lazy-load": {
415
- "type": "boolean",
416
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
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": {
502
+ "van-card/lazy-load": {
443
503
  "type": "boolean",
444
- "description": "是否展示标题栏, 默认值: `true`"
445
- },
446
- "van-cascader/field-names": {
447
- "type": "object",
448
- "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
504
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
449
505
  },
450
506
  "van-cell-group/title": {
451
507
  "type": "string",
@@ -531,93 +587,37 @@
531
587
  "type": "any",
532
588
  "description": "描述信息额外类名, 默认值: -"
533
589
  },
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": {
590
+ "van-cascader/title": {
551
591
  "type": "string",
552
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
592
+ "description": "顶部标题, 默认值: -"
553
593
  },
554
- "van-button/icon-prefix": {
555
- "type": "string",
556
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
594
+ "van-cascader/value": {
595
+ "type": "string | number",
596
+ "description": "选中项的值, 默认值: -"
557
597
  },
558
- "van-button/icon-position": {
559
- "type": "string",
560
- "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
598
+ "van-cascader/options": {
599
+ "type": "Option[]",
600
+ "description": "可选项数据源, 默认值: `[]`"
561
601
  },
562
- "van-button/tag": {
602
+ "van-cascader/placeholder": {
563
603
  "type": "string",
564
- "description": "按钮根节点的 HTML 标签, 默认值: `button`"
604
+ "description": "未选中时的提示文案, 默认值: `请选择`"
565
605
  },
566
- "van-button/native-type": {
606
+ "van-cascader/active-color": {
567
607
  "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`"
608
+ "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
589
609
  },
590
- "van-button/hairline": {
610
+ "van-cascader/closeable": {
591
611
  "type": "boolean",
592
- "description": "是否使用 0.5px 边框, 默认值: `false`"
612
+ "description": "是否显示关闭图标, 默认值: `true`"
593
613
  },
594
- "van-button/loading": {
614
+ "van-cascader/show-header": {
595
615
  "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), 默认值: -"
616
+ "description": "是否展示标题栏, 默认值: `true`"
617
617
  },
618
- "van-button/replace": {
619
- "type": "boolean",
620
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
618
+ "van-cascader/field-names": {
619
+ "type": "object",
620
+ "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
621
621
  },
622
622
  "van-checkbox/v-model (value)": {
623
623
  "type": "boolean",
@@ -803,6 +803,10 @@
803
803
  "type": "boolean",
804
804
  "description": "是否禁用面板, 默认值: `false`"
805
805
  },
806
+ "van-collapse-item/lazy-render": {
807
+ "type": "boolean",
808
+ "description": "是否在首次展开时才渲染面板内容, 默认值: `true`"
809
+ },
806
810
  "van-collapse-item/title-class": {
807
811
  "type": "string",
808
812
  "description": "左侧标题额外类名, 默认值: -"
@@ -987,6 +991,82 @@
987
991
  "type": "boolean",
988
992
  "description": "是否展示可用 / 不可用数量, 默认值: `true`"
989
993
  },
994
+ "van-datetime-picker/type": {
995
+ "type": "string",
996
+ "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
997
+ },
998
+ "van-datetime-picker/title": {
999
+ "type": "string",
1000
+ "description": "顶部栏标题, 默认值: `''`"
1001
+ },
1002
+ "van-datetime-picker/confirm-button-text": {
1003
+ "type": "string",
1004
+ "description": "确认按钮文字, 默认值: `确认`"
1005
+ },
1006
+ "van-datetime-picker/cancel-button-text": {
1007
+ "type": "string",
1008
+ "description": "取消按钮文字, 默认值: `取消`"
1009
+ },
1010
+ "van-datetime-picker/show-toolbar": {
1011
+ "type": "boolean",
1012
+ "description": "是否显示顶部栏, 默认值: `true`"
1013
+ },
1014
+ "van-datetime-picker/loading": {
1015
+ "type": "boolean",
1016
+ "description": "是否显示加载状态, 默认值: `false`"
1017
+ },
1018
+ "van-datetime-picker/readonly": {
1019
+ "type": "boolean",
1020
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
1021
+ },
1022
+ "van-datetime-picker/filter": {
1023
+ "type": "(type, vals) => vals",
1024
+ "description": "选项过滤函数, 默认值: -"
1025
+ },
1026
+ "van-datetime-picker/formatter": {
1027
+ "type": "(type, val) => val",
1028
+ "description": "选项格式化函数, 默认值: -"
1029
+ },
1030
+ "van-datetime-picker/columns-order": {
1031
+ "type": "string[]",
1032
+ "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
1033
+ },
1034
+ "van-datetime-picker/item-height": {
1035
+ "type": "number | string",
1036
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
1037
+ },
1038
+ "van-datetime-picker/visible-item-count": {
1039
+ "type": "number | string",
1040
+ "description": "可见的选项个数, 默认值: `6`"
1041
+ },
1042
+ "van-datetime-picker/swipe-duration": {
1043
+ "type": "number | string",
1044
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
1045
+ },
1046
+ "van-date-picker/min-date": {
1047
+ "type": "Date",
1048
+ "description": "可选的最小时间,精确到分钟, 默认值: 十年前"
1049
+ },
1050
+ "van-date-picker/max-date": {
1051
+ "type": "Date",
1052
+ "description": "可选的最大时间,精确到分钟, 默认值: 十年后"
1053
+ },
1054
+ "van-time-picker/min-hour": {
1055
+ "type": "number | string",
1056
+ "description": "可选的最小小时, 默认值: `0`"
1057
+ },
1058
+ "van-time-picker/max-hour": {
1059
+ "type": "number | string",
1060
+ "description": "可选的最大小时, 默认值: `23`"
1061
+ },
1062
+ "van-time-picker/min-minute": {
1063
+ "type": "number | string",
1064
+ "description": "可选的最小分钟, 默认值: `0`"
1065
+ },
1066
+ "van-time-picker/max-minute": {
1067
+ "type": "number | string",
1068
+ "description": "可选的最大分钟, 默认值: `59`"
1069
+ },
990
1070
  "van-dialog/v-model": {
991
1071
  "type": "boolean",
992
1072
  "description": "是否显示弹窗, 默认值: -"
@@ -1079,82 +1159,6 @@
1079
1159
  "type": "string | () => Element",
1080
1160
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1081
1161
  },
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
1162
  "van-divider/dashed": {
1159
1163
  "type": "boolean",
1160
1164
  "description": "是否使用虚线, 默认值: `false`"