vant 2.12.53 → 2.12.54

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,32 +1,4 @@
1
1
  {
2
- "van-address-list/v-model": {
3
- "type": "string",
4
- "description": "当前选中地址的 id, 默认值: -"
5
- },
6
- "van-address-list/list": {
7
- "type": "Address[]",
8
- "description": "地址列表, 默认值: `[]`"
9
- },
10
- "van-address-list/disabled-list": {
11
- "type": "Address[]",
12
- "description": "不可配送地址列表, 默认值: `[]`"
13
- },
14
- "van-address-list/disabled-text": {
15
- "type": "string",
16
- "description": "不可配送提示文案, 默认值: -"
17
- },
18
- "van-address-list/switchable": {
19
- "type": "boolean",
20
- "description": "是否允许切换地址, 默认值: `true`"
21
- },
22
- "van-address-list/add-button-text": {
23
- "type": "string",
24
- "description": "底部按钮文字, 默认值: `新增地址`"
25
- },
26
- "van-address-list/default-tag-text": {
27
- "type": "string",
28
- "description": "默认地址标签文字, 默认值: -"
29
- },
30
2
  "van-action-sheet/v-model (value)": {
31
3
  "type": "boolean",
32
4
  "description": "是否显示动作面板, 默认值: `false`"
@@ -95,93 +67,21 @@
95
67
  "type": "string | () => Element",
96
68
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
97
69
  },
98
- "van-address-edit/area-list": {
99
- "type": "object",
100
- "description": "地区列表, 默认值: -"
101
- },
102
- "van-address-edit/area-columns-placeholder": {
103
- "type": "string[]",
104
- "description": "地区选择列占位提示文字, 默认值: `[]`"
105
- },
106
- "van-address-edit/area-placeholder": {
107
- "type": "string",
108
- "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
109
- },
110
- "van-address-edit/address-info": {
111
- "type": "AddressInfo",
112
- "description": "收货人信息初始值, 默认值: `{}`"
113
- },
114
- "van-address-edit/search-result": {
115
- "type": "SearchResult[]",
116
- "description": "详细地址搜索结果, 默认值: `[]`"
117
- },
118
- "van-address-edit/show-postal": {
119
- "type": "boolean",
120
- "description": "是否显示邮政编码, 默认值: `false`"
121
- },
122
- "van-address-edit/show-delete": {
123
- "type": "boolean",
124
- "description": "是否显示删除按钮, 默认值: `false`"
125
- },
126
- "van-address-edit/show-set-default": {
127
- "type": "boolean",
128
- "description": "是否显示默认地址栏, 默认值: `false`"
129
- },
130
- "van-address-edit/show-search-result": {
131
- "type": "boolean",
132
- "description": "是否显示搜索结果, 默认值: `false`"
133
- },
134
- "van-address-edit/show-area": {
135
- "type": "boolean",
136
- "description": "是否显示地区, 默认值: `true`"
137
- },
138
- "van-address-edit/show-detail": {
139
- "type": "boolean",
140
- "description": "是否显示详细地址, 默认值: `true`"
141
- },
142
- "van-address-edit/disable-area": {
143
- "type": "boolean",
144
- "description": "是否禁用地区选择, 默认值: `false`"
145
- },
146
- "van-address-edit/save-button-text": {
147
- "type": "string",
148
- "description": "保存按钮文字, 默认值: `保存`"
149
- },
150
- "van-address-edit/delete-button-text": {
151
- "type": "string",
152
- "description": "删除按钮文字, 默认值: `删除`"
153
- },
154
- "van-address-edit/detail-rows": {
155
- "type": "number | string",
156
- "description": "详细地址输入框行数, 默认值: `1`"
157
- },
158
- "van-address-edit/detail-maxlength": {
70
+ "van-badge/content": {
159
71
  "type": "number | string",
160
- "description": "详细地址最大长度, 默认值: `200`"
72
+ "description": "徽标内容, 默认值: -"
161
73
  },
162
- "van-address-edit/is-saving": {
163
- "type": "boolean",
164
- "description": "是否显示保存按钮加载动画, 默认值: `false`"
74
+ "van-badge/color": {
75
+ "type": "string",
76
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
165
77
  },
166
- "van-address-edit/is-deleting": {
78
+ "van-badge/dot": {
167
79
  "type": "boolean",
168
- "description": "是否显示删除按钮加载动画, 默认值: `false`"
169
- },
170
- "van-address-edit/tel-validator": {
171
- "type": "string => boolean",
172
- "description": "手机号格式校验函数, 默认值: -"
80
+ "description": "是否展示为小红点, 默认值: `false`"
173
81
  },
174
- "van-address-edit/tel-maxlength": {
82
+ "van-badge/max": {
175
83
  "type": "number | string",
176
- "description": "手机号最大长度, 默认值: -"
177
- },
178
- "van-address-edit/postal-validator": {
179
- "type": "string => boolean",
180
- "description": "邮政编码格式校验函数, 默认值: -"
181
- },
182
- "van-address-edit/validator": {
183
- "type": "(key, val) => string",
184
- "description": "自定义校验函数, 默认值: -"
84
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
185
85
  },
186
86
  "van-area/value": {
187
87
  "type": "string",
@@ -323,21 +223,77 @@
323
223
  "type": "boolean",
324
224
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
325
225
  },
326
- "van-badge/content": {
327
- "type": "number | string",
328
- "description": "徽标内容, 默认值: -"
226
+ "van-address-list/v-model": {
227
+ "type": "string",
228
+ "description": "当前选中地址的 id, 默认值: -"
329
229
  },
330
- "van-badge/color": {
230
+ "van-address-list/list": {
231
+ "type": "Address[]",
232
+ "description": "地址列表, 默认值: `[]`"
233
+ },
234
+ "van-address-list/disabled-list": {
235
+ "type": "Address[]",
236
+ "description": "不可配送地址列表, 默认值: `[]`"
237
+ },
238
+ "van-address-list/disabled-text": {
331
239
  "type": "string",
332
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
240
+ "description": "不可配送提示文案, 默认值: -"
333
241
  },
334
- "van-badge/dot": {
242
+ "van-address-list/switchable": {
335
243
  "type": "boolean",
336
- "description": "是否展示为小红点, 默认值: `false`"
244
+ "description": "是否允许切换地址, 默认值: `true`"
337
245
  },
338
- "van-badge/max": {
246
+ "van-address-list/add-button-text": {
247
+ "type": "string",
248
+ "description": "底部按钮文字, 默认值: `新增地址`"
249
+ },
250
+ "van-address-list/default-tag-text": {
251
+ "type": "string",
252
+ "description": "默认地址标签文字, 默认值: -"
253
+ },
254
+ "van-card/thumb": {
255
+ "type": "string",
256
+ "description": "左侧图片 URL, 默认值: -"
257
+ },
258
+ "van-card/title": {
259
+ "type": "string",
260
+ "description": "标题, 默认值: -"
261
+ },
262
+ "van-card/desc": {
263
+ "type": "string",
264
+ "description": "描述, 默认值: -"
265
+ },
266
+ "van-card/tag": {
267
+ "type": "string",
268
+ "description": "图片角标, 默认值: -"
269
+ },
270
+ "van-card/num": {
339
271
  "type": "number | string",
340
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
272
+ "description": "商品数量, 默认值: -"
273
+ },
274
+ "van-card/price": {
275
+ "type": "number | string",
276
+ "description": "商品价格, 默认值: -"
277
+ },
278
+ "van-card/origin-price": {
279
+ "type": "number | string",
280
+ "description": "商品划线原价, 默认值: -"
281
+ },
282
+ "van-card/centered": {
283
+ "type": "boolean",
284
+ "description": "内容是否垂直居中, 默认值: `false`"
285
+ },
286
+ "van-card/currency": {
287
+ "type": "string",
288
+ "description": "货币符号, 默认值: `¥`"
289
+ },
290
+ "van-card/thumb-link": {
291
+ "type": "string",
292
+ "description": "点击左侧图片后跳转的链接地址, 默认值: -"
293
+ },
294
+ "van-card/lazy-load": {
295
+ "type": "boolean",
296
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
341
297
  },
342
298
  "van-calendar/type": {
343
299
  "type": "string",
@@ -451,81 +407,125 @@
451
407
  "type": "boolean",
452
408
  "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
453
409
  },
454
- "van-card/thumb": {
410
+ "van-cascader/title": {
455
411
  "type": "string",
456
- "description": "左侧图片 URL, 默认值: -"
412
+ "description": "顶部标题, 默认值: -"
457
413
  },
458
- "van-card/title": {
459
- "type": "string",
460
- "description": "标题, 默认值: -"
414
+ "van-cascader/value": {
415
+ "type": "string | number",
416
+ "description": "选中项的值, 默认值: -"
461
417
  },
462
- "van-card/desc": {
418
+ "van-cascader/options": {
419
+ "type": "Option[]",
420
+ "description": "可选项数据源, 默认值: `[]`"
421
+ },
422
+ "van-cascader/placeholder": {
463
423
  "type": "string",
464
- "description": "描述, 默认值: -"
424
+ "description": "未选中时的提示文案, 默认值: `请选择`"
465
425
  },
466
- "van-card/tag": {
426
+ "van-cascader/active-color": {
467
427
  "type": "string",
468
- "description": "图片角标, 默认值: -"
428
+ "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
469
429
  },
470
- "van-card/num": {
471
- "type": "number | string",
472
- "description": "商品数量, 默认值: -"
430
+ "van-cascader/closeable": {
431
+ "type": "boolean",
432
+ "description": "是否显示关闭图标, 默认值: `true`"
473
433
  },
474
- "van-card/price": {
475
- "type": "number | string",
476
- "description": "商品价格, 默认值: -"
434
+ "van-cascader/show-header": {
435
+ "type": "boolean",
436
+ "description": "是否展示标题栏, 默认值: `true`"
477
437
  },
478
- "van-card/origin-price": {
479
- "type": "number | string",
480
- "description": "商品划线原价, 默认值: -"
438
+ "van-cascader/field-names": {
439
+ "type": "object",
440
+ "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
481
441
  },
482
- "van-card/centered": {
483
- "type": "boolean",
484
- "description": "内容是否垂直居中, 默认值: `false`"
442
+ "van-address-edit/area-list": {
443
+ "type": "object",
444
+ "description": "地区列表, 默认值: -"
485
445
  },
486
- "van-card/currency": {
487
- "type": "string",
488
- "description": "货币符号, 默认值: `¥`"
446
+ "van-address-edit/area-columns-placeholder": {
447
+ "type": "string[]",
448
+ "description": "地区选择列占位提示文字, 默认值: `[]`"
489
449
  },
490
- "van-card/thumb-link": {
450
+ "van-address-edit/area-placeholder": {
491
451
  "type": "string",
492
- "description": "点击左侧图片后跳转的链接地址, 默认值: -"
452
+ "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
493
453
  },
494
- "van-card/lazy-load": {
454
+ "van-address-edit/address-info": {
455
+ "type": "AddressInfo",
456
+ "description": "收货人信息初始值, 默认值: `{}`"
457
+ },
458
+ "van-address-edit/search-result": {
459
+ "type": "SearchResult[]",
460
+ "description": "详细地址搜索结果, 默认值: `[]`"
461
+ },
462
+ "van-address-edit/show-postal": {
495
463
  "type": "boolean",
496
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
464
+ "description": "是否显示邮政编码, 默认值: `false`"
497
465
  },
498
- "van-cascader/title": {
499
- "type": "string",
500
- "description": "顶部标题, 默认值: -"
466
+ "van-address-edit/show-delete": {
467
+ "type": "boolean",
468
+ "description": "是否显示删除按钮, 默认值: `false`"
501
469
  },
502
- "van-cascader/value": {
503
- "type": "string | number",
504
- "description": "选中项的值, 默认值: -"
470
+ "van-address-edit/show-set-default": {
471
+ "type": "boolean",
472
+ "description": "是否显示默认地址栏, 默认值: `false`"
505
473
  },
506
- "van-cascader/options": {
507
- "type": "Option[]",
508
- "description": "可选项数据源, 默认值: `[]`"
474
+ "van-address-edit/show-search-result": {
475
+ "type": "boolean",
476
+ "description": "是否显示搜索结果, 默认值: `false`"
509
477
  },
510
- "van-cascader/placeholder": {
478
+ "van-address-edit/show-area": {
479
+ "type": "boolean",
480
+ "description": "是否显示地区, 默认值: `true`"
481
+ },
482
+ "van-address-edit/show-detail": {
483
+ "type": "boolean",
484
+ "description": "是否显示详细地址, 默认值: `true`"
485
+ },
486
+ "van-address-edit/disable-area": {
487
+ "type": "boolean",
488
+ "description": "是否禁用地区选择, 默认值: `false`"
489
+ },
490
+ "van-address-edit/save-button-text": {
511
491
  "type": "string",
512
- "description": "未选中时的提示文案, 默认值: `请选择`"
492
+ "description": "保存按钮文字, 默认值: `保存`"
513
493
  },
514
- "van-cascader/active-color": {
494
+ "van-address-edit/delete-button-text": {
515
495
  "type": "string",
516
- "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
496
+ "description": "删除按钮文字, 默认值: `删除`"
517
497
  },
518
- "van-cascader/closeable": {
498
+ "van-address-edit/detail-rows": {
499
+ "type": "number | string",
500
+ "description": "详细地址输入框行数, 默认值: `1`"
501
+ },
502
+ "van-address-edit/detail-maxlength": {
503
+ "type": "number | string",
504
+ "description": "详细地址最大长度, 默认值: `200`"
505
+ },
506
+ "van-address-edit/is-saving": {
519
507
  "type": "boolean",
520
- "description": "是否显示关闭图标, 默认值: `true`"
508
+ "description": "是否显示保存按钮加载动画, 默认值: `false`"
521
509
  },
522
- "van-cascader/show-header": {
510
+ "van-address-edit/is-deleting": {
523
511
  "type": "boolean",
524
- "description": "是否展示标题栏, 默认值: `true`"
512
+ "description": "是否显示删除按钮加载动画, 默认值: `false`"
525
513
  },
526
- "van-cascader/field-names": {
527
- "type": "object",
528
- "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
514
+ "van-address-edit/tel-validator": {
515
+ "type": "string => boolean",
516
+ "description": "手机号格式校验函数, 默认值: -"
517
+ },
518
+ "van-address-edit/tel-maxlength": {
519
+ "type": "number | string",
520
+ "description": "手机号最大长度, 默认值: -"
521
+ },
522
+ "van-address-edit/postal-validator": {
523
+ "type": "string => boolean",
524
+ "description": "邮政编码格式校验函数, 默认值: -"
525
+ },
526
+ "van-address-edit/validator": {
527
+ "type": "(key, val) => string",
528
+ "description": "自定义校验函数, 默认值: -"
529
529
  },
530
530
  "van-cell/title": {
531
531
  "type": "number | string",
@@ -603,50 +603,6 @@
603
603
  "type": "any",
604
604
  "description": "描述信息额外类名, 默认值: -"
605
605
  },
606
- "van-circle/v-model": {
607
- "type": "number",
608
- "description": "当前进度, 默认值: -"
609
- },
610
- "van-circle/rate": {
611
- "type": "number | string",
612
- "description": "目标进度, 默认值: `100`"
613
- },
614
- "van-circle/size": {
615
- "type": "number | string",
616
- "description": "圆环直径,默认单位为 `px`, 默认值: `100px`"
617
- },
618
- "van-circle/color": {
619
- "type": "string | object",
620
- "description": "进度条颜色,传入对象格式可以定义渐变色, 默认值: `#1989fa`"
621
- },
622
- "van-circle/layer-color": {
623
- "type": "string",
624
- "description": "轨道颜色, 默认值: `white`"
625
- },
626
- "van-circle/fill": {
627
- "type": "string",
628
- "description": "填充颜色, 默认值: `none`"
629
- },
630
- "van-circle/speed": {
631
- "type": "number | string",
632
- "description": "动画速度(单位为 rate/s), 默认值: `0`"
633
- },
634
- "van-circle/text": {
635
- "type": "string",
636
- "description": "文字, 默认值: -"
637
- },
638
- "van-circle/stroke-width": {
639
- "type": "number | string",
640
- "description": "进度条宽度, 默认值: `40`"
641
- },
642
- "van-circle/stroke-linecap": {
643
- "type": "string",
644
- "description": "进度条端点的形状,可选值为`square` `butt`, 默认值: `round`"
645
- },
646
- "van-circle/clockwise": {
647
- "type": "boolean",
648
- "description": "是否顺时针增加, 默认值: `true`"
649
- },
650
606
  "van-checkbox/v-model (value)": {
651
607
  "type": "any[]",
652
608
  "description": "所有选中项的标识符, 默认值: -"
@@ -691,6 +647,50 @@
691
647
  "type": "string",
692
648
  "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
693
649
  },
650
+ "van-circle/v-model": {
651
+ "type": "number",
652
+ "description": "当前进度, 默认值: -"
653
+ },
654
+ "van-circle/rate": {
655
+ "type": "number | string",
656
+ "description": "目标进度, 默认值: `100`"
657
+ },
658
+ "van-circle/size": {
659
+ "type": "number | string",
660
+ "description": "圆环直径,默认单位为 `px`, 默认值: `100px`"
661
+ },
662
+ "van-circle/color": {
663
+ "type": "string | object",
664
+ "description": "进度条颜色,传入对象格式可以定义渐变色, 默认值: `#1989fa`"
665
+ },
666
+ "van-circle/layer-color": {
667
+ "type": "string",
668
+ "description": "轨道颜色, 默认值: `white`"
669
+ },
670
+ "van-circle/fill": {
671
+ "type": "string",
672
+ "description": "填充颜色, 默认值: `none`"
673
+ },
674
+ "van-circle/speed": {
675
+ "type": "number | string",
676
+ "description": "动画速度(单位为 rate/s), 默认值: `0`"
677
+ },
678
+ "van-circle/text": {
679
+ "type": "string",
680
+ "description": "文字, 默认值: -"
681
+ },
682
+ "van-circle/stroke-width": {
683
+ "type": "number | string",
684
+ "description": "进度条宽度, 默认值: `40`"
685
+ },
686
+ "van-circle/stroke-linecap": {
687
+ "type": "string",
688
+ "description": "进度条端点的形状,可选值为`square` `butt`, 默认值: `round`"
689
+ },
690
+ "van-circle/clockwise": {
691
+ "type": "boolean",
692
+ "description": "是否顺时针增加, 默认值: `true`"
693
+ },
694
694
  "van-layout/type": {
695
695
  "type": "string",
696
696
  "description": "布局方式,可选值为`flex`, 默认值: -"
@@ -1015,18 +1015,6 @@
1015
1015
  "type": "number | string",
1016
1016
  "description": "可选的最大分钟, 默认值: `59`"
1017
1017
  },
1018
- "van-divider/dashed": {
1019
- "type": "boolean",
1020
- "description": "是否使用虚线, 默认值: `false`"
1021
- },
1022
- "van-divider/hairline": {
1023
- "type": "boolean",
1024
- "description": "是否使用 0.5px 线, 默认值: `true`"
1025
- },
1026
- "van-divider/content-position": {
1027
- "type": "string",
1028
- "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
1029
- },
1030
1018
  "van-dialog/v-model": {
1031
1019
  "type": "boolean",
1032
1020
  "description": "是否显示弹窗, 默认值: -"
@@ -1119,6 +1107,18 @@
1119
1107
  "type": "string | () => Element",
1120
1108
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1121
1109
  },
1110
+ "van-divider/dashed": {
1111
+ "type": "boolean",
1112
+ "description": "是否使用虚线, 默认值: `false`"
1113
+ },
1114
+ "van-divider/hairline": {
1115
+ "type": "boolean",
1116
+ "description": "是否使用 0.5px 线, 默认值: `true`"
1117
+ },
1118
+ "van-divider/content-position": {
1119
+ "type": "string",
1120
+ "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
1121
+ },
1122
1122
  "van-dropdown-menu/active-color": {
1123
1123
  "type": "string",
1124
1124
  "description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
@@ -1141,159 +1141,51 @@
1141
1141
  },
1142
1142
  "van-dropdown-menu/close-on-click-overlay": {
1143
1143
  "type": "boolean",
1144
- "description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
1145
- },
1146
- "van-dropdown-menu/close-on-click-outside": {
1147
- "type": "boolean",
1148
- "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
1149
- },
1150
- "van-dropdown-menu/value": {
1151
- "type": "number | string",
1152
- "description": "当前选中项对应的 value,可以通过`v-model`双向绑定, 默认值: -"
1153
- },
1154
- "van-dropdown-menu/title": {
1155
- "type": "string",
1156
- "description": "菜单项标题, 默认值: 当前选中项文字"
1157
- },
1158
- "van-dropdown-menu/options": {
1159
- "type": "Option[]",
1160
- "description": "选项数组, 默认值: `[]`"
1161
- },
1162
- "van-dropdown-menu/disabled": {
1163
- "type": "boolean",
1164
- "description": "是否禁用菜单, 默认值: `false`"
1165
- },
1166
- "van-dropdown-menu/lazy-render": {
1167
- "type": "boolean",
1168
- "description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
1169
- },
1170
- "van-dropdown-menu/title-class": {
1171
- "type": "string",
1172
- "description": "标题额外类名, 默认值: -"
1173
- },
1174
- "van-dropdown-menu/get-container": {
1175
- "type": "string | () => Element",
1176
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1177
- },
1178
- "van-empty/image": {
1179
- "type": "string",
1180
- "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
1181
- },
1182
- "van-empty/image-size": {
1183
- "type": "number | string",
1184
- "description": "图片大小,默认单位为 `px`, 默认值: -"
1185
- },
1186
- "van-empty/description": {
1187
- "type": "string",
1188
- "description": "图片下方的描述文字, 默认值: -"
1189
- },
1190
- "van-form/label-width": {
1191
- "type": "number | string",
1192
- "description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
1193
- },
1194
- "van-form/label-align": {
1195
- "type": "string",
1196
- "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
1197
- },
1198
- "van-form/input-align": {
1199
- "type": "string",
1200
- "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
1201
- },
1202
- "van-form/error-message-align": {
1203
- "type": "string",
1204
- "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
1205
- },
1206
- "van-form/validate-trigger": {
1207
- "type": "string",
1208
- "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
1209
- },
1210
- "van-form/colon": {
1211
- "type": "boolean",
1212
- "description": "是否在 label 后面添加冒号, 默认值: `false`"
1213
- },
1214
- "van-form/disabled": {
1215
- "type": "boolean",
1216
- "description": "是否禁用表单中的所有输入框, 默认值: `false`"
1217
- },
1218
- "van-form/readonly": {
1219
- "type": "boolean",
1220
- "description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
1221
- },
1222
- "van-form/validate-first": {
1223
- "type": "boolean",
1224
- "description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
1225
- },
1226
- "van-form/scroll-to-error": {
1227
- "type": "boolean",
1228
- "description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
1229
- },
1230
- "van-form/show-error": {
1231
- "type": "boolean",
1232
- "description": "是否在校验不通过时标红输入框, 默认值: `true`"
1233
- },
1234
- "van-form/show-error-message": {
1235
- "type": "boolean",
1236
- "description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
1237
- },
1238
- "van-form/submit-on-enter": {
1239
- "type": "boolean",
1240
- "description": "是否在按下回车键时提交表单, 默认值: `true`"
1241
- },
1242
- "van-goods-action/safe-area-inset-bottom": {
1243
- "type": "boolean",
1244
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
1245
- },
1246
- "van-goods-action/text": {
1247
- "type": "string",
1248
- "description": "按钮文字, 默认值: -"
1249
- },
1250
- "van-goods-action/icon": {
1251
- "type": "string",
1252
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1253
- },
1254
- "van-goods-action/color": {
1255
- "type": "string",
1256
- "description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
1257
- },
1258
- "van-goods-action/icon-class": {
1259
- "type": "any",
1260
- "description": "图标额外类名, 默认值: -"
1261
- },
1262
- "van-goods-action/dot": {
1263
- "type": "boolean",
1264
- "description": "是否显示图标右上角小红点, 默认值: `false`"
1144
+ "description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
1265
1145
  },
1266
- "van-goods-action/badge": {
1267
- "type": "number | string",
1268
- "description": "图标右上角徽标的内容, 默认值: -"
1146
+ "van-dropdown-menu/close-on-click-outside": {
1147
+ "type": "boolean",
1148
+ "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
1269
1149
  },
1270
- "van-goods-action/info": {
1150
+ "van-dropdown-menu/value": {
1271
1151
  "type": "number | string",
1272
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
1152
+ "description": "当前选中项对应的 value,可以通过`v-model`双向绑定, 默认值: -"
1273
1153
  },
1274
- "van-goods-action/url": {
1154
+ "van-dropdown-menu/title": {
1275
1155
  "type": "string",
1276
- "description": "点击后跳转的链接地址, 默认值: -"
1156
+ "description": "菜单项标题, 默认值: 当前选中项文字"
1277
1157
  },
1278
- "van-goods-action/to": {
1279
- "type": "string | object",
1280
- "description": "点击后跳转的目标路由对象,同 vue-router [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1158
+ "van-dropdown-menu/options": {
1159
+ "type": "Option[]",
1160
+ "description": "选项数组, 默认值: `[]`"
1281
1161
  },
1282
- "van-goods-action/replace": {
1162
+ "van-dropdown-menu/disabled": {
1283
1163
  "type": "boolean",
1284
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
1164
+ "description": "是否禁用菜单, 默认值: `false`"
1285
1165
  },
1286
- "van-goods-action/type": {
1166
+ "van-dropdown-menu/lazy-render": {
1167
+ "type": "boolean",
1168
+ "description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
1169
+ },
1170
+ "van-dropdown-menu/title-class": {
1287
1171
  "type": "string",
1288
- "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
1172
+ "description": "标题额外类名, 默认值: -"
1289
1173
  },
1290
- "van-goods-action/disabled": {
1291
- "type": "boolean",
1292
- "description": "是否禁用按钮, 默认值: `false`"
1174
+ "van-dropdown-menu/get-container": {
1175
+ "type": "string | () => Element",
1176
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1293
1177
  },
1294
- "van-goods-action/loading": {
1295
- "type": "boolean",
1296
- "description": "是否显示为加载状态, 默认值: `false`"
1178
+ "van-empty/image": {
1179
+ "type": "string",
1180
+ "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
1181
+ },
1182
+ "van-empty/image-size": {
1183
+ "type": "number | string",
1184
+ "description": "图片大小,默认单位为 `px`, 默认值: -"
1185
+ },
1186
+ "van-empty/description": {
1187
+ "type": "string",
1188
+ "description": "图片下方的描述文字, 默认值: -"
1297
1189
  },
1298
1190
  "van-field/v-model (value)": {
1299
1191
  "type": "number | string",
@@ -1435,6 +1327,114 @@
1435
1327
  "type": "string",
1436
1328
  "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
1437
1329
  },
1330
+ "van-form/label-width": {
1331
+ "type": "number | string",
1332
+ "description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
1333
+ },
1334
+ "van-form/label-align": {
1335
+ "type": "string",
1336
+ "description": "表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
1337
+ },
1338
+ "van-form/input-align": {
1339
+ "type": "string",
1340
+ "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
1341
+ },
1342
+ "van-form/error-message-align": {
1343
+ "type": "string",
1344
+ "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
1345
+ },
1346
+ "van-form/validate-trigger": {
1347
+ "type": "string",
1348
+ "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
1349
+ },
1350
+ "van-form/colon": {
1351
+ "type": "boolean",
1352
+ "description": "是否在 label 后面添加冒号, 默认值: `false`"
1353
+ },
1354
+ "van-form/disabled": {
1355
+ "type": "boolean",
1356
+ "description": "是否禁用表单中的所有输入框, 默认值: `false`"
1357
+ },
1358
+ "van-form/readonly": {
1359
+ "type": "boolean",
1360
+ "description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
1361
+ },
1362
+ "van-form/validate-first": {
1363
+ "type": "boolean",
1364
+ "description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
1365
+ },
1366
+ "van-form/scroll-to-error": {
1367
+ "type": "boolean",
1368
+ "description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
1369
+ },
1370
+ "van-form/show-error": {
1371
+ "type": "boolean",
1372
+ "description": "是否在校验不通过时标红输入框, 默认值: `true`"
1373
+ },
1374
+ "van-form/show-error-message": {
1375
+ "type": "boolean",
1376
+ "description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
1377
+ },
1378
+ "van-form/submit-on-enter": {
1379
+ "type": "boolean",
1380
+ "description": "是否在按下回车键时提交表单, 默认值: `true`"
1381
+ },
1382
+ "van-goods-action/safe-area-inset-bottom": {
1383
+ "type": "boolean",
1384
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
1385
+ },
1386
+ "van-goods-action/text": {
1387
+ "type": "string",
1388
+ "description": "按钮文字, 默认值: -"
1389
+ },
1390
+ "van-goods-action/icon": {
1391
+ "type": "string",
1392
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1393
+ },
1394
+ "van-goods-action/color": {
1395
+ "type": "string",
1396
+ "description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
1397
+ },
1398
+ "van-goods-action/icon-class": {
1399
+ "type": "any",
1400
+ "description": "图标额外类名, 默认值: -"
1401
+ },
1402
+ "van-goods-action/dot": {
1403
+ "type": "boolean",
1404
+ "description": "是否显示图标右上角小红点, 默认值: `false`"
1405
+ },
1406
+ "van-goods-action/badge": {
1407
+ "type": "number | string",
1408
+ "description": "图标右上角徽标的内容, 默认值: -"
1409
+ },
1410
+ "van-goods-action/info": {
1411
+ "type": "number | string",
1412
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
1413
+ },
1414
+ "van-goods-action/url": {
1415
+ "type": "string",
1416
+ "description": "点击后跳转的链接地址, 默认值: -"
1417
+ },
1418
+ "van-goods-action/to": {
1419
+ "type": "string | object",
1420
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1421
+ },
1422
+ "van-goods-action/replace": {
1423
+ "type": "boolean",
1424
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
1425
+ },
1426
+ "van-goods-action/type": {
1427
+ "type": "string",
1428
+ "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
1429
+ },
1430
+ "van-goods-action/disabled": {
1431
+ "type": "boolean",
1432
+ "description": "是否禁用按钮, 默认值: `false`"
1433
+ },
1434
+ "van-goods-action/loading": {
1435
+ "type": "boolean",
1436
+ "description": "是否显示为加载状态, 默认值: `false`"
1437
+ },
1438
1438
  "van-grid/column-num": {
1439
1439
  "type": "number | string",
1440
1440
  "description": "列数, 默认值: `4`"
@@ -1935,6 +1935,22 @@
1935
1935
  "type": "boolean",
1936
1936
  "description": "是否显示省略号, 默认值: `false`"
1937
1937
  },
1938
+ "van-panel/title": {
1939
+ "type": "string",
1940
+ "description": "标题, 默认值: -"
1941
+ },
1942
+ "van-panel/desc": {
1943
+ "type": "string",
1944
+ "description": "描述, 默认值: -"
1945
+ },
1946
+ "van-panel/status": {
1947
+ "type": "string",
1948
+ "description": "状态, 默认值: -"
1949
+ },
1950
+ "van-panel/icon": {
1951
+ "type": "string",
1952
+ "description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1953
+ },
1938
1954
  "van-password-input/value": {
1939
1955
  "type": "string",
1940
1956
  "description": "密码值, 默认值: `''`"
@@ -2019,22 +2035,6 @@
2019
2035
  "type": "number | string",
2020
2036
  "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
2021
2037
  },
2022
- "van-panel/title": {
2023
- "type": "string",
2024
- "description": "标题, 默认值: -"
2025
- },
2026
- "van-panel/desc": {
2027
- "type": "string",
2028
- "description": "描述, 默认值: -"
2029
- },
2030
- "van-panel/status": {
2031
- "type": "string",
2032
- "description": "状态, 默认值: -"
2033
- },
2034
- "van-panel/icon": {
2035
- "type": "string",
2036
- "description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
2037
- },
2038
2038
  "van-popover/v-model": {
2039
2039
  "type": "boolean",
2040
2040
  "description": "是否展示气泡弹出层, 默认值: `false`"
@@ -2305,7 +2305,7 @@
2305
2305
  },
2306
2306
  "van-rate/readonly": {
2307
2307
  "type": "boolean",
2308
- "description": "是否为只读状态 \b, 默认值: `false`"
2308
+ "description": "是否为只读状态, 默认值: `false`"
2309
2309
  },
2310
2310
  "van-rate/disabled": {
2311
2311
  "type": "boolean",
@@ -3207,6 +3207,38 @@
3207
3207
  "type": "boolean",
3208
3208
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
3209
3209
  },
3210
+ "van-tag/type": {
3211
+ "type": "string",
3212
+ "description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
3213
+ },
3214
+ "van-tag/size": {
3215
+ "type": "string",
3216
+ "description": "大小, 可选值为`large` `medium`, 默认值: -"
3217
+ },
3218
+ "van-tag/color": {
3219
+ "type": "string",
3220
+ "description": "标签颜色, 默认值: -"
3221
+ },
3222
+ "van-tag/plain": {
3223
+ "type": "boolean",
3224
+ "description": "是否为空心样式, 默认值: `false`"
3225
+ },
3226
+ "van-tag/round": {
3227
+ "type": "boolean",
3228
+ "description": "是否为圆角样式, 默认值: `false`"
3229
+ },
3230
+ "van-tag/mark": {
3231
+ "type": "boolean",
3232
+ "description": "是否为标记样式, 默认值: `false`"
3233
+ },
3234
+ "van-tag/text-color": {
3235
+ "type": "string",
3236
+ "description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
3237
+ },
3238
+ "van-tag/closeable": {
3239
+ "type": "boolean",
3240
+ "description": "是否为可关闭标签, 默认值: `false`"
3241
+ },
3210
3242
  "van-tree-select/items": {
3211
3243
  "type": "Item[]",
3212
3244
  "description": "分类显示所需的数据, 默认值: `[]`"
@@ -3322,37 +3354,5 @@
3322
3354
  "van-uploader/upload-icon": {
3323
3355
  "type": "string",
3324
3356
  "description": "上传区域[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photograph`"
3325
- },
3326
- "van-tag/type": {
3327
- "type": "string",
3328
- "description": "类型,可选值为`primary` `success` `danger` `warning`, 默认值: `default`"
3329
- },
3330
- "van-tag/size": {
3331
- "type": "string",
3332
- "description": "大小, 可选值为`large` `medium`, 默认值: -"
3333
- },
3334
- "van-tag/color": {
3335
- "type": "string",
3336
- "description": "标签颜色, 默认值: -"
3337
- },
3338
- "van-tag/plain": {
3339
- "type": "boolean",
3340
- "description": "是否为空心样式, 默认值: `false`"
3341
- },
3342
- "van-tag/round": {
3343
- "type": "boolean",
3344
- "description": "是否为圆角样式, 默认值: `false`"
3345
- },
3346
- "van-tag/mark": {
3347
- "type": "boolean",
3348
- "description": "是否为标记样式, 默认值: `false`"
3349
- },
3350
- "van-tag/text-color": {
3351
- "type": "string",
3352
- "description": "文本颜色,优先级高于`color`属性, 默认值: `white`"
3353
- },
3354
- "van-tag/closeable": {
3355
- "type": "boolean",
3356
- "description": "是否为可关闭标签, 默认值: `false`"
3357
3357
  }
3358
3358
  }