vant 2.12.44 → 2.12.45

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.
@@ -2,681 +2,827 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "2.12.44",
5
+ "version": "2.12.45",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
9
  {
10
- "name": "van-area",
10
+ "name": "van-action-sheet",
11
11
  "slots": [
12
12
  {
13
- "name": "title",
14
- "description": "自定义标题内容"
15
- },
16
- {
17
- "name": "columns-top",
18
- "description": "自定义选项上方内容"
13
+ "name": "default",
14
+ "description": "自定义面板的展示内容"
19
15
  },
20
16
  {
21
- "name": "columns-bottom",
22
- "description": "自定义选项下方内容"
17
+ "name": "description",
18
+ "description": "自定义描述文案"
23
19
  }
24
20
  ],
25
21
  "events": [
26
22
  {
27
- "name": "confirm",
28
- "description": "点击右上方完成按钮"
23
+ "name": "select",
24
+ "description": "点击选项时触发,禁用或加载状态下不会触发"
29
25
  },
30
26
  {
31
27
  "name": "cancel",
32
- "description": "点击取消按钮时"
28
+ "description": "点击取消按钮时触发"
33
29
  },
34
30
  {
35
- "name": "change",
36
- "description": "选项改变时触发"
31
+ "name": "open",
32
+ "description": "打开面板时触发"
33
+ },
34
+ {
35
+ "name": "close",
36
+ "description": "关闭面板时触发"
37
+ },
38
+ {
39
+ "name": "opened",
40
+ "description": "打开面板且动画结束后触发"
41
+ },
42
+ {
43
+ "name": "closed",
44
+ "description": "关闭面板且动画结束后触发"
45
+ },
46
+ {
47
+ "name": "click-overlay",
48
+ "description": "点击遮罩层时触发"
37
49
  }
38
50
  ],
39
51
  "attributes": [
40
52
  {
41
- "name": "value",
53
+ "name": "v-model (value)",
54
+ "default": "`false`",
55
+ "description": "是否显示动作面板",
56
+ "value": {
57
+ "type": "boolean",
58
+ "kind": "expression"
59
+ }
60
+ },
61
+ {
62
+ "name": "actions",
63
+ "default": "`[]`",
64
+ "description": "面板选项列表",
65
+ "value": {
66
+ "type": "Action[]",
67
+ "kind": "expression"
68
+ }
69
+ },
70
+ {
71
+ "name": "title",
42
72
  "default": "-",
43
- "description": "当前选中的省市区`code`",
73
+ "description": "顶部标题",
44
74
  "value": {
45
75
  "type": "string",
46
76
  "kind": "expression"
47
77
  }
48
78
  },
49
79
  {
50
- "name": "title",
80
+ "name": "cancel-text",
51
81
  "default": "-",
52
- "description": "顶部栏标题",
82
+ "description": "取消按钮文字",
53
83
  "value": {
54
84
  "type": "string",
55
85
  "kind": "expression"
56
86
  }
57
87
  },
58
88
  {
59
- "name": "confirm-button-text",
60
- "default": "`确认`",
61
- "description": "确认按钮文字",
89
+ "name": "description",
90
+ "default": "-",
91
+ "description": "选项上方的描述信息",
62
92
  "value": {
63
93
  "type": "string",
64
94
  "kind": "expression"
65
95
  }
66
96
  },
67
97
  {
68
- "name": "cancel-button-text",
69
- "default": "`取消`",
70
- "description": "取消按钮文字",
98
+ "name": "closeable",
99
+ "default": "`true`",
100
+ "description": "是否显示关闭图标",
101
+ "value": {
102
+ "type": "boolean",
103
+ "kind": "expression"
104
+ }
105
+ },
106
+ {
107
+ "name": "close-icon",
108
+ "default": "`cross`",
109
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
71
110
  "value": {
72
111
  "type": "string",
73
112
  "kind": "expression"
74
113
  }
75
114
  },
76
115
  {
77
- "name": "area-list",
78
- "default": "-",
79
- "description": "省市区数据,格式见下方",
116
+ "name": "duration",
117
+ "default": "`0.3`",
118
+ "description": "动画时长,单位秒",
80
119
  "value": {
81
- "type": "object",
120
+ "type": "number | string",
82
121
  "kind": "expression"
83
122
  }
84
123
  },
85
124
  {
86
- "name": "columns-placeholder",
87
- "default": "`[]`",
88
- "description": "列占位提示文字",
125
+ "name": "round",
126
+ "default": "`true`",
127
+ "description": "是否显示圆角",
89
128
  "value": {
90
- "type": "string[]",
129
+ "type": "boolean",
91
130
  "kind": "expression"
92
131
  }
93
132
  },
94
133
  {
95
- "name": "loading",
96
- "default": "`false`",
97
- "description": "是否显示加载状态",
134
+ "name": "overlay",
135
+ "default": "`true`",
136
+ "description": "是否显示遮罩层",
98
137
  "value": {
99
138
  "type": "boolean",
100
139
  "kind": "expression"
101
140
  }
102
141
  },
103
142
  {
104
- "name": "readonly",
105
- "default": "`false`",
106
- "description": "是否为只读状态,只读状态下无法切换选项",
143
+ "name": "lock-scroll",
144
+ "default": "`true`",
145
+ "description": "是否锁定背景滚动",
107
146
  "value": {
108
147
  "type": "boolean",
109
148
  "kind": "expression"
110
149
  }
111
150
  },
112
151
  {
113
- "name": "item-height",
114
- "default": "`44`",
115
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
152
+ "name": "lazy-render",
153
+ "default": "`true`",
154
+ "description": "是否在显示弹层时才渲染节点",
116
155
  "value": {
117
- "type": "number | string",
156
+ "type": "boolean",
118
157
  "kind": "expression"
119
158
  }
120
159
  },
121
160
  {
122
- "name": "columns-num",
123
- "default": "`3`",
124
- "description": "显示列数,3-省市区,2-省市,1-省",
161
+ "name": "close-on-popstate",
162
+ "default": "`false`",
163
+ "description": "是否在页面回退时自动关闭",
125
164
  "value": {
126
- "type": "number | string",
165
+ "type": "boolean",
127
166
  "kind": "expression"
128
167
  }
129
168
  },
130
169
  {
131
- "name": "visible-item-count",
132
- "default": "`6`",
133
- "description": "可见的选项个数",
170
+ "name": "close-on-click-action",
171
+ "default": "`false`",
172
+ "description": "是否在点击选项后关闭",
134
173
  "value": {
135
- "type": "number | string",
174
+ "type": "boolean",
136
175
  "kind": "expression"
137
176
  }
138
177
  },
139
178
  {
140
- "name": "swipe-duration",
141
- "default": "`1000`",
142
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
179
+ "name": "close-on-click-overlay",
180
+ "default": "`true`",
181
+ "description": "是否在点击遮罩层后关闭",
143
182
  "value": {
144
- "type": "number | string",
183
+ "type": "boolean",
145
184
  "kind": "expression"
146
185
  }
147
186
  },
148
187
  {
149
- "name": "is-oversea-code",
188
+ "name": "safe-area-inset-bottom",
189
+ "default": "`true`",
190
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
191
+ "value": {
192
+ "type": "boolean",
193
+ "kind": "expression"
194
+ }
195
+ },
196
+ {
197
+ "name": "get-container",
150
198
  "default": "-",
151
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
199
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
152
200
  "value": {
153
- "type": "() => boolean",
201
+ "type": "string | () => Element",
154
202
  "kind": "expression"
155
203
  }
156
204
  }
157
205
  ]
158
206
  },
159
207
  {
160
- "name": "van-badge",
208
+ "name": "van-address-edit",
161
209
  "slots": [
162
210
  {
163
211
  "name": "default",
164
- "description": "徽标包裹的子元素"
212
+ "description": "在邮政编码下方插入内容"
213
+ }
214
+ ],
215
+ "events": [
216
+ {
217
+ "name": "save",
218
+ "description": "点击保存按钮时触发"
165
219
  },
166
220
  {
167
- "name": "content",
168
- "description": "自定义徽标内容"
221
+ "name": "focus",
222
+ "description": "输入框聚焦时触发"
223
+ },
224
+ {
225
+ "name": "delete",
226
+ "description": "确认删除地址时触发"
227
+ },
228
+ {
229
+ "name": "cancel-delete",
230
+ "description": "取消删除地址时触发"
231
+ },
232
+ {
233
+ "name": "select-search",
234
+ "description": "选中搜索结果时触发"
235
+ },
236
+ {
237
+ "name": "click-area",
238
+ "description": "点击收件地区时触发"
239
+ },
240
+ {
241
+ "name": "change-area",
242
+ "description": "修改收件地区时触发"
243
+ },
244
+ {
245
+ "name": "change-detail",
246
+ "description": "修改详细地址时触发"
247
+ },
248
+ {
249
+ "name": "change-default",
250
+ "description": "切换是否使用默认地址时触发"
169
251
  }
170
252
  ],
171
- "events": [],
172
253
  "attributes": [
173
254
  {
174
- "name": "content",
255
+ "name": "area-list",
175
256
  "default": "-",
176
- "description": "徽标内容",
257
+ "description": "地区列表",
177
258
  "value": {
178
- "type": "number | string",
259
+ "type": "object",
179
260
  "kind": "expression"
180
261
  }
181
262
  },
182
263
  {
183
- "name": "color",
184
- "default": "`#ee0a24`",
185
- "description": "徽标背景颜色",
264
+ "name": "area-columns-placeholder",
265
+ "default": "`[]`",
266
+ "description": "地区选择列占位提示文字",
267
+ "value": {
268
+ "type": "string[]",
269
+ "kind": "expression"
270
+ }
271
+ },
272
+ {
273
+ "name": "area-placeholder",
274
+ "default": "`选择省 / 市 / 区`",
275
+ "description": "地区输入框占位提示文字",
186
276
  "value": {
187
277
  "type": "string",
188
278
  "kind": "expression"
189
279
  }
190
280
  },
191
281
  {
192
- "name": "dot",
282
+ "name": "address-info",
283
+ "default": "`{}`",
284
+ "description": "收货人信息初始值",
285
+ "value": {
286
+ "type": "AddressInfo",
287
+ "kind": "expression"
288
+ }
289
+ },
290
+ {
291
+ "name": "search-result",
292
+ "default": "`[]`",
293
+ "description": "详细地址搜索结果",
294
+ "value": {
295
+ "type": "SearchResult[]",
296
+ "kind": "expression"
297
+ }
298
+ },
299
+ {
300
+ "name": "show-postal",
193
301
  "default": "`false`",
194
- "description": "是否展示为小红点",
302
+ "description": "是否显示邮政编码",
195
303
  "value": {
196
304
  "type": "boolean",
197
305
  "kind": "expression"
198
306
  }
199
307
  },
200
308
  {
201
- "name": "max",
202
- "default": "-",
203
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
309
+ "name": "show-delete",
310
+ "default": "`false`",
311
+ "description": "是否显示删除按钮",
204
312
  "value": {
205
- "type": "number | string",
313
+ "type": "boolean",
206
314
  "kind": "expression"
207
315
  }
208
- }
209
- ]
210
- },
211
- {
212
- "name": "van-button",
213
- "slots": [
316
+ },
214
317
  {
215
- "name": "default",
216
- "description": "按钮内容"
318
+ "name": "show-set-default",
319
+ "default": "`false`",
320
+ "description": "是否显示默认地址栏",
321
+ "value": {
322
+ "type": "boolean",
323
+ "kind": "expression"
324
+ }
217
325
  },
218
326
  {
219
- "name": "icon",
220
- "description": "自定义图标"
327
+ "name": "show-search-result",
328
+ "default": "`false`",
329
+ "description": "是否显示搜索结果",
330
+ "value": {
331
+ "type": "boolean",
332
+ "kind": "expression"
333
+ }
221
334
  },
222
335
  {
223
- "name": "loading",
224
- "description": "自定义加载图标"
225
- }
226
- ],
227
- "events": [
336
+ "name": "show-area",
337
+ "default": "`true`",
338
+ "description": "是否显示地区",
339
+ "value": {
340
+ "type": "boolean",
341
+ "kind": "expression"
342
+ }
343
+ },
228
344
  {
229
- "name": "click",
230
- "description": "点击按钮,且按钮状态不为加载或禁用时触发"
345
+ "name": "show-detail",
346
+ "default": "`true`",
347
+ "description": "是否显示详细地址",
348
+ "value": {
349
+ "type": "boolean",
350
+ "kind": "expression"
351
+ }
231
352
  },
232
353
  {
233
- "name": "touchstart",
234
- "description": "开始触摸按钮时触发"
235
- }
236
- ],
237
- "attributes": [
354
+ "name": "disable-area",
355
+ "default": "`false`",
356
+ "description": "是否禁用地区选择",
357
+ "value": {
358
+ "type": "boolean",
359
+ "kind": "expression"
360
+ }
361
+ },
238
362
  {
239
- "name": "type",
240
- "default": "`default`",
241
- "description": "类型,可选值为 `primary` `info` `warning` `danger`",
363
+ "name": "save-button-text",
364
+ "default": "`保存`",
365
+ "description": "保存按钮文字",
242
366
  "value": {
243
367
  "type": "string",
244
368
  "kind": "expression"
245
369
  }
246
370
  },
247
371
  {
248
- "name": "size",
249
- "default": "`normal`",
250
- "description": "尺寸,可选值为 `large` `small` `mini`",
372
+ "name": "delete-button-text",
373
+ "default": "`删除`",
374
+ "description": "删除按钮文字",
251
375
  "value": {
252
376
  "type": "string",
253
377
  "kind": "expression"
254
378
  }
255
379
  },
256
380
  {
257
- "name": "text",
258
- "default": "-",
259
- "description": "按钮文字",
381
+ "name": "detail-rows",
382
+ "default": "`1`",
383
+ "description": "详细地址输入框行数",
260
384
  "value": {
261
- "type": "string",
385
+ "type": "number | string",
262
386
  "kind": "expression"
263
387
  }
264
388
  },
265
389
  {
266
- "name": "color",
267
- "default": "-",
268
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
390
+ "name": "detail-maxlength",
391
+ "default": "`200`",
392
+ "description": "详细地址最大长度",
269
393
  "value": {
270
- "type": "string",
394
+ "type": "number | string",
271
395
  "kind": "expression"
272
396
  }
273
397
  },
274
398
  {
275
- "name": "icon",
399
+ "name": "is-saving",
400
+ "default": "`false`",
401
+ "description": "是否显示保存按钮加载动画",
402
+ "value": {
403
+ "type": "boolean",
404
+ "kind": "expression"
405
+ }
406
+ },
407
+ {
408
+ "name": "is-deleting",
409
+ "default": "`false`",
410
+ "description": "是否显示删除按钮加载动画",
411
+ "value": {
412
+ "type": "boolean",
413
+ "kind": "expression"
414
+ }
415
+ },
416
+ {
417
+ "name": "tel-validator",
276
418
  "default": "-",
277
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
419
+ "description": "手机号格式校验函数",
278
420
  "value": {
279
- "type": "string",
421
+ "type": "string => boolean",
280
422
  "kind": "expression"
281
423
  }
282
424
  },
283
425
  {
284
- "name": "icon-prefix",
285
- "default": "`van-icon`",
286
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
426
+ "name": "tel-maxlength",
427
+ "default": "-",
428
+ "description": "手机号最大长度",
287
429
  "value": {
288
- "type": "string",
430
+ "type": "number | string",
289
431
  "kind": "expression"
290
432
  }
291
433
  },
292
434
  {
293
- "name": "icon-position",
294
- "default": "`left`",
295
- "description": "图标展示位置,可选值为 `right`",
435
+ "name": "postal-validator",
436
+ "default": "-",
437
+ "description": "邮政编码格式校验函数",
296
438
  "value": {
297
- "type": "string",
439
+ "type": "string => boolean",
298
440
  "kind": "expression"
299
441
  }
300
442
  },
301
443
  {
302
- "name": "tag",
303
- "default": "`button`",
304
- "description": "按钮根节点的 HTML 标签",
444
+ "name": "validator",
445
+ "default": "-",
446
+ "description": "自定义校验函数",
305
447
  "value": {
306
- "type": "string",
448
+ "type": "(key, val) => string",
307
449
  "kind": "expression"
308
450
  }
451
+ }
452
+ ]
453
+ },
454
+ {
455
+ "name": "van-area",
456
+ "slots": [
457
+ {
458
+ "name": "title",
459
+ "description": "自定义标题内容"
460
+ },
461
+ {
462
+ "name": "columns-top",
463
+ "description": "自定义选项上方内容"
464
+ },
465
+ {
466
+ "name": "columns-bottom",
467
+ "description": "自定义选项下方内容"
468
+ }
469
+ ],
470
+ "events": [
471
+ {
472
+ "name": "confirm",
473
+ "description": "点击右上方完成按钮"
309
474
  },
310
475
  {
311
- "name": "native-type",
476
+ "name": "cancel",
477
+ "description": "点击取消按钮时"
478
+ },
479
+ {
480
+ "name": "change",
481
+ "description": "选项改变时触发"
482
+ }
483
+ ],
484
+ "attributes": [
485
+ {
486
+ "name": "value",
312
487
  "default": "-",
313
- "description": "原生 button 标签的 type 属性",
488
+ "description": "当前选中的省市区`code`",
314
489
  "value": {
315
490
  "type": "string",
316
491
  "kind": "expression"
317
492
  }
318
493
  },
319
494
  {
320
- "name": "block",
321
- "default": "`false`",
322
- "description": "是否为块级元素",
495
+ "name": "title",
496
+ "default": "-",
497
+ "description": "顶部栏标题",
323
498
  "value": {
324
- "type": "boolean",
499
+ "type": "string",
325
500
  "kind": "expression"
326
501
  }
327
502
  },
328
503
  {
329
- "name": "plain",
330
- "default": "`false`",
331
- "description": "是否为朴素按钮",
504
+ "name": "confirm-button-text",
505
+ "default": "`确认`",
506
+ "description": "确认按钮文字",
332
507
  "value": {
333
- "type": "boolean",
508
+ "type": "string",
334
509
  "kind": "expression"
335
510
  }
336
511
  },
337
512
  {
338
- "name": "square",
339
- "default": "`false`",
340
- "description": "是否为方形按钮",
513
+ "name": "cancel-button-text",
514
+ "default": "`取消`",
515
+ "description": "取消按钮文字",
341
516
  "value": {
342
- "type": "boolean",
517
+ "type": "string",
343
518
  "kind": "expression"
344
519
  }
345
520
  },
346
521
  {
347
- "name": "round",
348
- "default": "`false`",
349
- "description": "是否为圆形按钮",
522
+ "name": "area-list",
523
+ "default": "-",
524
+ "description": "省市区数据,格式见下方",
350
525
  "value": {
351
- "type": "boolean",
526
+ "type": "object",
352
527
  "kind": "expression"
353
528
  }
354
529
  },
355
530
  {
356
- "name": "disabled",
357
- "default": "`false`",
358
- "description": "是否禁用按钮",
531
+ "name": "columns-placeholder",
532
+ "default": "`[]`",
533
+ "description": "列占位提示文字",
359
534
  "value": {
360
- "type": "boolean",
535
+ "type": "string[]",
361
536
  "kind": "expression"
362
537
  }
363
538
  },
364
539
  {
365
- "name": "hairline",
540
+ "name": "loading",
366
541
  "default": "`false`",
367
- "description": "是否使用 0.5px 边框",
542
+ "description": "是否显示加载状态",
368
543
  "value": {
369
544
  "type": "boolean",
370
545
  "kind": "expression"
371
546
  }
372
547
  },
373
548
  {
374
- "name": "loading",
549
+ "name": "readonly",
375
550
  "default": "`false`",
376
- "description": "是否显示为加载状态",
551
+ "description": "是否为只读状态,只读状态下无法切换选项",
377
552
  "value": {
378
553
  "type": "boolean",
379
554
  "kind": "expression"
380
555
  }
381
556
  },
382
557
  {
383
- "name": "loading-text",
384
- "default": "-",
385
- "description": "加载状态提示文字",
558
+ "name": "item-height",
559
+ "default": "`44`",
560
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
386
561
  "value": {
387
- "type": "string",
562
+ "type": "number | string",
388
563
  "kind": "expression"
389
564
  }
390
565
  },
391
566
  {
392
- "name": "loading-type",
393
- "default": "`circular`",
394
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
567
+ "name": "columns-num",
568
+ "default": "`3`",
569
+ "description": "显示列数,3-省市区,2-省市,1-省",
395
570
  "value": {
396
- "type": "string",
571
+ "type": "number | string",
397
572
  "kind": "expression"
398
573
  }
399
574
  },
400
575
  {
401
- "name": "loading-size",
402
- "default": "`20px`",
403
- "description": "加载图标大小",
576
+ "name": "visible-item-count",
577
+ "default": "`6`",
578
+ "description": "可见的选项个数",
404
579
  "value": {
405
- "type": "string",
580
+ "type": "number | string",
406
581
  "kind": "expression"
407
582
  }
408
583
  },
409
584
  {
410
- "name": "url",
411
- "default": "-",
412
- "description": "点击后跳转的链接地址",
585
+ "name": "swipe-duration",
586
+ "default": "`1000`",
587
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
413
588
  "value": {
414
- "type": "string",
589
+ "type": "number | string",
415
590
  "kind": "expression"
416
591
  }
417
592
  },
418
593
  {
419
- "name": "to",
594
+ "name": "is-oversea-code",
420
595
  "default": "-",
421
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
422
- "value": {
423
- "type": "string | object",
424
- "kind": "expression"
425
- }
426
- },
427
- {
428
- "name": "replace",
429
- "default": "`false`",
430
- "description": "是否在跳转时替换当前页面历史",
596
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
431
597
  "value": {
432
- "type": "boolean",
598
+ "type": "() => boolean",
433
599
  "kind": "expression"
434
600
  }
435
601
  }
436
602
  ]
437
603
  },
438
604
  {
439
- "name": "van-address-edit",
605
+ "name": "van-button",
440
606
  "slots": [
441
607
  {
442
608
  "name": "default",
443
- "description": "在邮政编码下方插入内容"
444
- }
445
- ],
446
- "events": [
447
- {
448
- "name": "save",
449
- "description": "点击保存按钮时触发"
450
- },
451
- {
452
- "name": "focus",
453
- "description": "输入框聚焦时触发"
454
- },
455
- {
456
- "name": "delete",
457
- "description": "确认删除地址时触发"
458
- },
459
- {
460
- "name": "cancel-delete",
461
- "description": "取消删除地址时触发"
462
- },
463
- {
464
- "name": "select-search",
465
- "description": "选中搜索结果时触发"
609
+ "description": "按钮内容"
466
610
  },
467
611
  {
468
- "name": "click-area",
469
- "description": "点击收件地区时触发"
612
+ "name": "icon",
613
+ "description": "自定义图标"
470
614
  },
471
615
  {
472
- "name": "change-area",
473
- "description": "修改收件地区时触发"
474
- },
616
+ "name": "loading",
617
+ "description": "自定义加载图标"
618
+ }
619
+ ],
620
+ "events": [
475
621
  {
476
- "name": "change-detail",
477
- "description": "修改详细地址时触发"
622
+ "name": "click",
623
+ "description": "点击按钮,且按钮状态不为加载或禁用时触发"
478
624
  },
479
625
  {
480
- "name": "change-default",
481
- "description": "切换是否使用默认地址时触发"
626
+ "name": "touchstart",
627
+ "description": "开始触摸按钮时触发"
482
628
  }
483
629
  ],
484
630
  "attributes": [
485
631
  {
486
- "name": "area-list",
487
- "default": "-",
488
- "description": "地区列表",
632
+ "name": "type",
633
+ "default": "`default`",
634
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`",
489
635
  "value": {
490
- "type": "object",
636
+ "type": "string",
491
637
  "kind": "expression"
492
638
  }
493
639
  },
494
640
  {
495
- "name": "area-columns-placeholder",
496
- "default": "`[]`",
497
- "description": "地区选择列占位提示文字",
641
+ "name": "size",
642
+ "default": "`normal`",
643
+ "description": "尺寸,可选值为 `large` `small` `mini`",
498
644
  "value": {
499
- "type": "string[]",
645
+ "type": "string",
500
646
  "kind": "expression"
501
647
  }
502
648
  },
503
649
  {
504
- "name": "area-placeholder",
505
- "default": "`选择省 / 市 / 区`",
506
- "description": "地区输入框占位提示文字",
650
+ "name": "text",
651
+ "default": "-",
652
+ "description": "按钮文字",
507
653
  "value": {
508
654
  "type": "string",
509
655
  "kind": "expression"
510
656
  }
511
657
  },
512
658
  {
513
- "name": "address-info",
514
- "default": "`{}`",
515
- "description": "收货人信息初始值",
659
+ "name": "color",
660
+ "default": "-",
661
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
516
662
  "value": {
517
- "type": "AddressInfo",
663
+ "type": "string",
518
664
  "kind": "expression"
519
665
  }
520
666
  },
521
667
  {
522
- "name": "search-result",
523
- "default": "`[]`",
524
- "description": "详细地址搜索结果",
668
+ "name": "icon",
669
+ "default": "-",
670
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
525
671
  "value": {
526
- "type": "SearchResult[]",
672
+ "type": "string",
527
673
  "kind": "expression"
528
674
  }
529
675
  },
530
676
  {
531
- "name": "show-postal",
532
- "default": "`false`",
533
- "description": "是否显示邮政编码",
677
+ "name": "icon-prefix",
678
+ "default": "`van-icon`",
679
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
534
680
  "value": {
535
- "type": "boolean",
681
+ "type": "string",
536
682
  "kind": "expression"
537
683
  }
538
684
  },
539
685
  {
540
- "name": "show-delete",
541
- "default": "`false`",
542
- "description": "是否显示删除按钮",
686
+ "name": "icon-position",
687
+ "default": "`left`",
688
+ "description": "图标展示位置,可选值为 `right`",
543
689
  "value": {
544
- "type": "boolean",
690
+ "type": "string",
545
691
  "kind": "expression"
546
692
  }
547
693
  },
548
694
  {
549
- "name": "show-set-default",
550
- "default": "`false`",
551
- "description": "是否显示默认地址栏",
695
+ "name": "tag",
696
+ "default": "`button`",
697
+ "description": "按钮根节点的 HTML 标签",
552
698
  "value": {
553
- "type": "boolean",
699
+ "type": "string",
554
700
  "kind": "expression"
555
701
  }
556
702
  },
557
703
  {
558
- "name": "show-search-result",
559
- "default": "`false`",
560
- "description": "是否显示搜索结果",
704
+ "name": "native-type",
705
+ "default": "-",
706
+ "description": "原生 button 标签的 type 属性",
561
707
  "value": {
562
- "type": "boolean",
708
+ "type": "string",
563
709
  "kind": "expression"
564
710
  }
565
711
  },
566
712
  {
567
- "name": "show-area",
568
- "default": "`true`",
569
- "description": "是否显示地区",
713
+ "name": "block",
714
+ "default": "`false`",
715
+ "description": "是否为块级元素",
570
716
  "value": {
571
717
  "type": "boolean",
572
718
  "kind": "expression"
573
719
  }
574
720
  },
575
721
  {
576
- "name": "show-detail",
577
- "default": "`true`",
578
- "description": "是否显示详细地址",
722
+ "name": "plain",
723
+ "default": "`false`",
724
+ "description": "是否为朴素按钮",
579
725
  "value": {
580
726
  "type": "boolean",
581
727
  "kind": "expression"
582
728
  }
583
729
  },
584
730
  {
585
- "name": "disable-area",
731
+ "name": "square",
586
732
  "default": "`false`",
587
- "description": "是否禁用地区选择",
733
+ "description": "是否为方形按钮",
588
734
  "value": {
589
735
  "type": "boolean",
590
736
  "kind": "expression"
591
737
  }
592
738
  },
593
739
  {
594
- "name": "save-button-text",
595
- "default": "`保存`",
596
- "description": "保存按钮文字",
597
- "value": {
598
- "type": "string",
599
- "kind": "expression"
600
- }
601
- },
602
- {
603
- "name": "delete-button-text",
604
- "default": "`删除`",
605
- "description": "删除按钮文字",
740
+ "name": "round",
741
+ "default": "`false`",
742
+ "description": "是否为圆形按钮",
606
743
  "value": {
607
- "type": "string",
744
+ "type": "boolean",
608
745
  "kind": "expression"
609
746
  }
610
747
  },
611
748
  {
612
- "name": "detail-rows",
613
- "default": "`1`",
614
- "description": "详细地址输入框行数",
749
+ "name": "disabled",
750
+ "default": "`false`",
751
+ "description": "是否禁用按钮",
615
752
  "value": {
616
- "type": "number | string",
753
+ "type": "boolean",
617
754
  "kind": "expression"
618
755
  }
619
756
  },
620
757
  {
621
- "name": "detail-maxlength",
622
- "default": "`200`",
623
- "description": "详细地址最大长度",
758
+ "name": "hairline",
759
+ "default": "`false`",
760
+ "description": "是否使用 0.5px 边框",
624
761
  "value": {
625
- "type": "number | string",
762
+ "type": "boolean",
626
763
  "kind": "expression"
627
764
  }
628
765
  },
629
766
  {
630
- "name": "is-saving",
767
+ "name": "loading",
631
768
  "default": "`false`",
632
- "description": "是否显示保存按钮加载动画",
769
+ "description": "是否显示为加载状态",
633
770
  "value": {
634
771
  "type": "boolean",
635
772
  "kind": "expression"
636
773
  }
637
774
  },
638
775
  {
639
- "name": "is-deleting",
640
- "default": "`false`",
641
- "description": "是否显示删除按钮加载动画",
776
+ "name": "loading-text",
777
+ "default": "-",
778
+ "description": "加载状态提示文字",
642
779
  "value": {
643
- "type": "boolean",
780
+ "type": "string",
644
781
  "kind": "expression"
645
782
  }
646
783
  },
647
784
  {
648
- "name": "tel-validator",
649
- "default": "-",
650
- "description": "手机号格式校验函数",
785
+ "name": "loading-type",
786
+ "default": "`circular`",
787
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
651
788
  "value": {
652
- "type": "string => boolean",
789
+ "type": "string",
653
790
  "kind": "expression"
654
791
  }
655
792
  },
656
793
  {
657
- "name": "tel-maxlength",
658
- "default": "-",
659
- "description": "手机号最大长度",
794
+ "name": "loading-size",
795
+ "default": "`20px`",
796
+ "description": "加载图标大小",
660
797
  "value": {
661
- "type": "number | string",
798
+ "type": "string",
662
799
  "kind": "expression"
663
800
  }
664
801
  },
665
802
  {
666
- "name": "postal-validator",
803
+ "name": "url",
667
804
  "default": "-",
668
- "description": "邮政编码格式校验函数",
805
+ "description": "点击后跳转的链接地址",
669
806
  "value": {
670
- "type": "string => boolean",
807
+ "type": "string",
671
808
  "kind": "expression"
672
809
  }
673
810
  },
674
811
  {
675
- "name": "validator",
812
+ "name": "to",
676
813
  "default": "-",
677
- "description": "自定义校验函数",
814
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
678
815
  "value": {
679
- "type": "(key, val) => string",
816
+ "type": "string | object",
817
+ "kind": "expression"
818
+ }
819
+ },
820
+ {
821
+ "name": "replace",
822
+ "default": "`false`",
823
+ "description": "是否在跳转时替换当前页面历史",
824
+ "value": {
825
+ "type": "boolean",
680
826
  "kind": "expression"
681
827
  }
682
828
  }
@@ -1030,204 +1176,6 @@
1030
1176
  }
1031
1177
  ]
1032
1178
  },
1033
- {
1034
- "name": "van-action-sheet",
1035
- "slots": [
1036
- {
1037
- "name": "default",
1038
- "description": "自定义面板的展示内容"
1039
- },
1040
- {
1041
- "name": "description",
1042
- "description": "自定义描述文案"
1043
- }
1044
- ],
1045
- "events": [
1046
- {
1047
- "name": "select",
1048
- "description": "点击选项时触发,禁用或加载状态下不会触发"
1049
- },
1050
- {
1051
- "name": "cancel",
1052
- "description": "点击取消按钮时触发"
1053
- },
1054
- {
1055
- "name": "open",
1056
- "description": "打开面板时触发"
1057
- },
1058
- {
1059
- "name": "close",
1060
- "description": "关闭面板时触发"
1061
- },
1062
- {
1063
- "name": "opened",
1064
- "description": "打开面板且动画结束后触发"
1065
- },
1066
- {
1067
- "name": "closed",
1068
- "description": "关闭面板且动画结束后触发"
1069
- },
1070
- {
1071
- "name": "click-overlay",
1072
- "description": "点击遮罩层时触发"
1073
- }
1074
- ],
1075
- "attributes": [
1076
- {
1077
- "name": "v-model (value)",
1078
- "default": "`false`",
1079
- "description": "是否显示动作面板",
1080
- "value": {
1081
- "type": "boolean",
1082
- "kind": "expression"
1083
- }
1084
- },
1085
- {
1086
- "name": "actions",
1087
- "default": "`[]`",
1088
- "description": "面板选项列表",
1089
- "value": {
1090
- "type": "Action[]",
1091
- "kind": "expression"
1092
- }
1093
- },
1094
- {
1095
- "name": "title",
1096
- "default": "-",
1097
- "description": "顶部标题",
1098
- "value": {
1099
- "type": "string",
1100
- "kind": "expression"
1101
- }
1102
- },
1103
- {
1104
- "name": "cancel-text",
1105
- "default": "-",
1106
- "description": "取消按钮文字",
1107
- "value": {
1108
- "type": "string",
1109
- "kind": "expression"
1110
- }
1111
- },
1112
- {
1113
- "name": "description",
1114
- "default": "-",
1115
- "description": "选项上方的描述信息",
1116
- "value": {
1117
- "type": "string",
1118
- "kind": "expression"
1119
- }
1120
- },
1121
- {
1122
- "name": "closeable",
1123
- "default": "`true`",
1124
- "description": "是否显示关闭图标",
1125
- "value": {
1126
- "type": "boolean",
1127
- "kind": "expression"
1128
- }
1129
- },
1130
- {
1131
- "name": "close-icon",
1132
- "default": "`cross`",
1133
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
1134
- "value": {
1135
- "type": "string",
1136
- "kind": "expression"
1137
- }
1138
- },
1139
- {
1140
- "name": "duration",
1141
- "default": "`0.3`",
1142
- "description": "动画时长,单位秒",
1143
- "value": {
1144
- "type": "number | string",
1145
- "kind": "expression"
1146
- }
1147
- },
1148
- {
1149
- "name": "round",
1150
- "default": "`true`",
1151
- "description": "是否显示圆角",
1152
- "value": {
1153
- "type": "boolean",
1154
- "kind": "expression"
1155
- }
1156
- },
1157
- {
1158
- "name": "overlay",
1159
- "default": "`true`",
1160
- "description": "是否显示遮罩层",
1161
- "value": {
1162
- "type": "boolean",
1163
- "kind": "expression"
1164
- }
1165
- },
1166
- {
1167
- "name": "lock-scroll",
1168
- "default": "`true`",
1169
- "description": "是否锁定背景滚动",
1170
- "value": {
1171
- "type": "boolean",
1172
- "kind": "expression"
1173
- }
1174
- },
1175
- {
1176
- "name": "lazy-render",
1177
- "default": "`true`",
1178
- "description": "是否在显示弹层时才渲染节点",
1179
- "value": {
1180
- "type": "boolean",
1181
- "kind": "expression"
1182
- }
1183
- },
1184
- {
1185
- "name": "close-on-popstate",
1186
- "default": "`false`",
1187
- "description": "是否在页面回退时自动关闭",
1188
- "value": {
1189
- "type": "boolean",
1190
- "kind": "expression"
1191
- }
1192
- },
1193
- {
1194
- "name": "close-on-click-action",
1195
- "default": "`false`",
1196
- "description": "是否在点击选项后关闭",
1197
- "value": {
1198
- "type": "boolean",
1199
- "kind": "expression"
1200
- }
1201
- },
1202
- {
1203
- "name": "close-on-click-overlay",
1204
- "default": "`true`",
1205
- "description": "是否在点击遮罩层后关闭",
1206
- "value": {
1207
- "type": "boolean",
1208
- "kind": "expression"
1209
- }
1210
- },
1211
- {
1212
- "name": "safe-area-inset-bottom",
1213
- "default": "`true`",
1214
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1215
- "value": {
1216
- "type": "boolean",
1217
- "kind": "expression"
1218
- }
1219
- },
1220
- {
1221
- "name": "get-container",
1222
- "default": "-",
1223
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
1224
- "value": {
1225
- "type": "string | () => Element",
1226
- "kind": "expression"
1227
- }
1228
- }
1229
- ]
1230
- },
1231
1179
  {
1232
1180
  "name": "van-address-list",
1233
1181
  "slots": [
@@ -1340,6 +1288,58 @@
1340
1288
  }
1341
1289
  ]
1342
1290
  },
1291
+ {
1292
+ "name": "van-badge",
1293
+ "slots": [
1294
+ {
1295
+ "name": "default",
1296
+ "description": "徽标包裹的子元素"
1297
+ },
1298
+ {
1299
+ "name": "content",
1300
+ "description": "自定义徽标内容"
1301
+ }
1302
+ ],
1303
+ "events": [],
1304
+ "attributes": [
1305
+ {
1306
+ "name": "content",
1307
+ "default": "-",
1308
+ "description": "徽标内容",
1309
+ "value": {
1310
+ "type": "number | string",
1311
+ "kind": "expression"
1312
+ }
1313
+ },
1314
+ {
1315
+ "name": "color",
1316
+ "default": "`#ee0a24`",
1317
+ "description": "徽标背景颜色",
1318
+ "value": {
1319
+ "type": "string",
1320
+ "kind": "expression"
1321
+ }
1322
+ },
1323
+ {
1324
+ "name": "dot",
1325
+ "default": "`false`",
1326
+ "description": "是否展示为小红点",
1327
+ "value": {
1328
+ "type": "boolean",
1329
+ "kind": "expression"
1330
+ }
1331
+ },
1332
+ {
1333
+ "name": "max",
1334
+ "default": "-",
1335
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
1336
+ "value": {
1337
+ "type": "number | string",
1338
+ "kind": "expression"
1339
+ }
1340
+ }
1341
+ ]
1342
+ },
1343
1343
  {
1344
1344
  "name": "van-card",
1345
1345
  "slots": [
@@ -1500,6 +1500,107 @@
1500
1500
  }
1501
1501
  ]
1502
1502
  },
1503
+ {
1504
+ "name": "van-cascader",
1505
+ "slots": [
1506
+ {
1507
+ "name": "title",
1508
+ "description": "自定义顶部标题"
1509
+ },
1510
+ {
1511
+ "name": "option",
1512
+ "description": "自定义选项文字"
1513
+ }
1514
+ ],
1515
+ "events": [
1516
+ {
1517
+ "name": "change",
1518
+ "description": "选中项变化时触发"
1519
+ },
1520
+ {
1521
+ "name": "finish",
1522
+ "description": "全部选项选择完成后触发"
1523
+ },
1524
+ {
1525
+ "name": "close",
1526
+ "description": "点击关闭图标时触发"
1527
+ }
1528
+ ],
1529
+ "attributes": [
1530
+ {
1531
+ "name": "title",
1532
+ "default": "-",
1533
+ "description": "顶部标题",
1534
+ "value": {
1535
+ "type": "string",
1536
+ "kind": "expression"
1537
+ }
1538
+ },
1539
+ {
1540
+ "name": "value",
1541
+ "default": "-",
1542
+ "description": "选中项的值",
1543
+ "value": {
1544
+ "type": "string | number",
1545
+ "kind": "expression"
1546
+ }
1547
+ },
1548
+ {
1549
+ "name": "options",
1550
+ "default": "`[]`",
1551
+ "description": "可选项数据源",
1552
+ "value": {
1553
+ "type": "Option[]",
1554
+ "kind": "expression"
1555
+ }
1556
+ },
1557
+ {
1558
+ "name": "placeholder",
1559
+ "default": "`请选择`",
1560
+ "description": "未选中时的提示文案",
1561
+ "value": {
1562
+ "type": "string",
1563
+ "kind": "expression"
1564
+ }
1565
+ },
1566
+ {
1567
+ "name": "active-color",
1568
+ "default": "`#ee0a24`",
1569
+ "description": "选中状态的高亮颜色",
1570
+ "value": {
1571
+ "type": "string",
1572
+ "kind": "expression"
1573
+ }
1574
+ },
1575
+ {
1576
+ "name": "closeable",
1577
+ "default": "`true`",
1578
+ "description": "是否显示关闭图标",
1579
+ "value": {
1580
+ "type": "boolean",
1581
+ "kind": "expression"
1582
+ }
1583
+ },
1584
+ {
1585
+ "name": "show-header",
1586
+ "default": "`true`",
1587
+ "description": "是否展示标题栏",
1588
+ "value": {
1589
+ "type": "boolean",
1590
+ "kind": "expression"
1591
+ }
1592
+ },
1593
+ {
1594
+ "name": "field-names",
1595
+ "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1596
+ "description": "自定义 `options` 结构中的字段",
1597
+ "value": {
1598
+ "type": "object",
1599
+ "kind": "expression"
1600
+ }
1601
+ }
1602
+ ]
1603
+ },
1503
1604
  {
1504
1605
  "name": "van-cell-group",
1505
1606
  "slots": [
@@ -1666,178 +1767,77 @@
1666
1767
  "value": {
1667
1768
  "type": "boolean",
1668
1769
  "kind": "expression"
1669
- }
1670
- },
1671
- {
1672
- "name": "is-link",
1673
- "default": "`false`",
1674
- "description": "是否展示右侧箭头并开启点击反馈",
1675
- "value": {
1676
- "type": "boolean",
1677
- "kind": "expression"
1678
- }
1679
- },
1680
- {
1681
- "name": "required",
1682
- "default": "`false`",
1683
- "description": "是否显示表单必填星号",
1684
- "value": {
1685
- "type": "boolean",
1686
- "kind": "expression"
1687
- }
1688
- },
1689
- {
1690
- "name": "center",
1691
- "default": "`false`",
1692
- "description": "是否使内容垂直居中",
1693
- "value": {
1694
- "type": "boolean",
1695
- "kind": "expression"
1696
- }
1697
- },
1698
- {
1699
- "name": "arrow-direction",
1700
- "default": "`right`",
1701
- "description": "箭头方向,可选值为 `left` `up` `down`",
1702
- "value": {
1703
- "type": "string",
1704
- "kind": "expression"
1705
- }
1706
- },
1707
- {
1708
- "name": "title-style",
1709
- "default": "-",
1710
- "description": "左侧标题额外样式",
1711
- "value": {
1712
- "type": "any",
1713
- "kind": "expression"
1714
- }
1715
- },
1716
- {
1717
- "name": "title-class",
1718
- "default": "-",
1719
- "description": "左侧标题额外类名",
1720
- "value": {
1721
- "type": "any",
1722
- "kind": "expression"
1723
- }
1724
- },
1725
- {
1726
- "name": "value-class",
1727
- "default": "-",
1728
- "description": "右侧内容额外类名",
1729
- "value": {
1730
- "type": "any",
1731
- "kind": "expression"
1732
- }
1733
- },
1734
- {
1735
- "name": "label-class",
1736
- "default": "-",
1737
- "description": "描述信息额外类名",
1738
- "value": {
1739
- "type": "any",
1740
- "kind": "expression"
1741
- }
1742
- }
1743
- ]
1744
- },
1745
- {
1746
- "name": "van-cascader",
1747
- "slots": [
1748
- {
1749
- "name": "title",
1750
- "description": "自定义顶部标题"
1751
- },
1752
- {
1753
- "name": "option",
1754
- "description": "自定义选项文字"
1755
- }
1756
- ],
1757
- "events": [
1758
- {
1759
- "name": "change",
1760
- "description": "选中项变化时触发"
1761
- },
1762
- {
1763
- "name": "finish",
1764
- "description": "全部选项选择完成后触发"
1765
- },
1766
- {
1767
- "name": "close",
1768
- "description": "点击关闭图标时触发"
1769
- }
1770
- ],
1771
- "attributes": [
1770
+ }
1771
+ },
1772
1772
  {
1773
- "name": "title",
1774
- "default": "-",
1775
- "description": "顶部标题",
1773
+ "name": "is-link",
1774
+ "default": "`false`",
1775
+ "description": "是否展示右侧箭头并开启点击反馈",
1776
1776
  "value": {
1777
- "type": "string",
1777
+ "type": "boolean",
1778
1778
  "kind": "expression"
1779
1779
  }
1780
1780
  },
1781
1781
  {
1782
- "name": "value",
1783
- "default": "-",
1784
- "description": "选中项的值",
1782
+ "name": "required",
1783
+ "default": "`false`",
1784
+ "description": "是否显示表单必填星号",
1785
1785
  "value": {
1786
- "type": "string | number",
1786
+ "type": "boolean",
1787
1787
  "kind": "expression"
1788
1788
  }
1789
1789
  },
1790
1790
  {
1791
- "name": "options",
1792
- "default": "`[]`",
1793
- "description": "可选项数据源",
1791
+ "name": "center",
1792
+ "default": "`false`",
1793
+ "description": "是否使内容垂直居中",
1794
1794
  "value": {
1795
- "type": "Option[]",
1795
+ "type": "boolean",
1796
1796
  "kind": "expression"
1797
1797
  }
1798
1798
  },
1799
1799
  {
1800
- "name": "placeholder",
1801
- "default": "`请选择`",
1802
- "description": "未选中时的提示文案",
1800
+ "name": "arrow-direction",
1801
+ "default": "`right`",
1802
+ "description": "箭头方向,可选值为 `left` `up` `down`",
1803
1803
  "value": {
1804
1804
  "type": "string",
1805
1805
  "kind": "expression"
1806
1806
  }
1807
1807
  },
1808
1808
  {
1809
- "name": "active-color",
1810
- "default": "`#ee0a24`",
1811
- "description": "选中状态的高亮颜色",
1809
+ "name": "title-style",
1810
+ "default": "-",
1811
+ "description": "左侧标题额外样式",
1812
1812
  "value": {
1813
- "type": "string",
1813
+ "type": "any",
1814
1814
  "kind": "expression"
1815
1815
  }
1816
1816
  },
1817
1817
  {
1818
- "name": "closeable",
1819
- "default": "`true`",
1820
- "description": "是否显示关闭图标",
1818
+ "name": "title-class",
1819
+ "default": "-",
1820
+ "description": "左侧标题额外类名",
1821
1821
  "value": {
1822
- "type": "boolean",
1822
+ "type": "any",
1823
1823
  "kind": "expression"
1824
1824
  }
1825
1825
  },
1826
1826
  {
1827
- "name": "show-header",
1828
- "default": "`true`",
1829
- "description": "是否展示标题栏",
1827
+ "name": "value-class",
1828
+ "default": "-",
1829
+ "description": "右侧内容额外类名",
1830
1830
  "value": {
1831
- "type": "boolean",
1831
+ "type": "any",
1832
1832
  "kind": "expression"
1833
1833
  }
1834
1834
  },
1835
1835
  {
1836
- "name": "field-names",
1837
- "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1838
- "description": "自定义 `options` 结构中的字段",
1836
+ "name": "label-class",
1837
+ "default": "-",
1838
+ "description": "描述信息额外类名",
1839
1839
  "value": {
1840
- "type": "object",
1840
+ "type": "any",
1841
1841
  "kind": "expression"
1842
1842
  }
1843
1843
  }
@@ -3376,45 +3376,6 @@
3376
3376
  }
3377
3377
  ]
3378
3378
  },
3379
- {
3380
- "name": "van-divider",
3381
- "slots": [
3382
- {
3383
- "name": "default",
3384
- "description": "内容"
3385
- }
3386
- ],
3387
- "events": [],
3388
- "attributes": [
3389
- {
3390
- "name": "dashed",
3391
- "default": "`false`",
3392
- "description": "是否使用虚线",
3393
- "value": {
3394
- "type": "boolean",
3395
- "kind": "expression"
3396
- }
3397
- },
3398
- {
3399
- "name": "hairline",
3400
- "default": "`true`",
3401
- "description": "是否使用 0.5px 线",
3402
- "value": {
3403
- "type": "boolean",
3404
- "kind": "expression"
3405
- }
3406
- },
3407
- {
3408
- "name": "content-position",
3409
- "default": "`center`",
3410
- "description": "内容位置,可选值为`left` `right`",
3411
- "value": {
3412
- "type": "string",
3413
- "kind": "expression"
3414
- }
3415
- }
3416
- ]
3417
- },
3418
3379
  {
3419
3380
  "name": "van-dropdown-menu",
3420
3381
  "slots": [],
@@ -3586,45 +3547,37 @@
3586
3547
  ]
3587
3548
  },
3588
3549
  {
3589
- "name": "van-empty",
3550
+ "name": "van-divider",
3590
3551
  "slots": [
3591
3552
  {
3592
3553
  "name": "default",
3593
- "description": "自定义底部内容"
3594
- },
3595
- {
3596
- "name": "image",
3597
- "description": "自定义图标"
3598
- },
3599
- {
3600
- "name": "description",
3601
- "description": "自定义描述文字"
3554
+ "description": "内容"
3602
3555
  }
3603
3556
  ],
3604
3557
  "events": [],
3605
3558
  "attributes": [
3606
3559
  {
3607
- "name": "image",
3608
- "default": "`default`",
3609
- "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL",
3560
+ "name": "dashed",
3561
+ "default": "`false`",
3562
+ "description": "是否使用虚线",
3610
3563
  "value": {
3611
- "type": "string",
3564
+ "type": "boolean",
3612
3565
  "kind": "expression"
3613
3566
  }
3614
3567
  },
3615
3568
  {
3616
- "name": "image-size",
3617
- "default": "-",
3618
- "description": "图片大小,默认单位为 `px`",
3569
+ "name": "hairline",
3570
+ "default": "`true`",
3571
+ "description": "是否使用 0.5px 线",
3619
3572
  "value": {
3620
- "type": "number | string",
3573
+ "type": "boolean",
3621
3574
  "kind": "expression"
3622
3575
  }
3623
3576
  },
3624
3577
  {
3625
- "name": "description",
3626
- "default": "-",
3627
- "description": "图片下方的描述文字",
3578
+ "name": "content-position",
3579
+ "default": "`center`",
3580
+ "description": "内容位置,可选值为`left` `right`",
3628
3581
  "value": {
3629
3582
  "type": "string",
3630
3583
  "kind": "expression"
@@ -3903,138 +3856,27 @@
3903
3856
  }
3904
3857
  },
3905
3858
  {
3906
- "name": "arrow-direction",
3907
- "default": "`right`",
3908
- "description": "箭头方向,可选值为 `left` `up` `down`",
3909
- "value": {
3910
- "type": "string",
3911
- "kind": "expression"
3912
- }
3913
- },
3914
- {
3915
- "name": "label-class",
3916
- "default": "-",
3917
- "description": "左侧文本额外类名",
3918
- "value": {
3919
- "type": "any",
3920
- "kind": "expression"
3921
- }
3922
- },
3923
- {
3924
- "name": "label-width",
3925
- "default": "`6.2em`",
3926
- "description": "左侧文本宽度,默认单位为`px`",
3927
- "value": {
3928
- "type": "number | string",
3929
- "kind": "expression"
3930
- }
3931
- },
3932
- {
3933
- "name": "label-align",
3934
- "default": "`left`",
3935
- "description": "左侧文本对齐方式,可选值为 `center` `right`",
3936
- "value": {
3937
- "type": "string",
3938
- "kind": "expression"
3939
- }
3940
- },
3941
- {
3942
- "name": "input-align",
3943
- "default": "`left`",
3944
- "description": "输入框对齐方式,可选值为 `center` `right`",
3945
- "value": {
3946
- "type": "string",
3947
- "kind": "expression"
3948
- }
3949
- },
3950
- {
3951
- "name": "error-message-align",
3952
- "default": "`left`",
3953
- "description": "错误提示文案对齐方式,可选值为 `center` `right`",
3954
- "value": {
3955
- "type": "string",
3956
- "kind": "expression"
3957
- }
3958
- },
3959
- {
3960
- "name": "autosize",
3961
- "default": "`false`",
3962
- "description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
3963
- "value": {
3964
- "type": "boolean | object",
3965
- "kind": "expression"
3966
- }
3967
- },
3968
- {
3969
- "name": "left-icon",
3970
- "default": "-",
3971
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
3972
- "value": {
3973
- "type": "string",
3974
- "kind": "expression"
3975
- }
3976
- },
3977
- {
3978
- "name": "right-icon",
3979
- "default": "-",
3980
- "description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
3981
- "value": {
3982
- "type": "string",
3983
- "kind": "expression"
3984
- }
3985
- },
3986
- {
3987
- "name": "icon-prefix",
3988
- "default": "`van-icon`",
3989
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
3990
- "value": {
3991
- "type": "string",
3992
- "kind": "expression"
3993
- }
3994
- },
3995
- {
3996
- "name": "rules",
3997
- "default": "-",
3998
- "description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
3999
- "value": {
4000
- "type": "Rule[]",
4001
- "kind": "expression"
4002
- }
4003
- },
4004
- {
4005
- "name": "autocomplete",
4006
- "default": "-",
4007
- "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
4008
- "value": {
4009
- "type": "string",
4010
- "kind": "expression"
4011
- }
4012
- }
4013
- ]
4014
- },
4015
- {
4016
- "name": "van-form",
4017
- "slots": [
4018
- {
4019
- "name": "default",
4020
- "description": "表单内容"
4021
- }
4022
- ],
4023
- "events": [
4024
- {
4025
- "name": "submit",
4026
- "description": "提交表单且验证通过后触发"
3859
+ "name": "arrow-direction",
3860
+ "default": "`right`",
3861
+ "description": "箭头方向,可选值为 `left` `up` `down`",
3862
+ "value": {
3863
+ "type": "string",
3864
+ "kind": "expression"
3865
+ }
4027
3866
  },
4028
3867
  {
4029
- "name": "failed",
4030
- "description": "提交表单且验证不通过后触发"
4031
- }
4032
- ],
4033
- "attributes": [
3868
+ "name": "label-class",
3869
+ "default": "-",
3870
+ "description": "左侧文本额外类名",
3871
+ "value": {
3872
+ "type": "any",
3873
+ "kind": "expression"
3874
+ }
3875
+ },
4034
3876
  {
4035
3877
  "name": "label-width",
4036
3878
  "default": "`6.2em`",
4037
- "description": "表单项 label 宽度,默认单位为`px`",
3879
+ "description": "左侧文本宽度,默认单位为`px`",
4038
3880
  "value": {
4039
3881
  "type": "number | string",
4040
3882
  "kind": "expression"
@@ -4043,7 +3885,7 @@
4043
3885
  {
4044
3886
  "name": "label-align",
4045
3887
  "default": "`left`",
4046
- "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
3888
+ "description": "左侧文本对齐方式,可选值为 `center` `right`",
4047
3889
  "value": {
4048
3890
  "type": "string",
4049
3891
  "kind": "expression"
@@ -4068,83 +3910,103 @@
4068
3910
  }
4069
3911
  },
4070
3912
  {
4071
- "name": "validate-trigger",
4072
- "default": "`onBlur`",
4073
- "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
3913
+ "name": "autosize",
3914
+ "default": "`false`",
3915
+ "description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
4074
3916
  "value": {
4075
- "type": "string",
3917
+ "type": "boolean | object",
4076
3918
  "kind": "expression"
4077
3919
  }
4078
3920
  },
4079
3921
  {
4080
- "name": "colon",
4081
- "default": "`false`",
4082
- "description": "是否在 label 后面添加冒号",
3922
+ "name": "left-icon",
3923
+ "default": "-",
3924
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
4083
3925
  "value": {
4084
- "type": "boolean",
3926
+ "type": "string",
4085
3927
  "kind": "expression"
4086
3928
  }
4087
3929
  },
4088
3930
  {
4089
- "name": "disabled",
4090
- "default": "`false`",
4091
- "description": "是否禁用表单中的所有输入框",
3931
+ "name": "right-icon",
3932
+ "default": "-",
3933
+ "description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
4092
3934
  "value": {
4093
- "type": "boolean",
3935
+ "type": "string",
4094
3936
  "kind": "expression"
4095
3937
  }
4096
3938
  },
4097
3939
  {
4098
- "name": "readonly",
4099
- "default": "`false`",
4100
- "description": "是否将表单中的所有输入框设置为只读",
3940
+ "name": "icon-prefix",
3941
+ "default": "`van-icon`",
3942
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4101
3943
  "value": {
4102
- "type": "boolean",
3944
+ "type": "string",
4103
3945
  "kind": "expression"
4104
3946
  }
4105
3947
  },
4106
3948
  {
4107
- "name": "validate-first",
4108
- "default": "`false`",
4109
- "description": "是否在某一项校验不通过时停止校验",
3949
+ "name": "rules",
3950
+ "default": "-",
3951
+ "description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
4110
3952
  "value": {
4111
- "type": "boolean",
3953
+ "type": "Rule[]",
4112
3954
  "kind": "expression"
4113
3955
  }
4114
3956
  },
4115
3957
  {
4116
- "name": "scroll-to-error",
4117
- "default": "`false`",
4118
- "description": "是否在提交表单且校验不通过时滚动至错误的表单项",
3958
+ "name": "autocomplete",
3959
+ "default": "-",
3960
+ "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
4119
3961
  "value": {
4120
- "type": "boolean",
3962
+ "type": "string",
4121
3963
  "kind": "expression"
4122
3964
  }
3965
+ }
3966
+ ]
3967
+ },
3968
+ {
3969
+ "name": "van-empty",
3970
+ "slots": [
3971
+ {
3972
+ "name": "default",
3973
+ "description": "自定义底部内容"
4123
3974
  },
4124
3975
  {
4125
- "name": "show-error",
4126
- "default": "`true`",
4127
- "description": "是否在校验不通过时标红输入框",
3976
+ "name": "image",
3977
+ "description": "自定义图标"
3978
+ },
3979
+ {
3980
+ "name": "description",
3981
+ "description": "自定义描述文字"
3982
+ }
3983
+ ],
3984
+ "events": [],
3985
+ "attributes": [
3986
+ {
3987
+ "name": "image",
3988
+ "default": "`default`",
3989
+ "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL",
4128
3990
  "value": {
4129
- "type": "boolean",
3991
+ "type": "string",
4130
3992
  "kind": "expression"
4131
3993
  }
4132
3994
  },
4133
3995
  {
4134
- "name": "show-error-message",
4135
- "default": "`true`",
4136
- "description": "是否在校验不通过时在输入框下方展示错误提示",
3996
+ "name": "image-size",
3997
+ "default": "-",
3998
+ "description": "图片大小,默认单位为 `px`",
4137
3999
  "value": {
4138
- "type": "boolean",
4000
+ "type": "number | string",
4139
4001
  "kind": "expression"
4140
4002
  }
4141
4003
  },
4142
4004
  {
4143
- "name": "submit-on-enter",
4144
- "default": "`true`",
4145
- "description": "是否在按下回车键时提交表单",
4005
+ "name": "description",
4006
+ "default": "-",
4007
+ "description": "图片下方的描述文字",
4146
4008
  "value": {
4147
- "type": "boolean",
4009
+ "type": "string",
4148
4010
  "kind": "expression"
4149
4011
  }
4150
4012
  }
@@ -4365,6 +4227,144 @@
4365
4227
  }
4366
4228
  ]
4367
4229
  },
4230
+ {
4231
+ "name": "van-form",
4232
+ "slots": [
4233
+ {
4234
+ "name": "default",
4235
+ "description": "表单内容"
4236
+ }
4237
+ ],
4238
+ "events": [
4239
+ {
4240
+ "name": "submit",
4241
+ "description": "提交表单且验证通过后触发"
4242
+ },
4243
+ {
4244
+ "name": "failed",
4245
+ "description": "提交表单且验证不通过后触发"
4246
+ }
4247
+ ],
4248
+ "attributes": [
4249
+ {
4250
+ "name": "label-width",
4251
+ "default": "`6.2em`",
4252
+ "description": "表单项 label 宽度,默认单位为`px`",
4253
+ "value": {
4254
+ "type": "number | string",
4255
+ "kind": "expression"
4256
+ }
4257
+ },
4258
+ {
4259
+ "name": "label-align",
4260
+ "default": "`left`",
4261
+ "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
4262
+ "value": {
4263
+ "type": "string",
4264
+ "kind": "expression"
4265
+ }
4266
+ },
4267
+ {
4268
+ "name": "input-align",
4269
+ "default": "`left`",
4270
+ "description": "输入框对齐方式,可选值为 `center` `right`",
4271
+ "value": {
4272
+ "type": "string",
4273
+ "kind": "expression"
4274
+ }
4275
+ },
4276
+ {
4277
+ "name": "error-message-align",
4278
+ "default": "`left`",
4279
+ "description": "错误提示文案对齐方式,可选值为 `center` `right`",
4280
+ "value": {
4281
+ "type": "string",
4282
+ "kind": "expression"
4283
+ }
4284
+ },
4285
+ {
4286
+ "name": "validate-trigger",
4287
+ "default": "`onBlur`",
4288
+ "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
4289
+ "value": {
4290
+ "type": "string",
4291
+ "kind": "expression"
4292
+ }
4293
+ },
4294
+ {
4295
+ "name": "colon",
4296
+ "default": "`false`",
4297
+ "description": "是否在 label 后面添加冒号",
4298
+ "value": {
4299
+ "type": "boolean",
4300
+ "kind": "expression"
4301
+ }
4302
+ },
4303
+ {
4304
+ "name": "disabled",
4305
+ "default": "`false`",
4306
+ "description": "是否禁用表单中的所有输入框",
4307
+ "value": {
4308
+ "type": "boolean",
4309
+ "kind": "expression"
4310
+ }
4311
+ },
4312
+ {
4313
+ "name": "readonly",
4314
+ "default": "`false`",
4315
+ "description": "是否将表单中的所有输入框设置为只读",
4316
+ "value": {
4317
+ "type": "boolean",
4318
+ "kind": "expression"
4319
+ }
4320
+ },
4321
+ {
4322
+ "name": "validate-first",
4323
+ "default": "`false`",
4324
+ "description": "是否在某一项校验不通过时停止校验",
4325
+ "value": {
4326
+ "type": "boolean",
4327
+ "kind": "expression"
4328
+ }
4329
+ },
4330
+ {
4331
+ "name": "scroll-to-error",
4332
+ "default": "`false`",
4333
+ "description": "是否在提交表单且校验不通过时滚动至错误的表单项",
4334
+ "value": {
4335
+ "type": "boolean",
4336
+ "kind": "expression"
4337
+ }
4338
+ },
4339
+ {
4340
+ "name": "show-error",
4341
+ "default": "`true`",
4342
+ "description": "是否在校验不通过时标红输入框",
4343
+ "value": {
4344
+ "type": "boolean",
4345
+ "kind": "expression"
4346
+ }
4347
+ },
4348
+ {
4349
+ "name": "show-error-message",
4350
+ "default": "`true`",
4351
+ "description": "是否在校验不通过时在输入框下方展示错误提示",
4352
+ "value": {
4353
+ "type": "boolean",
4354
+ "kind": "expression"
4355
+ }
4356
+ },
4357
+ {
4358
+ "name": "submit-on-enter",
4359
+ "default": "`true`",
4360
+ "description": "是否在按下回车键时提交表单",
4361
+ "value": {
4362
+ "type": "boolean",
4363
+ "kind": "expression"
4364
+ }
4365
+ }
4366
+ ]
4367
+ },
4368
4368
  {
4369
4369
  "name": "van-grid",
4370
4370
  "slots": [],