vant 2.12.50 → 2.12.52

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,764 +2,712 @@
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.50",
5
+ "version": "2.12.52",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
9
  {
10
- "name": "van-action-sheet",
10
+ "name": "van-address-list",
11
11
  "slots": [
12
12
  {
13
13
  "name": "default",
14
- "description": "自定义面板的展示内容"
14
+ "description": "在列表下方插入内容"
15
15
  },
16
16
  {
17
- "name": "description",
18
- "description": "自定义描述文案"
17
+ "name": "top",
18
+ "description": "在顶部插入内容"
19
+ },
20
+ {
21
+ "name": "item-bottom",
22
+ "description": "在列表项底部插入内容"
23
+ },
24
+ {
25
+ "name": "tag",
26
+ "description": "列表项标签内容自定义"
19
27
  }
20
28
  ],
21
29
  "events": [
22
30
  {
23
- "name": "select",
24
- "description": "点击选项时触发,禁用或加载状态下不会触发"
25
- },
26
- {
27
- "name": "cancel",
28
- "description": "点击取消按钮时触发"
31
+ "name": "add",
32
+ "description": "点击新增按钮时触发"
29
33
  },
30
34
  {
31
- "name": "open",
32
- "description": "打开面板时触发"
35
+ "name": "edit",
36
+ "description": "点击编辑按钮时触发"
33
37
  },
34
38
  {
35
- "name": "close",
36
- "description": "关闭面板时触发"
39
+ "name": "select",
40
+ "description": "切换选中的地址时触发"
37
41
  },
38
42
  {
39
- "name": "opened",
40
- "description": "打开面板且动画结束后触发"
43
+ "name": "edit-disabled",
44
+ "description": "编辑不可配送的地址时触发"
41
45
  },
42
46
  {
43
- "name": "closed",
44
- "description": "关闭面板且动画结束后触发"
47
+ "name": "select-disabled",
48
+ "description": "选中不可配送的地址时触发"
45
49
  },
46
50
  {
47
- "name": "click-overlay",
48
- "description": "点击遮罩层时触发"
51
+ "name": "click-item",
52
+ "description": "点击任意地址时触发"
49
53
  }
50
54
  ],
51
55
  "attributes": [
52
56
  {
53
- "name": "v-model (value)",
54
- "default": "`false`",
55
- "description": "是否显示动作面板",
57
+ "name": "v-model",
58
+ "default": "-",
59
+ "description": "当前选中地址的 id",
56
60
  "value": {
57
- "type": "boolean",
61
+ "type": "string",
58
62
  "kind": "expression"
59
63
  }
60
64
  },
61
65
  {
62
- "name": "actions",
66
+ "name": "list",
63
67
  "default": "`[]`",
64
- "description": "面板选项列表",
68
+ "description": "地址列表",
65
69
  "value": {
66
- "type": "Action[]",
70
+ "type": "Address[]",
67
71
  "kind": "expression"
68
72
  }
69
73
  },
70
74
  {
71
- "name": "title",
75
+ "name": "disabled-list",
76
+ "default": "`[]`",
77
+ "description": "不可配送地址列表",
78
+ "value": {
79
+ "type": "Address[]",
80
+ "kind": "expression"
81
+ }
82
+ },
83
+ {
84
+ "name": "disabled-text",
72
85
  "default": "-",
73
- "description": "顶部标题",
86
+ "description": "不可配送提示文案",
74
87
  "value": {
75
88
  "type": "string",
76
89
  "kind": "expression"
77
90
  }
78
91
  },
79
92
  {
80
- "name": "cancel-text",
81
- "default": "-",
82
- "description": "取消按钮文字",
93
+ "name": "switchable",
94
+ "default": "`true`",
95
+ "description": "是否允许切换地址",
96
+ "value": {
97
+ "type": "boolean",
98
+ "kind": "expression"
99
+ }
100
+ },
101
+ {
102
+ "name": "add-button-text",
103
+ "default": "`新增地址`",
104
+ "description": "底部按钮文字",
83
105
  "value": {
84
106
  "type": "string",
85
107
  "kind": "expression"
86
108
  }
87
109
  },
88
110
  {
89
- "name": "description",
111
+ "name": "default-tag-text",
90
112
  "default": "-",
91
- "description": "选项上方的描述信息",
113
+ "description": "默认地址标签文字",
92
114
  "value": {
93
115
  "type": "string",
94
116
  "kind": "expression"
95
117
  }
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "name": "van-area",
123
+ "slots": [
124
+ {
125
+ "name": "title",
126
+ "description": "自定义标题内容"
96
127
  },
97
128
  {
98
- "name": "closeable",
99
- "default": "`true`",
100
- "description": "是否显示关闭图标",
129
+ "name": "columns-top",
130
+ "description": "自定义选项上方内容"
131
+ },
132
+ {
133
+ "name": "columns-bottom",
134
+ "description": "自定义选项下方内容"
135
+ }
136
+ ],
137
+ "events": [
138
+ {
139
+ "name": "confirm",
140
+ "description": "点击右上方完成按钮"
141
+ },
142
+ {
143
+ "name": "cancel",
144
+ "description": "点击取消按钮时"
145
+ },
146
+ {
147
+ "name": "change",
148
+ "description": "选项改变时触发"
149
+ }
150
+ ],
151
+ "attributes": [
152
+ {
153
+ "name": "value",
154
+ "default": "-",
155
+ "description": "当前选中的省市区`code`",
101
156
  "value": {
102
- "type": "boolean",
157
+ "type": "string",
103
158
  "kind": "expression"
104
159
  }
105
160
  },
106
161
  {
107
- "name": "close-icon",
108
- "default": "`cross`",
109
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
162
+ "name": "title",
163
+ "default": "-",
164
+ "description": "顶部栏标题",
110
165
  "value": {
111
166
  "type": "string",
112
167
  "kind": "expression"
113
168
  }
114
169
  },
115
170
  {
116
- "name": "duration",
117
- "default": "`0.3`",
118
- "description": "动画时长,单位秒",
171
+ "name": "confirm-button-text",
172
+ "default": "`确认`",
173
+ "description": "确认按钮文字",
119
174
  "value": {
120
- "type": "number | string",
175
+ "type": "string",
121
176
  "kind": "expression"
122
177
  }
123
178
  },
124
179
  {
125
- "name": "round",
126
- "default": "`true`",
127
- "description": "是否显示圆角",
180
+ "name": "cancel-button-text",
181
+ "default": "`取消`",
182
+ "description": "取消按钮文字",
128
183
  "value": {
129
- "type": "boolean",
184
+ "type": "string",
130
185
  "kind": "expression"
131
186
  }
132
187
  },
133
188
  {
134
- "name": "overlay",
135
- "default": "`true`",
136
- "description": "是否显示遮罩层",
189
+ "name": "area-list",
190
+ "default": "-",
191
+ "description": "省市区数据,格式见下方",
137
192
  "value": {
138
- "type": "boolean",
193
+ "type": "object",
139
194
  "kind": "expression"
140
195
  }
141
196
  },
142
197
  {
143
- "name": "lock-scroll",
144
- "default": "`true`",
145
- "description": "是否锁定背景滚动",
198
+ "name": "columns-placeholder",
199
+ "default": "`[]`",
200
+ "description": "列占位提示文字",
146
201
  "value": {
147
- "type": "boolean",
202
+ "type": "string[]",
148
203
  "kind": "expression"
149
204
  }
150
205
  },
151
206
  {
152
- "name": "lazy-render",
153
- "default": "`true`",
154
- "description": "是否在显示弹层时才渲染节点",
207
+ "name": "loading",
208
+ "default": "`false`",
209
+ "description": "是否显示加载状态",
155
210
  "value": {
156
211
  "type": "boolean",
157
212
  "kind": "expression"
158
213
  }
159
214
  },
160
215
  {
161
- "name": "close-on-popstate",
216
+ "name": "readonly",
162
217
  "default": "`false`",
163
- "description": "是否在页面回退时自动关闭",
218
+ "description": "是否为只读状态,只读状态下无法切换选项",
164
219
  "value": {
165
220
  "type": "boolean",
166
221
  "kind": "expression"
167
222
  }
168
223
  },
169
224
  {
170
- "name": "close-on-click-action",
171
- "default": "`false`",
172
- "description": "是否在点击选项后关闭",
225
+ "name": "item-height",
226
+ "default": "`44`",
227
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
173
228
  "value": {
174
- "type": "boolean",
229
+ "type": "number | string",
175
230
  "kind": "expression"
176
231
  }
177
232
  },
178
233
  {
179
- "name": "close-on-click-overlay",
180
- "default": "`true`",
181
- "description": "是否在点击遮罩层后关闭",
234
+ "name": "columns-num",
235
+ "default": "`3`",
236
+ "description": "显示列数,3-省市区,2-省市,1-省",
182
237
  "value": {
183
- "type": "boolean",
238
+ "type": "number | string",
184
239
  "kind": "expression"
185
240
  }
186
241
  },
187
242
  {
188
- "name": "safe-area-inset-bottom",
189
- "default": "`true`",
190
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
243
+ "name": "visible-item-count",
244
+ "default": "`6`",
245
+ "description": "可见的选项个数",
191
246
  "value": {
192
- "type": "boolean",
247
+ "type": "number | string",
193
248
  "kind": "expression"
194
249
  }
195
250
  },
196
251
  {
197
- "name": "get-container",
252
+ "name": "swipe-duration",
253
+ "default": "`1000`",
254
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
255
+ "value": {
256
+ "type": "number | string",
257
+ "kind": "expression"
258
+ }
259
+ },
260
+ {
261
+ "name": "is-oversea-code",
198
262
  "default": "-",
199
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
263
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
200
264
  "value": {
201
- "type": "string | () => Element",
265
+ "type": "() => boolean",
202
266
  "kind": "expression"
203
267
  }
204
268
  }
205
269
  ]
206
270
  },
207
271
  {
208
- "name": "van-address-edit",
272
+ "name": "van-action-sheet",
209
273
  "slots": [
210
274
  {
211
275
  "name": "default",
212
- "description": "在邮政编码下方插入内容"
276
+ "description": "自定义面板的展示内容"
277
+ },
278
+ {
279
+ "name": "description",
280
+ "description": "自定义描述文案"
213
281
  }
214
282
  ],
215
283
  "events": [
216
284
  {
217
- "name": "save",
218
- "description": "点击保存按钮时触发"
219
- },
220
- {
221
- "name": "focus",
222
- "description": "输入框聚焦时触发"
223
- },
224
- {
225
- "name": "delete",
226
- "description": "确认删除地址时触发"
285
+ "name": "select",
286
+ "description": "点击选项时触发,禁用或加载状态下不会触发"
227
287
  },
228
288
  {
229
- "name": "cancel-delete",
230
- "description": "取消删除地址时触发"
289
+ "name": "cancel",
290
+ "description": "点击取消按钮时触发"
231
291
  },
232
292
  {
233
- "name": "select-search",
234
- "description": "选中搜索结果时触发"
293
+ "name": "open",
294
+ "description": "打开面板时触发"
235
295
  },
236
296
  {
237
- "name": "click-area",
238
- "description": "点击收件地区时触发"
297
+ "name": "close",
298
+ "description": "关闭面板时触发"
239
299
  },
240
300
  {
241
- "name": "change-area",
242
- "description": "修改收件地区时触发"
301
+ "name": "opened",
302
+ "description": "打开面板且动画结束后触发"
243
303
  },
244
304
  {
245
- "name": "change-detail",
246
- "description": "修改详细地址时触发"
305
+ "name": "closed",
306
+ "description": "关闭面板且动画结束后触发"
247
307
  },
248
308
  {
249
- "name": "change-default",
250
- "description": "切换是否使用默认地址时触发"
309
+ "name": "click-overlay",
310
+ "description": "点击遮罩层时触发"
251
311
  }
252
312
  ],
253
313
  "attributes": [
254
314
  {
255
- "name": "area-list",
256
- "default": "-",
257
- "description": "地区列表",
315
+ "name": "v-model (value)",
316
+ "default": "`false`",
317
+ "description": "是否显示动作面板",
258
318
  "value": {
259
- "type": "object",
319
+ "type": "boolean",
260
320
  "kind": "expression"
261
321
  }
262
322
  },
263
323
  {
264
- "name": "area-columns-placeholder",
324
+ "name": "actions",
265
325
  "default": "`[]`",
266
- "description": "地区选择列占位提示文字",
326
+ "description": "面板选项列表",
267
327
  "value": {
268
- "type": "string[]",
328
+ "type": "Action[]",
269
329
  "kind": "expression"
270
330
  }
271
331
  },
272
332
  {
273
- "name": "area-placeholder",
274
- "default": "`选择省 / 市 / 区`",
275
- "description": "地区输入框占位提示文字",
333
+ "name": "title",
334
+ "default": "-",
335
+ "description": "顶部标题",
276
336
  "value": {
277
337
  "type": "string",
278
338
  "kind": "expression"
279
339
  }
280
340
  },
281
341
  {
282
- "name": "address-info",
283
- "default": "`{}`",
284
- "description": "收货人信息初始值",
342
+ "name": "cancel-text",
343
+ "default": "-",
344
+ "description": "取消按钮文字",
285
345
  "value": {
286
- "type": "AddressInfo",
346
+ "type": "string",
287
347
  "kind": "expression"
288
348
  }
289
349
  },
290
350
  {
291
- "name": "search-result",
292
- "default": "`[]`",
293
- "description": "详细地址搜索结果",
351
+ "name": "description",
352
+ "default": "-",
353
+ "description": "选项上方的描述信息",
294
354
  "value": {
295
- "type": "SearchResult[]",
355
+ "type": "string",
296
356
  "kind": "expression"
297
357
  }
298
358
  },
299
359
  {
300
- "name": "show-postal",
301
- "default": "`false`",
302
- "description": "是否显示邮政编码",
360
+ "name": "closeable",
361
+ "default": "`true`",
362
+ "description": "是否显示关闭图标",
303
363
  "value": {
304
364
  "type": "boolean",
305
365
  "kind": "expression"
306
366
  }
307
367
  },
308
368
  {
309
- "name": "show-delete",
310
- "default": "`false`",
311
- "description": "是否显示删除按钮",
369
+ "name": "close-icon",
370
+ "default": "`cross`",
371
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
312
372
  "value": {
313
- "type": "boolean",
373
+ "type": "string",
314
374
  "kind": "expression"
315
375
  }
316
376
  },
317
377
  {
318
- "name": "show-set-default",
319
- "default": "`false`",
320
- "description": "是否显示默认地址栏",
378
+ "name": "duration",
379
+ "default": "`0.3`",
380
+ "description": "动画时长,单位秒",
321
381
  "value": {
322
- "type": "boolean",
382
+ "type": "number | string",
323
383
  "kind": "expression"
324
384
  }
325
385
  },
326
386
  {
327
- "name": "show-search-result",
328
- "default": "`false`",
329
- "description": "是否显示搜索结果",
387
+ "name": "round",
388
+ "default": "`true`",
389
+ "description": "是否显示圆角",
330
390
  "value": {
331
391
  "type": "boolean",
332
392
  "kind": "expression"
333
393
  }
334
394
  },
335
395
  {
336
- "name": "show-area",
396
+ "name": "overlay",
337
397
  "default": "`true`",
338
- "description": "是否显示地区",
398
+ "description": "是否显示遮罩层",
339
399
  "value": {
340
400
  "type": "boolean",
341
401
  "kind": "expression"
342
402
  }
343
403
  },
344
404
  {
345
- "name": "show-detail",
405
+ "name": "lock-scroll",
346
406
  "default": "`true`",
347
- "description": "是否显示详细地址",
407
+ "description": "是否锁定背景滚动",
348
408
  "value": {
349
409
  "type": "boolean",
350
410
  "kind": "expression"
351
411
  }
352
412
  },
353
413
  {
354
- "name": "disable-area",
355
- "default": "`false`",
356
- "description": "是否禁用地区选择",
414
+ "name": "lazy-render",
415
+ "default": "`true`",
416
+ "description": "是否在显示弹层时才渲染节点",
357
417
  "value": {
358
418
  "type": "boolean",
359
419
  "kind": "expression"
360
420
  }
361
421
  },
362
422
  {
363
- "name": "save-button-text",
364
- "default": "`保存`",
365
- "description": "保存按钮文字",
366
- "value": {
367
- "type": "string",
368
- "kind": "expression"
369
- }
370
- },
371
- {
372
- "name": "delete-button-text",
373
- "default": "`删除`",
374
- "description": "删除按钮文字",
375
- "value": {
376
- "type": "string",
377
- "kind": "expression"
378
- }
379
- },
380
- {
381
- "name": "detail-rows",
382
- "default": "`1`",
383
- "description": "详细地址输入框行数",
384
- "value": {
385
- "type": "number | string",
386
- "kind": "expression"
387
- }
388
- },
389
- {
390
- "name": "detail-maxlength",
391
- "default": "`200`",
392
- "description": "详细地址最大长度",
393
- "value": {
394
- "type": "number | string",
395
- "kind": "expression"
396
- }
397
- },
398
- {
399
- "name": "is-saving",
423
+ "name": "close-on-popstate",
400
424
  "default": "`false`",
401
- "description": "是否显示保存按钮加载动画",
425
+ "description": "是否在页面回退时自动关闭",
402
426
  "value": {
403
427
  "type": "boolean",
404
428
  "kind": "expression"
405
429
  }
406
430
  },
407
431
  {
408
- "name": "is-deleting",
432
+ "name": "close-on-click-action",
409
433
  "default": "`false`",
410
- "description": "是否显示删除按钮加载动画",
434
+ "description": "是否在点击选项后关闭",
411
435
  "value": {
412
436
  "type": "boolean",
413
437
  "kind": "expression"
414
438
  }
415
439
  },
416
440
  {
417
- "name": "tel-validator",
418
- "default": "-",
419
- "description": "手机号格式校验函数",
420
- "value": {
421
- "type": "string => boolean",
422
- "kind": "expression"
423
- }
424
- },
425
- {
426
- "name": "tel-maxlength",
427
- "default": "-",
428
- "description": "手机号最大长度",
441
+ "name": "close-on-click-overlay",
442
+ "default": "`true`",
443
+ "description": "是否在点击遮罩层后关闭",
429
444
  "value": {
430
- "type": "number | string",
445
+ "type": "boolean",
431
446
  "kind": "expression"
432
447
  }
433
448
  },
434
449
  {
435
- "name": "postal-validator",
436
- "default": "-",
437
- "description": "邮政编码格式校验函数",
450
+ "name": "safe-area-inset-bottom",
451
+ "default": "`true`",
452
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
438
453
  "value": {
439
- "type": "string => boolean",
454
+ "type": "boolean",
440
455
  "kind": "expression"
441
456
  }
442
457
  },
443
458
  {
444
- "name": "validator",
459
+ "name": "get-container",
445
460
  "default": "-",
446
- "description": "自定义校验函数",
461
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
447
462
  "value": {
448
- "type": "(key, val) => string",
463
+ "type": "string | () => Element",
449
464
  "kind": "expression"
450
465
  }
451
466
  }
452
467
  ]
453
468
  },
454
469
  {
455
- "name": "van-address-list",
470
+ "name": "van-address-edit",
456
471
  "slots": [
457
472
  {
458
473
  "name": "default",
459
- "description": "在列表下方插入内容"
460
- },
461
- {
462
- "name": "top",
463
- "description": "在顶部插入内容"
464
- },
465
- {
466
- "name": "item-bottom",
467
- "description": "在列表项底部插入内容"
468
- },
469
- {
470
- "name": "tag",
471
- "description": "列表项标签内容自定义"
474
+ "description": "在邮政编码下方插入内容"
472
475
  }
473
476
  ],
474
477
  "events": [
475
478
  {
476
- "name": "add",
477
- "description": "点击新增按钮时触发"
479
+ "name": "save",
480
+ "description": "点击保存按钮时触发"
478
481
  },
479
482
  {
480
- "name": "edit",
481
- "description": "点击编辑按钮时触发"
483
+ "name": "focus",
484
+ "description": "输入框聚焦时触发"
482
485
  },
483
486
  {
484
- "name": "select",
485
- "description": "切换选中的地址时触发"
487
+ "name": "delete",
488
+ "description": "确认删除地址时触发"
486
489
  },
487
490
  {
488
- "name": "edit-disabled",
489
- "description": "编辑不可配送的地址时触发"
491
+ "name": "cancel-delete",
492
+ "description": "取消删除地址时触发"
490
493
  },
491
494
  {
492
- "name": "select-disabled",
493
- "description": "选中不可配送的地址时触发"
495
+ "name": "select-search",
496
+ "description": "选中搜索结果时触发"
494
497
  },
495
498
  {
496
- "name": "click-item",
497
- "description": "点击任意地址时触发"
498
- }
499
- ],
500
- "attributes": [
501
- {
502
- "name": "v-model",
503
- "default": "-",
504
- "description": "当前选中地址的 id",
505
- "value": {
506
- "type": "string",
507
- "kind": "expression"
508
- }
499
+ "name": "click-area",
500
+ "description": "点击收件地区时触发"
509
501
  },
510
502
  {
511
- "name": "list",
512
- "default": "`[]`",
513
- "description": "地址列表",
514
- "value": {
515
- "type": "Address[]",
516
- "kind": "expression"
517
- }
503
+ "name": "change-area",
504
+ "description": "修改收件地区时触发"
518
505
  },
519
506
  {
520
- "name": "disabled-list",
521
- "default": "`[]`",
522
- "description": "不可配送地址列表",
523
- "value": {
524
- "type": "Address[]",
525
- "kind": "expression"
526
- }
507
+ "name": "change-detail",
508
+ "description": "修改详细地址时触发"
527
509
  },
528
510
  {
529
- "name": "disabled-text",
511
+ "name": "change-default",
512
+ "description": "切换是否使用默认地址时触发"
513
+ }
514
+ ],
515
+ "attributes": [
516
+ {
517
+ "name": "area-list",
530
518
  "default": "-",
531
- "description": "不可配送提示文案",
519
+ "description": "地区列表",
532
520
  "value": {
533
- "type": "string",
521
+ "type": "object",
534
522
  "kind": "expression"
535
523
  }
536
524
  },
537
525
  {
538
- "name": "switchable",
539
- "default": "`true`",
540
- "description": "是否允许切换地址",
526
+ "name": "area-columns-placeholder",
527
+ "default": "`[]`",
528
+ "description": "地区选择列占位提示文字",
541
529
  "value": {
542
- "type": "boolean",
530
+ "type": "string[]",
543
531
  "kind": "expression"
544
532
  }
545
533
  },
546
534
  {
547
- "name": "add-button-text",
548
- "default": "`新增地址`",
549
- "description": "底部按钮文字",
535
+ "name": "area-placeholder",
536
+ "default": "`选择省 / 市 / 区`",
537
+ "description": "地区输入框占位提示文字",
550
538
  "value": {
551
539
  "type": "string",
552
540
  "kind": "expression"
553
541
  }
554
542
  },
555
543
  {
556
- "name": "default-tag-text",
557
- "default": "-",
558
- "description": "默认地址标签文字",
544
+ "name": "address-info",
545
+ "default": "`{}`",
546
+ "description": "收货人信息初始值",
559
547
  "value": {
560
- "type": "string",
548
+ "type": "AddressInfo",
561
549
  "kind": "expression"
562
550
  }
563
- }
564
- ]
565
- },
566
- {
567
- "name": "van-area",
568
- "slots": [
569
- {
570
- "name": "title",
571
- "description": "自定义标题内容"
572
- },
573
- {
574
- "name": "columns-top",
575
- "description": "自定义选项上方内容"
576
- },
577
- {
578
- "name": "columns-bottom",
579
- "description": "自定义选项下方内容"
580
- }
581
- ],
582
- "events": [
583
- {
584
- "name": "confirm",
585
- "description": "点击右上方完成按钮"
586
- },
587
- {
588
- "name": "cancel",
589
- "description": "点击取消按钮时"
590
551
  },
591
552
  {
592
- "name": "change",
593
- "description": "选项改变时触发"
594
- }
595
- ],
596
- "attributes": [
597
- {
598
- "name": "value",
599
- "default": "-",
600
- "description": "当前选中的省市区`code`",
553
+ "name": "search-result",
554
+ "default": "`[]`",
555
+ "description": "详细地址搜索结果",
601
556
  "value": {
602
- "type": "string",
557
+ "type": "SearchResult[]",
603
558
  "kind": "expression"
604
559
  }
605
560
  },
606
561
  {
607
- "name": "title",
608
- "default": "-",
609
- "description": "顶部栏标题",
562
+ "name": "show-postal",
563
+ "default": "`false`",
564
+ "description": "是否显示邮政编码",
610
565
  "value": {
611
- "type": "string",
566
+ "type": "boolean",
612
567
  "kind": "expression"
613
568
  }
614
569
  },
615
570
  {
616
- "name": "confirm-button-text",
617
- "default": "`确认`",
618
- "description": "确认按钮文字",
571
+ "name": "show-delete",
572
+ "default": "`false`",
573
+ "description": "是否显示删除按钮",
619
574
  "value": {
620
- "type": "string",
575
+ "type": "boolean",
621
576
  "kind": "expression"
622
577
  }
623
578
  },
624
579
  {
625
- "name": "cancel-button-text",
626
- "default": "`取消`",
627
- "description": "取消按钮文字",
580
+ "name": "show-set-default",
581
+ "default": "`false`",
582
+ "description": "是否显示默认地址栏",
628
583
  "value": {
629
- "type": "string",
584
+ "type": "boolean",
630
585
  "kind": "expression"
631
586
  }
632
587
  },
633
588
  {
634
- "name": "area-list",
635
- "default": "-",
636
- "description": "省市区数据,格式见下方",
589
+ "name": "show-search-result",
590
+ "default": "`false`",
591
+ "description": "是否显示搜索结果",
637
592
  "value": {
638
- "type": "object",
593
+ "type": "boolean",
639
594
  "kind": "expression"
640
595
  }
641
596
  },
642
597
  {
643
- "name": "columns-placeholder",
644
- "default": "`[]`",
645
- "description": "列占位提示文字",
598
+ "name": "show-area",
599
+ "default": "`true`",
600
+ "description": "是否显示地区",
646
601
  "value": {
647
- "type": "string[]",
602
+ "type": "boolean",
648
603
  "kind": "expression"
649
604
  }
650
605
  },
651
606
  {
652
- "name": "loading",
653
- "default": "`false`",
654
- "description": "是否显示加载状态",
607
+ "name": "show-detail",
608
+ "default": "`true`",
609
+ "description": "是否显示详细地址",
655
610
  "value": {
656
611
  "type": "boolean",
657
612
  "kind": "expression"
658
613
  }
659
614
  },
660
615
  {
661
- "name": "readonly",
616
+ "name": "disable-area",
662
617
  "default": "`false`",
663
- "description": "是否为只读状态,只读状态下无法切换选项",
618
+ "description": "是否禁用地区选择",
664
619
  "value": {
665
620
  "type": "boolean",
666
621
  "kind": "expression"
667
622
  }
668
623
  },
669
624
  {
670
- "name": "item-height",
671
- "default": "`44`",
672
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
625
+ "name": "save-button-text",
626
+ "default": "`保存`",
627
+ "description": "保存按钮文字",
673
628
  "value": {
674
- "type": "number | string",
629
+ "type": "string",
675
630
  "kind": "expression"
676
631
  }
677
632
  },
678
633
  {
679
- "name": "columns-num",
680
- "default": "`3`",
681
- "description": "显示列数,3-省市区,2-省市,1-省",
634
+ "name": "delete-button-text",
635
+ "default": "`删除`",
636
+ "description": "删除按钮文字",
682
637
  "value": {
683
- "type": "number | string",
638
+ "type": "string",
684
639
  "kind": "expression"
685
640
  }
686
641
  },
687
642
  {
688
- "name": "visible-item-count",
689
- "default": "`6`",
690
- "description": "可见的选项个数",
643
+ "name": "detail-rows",
644
+ "default": "`1`",
645
+ "description": "详细地址输入框行数",
691
646
  "value": {
692
647
  "type": "number | string",
693
648
  "kind": "expression"
694
649
  }
695
650
  },
696
651
  {
697
- "name": "swipe-duration",
698
- "default": "`1000`",
699
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
652
+ "name": "detail-maxlength",
653
+ "default": "`200`",
654
+ "description": "详细地址最大长度",
700
655
  "value": {
701
656
  "type": "number | string",
702
657
  "kind": "expression"
703
658
  }
704
659
  },
705
660
  {
706
- "name": "is-oversea-code",
707
- "default": "-",
708
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
661
+ "name": "is-saving",
662
+ "default": "`false`",
663
+ "description": "是否显示保存按钮加载动画",
709
664
  "value": {
710
- "type": "() => boolean",
665
+ "type": "boolean",
711
666
  "kind": "expression"
712
667
  }
713
- }
714
- ]
715
- },
716
- {
717
- "name": "van-badge",
718
- "slots": [
719
- {
720
- "name": "default",
721
- "description": "徽标包裹的子元素"
722
668
  },
723
669
  {
724
- "name": "content",
725
- "description": "自定义徽标内容"
726
- }
727
- ],
728
- "events": [],
729
- "attributes": [
670
+ "name": "is-deleting",
671
+ "default": "`false`",
672
+ "description": "是否显示删除按钮加载动画",
673
+ "value": {
674
+ "type": "boolean",
675
+ "kind": "expression"
676
+ }
677
+ },
730
678
  {
731
- "name": "content",
679
+ "name": "tel-validator",
732
680
  "default": "-",
733
- "description": "徽标内容",
681
+ "description": "手机号格式校验函数",
734
682
  "value": {
735
- "type": "number | string",
683
+ "type": "string => boolean",
736
684
  "kind": "expression"
737
685
  }
738
686
  },
739
687
  {
740
- "name": "color",
741
- "default": "`#ee0a24`",
742
- "description": "徽标背景颜色",
688
+ "name": "tel-maxlength",
689
+ "default": "-",
690
+ "description": "手机号最大长度",
743
691
  "value": {
744
- "type": "string",
692
+ "type": "number | string",
745
693
  "kind": "expression"
746
694
  }
747
695
  },
748
696
  {
749
- "name": "dot",
750
- "default": "`false`",
751
- "description": "是否展示为小红点",
697
+ "name": "postal-validator",
698
+ "default": "-",
699
+ "description": "邮政编码格式校验函数",
752
700
  "value": {
753
- "type": "boolean",
701
+ "type": "string => boolean",
754
702
  "kind": "expression"
755
703
  }
756
704
  },
757
705
  {
758
- "name": "max",
706
+ "name": "validator",
759
707
  "default": "-",
760
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
708
+ "description": "自定义校验函数",
761
709
  "value": {
762
- "type": "number | string",
710
+ "type": "(key, val) => string",
763
711
  "kind": "expression"
764
712
  }
765
713
  }
@@ -955,38 +903,90 @@
955
903
  }
956
904
  },
957
905
  {
958
- "name": "loading-size",
959
- "default": "`20px`",
960
- "description": "加载图标大小",
906
+ "name": "loading-size",
907
+ "default": "`20px`",
908
+ "description": "加载图标大小",
909
+ "value": {
910
+ "type": "string",
911
+ "kind": "expression"
912
+ }
913
+ },
914
+ {
915
+ "name": "url",
916
+ "default": "-",
917
+ "description": "点击后跳转的链接地址",
918
+ "value": {
919
+ "type": "string",
920
+ "kind": "expression"
921
+ }
922
+ },
923
+ {
924
+ "name": "to",
925
+ "default": "-",
926
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
927
+ "value": {
928
+ "type": "string | object",
929
+ "kind": "expression"
930
+ }
931
+ },
932
+ {
933
+ "name": "replace",
934
+ "default": "`false`",
935
+ "description": "是否在跳转时替换当前页面历史",
936
+ "value": {
937
+ "type": "boolean",
938
+ "kind": "expression"
939
+ }
940
+ }
941
+ ]
942
+ },
943
+ {
944
+ "name": "van-badge",
945
+ "slots": [
946
+ {
947
+ "name": "default",
948
+ "description": "徽标包裹的子元素"
949
+ },
950
+ {
951
+ "name": "content",
952
+ "description": "自定义徽标内容"
953
+ }
954
+ ],
955
+ "events": [],
956
+ "attributes": [
957
+ {
958
+ "name": "content",
959
+ "default": "-",
960
+ "description": "徽标内容",
961
961
  "value": {
962
- "type": "string",
962
+ "type": "number | string",
963
963
  "kind": "expression"
964
964
  }
965
965
  },
966
966
  {
967
- "name": "url",
968
- "default": "-",
969
- "description": "点击后跳转的链接地址",
967
+ "name": "color",
968
+ "default": "`#ee0a24`",
969
+ "description": "徽标背景颜色",
970
970
  "value": {
971
971
  "type": "string",
972
972
  "kind": "expression"
973
973
  }
974
974
  },
975
975
  {
976
- "name": "to",
977
- "default": "-",
978
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
976
+ "name": "dot",
977
+ "default": "`false`",
978
+ "description": "是否展示为小红点",
979
979
  "value": {
980
- "type": "string | object",
980
+ "type": "boolean",
981
981
  "kind": "expression"
982
982
  }
983
983
  },
984
984
  {
985
- "name": "replace",
986
- "default": "`false`",
987
- "description": "是否在跳转时替换当前页面历史",
985
+ "name": "max",
986
+ "default": "-",
987
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
988
988
  "value": {
989
- "type": "boolean",
989
+ "type": "number | string",
990
990
  "kind": "expression"
991
991
  }
992
992
  }
@@ -2551,44 +2551,264 @@
2551
2551
  "description": "倒计时结束时触发"
2552
2552
  },
2553
2553
  {
2554
- "name": "change",
2555
- "description": "倒计时变化时触发"
2556
- }
2557
- ],
2558
- "attributes": [
2559
- {
2560
- "name": "time",
2554
+ "name": "change",
2555
+ "description": "倒计时变化时触发"
2556
+ }
2557
+ ],
2558
+ "attributes": [
2559
+ {
2560
+ "name": "time",
2561
+ "default": "`0`",
2562
+ "description": "倒计时时长,单位毫秒",
2563
+ "value": {
2564
+ "type": "number | string",
2565
+ "kind": "expression"
2566
+ }
2567
+ },
2568
+ {
2569
+ "name": "format",
2570
+ "default": "`HH:mm:ss`",
2571
+ "description": "时间格式",
2572
+ "value": {
2573
+ "type": "string",
2574
+ "kind": "expression"
2575
+ }
2576
+ },
2577
+ {
2578
+ "name": "auto-start",
2579
+ "default": "`true`",
2580
+ "description": "是否自动开始倒计时",
2581
+ "value": {
2582
+ "type": "boolean",
2583
+ "kind": "expression"
2584
+ }
2585
+ },
2586
+ {
2587
+ "name": "millisecond",
2588
+ "default": "`false`",
2589
+ "description": "是否开启毫秒级渲染",
2590
+ "value": {
2591
+ "type": "boolean",
2592
+ "kind": "expression"
2593
+ }
2594
+ }
2595
+ ]
2596
+ },
2597
+ {
2598
+ "name": "van-datetime-picker",
2599
+ "slots": [
2600
+ {
2601
+ "name": "default",
2602
+ "description": "自定义整个顶部栏的内容"
2603
+ },
2604
+ {
2605
+ "name": "title",
2606
+ "description": "自定义标题内容"
2607
+ },
2608
+ {
2609
+ "name": "confirm",
2610
+ "description": "自定义确认按钮内容"
2611
+ },
2612
+ {
2613
+ "name": "cancel",
2614
+ "description": "自定义取消按钮内容"
2615
+ },
2616
+ {
2617
+ "name": "option",
2618
+ "description": "自定义选项内容"
2619
+ },
2620
+ {
2621
+ "name": "columns-top",
2622
+ "description": "自定义选项上方内容"
2623
+ },
2624
+ {
2625
+ "name": "columns-bottom",
2626
+ "description": "自定义选项下方内容"
2627
+ }
2628
+ ],
2629
+ "events": [
2630
+ {
2631
+ "name": "change",
2632
+ "description": "当值变化时触发的事件"
2633
+ },
2634
+ {
2635
+ "name": "confirm",
2636
+ "description": "点击完成按钮时触发的事件"
2637
+ },
2638
+ {
2639
+ "name": "cancel",
2640
+ "description": "点击取消按钮时触发的事件"
2641
+ }
2642
+ ],
2643
+ "attributes": [
2644
+ {
2645
+ "name": "type",
2646
+ "default": "`datetime`",
2647
+ "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
2648
+ "value": {
2649
+ "type": "string",
2650
+ "kind": "expression"
2651
+ }
2652
+ },
2653
+ {
2654
+ "name": "title",
2655
+ "default": "`''`",
2656
+ "description": "顶部栏标题",
2657
+ "value": {
2658
+ "type": "string",
2659
+ "kind": "expression"
2660
+ }
2661
+ },
2662
+ {
2663
+ "name": "confirm-button-text",
2664
+ "default": "`确认`",
2665
+ "description": "确认按钮文字",
2666
+ "value": {
2667
+ "type": "string",
2668
+ "kind": "expression"
2669
+ }
2670
+ },
2671
+ {
2672
+ "name": "cancel-button-text",
2673
+ "default": "`取消`",
2674
+ "description": "取消按钮文字",
2675
+ "value": {
2676
+ "type": "string",
2677
+ "kind": "expression"
2678
+ }
2679
+ },
2680
+ {
2681
+ "name": "show-toolbar",
2682
+ "default": "`true`",
2683
+ "description": "是否显示顶部栏",
2684
+ "value": {
2685
+ "type": "boolean",
2686
+ "kind": "expression"
2687
+ }
2688
+ },
2689
+ {
2690
+ "name": "loading",
2691
+ "default": "`false`",
2692
+ "description": "是否显示加载状态",
2693
+ "value": {
2694
+ "type": "boolean",
2695
+ "kind": "expression"
2696
+ }
2697
+ },
2698
+ {
2699
+ "name": "readonly",
2700
+ "default": "`false`",
2701
+ "description": "是否为只读状态,只读状态下无法切换选项",
2702
+ "value": {
2703
+ "type": "boolean",
2704
+ "kind": "expression"
2705
+ }
2706
+ },
2707
+ {
2708
+ "name": "filter",
2709
+ "default": "-",
2710
+ "description": "选项过滤函数",
2711
+ "value": {
2712
+ "type": "(type, vals) => vals",
2713
+ "kind": "expression"
2714
+ }
2715
+ },
2716
+ {
2717
+ "name": "formatter",
2718
+ "default": "-",
2719
+ "description": "选项格式化函数",
2720
+ "value": {
2721
+ "type": "(type, val) => val",
2722
+ "kind": "expression"
2723
+ }
2724
+ },
2725
+ {
2726
+ "name": "columns-order",
2727
+ "default": "-",
2728
+ "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
2729
+ "value": {
2730
+ "type": "string[]",
2731
+ "kind": "expression"
2732
+ }
2733
+ },
2734
+ {
2735
+ "name": "item-height",
2736
+ "default": "`44`",
2737
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
2738
+ "value": {
2739
+ "type": "number | string",
2740
+ "kind": "expression"
2741
+ }
2742
+ },
2743
+ {
2744
+ "name": "visible-item-count",
2745
+ "default": "`6`",
2746
+ "description": "可见的选项个数",
2747
+ "value": {
2748
+ "type": "number | string",
2749
+ "kind": "expression"
2750
+ }
2751
+ },
2752
+ {
2753
+ "name": "swipe-duration",
2754
+ "default": "`1000`",
2755
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
2756
+ "value": {
2757
+ "type": "number | string",
2758
+ "kind": "expression"
2759
+ }
2760
+ },
2761
+ {
2762
+ "name": "min-date",
2763
+ "default": "十年前",
2764
+ "description": "可选的最小时间,精确到分钟",
2765
+ "value": {
2766
+ "type": "Date",
2767
+ "kind": "expression"
2768
+ }
2769
+ },
2770
+ {
2771
+ "name": "max-date",
2772
+ "default": "十年后",
2773
+ "description": "可选的最大时间,精确到分钟",
2774
+ "value": {
2775
+ "type": "Date",
2776
+ "kind": "expression"
2777
+ }
2778
+ },
2779
+ {
2780
+ "name": "min-hour",
2561
2781
  "default": "`0`",
2562
- "description": "倒计时时长,单位毫秒",
2782
+ "description": "可选的最小小时",
2563
2783
  "value": {
2564
2784
  "type": "number | string",
2565
2785
  "kind": "expression"
2566
2786
  }
2567
2787
  },
2568
2788
  {
2569
- "name": "format",
2570
- "default": "`HH:mm:ss`",
2571
- "description": "时间格式",
2789
+ "name": "max-hour",
2790
+ "default": "`23`",
2791
+ "description": "可选的最大小时",
2572
2792
  "value": {
2573
- "type": "string",
2793
+ "type": "number | string",
2574
2794
  "kind": "expression"
2575
2795
  }
2576
2796
  },
2577
2797
  {
2578
- "name": "auto-start",
2579
- "default": "`true`",
2580
- "description": "是否自动开始倒计时",
2798
+ "name": "min-minute",
2799
+ "default": "`0`",
2800
+ "description": "可选的最小分钟",
2581
2801
  "value": {
2582
- "type": "boolean",
2802
+ "type": "number | string",
2583
2803
  "kind": "expression"
2584
2804
  }
2585
2805
  },
2586
2806
  {
2587
- "name": "millisecond",
2588
- "default": "`false`",
2589
- "description": "是否开启毫秒级渲染",
2807
+ "name": "max-minute",
2808
+ "default": "`59`",
2809
+ "description": "可选的最大分钟",
2590
2810
  "value": {
2591
- "type": "boolean",
2811
+ "type": "number | string",
2592
2812
  "kind": "expression"
2593
2813
  }
2594
2814
  }
@@ -2735,321 +2955,101 @@
2735
2955
  }
2736
2956
  },
2737
2957
  {
2738
- "name": "exchange-button-loading",
2739
- "default": "`false`",
2740
- "description": "是否显示兑换按钮加载动画",
2741
- "value": {
2742
- "type": "boolean",
2743
- "kind": "expression"
2744
- }
2745
- },
2746
- {
2747
- "name": "exchange-button-disabled",
2748
- "default": "`false`",
2749
- "description": "是否禁用兑换按钮",
2750
- "value": {
2751
- "type": "boolean",
2752
- "kind": "expression"
2753
- }
2754
- },
2755
- {
2756
- "name": "exchange-min-length",
2757
- "default": "`1`",
2758
- "description": "兑换码最小长度",
2759
- "value": {
2760
- "type": "number",
2761
- "kind": "expression"
2762
- }
2763
- },
2764
- {
2765
- "name": "displayed-coupon-index",
2766
- "default": "-",
2767
- "description": "滚动至特定优惠券位置",
2768
- "value": {
2769
- "type": "number",
2770
- "kind": "expression"
2771
- }
2772
- },
2773
- {
2774
- "name": "show-close-button",
2775
- "default": "`true`",
2776
- "description": "是否显示列表底部按钮",
2777
- "value": {
2778
- "type": "boolean",
2779
- "kind": "expression"
2780
- }
2781
- },
2782
- {
2783
- "name": "close-button-text",
2784
- "default": "`不使用优惠`",
2785
- "description": "列表底部按钮文字",
2786
- "value": {
2787
- "type": "string",
2788
- "kind": "expression"
2789
- }
2790
- },
2791
- {
2792
- "name": "input-placeholder",
2793
- "default": "`请输入优惠码`",
2794
- "description": "输入框文字提示",
2795
- "value": {
2796
- "type": "string",
2797
- "kind": "expression"
2798
- }
2799
- },
2800
- {
2801
- "name": "show-exchange-bar",
2802
- "default": "`true`",
2803
- "description": "是否展示兑换栏",
2804
- "value": {
2805
- "type": "boolean",
2806
- "kind": "expression"
2807
- }
2808
- },
2809
- {
2810
- "name": "currency",
2811
- "default": "`¥`",
2812
- "description": "货币符号",
2813
- "value": {
2814
- "type": "string",
2815
- "kind": "expression"
2816
- }
2817
- },
2818
- {
2819
- "name": "empty-image",
2820
- "default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
2821
- "description": "列表为空时的占位图",
2822
- "value": {
2823
- "type": "string",
2824
- "kind": "expression"
2825
- }
2826
- },
2827
- {
2828
- "name": "show-count",
2829
- "default": "`true`",
2830
- "description": "是否展示可用 / 不可用数量",
2831
- "value": {
2832
- "type": "boolean",
2833
- "kind": "expression"
2834
- }
2835
- }
2836
- ]
2837
- },
2838
- {
2839
- "name": "van-datetime-picker",
2840
- "slots": [
2841
- {
2842
- "name": "default",
2843
- "description": "自定义整个顶部栏的内容"
2844
- },
2845
- {
2846
- "name": "title",
2847
- "description": "自定义标题内容"
2848
- },
2849
- {
2850
- "name": "confirm",
2851
- "description": "自定义确认按钮内容"
2852
- },
2853
- {
2854
- "name": "cancel",
2855
- "description": "自定义取消按钮内容"
2856
- },
2857
- {
2858
- "name": "option",
2859
- "description": "自定义选项内容"
2860
- },
2861
- {
2862
- "name": "columns-top",
2863
- "description": "自定义选项上方内容"
2864
- },
2865
- {
2866
- "name": "columns-bottom",
2867
- "description": "自定义选项下方内容"
2868
- }
2869
- ],
2870
- "events": [
2871
- {
2872
- "name": "change",
2873
- "description": "当值变化时触发的事件"
2874
- },
2875
- {
2876
- "name": "confirm",
2877
- "description": "点击完成按钮时触发的事件"
2878
- },
2879
- {
2880
- "name": "cancel",
2881
- "description": "点击取消按钮时触发的事件"
2882
- }
2883
- ],
2884
- "attributes": [
2885
- {
2886
- "name": "type",
2887
- "default": "`datetime`",
2888
- "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
2889
- "value": {
2890
- "type": "string",
2891
- "kind": "expression"
2892
- }
2893
- },
2894
- {
2895
- "name": "title",
2896
- "default": "`''`",
2897
- "description": "顶部栏标题",
2898
- "value": {
2899
- "type": "string",
2900
- "kind": "expression"
2901
- }
2902
- },
2903
- {
2904
- "name": "confirm-button-text",
2905
- "default": "`确认`",
2906
- "description": "确认按钮文字",
2907
- "value": {
2908
- "type": "string",
2909
- "kind": "expression"
2910
- }
2911
- },
2912
- {
2913
- "name": "cancel-button-text",
2914
- "default": "`取消`",
2915
- "description": "取消按钮文字",
2916
- "value": {
2917
- "type": "string",
2918
- "kind": "expression"
2919
- }
2920
- },
2921
- {
2922
- "name": "show-toolbar",
2923
- "default": "`true`",
2924
- "description": "是否显示顶部栏",
2925
- "value": {
2926
- "type": "boolean",
2927
- "kind": "expression"
2928
- }
2929
- },
2930
- {
2931
- "name": "loading",
2932
- "default": "`false`",
2933
- "description": "是否显示加载状态",
2934
- "value": {
2935
- "type": "boolean",
2936
- "kind": "expression"
2937
- }
2938
- },
2939
- {
2940
- "name": "readonly",
2941
- "default": "`false`",
2942
- "description": "是否为只读状态,只读状态下无法切换选项",
2943
- "value": {
2944
- "type": "boolean",
2945
- "kind": "expression"
2946
- }
2947
- },
2948
- {
2949
- "name": "filter",
2950
- "default": "-",
2951
- "description": "选项过滤函数",
2952
- "value": {
2953
- "type": "(type, vals) => vals",
2954
- "kind": "expression"
2955
- }
2956
- },
2957
- {
2958
- "name": "formatter",
2959
- "default": "-",
2960
- "description": "选项格式化函数",
2958
+ "name": "exchange-button-loading",
2959
+ "default": "`false`",
2960
+ "description": "是否显示兑换按钮加载动画",
2961
2961
  "value": {
2962
- "type": "(type, val) => val",
2962
+ "type": "boolean",
2963
2963
  "kind": "expression"
2964
2964
  }
2965
2965
  },
2966
2966
  {
2967
- "name": "columns-order",
2968
- "default": "-",
2969
- "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
2967
+ "name": "exchange-button-disabled",
2968
+ "default": "`false`",
2969
+ "description": "是否禁用兑换按钮",
2970
2970
  "value": {
2971
- "type": "string[]",
2971
+ "type": "boolean",
2972
2972
  "kind": "expression"
2973
2973
  }
2974
2974
  },
2975
2975
  {
2976
- "name": "item-height",
2977
- "default": "`44`",
2978
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
2976
+ "name": "exchange-min-length",
2977
+ "default": "`1`",
2978
+ "description": "兑换码最小长度",
2979
2979
  "value": {
2980
- "type": "number | string",
2980
+ "type": "number",
2981
2981
  "kind": "expression"
2982
2982
  }
2983
2983
  },
2984
2984
  {
2985
- "name": "visible-item-count",
2986
- "default": "`6`",
2987
- "description": "可见的选项个数",
2985
+ "name": "displayed-coupon-index",
2986
+ "default": "-",
2987
+ "description": "滚动至特定优惠券位置",
2988
2988
  "value": {
2989
- "type": "number | string",
2989
+ "type": "number",
2990
2990
  "kind": "expression"
2991
2991
  }
2992
2992
  },
2993
2993
  {
2994
- "name": "swipe-duration",
2995
- "default": "`1000`",
2996
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
2994
+ "name": "show-close-button",
2995
+ "default": "`true`",
2996
+ "description": "是否显示列表底部按钮",
2997
2997
  "value": {
2998
- "type": "number | string",
2998
+ "type": "boolean",
2999
2999
  "kind": "expression"
3000
3000
  }
3001
3001
  },
3002
3002
  {
3003
- "name": "min-date",
3004
- "default": "十年前",
3005
- "description": "可选的最小时间,精确到分钟",
3003
+ "name": "close-button-text",
3004
+ "default": "`不使用优惠`",
3005
+ "description": "列表底部按钮文字",
3006
3006
  "value": {
3007
- "type": "Date",
3007
+ "type": "string",
3008
3008
  "kind": "expression"
3009
3009
  }
3010
3010
  },
3011
3011
  {
3012
- "name": "max-date",
3013
- "default": "十年后",
3014
- "description": "可选的最大时间,精确到分钟",
3012
+ "name": "input-placeholder",
3013
+ "default": "`请输入优惠码`",
3014
+ "description": "输入框文字提示",
3015
3015
  "value": {
3016
- "type": "Date",
3016
+ "type": "string",
3017
3017
  "kind": "expression"
3018
3018
  }
3019
3019
  },
3020
3020
  {
3021
- "name": "min-hour",
3022
- "default": "`0`",
3023
- "description": "可选的最小小时",
3021
+ "name": "show-exchange-bar",
3022
+ "default": "`true`",
3023
+ "description": "是否展示兑换栏",
3024
3024
  "value": {
3025
- "type": "number | string",
3025
+ "type": "boolean",
3026
3026
  "kind": "expression"
3027
3027
  }
3028
3028
  },
3029
3029
  {
3030
- "name": "max-hour",
3031
- "default": "`23`",
3032
- "description": "可选的最大小时",
3030
+ "name": "currency",
3031
+ "default": "`¥`",
3032
+ "description": "货币符号",
3033
3033
  "value": {
3034
- "type": "number | string",
3034
+ "type": "string",
3035
3035
  "kind": "expression"
3036
3036
  }
3037
3037
  },
3038
3038
  {
3039
- "name": "min-minute",
3040
- "default": "`0`",
3041
- "description": "可选的最小分钟",
3039
+ "name": "empty-image",
3040
+ "default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
3041
+ "description": "列表为空时的占位图",
3042
3042
  "value": {
3043
- "type": "number | string",
3043
+ "type": "string",
3044
3044
  "kind": "expression"
3045
3045
  }
3046
3046
  },
3047
3047
  {
3048
- "name": "max-minute",
3049
- "default": "`59`",
3050
- "description": "可选的最大分钟",
3048
+ "name": "show-count",
3049
+ "default": "`true`",
3050
+ "description": "是否展示可用 / 不可用数量",
3051
3051
  "value": {
3052
- "type": "number | string",
3052
+ "type": "boolean",
3053
3053
  "kind": "expression"
3054
3054
  }
3055
3055
  }
@@ -5132,108 +5132,112 @@
5132
5132
  "attributes": []
5133
5133
  },
5134
5134
  {
5135
- "name": "van-nav-bar",
5135
+ "name": "van-notice-bar",
5136
5136
  "slots": [
5137
5137
  {
5138
- "name": "title",
5139
- "description": "自定义标题"
5138
+ "name": "default",
5139
+ "description": "通知文本内容"
5140
5140
  },
5141
5141
  {
5142
- "name": "left",
5143
- "description": "自定义左侧区域内容"
5142
+ "name": "left-icon",
5143
+ "description": "自定义左侧图标"
5144
5144
  },
5145
5145
  {
5146
- "name": "right",
5147
- "description": "自定义右侧区域内容"
5146
+ "name": "right-icon",
5147
+ "description": "自定义右侧图标"
5148
5148
  }
5149
5149
  ],
5150
5150
  "events": [
5151
5151
  {
5152
- "name": "click-left",
5153
- "description": "点击左侧按钮时触发"
5152
+ "name": "click",
5153
+ "description": "点击通知栏时触发"
5154
5154
  },
5155
5155
  {
5156
- "name": "click-right",
5157
- "description": "点击右侧按钮时触发"
5156
+ "name": "close",
5157
+ "description": "关闭通知栏时触发"
5158
+ },
5159
+ {
5160
+ "name": "replay",
5161
+ "description": "每当滚动栏重新开始滚动时触发"
5158
5162
  }
5159
5163
  ],
5160
5164
  "attributes": [
5161
5165
  {
5162
- "name": "title",
5166
+ "name": "mode",
5163
5167
  "default": "`''`",
5164
- "description": "标题",
5168
+ "description": "通知栏模式,可选值为 `closeable` `link`",
5165
5169
  "value": {
5166
5170
  "type": "string",
5167
5171
  "kind": "expression"
5168
5172
  }
5169
5173
  },
5170
5174
  {
5171
- "name": "left-text",
5175
+ "name": "text",
5172
5176
  "default": "`''`",
5173
- "description": "左侧文案",
5177
+ "description": "通知文本内容",
5174
5178
  "value": {
5175
5179
  "type": "string",
5176
5180
  "kind": "expression"
5177
5181
  }
5178
5182
  },
5179
5183
  {
5180
- "name": "right-text",
5181
- "default": "`''`",
5182
- "description": "右侧文案",
5184
+ "name": "color",
5185
+ "default": "`#f60`",
5186
+ "description": "通知文本颜色",
5183
5187
  "value": {
5184
5188
  "type": "string",
5185
5189
  "kind": "expression"
5186
5190
  }
5187
5191
  },
5188
5192
  {
5189
- "name": "left-arrow",
5190
- "default": "`false`",
5191
- "description": "是否显示左侧箭头",
5193
+ "name": "background",
5194
+ "default": "`#fff7cc`",
5195
+ "description": "滚动条背景",
5192
5196
  "value": {
5193
- "type": "boolean",
5197
+ "type": "string",
5194
5198
  "kind": "expression"
5195
5199
  }
5196
5200
  },
5197
5201
  {
5198
- "name": "border",
5199
- "default": "`true`",
5200
- "description": "是否显示下边框",
5202
+ "name": "left-icon",
5203
+ "default": "-",
5204
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
5201
5205
  "value": {
5202
- "type": "boolean",
5206
+ "type": "string",
5203
5207
  "kind": "expression"
5204
5208
  }
5205
5209
  },
5206
5210
  {
5207
- "name": "fixed",
5208
- "default": "`false`",
5209
- "description": "是否固定在顶部",
5211
+ "name": "delay",
5212
+ "default": "`1`",
5213
+ "description": "动画延迟时间 (s)",
5210
5214
  "value": {
5211
- "type": "boolean",
5215
+ "type": "number | string",
5212
5216
  "kind": "expression"
5213
5217
  }
5214
5218
  },
5215
5219
  {
5216
- "name": "placeholder",
5217
- "default": "`false`",
5218
- "description": "固定在顶部时,是否在标签位置生成一个等高的占位元素",
5220
+ "name": "speed",
5221
+ "default": "`60`",
5222
+ "description": "滚动速率 (px/s)",
5219
5223
  "value": {
5220
- "type": "boolean",
5224
+ "type": "number | string",
5221
5225
  "kind": "expression"
5222
5226
  }
5223
5227
  },
5224
5228
  {
5225
- "name": "z-index",
5226
- "default": "`1`",
5227
- "description": "导航栏 z-index",
5229
+ "name": "scrollable",
5230
+ "default": "-",
5231
+ "description": "是否开启滚动播放,内容长度溢出时默认开启",
5228
5232
  "value": {
5229
- "type": "number | string",
5233
+ "type": "boolean",
5230
5234
  "kind": "expression"
5231
5235
  }
5232
5236
  },
5233
5237
  {
5234
- "name": "safe-area-inset-top",
5238
+ "name": "wrapable",
5235
5239
  "default": "`false`",
5236
- "description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
5240
+ "description": "是否开启文本换行,只在禁用滚动时生效",
5237
5241
  "value": {
5238
5242
  "type": "boolean",
5239
5243
  "kind": "expression"
@@ -5242,112 +5246,108 @@
5242
5246
  ]
5243
5247
  },
5244
5248
  {
5245
- "name": "van-notice-bar",
5249
+ "name": "van-nav-bar",
5246
5250
  "slots": [
5247
5251
  {
5248
- "name": "default",
5249
- "description": "通知文本内容"
5252
+ "name": "title",
5253
+ "description": "自定义标题"
5250
5254
  },
5251
5255
  {
5252
- "name": "left-icon",
5253
- "description": "自定义左侧图标"
5256
+ "name": "left",
5257
+ "description": "自定义左侧区域内容"
5254
5258
  },
5255
5259
  {
5256
- "name": "right-icon",
5257
- "description": "自定义右侧图标"
5260
+ "name": "right",
5261
+ "description": "自定义右侧区域内容"
5258
5262
  }
5259
5263
  ],
5260
5264
  "events": [
5261
5265
  {
5262
- "name": "click",
5263
- "description": "点击通知栏时触发"
5264
- },
5265
- {
5266
- "name": "close",
5267
- "description": "关闭通知栏时触发"
5266
+ "name": "click-left",
5267
+ "description": "点击左侧按钮时触发"
5268
5268
  },
5269
5269
  {
5270
- "name": "replay",
5271
- "description": "每当滚动栏重新开始滚动时触发"
5270
+ "name": "click-right",
5271
+ "description": "点击右侧按钮时触发"
5272
5272
  }
5273
5273
  ],
5274
5274
  "attributes": [
5275
5275
  {
5276
- "name": "mode",
5276
+ "name": "title",
5277
5277
  "default": "`''`",
5278
- "description": "通知栏模式,可选值为 `closeable` `link`",
5278
+ "description": "标题",
5279
5279
  "value": {
5280
5280
  "type": "string",
5281
5281
  "kind": "expression"
5282
5282
  }
5283
5283
  },
5284
5284
  {
5285
- "name": "text",
5285
+ "name": "left-text",
5286
5286
  "default": "`''`",
5287
- "description": "通知文本内容",
5287
+ "description": "左侧文案",
5288
5288
  "value": {
5289
5289
  "type": "string",
5290
5290
  "kind": "expression"
5291
5291
  }
5292
5292
  },
5293
5293
  {
5294
- "name": "color",
5295
- "default": "`#f60`",
5296
- "description": "通知文本颜色",
5294
+ "name": "right-text",
5295
+ "default": "`''`",
5296
+ "description": "右侧文案",
5297
5297
  "value": {
5298
5298
  "type": "string",
5299
5299
  "kind": "expression"
5300
5300
  }
5301
5301
  },
5302
5302
  {
5303
- "name": "background",
5304
- "default": "`#fff7cc`",
5305
- "description": "滚动条背景",
5303
+ "name": "left-arrow",
5304
+ "default": "`false`",
5305
+ "description": "是否显示左侧箭头",
5306
5306
  "value": {
5307
- "type": "string",
5307
+ "type": "boolean",
5308
5308
  "kind": "expression"
5309
5309
  }
5310
5310
  },
5311
5311
  {
5312
- "name": "left-icon",
5313
- "default": "-",
5314
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
5312
+ "name": "border",
5313
+ "default": "`true`",
5314
+ "description": "是否显示下边框",
5315
5315
  "value": {
5316
- "type": "string",
5316
+ "type": "boolean",
5317
5317
  "kind": "expression"
5318
5318
  }
5319
5319
  },
5320
5320
  {
5321
- "name": "delay",
5322
- "default": "`1`",
5323
- "description": "动画延迟时间 (s)",
5321
+ "name": "fixed",
5322
+ "default": "`false`",
5323
+ "description": "是否固定在顶部",
5324
5324
  "value": {
5325
- "type": "number | string",
5325
+ "type": "boolean",
5326
5326
  "kind": "expression"
5327
5327
  }
5328
5328
  },
5329
5329
  {
5330
- "name": "speed",
5331
- "default": "`60`",
5332
- "description": "滚动速率 (px/s)",
5330
+ "name": "placeholder",
5331
+ "default": "`false`",
5332
+ "description": "固定在顶部时,是否在标签位置生成一个等高的占位元素",
5333
5333
  "value": {
5334
- "type": "number | string",
5334
+ "type": "boolean",
5335
5335
  "kind": "expression"
5336
5336
  }
5337
5337
  },
5338
5338
  {
5339
- "name": "scrollable",
5340
- "default": "-",
5341
- "description": "是否开启滚动播放,内容长度溢出时默认开启",
5339
+ "name": "z-index",
5340
+ "default": "`1`",
5341
+ "description": "导航栏 z-index",
5342
5342
  "value": {
5343
- "type": "boolean",
5343
+ "type": "number | string",
5344
5344
  "kind": "expression"
5345
5345
  }
5346
5346
  },
5347
5347
  {
5348
- "name": "wrapable",
5348
+ "name": "safe-area-inset-top",
5349
5349
  "default": "`false`",
5350
- "description": "是否开启文本换行,只在禁用滚动时生效",
5350
+ "description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
5351
5351
  "value": {
5352
5352
  "type": "boolean",
5353
5353
  "kind": "expression"