vant 2.12.43 → 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,159 +1,55 @@
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": {
2
+ "van-area/value": {
11
3
  "type": "string",
12
- "description": "顶部标题, 默认值: -"
4
+ "description": "当前选中的省市区`code`, 默认值: -"
13
5
  },
14
- "van-action-sheet/cancel-text": {
6
+ "van-area/title": {
15
7
  "type": "string",
16
- "description": "取消按钮文字, 默认值: -"
8
+ "description": "顶部栏标题, 默认值: -"
17
9
  },
18
- "van-action-sheet/description": {
10
+ "van-area/confirm-button-text": {
19
11
  "type": "string",
20
- "description": "选项上方的描述信息, 默认值: -"
21
- },
22
- "van-action-sheet/closeable": {
23
- "type": "boolean",
24
- "description": "是否显示关闭图标, 默认值: `true`"
12
+ "description": "确认按钮文字, 默认值: `确认`"
25
13
  },
26
- "van-action-sheet/close-icon": {
14
+ "van-area/cancel-button-text": {
27
15
  "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), 默认值: -"
16
+ "description": "取消按钮文字, 默认值: `取消`"
69
17
  },
70
- "van-address-edit/area-list": {
18
+ "van-area/area-list": {
71
19
  "type": "object",
72
- "description": "地区列表, 默认值: -"
20
+ "description": "省市区数据,格式见下方, 默认值: -"
73
21
  },
74
- "van-address-edit/area-columns-placeholder": {
22
+ "van-area/columns-placeholder": {
75
23
  "type": "string[]",
76
- "description": "地区选择列占位提示文字, 默认值: `[]`"
77
- },
78
- "van-address-edit/area-placeholder": {
79
- "type": "string",
80
- "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
81
- },
82
- "van-address-edit/address-info": {
83
- "type": "AddressInfo",
84
- "description": "收货人信息初始值, 默认值: `{}`"
85
- },
86
- "van-address-edit/search-result": {
87
- "type": "SearchResult[]",
88
- "description": "详细地址搜索结果, 默认值: `[]`"
89
- },
90
- "van-address-edit/show-postal": {
91
- "type": "boolean",
92
- "description": "是否显示邮政编码, 默认值: `false`"
93
- },
94
- "van-address-edit/show-delete": {
95
- "type": "boolean",
96
- "description": "是否显示删除按钮, 默认值: `false`"
97
- },
98
- "van-address-edit/show-set-default": {
99
- "type": "boolean",
100
- "description": "是否显示默认地址栏, 默认值: `false`"
101
- },
102
- "van-address-edit/show-search-result": {
103
- "type": "boolean",
104
- "description": "是否显示搜索结果, 默认值: `false`"
105
- },
106
- "van-address-edit/show-area": {
107
- "type": "boolean",
108
- "description": "是否显示地区, 默认值: `true`"
24
+ "description": "列占位提示文字, 默认值: `[]`"
109
25
  },
110
- "van-address-edit/show-detail": {
26
+ "van-area/loading": {
111
27
  "type": "boolean",
112
- "description": "是否显示详细地址, 默认值: `true`"
28
+ "description": "是否显示加载状态, 默认值: `false`"
113
29
  },
114
- "van-address-edit/disable-area": {
30
+ "van-area/readonly": {
115
31
  "type": "boolean",
116
- "description": "是否禁用地区选择, 默认值: `false`"
117
- },
118
- "van-address-edit/save-button-text": {
119
- "type": "string",
120
- "description": "保存按钮文字, 默认值: `保存`"
121
- },
122
- "van-address-edit/delete-button-text": {
123
- "type": "string",
124
- "description": "删除按钮文字, 默认值: `删除`"
32
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
125
33
  },
126
- "van-address-edit/detail-rows": {
34
+ "van-area/item-height": {
127
35
  "type": "number | string",
128
- "description": "详细地址输入框行数, 默认值: `1`"
36
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
129
37
  },
130
- "van-address-edit/detail-maxlength": {
38
+ "van-area/columns-num": {
131
39
  "type": "number | string",
132
- "description": "详细地址最大长度, 默认值: `200`"
133
- },
134
- "van-address-edit/is-saving": {
135
- "type": "boolean",
136
- "description": "是否显示保存按钮加载动画, 默认值: `false`"
137
- },
138
- "van-address-edit/is-deleting": {
139
- "type": "boolean",
140
- "description": "是否显示删除按钮加载动画, 默认值: `false`"
141
- },
142
- "van-address-edit/tel-validator": {
143
- "type": "string => boolean",
144
- "description": "手机号格式校验函数, 默认值: -"
40
+ "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
145
41
  },
146
- "van-address-edit/tel-maxlength": {
42
+ "van-area/visible-item-count": {
147
43
  "type": "number | string",
148
- "description": "手机号最大长度, 默认值: -"
44
+ "description": "可见的选项个数, 默认值: `6`"
149
45
  },
150
- "van-address-edit/postal-validator": {
151
- "type": "string => boolean",
152
- "description": "邮政编码格式校验函数, 默认值: -"
46
+ "van-area/swipe-duration": {
47
+ "type": "number | string",
48
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
153
49
  },
154
- "van-address-edit/validator": {
155
- "type": "(key, val) => string",
156
- "description": "自定义校验函数, 默认值: -"
50
+ "van-area/is-oversea-code": {
51
+ "type": "() => boolean",
52
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
157
53
  },
158
54
  "van-badge/content": {
159
55
  "type": "number | string",
@@ -259,57 +155,93 @@
259
155
  "type": "boolean",
260
156
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
261
157
  },
262
- "van-area/value": {
263
- "type": "string",
264
- "description": "当前选中的省市区`code`, 默认值: -"
158
+ "van-address-edit/area-list": {
159
+ "type": "object",
160
+ "description": "地区列表, 默认值: -"
265
161
  },
266
- "van-area/title": {
267
- "type": "string",
268
- "description": "顶部栏标题, 默认值: -"
162
+ "van-address-edit/area-columns-placeholder": {
163
+ "type": "string[]",
164
+ "description": "地区选择列占位提示文字, 默认值: `[]`"
269
165
  },
270
- "van-area/confirm-button-text": {
166
+ "van-address-edit/area-placeholder": {
271
167
  "type": "string",
272
- "description": "确认按钮文字, 默认值: `确认`"
168
+ "description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
273
169
  },
274
- "van-area/cancel-button-text": {
275
- "type": "string",
276
- "description": "取消按钮文字, 默认值: `取消`"
170
+ "van-address-edit/address-info": {
171
+ "type": "AddressInfo",
172
+ "description": "收货人信息初始值, 默认值: `{}`"
277
173
  },
278
- "van-area/area-list": {
279
- "type": "object",
280
- "description": "省市区数据,格式见下方, 默认值: -"
174
+ "van-address-edit/search-result": {
175
+ "type": "SearchResult[]",
176
+ "description": "详细地址搜索结果, 默认值: `[]`"
281
177
  },
282
- "van-area/columns-placeholder": {
283
- "type": "string[]",
284
- "description": "列占位提示文字, 默认值: `[]`"
178
+ "van-address-edit/show-postal": {
179
+ "type": "boolean",
180
+ "description": "是否显示邮政编码, 默认值: `false`"
285
181
  },
286
- "van-area/loading": {
182
+ "van-address-edit/show-delete": {
287
183
  "type": "boolean",
288
- "description": "是否显示加载状态, 默认值: `false`"
184
+ "description": "是否显示删除按钮, 默认值: `false`"
289
185
  },
290
- "van-area/readonly": {
186
+ "van-address-edit/show-set-default": {
291
187
  "type": "boolean",
292
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
188
+ "description": "是否显示默认地址栏, 默认值: `false`"
293
189
  },
294
- "van-area/item-height": {
295
- "type": "number | string",
296
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
190
+ "van-address-edit/show-search-result": {
191
+ "type": "boolean",
192
+ "description": "是否显示搜索结果, 默认值: `false`"
297
193
  },
298
- "van-area/columns-num": {
194
+ "van-address-edit/show-area": {
195
+ "type": "boolean",
196
+ "description": "是否显示地区, 默认值: `true`"
197
+ },
198
+ "van-address-edit/show-detail": {
199
+ "type": "boolean",
200
+ "description": "是否显示详细地址, 默认值: `true`"
201
+ },
202
+ "van-address-edit/disable-area": {
203
+ "type": "boolean",
204
+ "description": "是否禁用地区选择, 默认值: `false`"
205
+ },
206
+ "van-address-edit/save-button-text": {
207
+ "type": "string",
208
+ "description": "保存按钮文字, 默认值: `保存`"
209
+ },
210
+ "van-address-edit/delete-button-text": {
211
+ "type": "string",
212
+ "description": "删除按钮文字, 默认值: `删除`"
213
+ },
214
+ "van-address-edit/detail-rows": {
299
215
  "type": "number | string",
300
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
216
+ "description": "详细地址输入框行数, 默认值: `1`"
301
217
  },
302
- "van-area/visible-item-count": {
218
+ "van-address-edit/detail-maxlength": {
303
219
  "type": "number | string",
304
- "description": "可见的选项个数, 默认值: `6`"
220
+ "description": "详细地址最大长度, 默认值: `200`"
305
221
  },
306
- "van-area/swipe-duration": {
222
+ "van-address-edit/is-saving": {
223
+ "type": "boolean",
224
+ "description": "是否显示保存按钮加载动画, 默认值: `false`"
225
+ },
226
+ "van-address-edit/is-deleting": {
227
+ "type": "boolean",
228
+ "description": "是否显示删除按钮加载动画, 默认值: `false`"
229
+ },
230
+ "van-address-edit/tel-validator": {
231
+ "type": "string => boolean",
232
+ "description": "手机号格式校验函数, 默认值: -"
233
+ },
234
+ "van-address-edit/tel-maxlength": {
307
235
  "type": "number | string",
308
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
236
+ "description": "手机号最大长度, 默认值: -"
309
237
  },
310
- "van-area/is-oversea-code": {
311
- "type": "() => boolean",
312
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
238
+ "van-address-edit/postal-validator": {
239
+ "type": "string => boolean",
240
+ "description": "邮政编码格式校验函数, 默认值: -"
241
+ },
242
+ "van-address-edit/validator": {
243
+ "type": "(key, val) => string",
244
+ "description": "自定义校验函数, 默认值: -"
313
245
  },
314
246
  "van-calendar/type": {
315
247
  "type": "string",
@@ -393,43 +325,139 @@
393
325
  },
394
326
  "van-poppable/round": {
395
327
  "type": "boolean",
396
- "description": "是否显示圆角弹窗, 默认值: `true`"
328
+ "description": "是否显示圆角弹窗, 默认值: `true`"
329
+ },
330
+ "van-poppable/close-on-popstate": {
331
+ "type": "boolean",
332
+ "description": "是否在页面回退时自动关闭, 默认值: `true`"
333
+ },
334
+ "van-poppable/close-on-click-overlay": {
335
+ "type": "boolean",
336
+ "description": "是否在点击遮罩层后关闭, 默认值: `true`"
337
+ },
338
+ "van-poppable/safe-area-inset-bottom": {
339
+ "type": "boolean",
340
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
341
+ },
342
+ "van-poppable/get-container": {
343
+ "type": "string | () => Element",
344
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
345
+ },
346
+ "van-range/max-range": {
347
+ "type": "number | string",
348
+ "description": "日期区间最多可选天数, 默认值: 无限制"
349
+ },
350
+ "van-range/range-prompt": {
351
+ "type": "string",
352
+ "description": "范围选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
353
+ },
354
+ "van-range/allow-same-day": {
355
+ "type": "boolean",
356
+ "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
357
+ },
358
+ "van-multiple/max-range": {
359
+ "type": "number | string",
360
+ "description": "日期最多可选天数, 默认值: 无限制"
361
+ },
362
+ "van-multiple/range-prompt": {
363
+ "type": "string",
364
+ "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
365
+ },
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": {
375
+ "type": "string",
376
+ "description": "顶部标题, 默认值: -"
377
+ },
378
+ "van-action-sheet/cancel-text": {
379
+ "type": "string",
380
+ "description": "取消按钮文字, 默认值: -"
381
+ },
382
+ "van-action-sheet/description": {
383
+ "type": "string",
384
+ "description": "选项上方的描述信息, 默认值: -"
385
+ },
386
+ "van-action-sheet/closeable": {
387
+ "type": "boolean",
388
+ "description": "是否显示关闭图标, 默认值: `true`"
389
+ },
390
+ "van-action-sheet/close-icon": {
391
+ "type": "string",
392
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
393
+ },
394
+ "van-action-sheet/duration": {
395
+ "type": "number | string",
396
+ "description": "动画时长,单位秒, 默认值: `0.3`"
397
+ },
398
+ "van-action-sheet/round": {
399
+ "type": "boolean",
400
+ "description": "是否显示圆角, 默认值: `true`"
401
+ },
402
+ "van-action-sheet/overlay": {
403
+ "type": "boolean",
404
+ "description": "是否显示遮罩层, 默认值: `true`"
405
+ },
406
+ "van-action-sheet/lock-scroll": {
407
+ "type": "boolean",
408
+ "description": "是否锁定背景滚动, 默认值: `true`"
409
+ },
410
+ "van-action-sheet/lazy-render": {
411
+ "type": "boolean",
412
+ "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
413
+ },
414
+ "van-action-sheet/close-on-popstate": {
415
+ "type": "boolean",
416
+ "description": "是否在页面回退时自动关闭, 默认值: `false`"
397
417
  },
398
- "van-poppable/close-on-popstate": {
418
+ "van-action-sheet/close-on-click-action": {
399
419
  "type": "boolean",
400
- "description": "是否在页面回退时自动关闭, 默认值: `true`"
420
+ "description": "是否在点击选项后关闭, 默认值: `false`"
401
421
  },
402
- "van-poppable/close-on-click-overlay": {
422
+ "van-action-sheet/close-on-click-overlay": {
403
423
  "type": "boolean",
404
424
  "description": "是否在点击遮罩层后关闭, 默认值: `true`"
405
425
  },
406
- "van-poppable/safe-area-inset-bottom": {
426
+ "van-action-sheet/safe-area-inset-bottom": {
407
427
  "type": "boolean",
408
428
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
409
429
  },
410
- "van-poppable/get-container": {
430
+ "van-action-sheet/get-container": {
411
431
  "type": "string | () => Element",
412
432
  "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
413
433
  },
414
- "van-range/max-range": {
415
- "type": "number | string",
416
- "description": "日期区间最多可选天数, 默认值: 无限制"
434
+ "van-address-list/v-model": {
435
+ "type": "string",
436
+ "description": "当前选中地址的 id, 默认值: -"
417
437
  },
418
- "van-range/range-prompt": {
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": {
419
447
  "type": "string",
420
- "description": "范围选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
448
+ "description": "不可配送提示文案, 默认值: -"
421
449
  },
422
- "van-range/allow-same-day": {
450
+ "van-address-list/switchable": {
423
451
  "type": "boolean",
424
- "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
452
+ "description": "是否允许切换地址, 默认值: `true`"
425
453
  },
426
- "van-multiple/max-range": {
427
- "type": "number | string",
428
- "description": "日期最多可选天数, 默认值: 无限制"
454
+ "van-address-list/add-button-text": {
455
+ "type": "string",
456
+ "description": "底部按钮文字, 默认值: `新增地址`"
429
457
  },
430
- "van-multiple/range-prompt": {
458
+ "van-address-list/default-tag-text": {
431
459
  "type": "string",
432
- "description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
460
+ "description": "默认地址标签文字, 默认值: -"
433
461
  },
434
462
  "van-card/thumb": {
435
463
  "type": "string",
@@ -475,38 +503,6 @@
475
503
  "type": "boolean",
476
504
  "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
477
505
  },
478
- "van-cascader/title": {
479
- "type": "string",
480
- "description": "顶部标题, 默认值: -"
481
- },
482
- "van-cascader/value": {
483
- "type": "string | number",
484
- "description": "选中项的值, 默认值: -"
485
- },
486
- "van-cascader/options": {
487
- "type": "Option[]",
488
- "description": "可选项数据源, 默认值: `[]`"
489
- },
490
- "van-cascader/placeholder": {
491
- "type": "string",
492
- "description": "未选中时的提示文案, 默认值: `请选择`"
493
- },
494
- "van-cascader/active-color": {
495
- "type": "string",
496
- "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
497
- },
498
- "van-cascader/closeable": {
499
- "type": "boolean",
500
- "description": "是否显示关闭图标, 默认值: `true`"
501
- },
502
- "van-cascader/show-header": {
503
- "type": "boolean",
504
- "description": "是否展示标题栏, 默认值: `true`"
505
- },
506
- "van-cascader/field-names": {
507
- "type": "object",
508
- "description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
509
- },
510
506
  "van-cell-group/title": {
511
507
  "type": "string",
512
508
  "description": "分组标题, 默认值: `-`"
@@ -591,33 +587,37 @@
591
587
  "type": "any",
592
588
  "description": "描述信息额外类名, 默认值: -"
593
589
  },
594
- "van-address-list/v-model": {
590
+ "van-cascader/title": {
595
591
  "type": "string",
596
- "description": "当前选中地址的 id, 默认值: -"
592
+ "description": "顶部标题, 默认值: -"
597
593
  },
598
- "van-address-list/list": {
599
- "type": "Address[]",
600
- "description": "地址列表, 默认值: `[]`"
594
+ "van-cascader/value": {
595
+ "type": "string | number",
596
+ "description": "选中项的值, 默认值: -"
601
597
  },
602
- "van-address-list/disabled-list": {
603
- "type": "Address[]",
604
- "description": "不可配送地址列表, 默认值: `[]`"
598
+ "van-cascader/options": {
599
+ "type": "Option[]",
600
+ "description": "可选项数据源, 默认值: `[]`"
605
601
  },
606
- "van-address-list/disabled-text": {
602
+ "van-cascader/placeholder": {
607
603
  "type": "string",
608
- "description": "不可配送提示文案, 默认值: -"
604
+ "description": "未选中时的提示文案, 默认值: `请选择`"
609
605
  },
610
- "van-address-list/switchable": {
606
+ "van-cascader/active-color": {
607
+ "type": "string",
608
+ "description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
609
+ },
610
+ "van-cascader/closeable": {
611
611
  "type": "boolean",
612
- "description": "是否允许切换地址, 默认值: `true`"
612
+ "description": "是否显示关闭图标, 默认值: `true`"
613
613
  },
614
- "van-address-list/add-button-text": {
615
- "type": "string",
616
- "description": "底部按钮文字, 默认值: `新增地址`"
614
+ "van-cascader/show-header": {
615
+ "type": "boolean",
616
+ "description": "是否展示标题栏, 默认值: `true`"
617
617
  },
618
- "van-address-list/default-tag-text": {
619
- "type": "string",
620
- "description": "默认地址标签文字, 默认值: -"
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",
@@ -1139,237 +1139,105 @@
1139
1139
  "type": "boolean",
1140
1140
  "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
1141
1141
  },
1142
- "van-dialog/lock-scroll": {
1143
- "type": "boolean",
1144
- "description": "是否锁定背景滚动, 默认值: `true`"
1145
- },
1146
- "van-dialog/allow-html": {
1147
- "type": "boolean",
1148
- "description": "是否允许 message 内容中渲染 HTML, 默认值: `true`"
1149
- },
1150
- "van-dialog/before-close": {
1151
- "type": "(action, done) => void",
1152
- "description": "关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭, 默认值: -"
1153
- },
1154
- "van-dialog/transition": {
1155
- "type": "string",
1156
- "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: -"
1157
- },
1158
- "van-dialog/get-container": {
1159
- "type": "string | () => Element",
1160
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1161
- },
1162
- "van-divider/dashed": {
1163
- "type": "boolean",
1164
- "description": "是否使用虚线, 默认值: `false`"
1165
- },
1166
- "van-divider/hairline": {
1167
- "type": "boolean",
1168
- "description": "是否使用 0.5px 线, 默认值: `true`"
1169
- },
1170
- "van-divider/content-position": {
1171
- "type": "string",
1172
- "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
1173
- },
1174
- "van-dropdown-menu/active-color": {
1175
- "type": "string",
1176
- "description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
1177
- },
1178
- "van-dropdown-menu/direction": {
1179
- "type": "string",
1180
- "description": "菜单展开方向,可选值为`up`, 默认值: `down`"
1181
- },
1182
- "van-dropdown-menu/z-index": {
1183
- "type": "number | string",
1184
- "description": "菜单栏 z-index 层级, 默认值: `10`"
1185
- },
1186
- "van-dropdown-menu/duration": {
1187
- "type": "number | string",
1188
- "description": "动画时长,单位秒, 默认值: `0.2`"
1189
- },
1190
- "van-dropdown-menu/overlay": {
1191
- "type": "boolean",
1192
- "description": "是否显示遮罩层, 默认值: `true`"
1193
- },
1194
- "van-dropdown-menu/close-on-click-overlay": {
1195
- "type": "boolean",
1196
- "description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
1197
- },
1198
- "van-dropdown-menu/close-on-click-outside": {
1199
- "type": "boolean",
1200
- "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
1201
- },
1202
- "van-dropdown-item/value": {
1203
- "type": "number | string",
1204
- "description": "当前选中项对应的 value,可以通过`v-model`双向绑定, 默认值: -"
1205
- },
1206
- "van-dropdown-item/title": {
1207
- "type": "string",
1208
- "description": "菜单项标题, 默认值: 当前选中项文字"
1209
- },
1210
- "van-dropdown-item/options": {
1211
- "type": "Option[]",
1212
- "description": "选项数组, 默认值: `[]`"
1213
- },
1214
- "van-dropdown-item/disabled": {
1215
- "type": "boolean",
1216
- "description": "是否禁用菜单, 默认值: `false`"
1217
- },
1218
- "van-dropdown-item/lazy-render": {
1219
- "type": "boolean",
1220
- "description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
1221
- },
1222
- "van-dropdown-item/title-class": {
1223
- "type": "string",
1224
- "description": "标题额外类名, 默认值: -"
1225
- },
1226
- "van-dropdown-item/get-container": {
1227
- "type": "string | () => Element",
1228
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1229
- },
1230
- "van-empty/image": {
1231
- "type": "string",
1232
- "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
1233
- },
1234
- "van-empty/image-size": {
1235
- "type": "number | string",
1236
- "description": "图片大小,默认单位为 `px`, 默认值: -"
1237
- },
1238
- "van-empty/description": {
1239
- "type": "string",
1240
- "description": "图片下方的描述文字, 默认值: -"
1241
- },
1242
- "van-form/label-width": {
1243
- "type": "number | string",
1244
- "description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
1245
- },
1246
- "van-form/label-align": {
1247
- "type": "string",
1248
- "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
1249
- },
1250
- "van-form/input-align": {
1251
- "type": "string",
1252
- "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
1253
- },
1254
- "van-form/error-message-align": {
1255
- "type": "string",
1256
- "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
1257
- },
1258
- "van-form/validate-trigger": {
1259
- "type": "string",
1260
- "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
1261
- },
1262
- "van-form/colon": {
1263
- "type": "boolean",
1264
- "description": "是否在 label 后面添加冒号, 默认值: `false`"
1265
- },
1266
- "van-form/disabled": {
1267
- "type": "boolean",
1268
- "description": "是否禁用表单中的所有输入框, 默认值: `false`"
1269
- },
1270
- "van-form/readonly": {
1271
- "type": "boolean",
1272
- "description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
1273
- },
1274
- "van-form/validate-first": {
1275
- "type": "boolean",
1276
- "description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
1277
- },
1278
- "van-form/scroll-to-error": {
1279
- "type": "boolean",
1280
- "description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
1281
- },
1282
- "van-form/show-error": {
1142
+ "van-dialog/lock-scroll": {
1283
1143
  "type": "boolean",
1284
- "description": "是否在校验不通过时标红输入框, 默认值: `true`"
1144
+ "description": "是否锁定背景滚动, 默认值: `true`"
1285
1145
  },
1286
- "van-form/show-error-message": {
1146
+ "van-dialog/allow-html": {
1287
1147
  "type": "boolean",
1288
- "description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
1148
+ "description": "是否允许 message 内容中渲染 HTML, 默认值: `true`"
1289
1149
  },
1290
- "van-form/submit-on-enter": {
1150
+ "van-dialog/before-close": {
1151
+ "type": "(action, done) => void",
1152
+ "description": "关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭, 默认值: -"
1153
+ },
1154
+ "van-dialog/transition": {
1155
+ "type": "string",
1156
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性, 默认值: -"
1157
+ },
1158
+ "van-dialog/get-container": {
1159
+ "type": "string | () => Element",
1160
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1161
+ },
1162
+ "van-divider/dashed": {
1291
1163
  "type": "boolean",
1292
- "description": "是否在按下回车键时提交表单, 默认值: `true`"
1164
+ "description": "是否使用虚线, 默认值: `false`"
1293
1165
  },
1294
- "van-goods-action/safe-area-inset-bottom": {
1166
+ "van-divider/hairline": {
1295
1167
  "type": "boolean",
1296
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
1168
+ "description": "是否使用 0.5px 线, 默认值: `true`"
1297
1169
  },
1298
- "van-goods-action-icon/text": {
1170
+ "van-divider/content-position": {
1299
1171
  "type": "string",
1300
- "description": "按钮文字, 默认值: -"
1172
+ "description": "内容位置,可选值为`left` `right`, 默认值: `center`"
1301
1173
  },
1302
- "van-goods-action-icon/icon": {
1174
+ "van-dropdown-menu/active-color": {
1303
1175
  "type": "string",
1304
- "description": "图标, 默认值: -"
1176
+ "description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
1305
1177
  },
1306
- "van-goods-action-icon/color": {
1178
+ "van-dropdown-menu/direction": {
1307
1179
  "type": "string",
1308
- "description": "图标颜色, 默认值: `#323233`"
1309
- },
1310
- "van-goods-action-icon/icon-class": {
1311
- "type": "any",
1312
- "description": "图标额外类名, 默认值: -"
1313
- },
1314
- "van-goods-action-icon/dot": {
1315
- "type": "boolean",
1316
- "description": "是否显示图标右上角小红点, 默认值: `false`"
1180
+ "description": "菜单展开方向,可选值为`up`, 默认值: `down`"
1317
1181
  },
1318
- "van-goods-action-icon/badge": {
1182
+ "van-dropdown-menu/z-index": {
1319
1183
  "type": "number | string",
1320
- "description": "图标右上角徽标的内容, 默认值: -"
1184
+ "description": "菜单栏 z-index 层级, 默认值: `10`"
1321
1185
  },
1322
- "van-goods-action-icon/info": {
1186
+ "van-dropdown-menu/duration": {
1323
1187
  "type": "number | string",
1324
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
1325
- },
1326
- "van-goods-action-icon/url": {
1327
- "type": "string",
1328
- "description": "点击后跳转的链接地址, 默认值: -"
1188
+ "description": "动画时长,单位秒, 默认值: `0.2`"
1329
1189
  },
1330
- "van-goods-action-icon/to": {
1331
- "type": "string | object",
1332
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1190
+ "van-dropdown-menu/overlay": {
1191
+ "type": "boolean",
1192
+ "description": "是否显示遮罩层, 默认值: `true`"
1333
1193
  },
1334
- "van-goods-action-icon/replace": {
1194
+ "van-dropdown-menu/close-on-click-overlay": {
1335
1195
  "type": "boolean",
1336
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
1196
+ "description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
1337
1197
  },
1338
- "van-goods-action-button/text": {
1339
- "type": "string",
1340
- "description": "按钮文字, 默认值: -"
1198
+ "van-dropdown-menu/close-on-click-outside": {
1199
+ "type": "boolean",
1200
+ "description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
1341
1201
  },
1342
- "van-goods-action-button/type": {
1343
- "type": "string",
1344
- "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
1202
+ "van-dropdown-item/value": {
1203
+ "type": "number | string",
1204
+ "description": "当前选中项对应的 value,可以通过`v-model`双向绑定, 默认值: -"
1345
1205
  },
1346
- "van-goods-action-button/color": {
1206
+ "van-dropdown-item/title": {
1347
1207
  "type": "string",
1348
- "description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
1208
+ "description": "菜单项标题, 默认值: 当前选中项文字"
1349
1209
  },
1350
- "van-goods-action-button/icon": {
1351
- "type": "string",
1352
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1210
+ "van-dropdown-item/options": {
1211
+ "type": "Option[]",
1212
+ "description": "选项数组, 默认值: `[]`"
1353
1213
  },
1354
- "van-goods-action-button/disabled": {
1214
+ "van-dropdown-item/disabled": {
1355
1215
  "type": "boolean",
1356
- "description": "是否禁用按钮, 默认值: `false`"
1216
+ "description": "是否禁用菜单, 默认值: `false`"
1357
1217
  },
1358
- "van-goods-action-button/loading": {
1218
+ "van-dropdown-item/lazy-render": {
1359
1219
  "type": "boolean",
1360
- "description": "是否显示为加载状态, 默认值: `false`"
1220
+ "description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
1361
1221
  },
1362
- "van-goods-action-button/url": {
1222
+ "van-dropdown-item/title-class": {
1363
1223
  "type": "string",
1364
- "description": "点击后跳转的链接地址, 默认值: -"
1224
+ "description": "标题额外类名, 默认值: -"
1365
1225
  },
1366
- "van-goods-action-button/to": {
1367
- "type": "string | object",
1368
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1226
+ "van-dropdown-item/get-container": {
1227
+ "type": "string | () => Element",
1228
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
1369
1229
  },
1370
- "van-goods-action-button/replace": {
1371
- "type": "boolean",
1372
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
1230
+ "van-empty/image": {
1231
+ "type": "string",
1232
+ "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
1233
+ },
1234
+ "van-empty/image-size": {
1235
+ "type": "number | string",
1236
+ "description": "图片大小,默认单位为 `px`, 默认值: -"
1237
+ },
1238
+ "van-empty/description": {
1239
+ "type": "string",
1240
+ "description": "图片下方的描述文字, 默认值: -"
1373
1241
  },
1374
1242
  "van-field/v-model (value)": {
1375
1243
  "type": "number | string",
@@ -1511,6 +1379,138 @@
1511
1379
  "type": "string",
1512
1380
  "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
1513
1381
  },
1382
+ "van-form/label-width": {
1383
+ "type": "number | string",
1384
+ "description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
1385
+ },
1386
+ "van-form/label-align": {
1387
+ "type": "string",
1388
+ "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
1389
+ },
1390
+ "van-form/input-align": {
1391
+ "type": "string",
1392
+ "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
1393
+ },
1394
+ "van-form/error-message-align": {
1395
+ "type": "string",
1396
+ "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
1397
+ },
1398
+ "van-form/validate-trigger": {
1399
+ "type": "string",
1400
+ "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
1401
+ },
1402
+ "van-form/colon": {
1403
+ "type": "boolean",
1404
+ "description": "是否在 label 后面添加冒号, 默认值: `false`"
1405
+ },
1406
+ "van-form/disabled": {
1407
+ "type": "boolean",
1408
+ "description": "是否禁用表单中的所有输入框, 默认值: `false`"
1409
+ },
1410
+ "van-form/readonly": {
1411
+ "type": "boolean",
1412
+ "description": "是否将表单中的所有输入框设置为只读, 默认值: `false`"
1413
+ },
1414
+ "van-form/validate-first": {
1415
+ "type": "boolean",
1416
+ "description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
1417
+ },
1418
+ "van-form/scroll-to-error": {
1419
+ "type": "boolean",
1420
+ "description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
1421
+ },
1422
+ "van-form/show-error": {
1423
+ "type": "boolean",
1424
+ "description": "是否在校验不通过时标红输入框, 默认值: `true`"
1425
+ },
1426
+ "van-form/show-error-message": {
1427
+ "type": "boolean",
1428
+ "description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
1429
+ },
1430
+ "van-form/submit-on-enter": {
1431
+ "type": "boolean",
1432
+ "description": "是否在按下回车键时提交表单, 默认值: `true`"
1433
+ },
1434
+ "van-goods-action/safe-area-inset-bottom": {
1435
+ "type": "boolean",
1436
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
1437
+ },
1438
+ "van-goods-action-icon/text": {
1439
+ "type": "string",
1440
+ "description": "按钮文字, 默认值: -"
1441
+ },
1442
+ "van-goods-action-icon/icon": {
1443
+ "type": "string",
1444
+ "description": "图标, 默认值: -"
1445
+ },
1446
+ "van-goods-action-icon/color": {
1447
+ "type": "string",
1448
+ "description": "图标颜色, 默认值: `#323233`"
1449
+ },
1450
+ "van-goods-action-icon/icon-class": {
1451
+ "type": "any",
1452
+ "description": "图标额外类名, 默认值: -"
1453
+ },
1454
+ "van-goods-action-icon/dot": {
1455
+ "type": "boolean",
1456
+ "description": "是否显示图标右上角小红点, 默认值: `false`"
1457
+ },
1458
+ "van-goods-action-icon/badge": {
1459
+ "type": "number | string",
1460
+ "description": "图标右上角徽标的内容, 默认值: -"
1461
+ },
1462
+ "van-goods-action-icon/info": {
1463
+ "type": "number | string",
1464
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性), 默认值: -"
1465
+ },
1466
+ "van-goods-action-icon/url": {
1467
+ "type": "string",
1468
+ "description": "点击后跳转的链接地址, 默认值: -"
1469
+ },
1470
+ "van-goods-action-icon/to": {
1471
+ "type": "string | object",
1472
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1473
+ },
1474
+ "van-goods-action-icon/replace": {
1475
+ "type": "boolean",
1476
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
1477
+ },
1478
+ "van-goods-action-button/text": {
1479
+ "type": "string",
1480
+ "description": "按钮文字, 默认值: -"
1481
+ },
1482
+ "van-goods-action-button/type": {
1483
+ "type": "string",
1484
+ "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
1485
+ },
1486
+ "van-goods-action-button/color": {
1487
+ "type": "string",
1488
+ "description": "按钮颜色,支持传入`linear-gradient`渐变色, 默认值: -"
1489
+ },
1490
+ "van-goods-action-button/icon": {
1491
+ "type": "string",
1492
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1493
+ },
1494
+ "van-goods-action-button/disabled": {
1495
+ "type": "boolean",
1496
+ "description": "是否禁用按钮, 默认值: `false`"
1497
+ },
1498
+ "van-goods-action-button/loading": {
1499
+ "type": "boolean",
1500
+ "description": "是否显示为加载状态, 默认值: `false`"
1501
+ },
1502
+ "van-goods-action-button/url": {
1503
+ "type": "string",
1504
+ "description": "点击后跳转的链接地址, 默认值: -"
1505
+ },
1506
+ "van-goods-action-button/to": {
1507
+ "type": "string | object",
1508
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1509
+ },
1510
+ "van-goods-action-button/replace": {
1511
+ "type": "boolean",
1512
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
1513
+ },
1514
1514
  "van-grid/column-num": {
1515
1515
  "type": "number | string",
1516
1516
  "description": "列数, 默认值: `4`"