vant 2.12.36 → 2.12.40
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.
- package/es/cascader/index.js +20 -13
- package/es/datetime-picker/index.js +1 -1
- package/es/datetime-picker/shared.js +25 -3
- package/es/datetime-picker/utils.js +4 -0
- package/es/icon/index.css +1 -1
- package/es/icon/index.less +1 -0
- package/es/image-preview/ImagePreview.js +1 -0
- package/es/image-preview/ImagePreviewItem.js +8 -3
- package/es/image-preview/index.js +1 -0
- package/es/index.js +1 -1
- package/es/mixins/touch.js +10 -6
- package/es/nav-bar/index.js +9 -1
- package/es/slider/index.js +23 -4
- package/es/swipe/index.js +2 -8
- package/es/tabbar/index.js +14 -6
- package/lib/cascader/index.js +20 -13
- package/lib/datetime-picker/index.js +1 -1
- package/lib/datetime-picker/shared.js +25 -3
- package/lib/datetime-picker/utils.js +4 -0
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.less +1 -0
- package/lib/image-preview/ImagePreview.js +1 -0
- package/lib/image-preview/ImagePreviewItem.js +8 -3
- package/lib/image-preview/index.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/mixins/touch.js +10 -7
- package/lib/nav-bar/index.js +9 -1
- package/lib/slider/index.js +23 -4
- package/lib/swipe/index.js +2 -8
- package/lib/tabbar/index.js +14 -6
- package/lib/vant.js +124 -51
- package/lib/vant.min.js +1 -1
- package/package.json +4 -1
- package/types/image-preview.d.ts +1 -0
- package/vetur/attributes.json +383 -375
- package/vetur/tags.json +121 -119
- package/vetur/web-types.json +1153 -1127
package/vetur/web-types.json
CHANGED
@@ -2,10 +2,208 @@
|
|
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.
|
5
|
+
"version": "2.12.40",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
9
|
+
{
|
10
|
+
"name": "van-action-sheet",
|
11
|
+
"slots": [
|
12
|
+
{
|
13
|
+
"name": "default",
|
14
|
+
"description": "自定义面板的展示内容"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"name": "description",
|
18
|
+
"description": "自定义描述文案"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"events": [
|
22
|
+
{
|
23
|
+
"name": "select",
|
24
|
+
"description": "点击选项时触发,禁用或加载状态下不会触发"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"name": "cancel",
|
28
|
+
"description": "点击取消按钮时触发"
|
29
|
+
},
|
30
|
+
{
|
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": "点击遮罩层时触发"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"attributes": [
|
52
|
+
{
|
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",
|
72
|
+
"default": "-",
|
73
|
+
"description": "顶部标题",
|
74
|
+
"value": {
|
75
|
+
"type": "string",
|
76
|
+
"kind": "expression"
|
77
|
+
}
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"name": "cancel-text",
|
81
|
+
"default": "-",
|
82
|
+
"description": "取消按钮文字",
|
83
|
+
"value": {
|
84
|
+
"type": "string",
|
85
|
+
"kind": "expression"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"name": "description",
|
90
|
+
"default": "-",
|
91
|
+
"description": "选项上方的描述信息",
|
92
|
+
"value": {
|
93
|
+
"type": "string",
|
94
|
+
"kind": "expression"
|
95
|
+
}
|
96
|
+
},
|
97
|
+
{
|
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)或图片链接",
|
110
|
+
"value": {
|
111
|
+
"type": "string",
|
112
|
+
"kind": "expression"
|
113
|
+
}
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"name": "duration",
|
117
|
+
"default": "`0.3`",
|
118
|
+
"description": "动画时长,单位秒",
|
119
|
+
"value": {
|
120
|
+
"type": "number | string",
|
121
|
+
"kind": "expression"
|
122
|
+
}
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"name": "round",
|
126
|
+
"default": "`true`",
|
127
|
+
"description": "是否显示圆角",
|
128
|
+
"value": {
|
129
|
+
"type": "boolean",
|
130
|
+
"kind": "expression"
|
131
|
+
}
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"name": "overlay",
|
135
|
+
"default": "`true`",
|
136
|
+
"description": "是否显示遮罩层",
|
137
|
+
"value": {
|
138
|
+
"type": "boolean",
|
139
|
+
"kind": "expression"
|
140
|
+
}
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"name": "lock-scroll",
|
144
|
+
"default": "`true`",
|
145
|
+
"description": "是否锁定背景滚动",
|
146
|
+
"value": {
|
147
|
+
"type": "boolean",
|
148
|
+
"kind": "expression"
|
149
|
+
}
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"name": "lazy-render",
|
153
|
+
"default": "`true`",
|
154
|
+
"description": "是否在显示弹层时才渲染节点",
|
155
|
+
"value": {
|
156
|
+
"type": "boolean",
|
157
|
+
"kind": "expression"
|
158
|
+
}
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"name": "close-on-popstate",
|
162
|
+
"default": "`false`",
|
163
|
+
"description": "是否在页面回退时自动关闭",
|
164
|
+
"value": {
|
165
|
+
"type": "boolean",
|
166
|
+
"kind": "expression"
|
167
|
+
}
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"name": "close-on-click-action",
|
171
|
+
"default": "`false`",
|
172
|
+
"description": "是否在点击选项后关闭",
|
173
|
+
"value": {
|
174
|
+
"type": "boolean",
|
175
|
+
"kind": "expression"
|
176
|
+
}
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"name": "close-on-click-overlay",
|
180
|
+
"default": "`true`",
|
181
|
+
"description": "是否在点击遮罩层后关闭",
|
182
|
+
"value": {
|
183
|
+
"type": "boolean",
|
184
|
+
"kind": "expression"
|
185
|
+
}
|
186
|
+
},
|
187
|
+
{
|
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",
|
198
|
+
"default": "-",
|
199
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
200
|
+
"value": {
|
201
|
+
"type": "string | () => Element",
|
202
|
+
"kind": "expression"
|
203
|
+
}
|
204
|
+
}
|
205
|
+
]
|
206
|
+
},
|
9
207
|
{
|
10
208
|
"name": "van-address-edit",
|
11
209
|
"slots": [
|
@@ -254,687 +452,164 @@
|
|
254
452
|
]
|
255
453
|
},
|
256
454
|
{
|
257
|
-
"name": "van-
|
455
|
+
"name": "van-address-list",
|
258
456
|
"slots": [
|
259
457
|
{
|
260
|
-
"name": "
|
261
|
-
"description": "
|
458
|
+
"name": "default",
|
459
|
+
"description": "在列表下方插入内容"
|
262
460
|
},
|
263
461
|
{
|
264
|
-
"name": "
|
265
|
-
"description": "
|
462
|
+
"name": "top",
|
463
|
+
"description": "在顶部插入内容"
|
266
464
|
},
|
267
465
|
{
|
268
|
-
"name": "
|
269
|
-
"description": "
|
466
|
+
"name": "item-bottom",
|
467
|
+
"description": "在列表项底部插入内容"
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"name": "tag",
|
471
|
+
"description": "列表项标签内容自定义"
|
270
472
|
}
|
271
473
|
],
|
272
474
|
"events": [
|
273
475
|
{
|
274
|
-
"name": "
|
275
|
-
"description": "
|
476
|
+
"name": "add",
|
477
|
+
"description": "点击新增按钮时触发"
|
276
478
|
},
|
277
479
|
{
|
278
|
-
"name": "
|
279
|
-
"description": "
|
480
|
+
"name": "edit",
|
481
|
+
"description": "点击编辑按钮时触发"
|
280
482
|
},
|
281
483
|
{
|
282
|
-
"name": "
|
283
|
-
"description": "
|
484
|
+
"name": "select",
|
485
|
+
"description": "切换选中的地址时触发"
|
486
|
+
},
|
487
|
+
{
|
488
|
+
"name": "edit-disabled",
|
489
|
+
"description": "编辑不可配送的地址时触发"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"name": "select-disabled",
|
493
|
+
"description": "选中不可配送的地址时触发"
|
494
|
+
},
|
495
|
+
{
|
496
|
+
"name": "click-item",
|
497
|
+
"description": "点击任意地址时触发"
|
284
498
|
}
|
285
499
|
],
|
286
500
|
"attributes": [
|
287
501
|
{
|
288
|
-
"name": "
|
502
|
+
"name": "v-model",
|
289
503
|
"default": "-",
|
290
|
-
"description": "
|
504
|
+
"description": "当前选中地址的 id",
|
291
505
|
"value": {
|
292
506
|
"type": "string",
|
293
507
|
"kind": "expression"
|
294
508
|
}
|
295
509
|
},
|
296
510
|
{
|
297
|
-
"name": "
|
298
|
-
"default": "
|
299
|
-
"description": "
|
511
|
+
"name": "list",
|
512
|
+
"default": "`[]`",
|
513
|
+
"description": "地址列表",
|
300
514
|
"value": {
|
301
|
-
"type": "
|
515
|
+
"type": "Address[]",
|
302
516
|
"kind": "expression"
|
303
517
|
}
|
304
518
|
},
|
305
519
|
{
|
306
|
-
"name": "
|
307
|
-
"default": "
|
308
|
-
"description": "
|
309
|
-
"value": {
|
310
|
-
"type": "string",
|
311
|
-
"kind": "expression"
|
312
|
-
}
|
313
|
-
},
|
314
|
-
{
|
315
|
-
"name": "cancel-button-text",
|
316
|
-
"default": "`取消`",
|
317
|
-
"description": "取消按钮文字",
|
318
|
-
"value": {
|
319
|
-
"type": "string",
|
320
|
-
"kind": "expression"
|
321
|
-
}
|
322
|
-
},
|
323
|
-
{
|
324
|
-
"name": "area-list",
|
325
|
-
"default": "-",
|
326
|
-
"description": "省市区数据,格式见下方",
|
327
|
-
"value": {
|
328
|
-
"type": "object",
|
329
|
-
"kind": "expression"
|
330
|
-
}
|
331
|
-
},
|
332
|
-
{
|
333
|
-
"name": "columns-placeholder",
|
334
|
-
"default": "`[]`",
|
335
|
-
"description": "列占位提示文字",
|
336
|
-
"value": {
|
337
|
-
"type": "string[]",
|
338
|
-
"kind": "expression"
|
339
|
-
}
|
340
|
-
},
|
341
|
-
{
|
342
|
-
"name": "loading",
|
343
|
-
"default": "`false`",
|
344
|
-
"description": "是否显示加载状态",
|
345
|
-
"value": {
|
346
|
-
"type": "boolean",
|
347
|
-
"kind": "expression"
|
348
|
-
}
|
349
|
-
},
|
350
|
-
{
|
351
|
-
"name": "readonly",
|
352
|
-
"default": "`false`",
|
353
|
-
"description": "是否为只读状态,只读状态下无法切换选项",
|
354
|
-
"value": {
|
355
|
-
"type": "boolean",
|
356
|
-
"kind": "expression"
|
357
|
-
}
|
358
|
-
},
|
359
|
-
{
|
360
|
-
"name": "item-height",
|
361
|
-
"default": "`44`",
|
362
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
363
|
-
"value": {
|
364
|
-
"type": "number | string",
|
365
|
-
"kind": "expression"
|
366
|
-
}
|
367
|
-
},
|
368
|
-
{
|
369
|
-
"name": "columns-num",
|
370
|
-
"default": "`3`",
|
371
|
-
"description": "显示列数,3-省市区,2-省市,1-省",
|
372
|
-
"value": {
|
373
|
-
"type": "number | string",
|
374
|
-
"kind": "expression"
|
375
|
-
}
|
376
|
-
},
|
377
|
-
{
|
378
|
-
"name": "visible-item-count",
|
379
|
-
"default": "`6`",
|
380
|
-
"description": "可见的选项个数",
|
381
|
-
"value": {
|
382
|
-
"type": "number | string",
|
383
|
-
"kind": "expression"
|
384
|
-
}
|
385
|
-
},
|
386
|
-
{
|
387
|
-
"name": "swipe-duration",
|
388
|
-
"default": "`1000`",
|
389
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
390
|
-
"value": {
|
391
|
-
"type": "number | string",
|
392
|
-
"kind": "expression"
|
393
|
-
}
|
394
|
-
},
|
395
|
-
{
|
396
|
-
"name": "is-oversea-code",
|
397
|
-
"default": "-",
|
398
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
399
|
-
"value": {
|
400
|
-
"type": "() => boolean",
|
401
|
-
"kind": "expression"
|
402
|
-
}
|
403
|
-
}
|
404
|
-
]
|
405
|
-
},
|
406
|
-
{
|
407
|
-
"name": "van-address-list",
|
408
|
-
"slots": [
|
409
|
-
{
|
410
|
-
"name": "default",
|
411
|
-
"description": "在列表下方插入内容"
|
412
|
-
},
|
413
|
-
{
|
414
|
-
"name": "top",
|
415
|
-
"description": "在顶部插入内容"
|
416
|
-
},
|
417
|
-
{
|
418
|
-
"name": "item-bottom",
|
419
|
-
"description": "在列表项底部插入内容"
|
420
|
-
},
|
421
|
-
{
|
422
|
-
"name": "tag",
|
423
|
-
"description": "列表项标签内容自定义"
|
424
|
-
}
|
425
|
-
],
|
426
|
-
"events": [
|
427
|
-
{
|
428
|
-
"name": "add",
|
429
|
-
"description": "点击新增按钮时触发"
|
430
|
-
},
|
431
|
-
{
|
432
|
-
"name": "edit",
|
433
|
-
"description": "点击编辑按钮时触发"
|
434
|
-
},
|
435
|
-
{
|
436
|
-
"name": "select",
|
437
|
-
"description": "切换选中的地址时触发"
|
438
|
-
},
|
439
|
-
{
|
440
|
-
"name": "edit-disabled",
|
441
|
-
"description": "编辑不可配送的地址时触发"
|
442
|
-
},
|
443
|
-
{
|
444
|
-
"name": "select-disabled",
|
445
|
-
"description": "选中不可配送的地址时触发"
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"name": "click-item",
|
449
|
-
"description": "点击任意地址时触发"
|
450
|
-
}
|
451
|
-
],
|
452
|
-
"attributes": [
|
453
|
-
{
|
454
|
-
"name": "v-model",
|
455
|
-
"default": "-",
|
456
|
-
"description": "当前选中地址的 id",
|
457
|
-
"value": {
|
458
|
-
"type": "string",
|
459
|
-
"kind": "expression"
|
460
|
-
}
|
461
|
-
},
|
462
|
-
{
|
463
|
-
"name": "list",
|
464
|
-
"default": "`[]`",
|
465
|
-
"description": "地址列表",
|
466
|
-
"value": {
|
467
|
-
"type": "Address[]",
|
468
|
-
"kind": "expression"
|
469
|
-
}
|
470
|
-
},
|
471
|
-
{
|
472
|
-
"name": "disabled-list",
|
473
|
-
"default": "`[]`",
|
474
|
-
"description": "不可配送地址列表",
|
475
|
-
"value": {
|
476
|
-
"type": "Address[]",
|
477
|
-
"kind": "expression"
|
478
|
-
}
|
479
|
-
},
|
480
|
-
{
|
481
|
-
"name": "disabled-text",
|
482
|
-
"default": "-",
|
483
|
-
"description": "不可配送提示文案",
|
484
|
-
"value": {
|
485
|
-
"type": "string",
|
486
|
-
"kind": "expression"
|
487
|
-
}
|
488
|
-
},
|
489
|
-
{
|
490
|
-
"name": "switchable",
|
491
|
-
"default": "`true`",
|
492
|
-
"description": "是否允许切换地址",
|
493
|
-
"value": {
|
494
|
-
"type": "boolean",
|
495
|
-
"kind": "expression"
|
496
|
-
}
|
497
|
-
},
|
498
|
-
{
|
499
|
-
"name": "add-button-text",
|
500
|
-
"default": "`新增地址`",
|
501
|
-
"description": "底部按钮文字",
|
502
|
-
"value": {
|
503
|
-
"type": "string",
|
504
|
-
"kind": "expression"
|
505
|
-
}
|
506
|
-
},
|
507
|
-
{
|
508
|
-
"name": "default-tag-text",
|
509
|
-
"default": "-",
|
510
|
-
"description": "默认地址标签文字",
|
511
|
-
"value": {
|
512
|
-
"type": "string",
|
513
|
-
"kind": "expression"
|
514
|
-
}
|
515
|
-
}
|
516
|
-
]
|
517
|
-
},
|
518
|
-
{
|
519
|
-
"name": "van-action-sheet",
|
520
|
-
"slots": [
|
521
|
-
{
|
522
|
-
"name": "default",
|
523
|
-
"description": "自定义面板的展示内容"
|
524
|
-
},
|
525
|
-
{
|
526
|
-
"name": "description",
|
527
|
-
"description": "自定义描述文案"
|
528
|
-
}
|
529
|
-
],
|
530
|
-
"events": [
|
531
|
-
{
|
532
|
-
"name": "select",
|
533
|
-
"description": "点击选项时触发,禁用或加载状态下不会触发"
|
534
|
-
},
|
535
|
-
{
|
536
|
-
"name": "cancel",
|
537
|
-
"description": "点击取消按钮时触发"
|
538
|
-
},
|
539
|
-
{
|
540
|
-
"name": "open",
|
541
|
-
"description": "打开面板时触发"
|
542
|
-
},
|
543
|
-
{
|
544
|
-
"name": "close",
|
545
|
-
"description": "关闭面板时触发"
|
546
|
-
},
|
547
|
-
{
|
548
|
-
"name": "opened",
|
549
|
-
"description": "打开面板且动画结束后触发"
|
550
|
-
},
|
551
|
-
{
|
552
|
-
"name": "closed",
|
553
|
-
"description": "关闭面板且动画结束后触发"
|
554
|
-
},
|
555
|
-
{
|
556
|
-
"name": "click-overlay",
|
557
|
-
"description": "点击遮罩层时触发"
|
558
|
-
}
|
559
|
-
],
|
560
|
-
"attributes": [
|
561
|
-
{
|
562
|
-
"name": "v-model (value)",
|
563
|
-
"default": "`false`",
|
564
|
-
"description": "是否显示动作面板",
|
565
|
-
"value": {
|
566
|
-
"type": "boolean",
|
567
|
-
"kind": "expression"
|
568
|
-
}
|
569
|
-
},
|
570
|
-
{
|
571
|
-
"name": "actions",
|
572
|
-
"default": "`[]`",
|
573
|
-
"description": "面板选项列表",
|
574
|
-
"value": {
|
575
|
-
"type": "Action[]",
|
576
|
-
"kind": "expression"
|
577
|
-
}
|
578
|
-
},
|
579
|
-
{
|
580
|
-
"name": "title",
|
581
|
-
"default": "-",
|
582
|
-
"description": "顶部标题",
|
583
|
-
"value": {
|
584
|
-
"type": "string",
|
585
|
-
"kind": "expression"
|
586
|
-
}
|
587
|
-
},
|
588
|
-
{
|
589
|
-
"name": "cancel-text",
|
590
|
-
"default": "-",
|
591
|
-
"description": "取消按钮文字",
|
592
|
-
"value": {
|
593
|
-
"type": "string",
|
594
|
-
"kind": "expression"
|
595
|
-
}
|
596
|
-
},
|
597
|
-
{
|
598
|
-
"name": "description",
|
599
|
-
"default": "-",
|
600
|
-
"description": "选项上方的描述信息",
|
601
|
-
"value": {
|
602
|
-
"type": "string",
|
603
|
-
"kind": "expression"
|
604
|
-
}
|
605
|
-
},
|
606
|
-
{
|
607
|
-
"name": "closeable",
|
608
|
-
"default": "`true`",
|
609
|
-
"description": "是否显示关闭图标",
|
610
|
-
"value": {
|
611
|
-
"type": "boolean",
|
612
|
-
"kind": "expression"
|
613
|
-
}
|
614
|
-
},
|
615
|
-
{
|
616
|
-
"name": "close-icon",
|
617
|
-
"default": "`cross`",
|
618
|
-
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
|
619
|
-
"value": {
|
620
|
-
"type": "string",
|
621
|
-
"kind": "expression"
|
622
|
-
}
|
623
|
-
},
|
624
|
-
{
|
625
|
-
"name": "duration",
|
626
|
-
"default": "`0.3`",
|
627
|
-
"description": "动画时长,单位秒",
|
628
|
-
"value": {
|
629
|
-
"type": "number | string",
|
630
|
-
"kind": "expression"
|
631
|
-
}
|
632
|
-
},
|
633
|
-
{
|
634
|
-
"name": "round",
|
635
|
-
"default": "`true`",
|
636
|
-
"description": "是否显示圆角",
|
637
|
-
"value": {
|
638
|
-
"type": "boolean",
|
639
|
-
"kind": "expression"
|
640
|
-
}
|
641
|
-
},
|
642
|
-
{
|
643
|
-
"name": "overlay",
|
644
|
-
"default": "`true`",
|
645
|
-
"description": "是否显示遮罩层",
|
646
|
-
"value": {
|
647
|
-
"type": "boolean",
|
648
|
-
"kind": "expression"
|
649
|
-
}
|
650
|
-
},
|
651
|
-
{
|
652
|
-
"name": "lock-scroll",
|
653
|
-
"default": "`true`",
|
654
|
-
"description": "是否锁定背景滚动",
|
655
|
-
"value": {
|
656
|
-
"type": "boolean",
|
657
|
-
"kind": "expression"
|
658
|
-
}
|
659
|
-
},
|
660
|
-
{
|
661
|
-
"name": "lazy-render",
|
662
|
-
"default": "`true`",
|
663
|
-
"description": "是否在显示弹层时才渲染节点",
|
664
|
-
"value": {
|
665
|
-
"type": "boolean",
|
666
|
-
"kind": "expression"
|
667
|
-
}
|
668
|
-
},
|
669
|
-
{
|
670
|
-
"name": "close-on-popstate",
|
671
|
-
"default": "`false`",
|
672
|
-
"description": "是否在页面回退时自动关闭",
|
673
|
-
"value": {
|
674
|
-
"type": "boolean",
|
675
|
-
"kind": "expression"
|
676
|
-
}
|
677
|
-
},
|
678
|
-
{
|
679
|
-
"name": "close-on-click-action",
|
680
|
-
"default": "`false`",
|
681
|
-
"description": "是否在点击选项后关闭",
|
682
|
-
"value": {
|
683
|
-
"type": "boolean",
|
684
|
-
"kind": "expression"
|
685
|
-
}
|
686
|
-
},
|
687
|
-
{
|
688
|
-
"name": "close-on-click-overlay",
|
689
|
-
"default": "`true`",
|
690
|
-
"description": "是否在点击遮罩层后关闭",
|
691
|
-
"value": {
|
692
|
-
"type": "boolean",
|
693
|
-
"kind": "expression"
|
694
|
-
}
|
695
|
-
},
|
696
|
-
{
|
697
|
-
"name": "safe-area-inset-bottom",
|
698
|
-
"default": "`true`",
|
699
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
700
|
-
"value": {
|
701
|
-
"type": "boolean",
|
702
|
-
"kind": "expression"
|
703
|
-
}
|
704
|
-
},
|
705
|
-
{
|
706
|
-
"name": "get-container",
|
707
|
-
"default": "-",
|
708
|
-
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
709
|
-
"value": {
|
710
|
-
"type": "string | () => Element",
|
711
|
-
"kind": "expression"
|
712
|
-
}
|
713
|
-
}
|
714
|
-
]
|
715
|
-
},
|
716
|
-
{
|
717
|
-
"name": "van-button",
|
718
|
-
"slots": [
|
719
|
-
{
|
720
|
-
"name": "default",
|
721
|
-
"description": "按钮内容"
|
722
|
-
},
|
723
|
-
{
|
724
|
-
"name": "icon",
|
725
|
-
"description": "自定义图标"
|
726
|
-
},
|
727
|
-
{
|
728
|
-
"name": "loading",
|
729
|
-
"description": "自定义加载图标"
|
730
|
-
}
|
731
|
-
],
|
732
|
-
"events": [
|
733
|
-
{
|
734
|
-
"name": "click",
|
735
|
-
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
736
|
-
},
|
737
|
-
{
|
738
|
-
"name": "touchstart",
|
739
|
-
"description": "开始触摸按钮时触发"
|
740
|
-
}
|
741
|
-
],
|
742
|
-
"attributes": [
|
743
|
-
{
|
744
|
-
"name": "type",
|
745
|
-
"default": "`default`",
|
746
|
-
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
747
|
-
"value": {
|
748
|
-
"type": "string",
|
749
|
-
"kind": "expression"
|
750
|
-
}
|
751
|
-
},
|
752
|
-
{
|
753
|
-
"name": "size",
|
754
|
-
"default": "`normal`",
|
755
|
-
"description": "尺寸,可选值为 `large` `small` `mini`",
|
756
|
-
"value": {
|
757
|
-
"type": "string",
|
758
|
-
"kind": "expression"
|
759
|
-
}
|
760
|
-
},
|
761
|
-
{
|
762
|
-
"name": "text",
|
763
|
-
"default": "-",
|
764
|
-
"description": "按钮文字",
|
765
|
-
"value": {
|
766
|
-
"type": "string",
|
767
|
-
"kind": "expression"
|
768
|
-
}
|
769
|
-
},
|
770
|
-
{
|
771
|
-
"name": "color",
|
772
|
-
"default": "-",
|
773
|
-
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
774
|
-
"value": {
|
775
|
-
"type": "string",
|
776
|
-
"kind": "expression"
|
777
|
-
}
|
778
|
-
},
|
779
|
-
{
|
780
|
-
"name": "icon",
|
781
|
-
"default": "-",
|
782
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
783
|
-
"value": {
|
784
|
-
"type": "string",
|
785
|
-
"kind": "expression"
|
786
|
-
}
|
787
|
-
},
|
788
|
-
{
|
789
|
-
"name": "icon-prefix",
|
790
|
-
"default": "`van-icon`",
|
791
|
-
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
792
|
-
"value": {
|
793
|
-
"type": "string",
|
794
|
-
"kind": "expression"
|
795
|
-
}
|
796
|
-
},
|
797
|
-
{
|
798
|
-
"name": "icon-position",
|
799
|
-
"default": "`left`",
|
800
|
-
"description": "图标展示位置,可选值为 `right`",
|
801
|
-
"value": {
|
802
|
-
"type": "string",
|
803
|
-
"kind": "expression"
|
804
|
-
}
|
805
|
-
},
|
806
|
-
{
|
807
|
-
"name": "tag",
|
808
|
-
"default": "`button`",
|
809
|
-
"description": "按钮根节点的 HTML 标签",
|
520
|
+
"name": "disabled-list",
|
521
|
+
"default": "`[]`",
|
522
|
+
"description": "不可配送地址列表",
|
810
523
|
"value": {
|
811
|
-
"type": "
|
524
|
+
"type": "Address[]",
|
812
525
|
"kind": "expression"
|
813
526
|
}
|
814
527
|
},
|
815
528
|
{
|
816
|
-
"name": "
|
529
|
+
"name": "disabled-text",
|
817
530
|
"default": "-",
|
818
|
-
"description": "
|
531
|
+
"description": "不可配送提示文案",
|
819
532
|
"value": {
|
820
533
|
"type": "string",
|
821
534
|
"kind": "expression"
|
822
535
|
}
|
823
536
|
},
|
824
537
|
{
|
825
|
-
"name": "
|
826
|
-
"default": "`
|
827
|
-
"description": "
|
828
|
-
"value": {
|
829
|
-
"type": "boolean",
|
830
|
-
"kind": "expression"
|
831
|
-
}
|
832
|
-
},
|
833
|
-
{
|
834
|
-
"name": "plain",
|
835
|
-
"default": "`false`",
|
836
|
-
"description": "是否为朴素按钮",
|
837
|
-
"value": {
|
838
|
-
"type": "boolean",
|
839
|
-
"kind": "expression"
|
840
|
-
}
|
841
|
-
},
|
842
|
-
{
|
843
|
-
"name": "square",
|
844
|
-
"default": "`false`",
|
845
|
-
"description": "是否为方形按钮",
|
538
|
+
"name": "switchable",
|
539
|
+
"default": "`true`",
|
540
|
+
"description": "是否允许切换地址",
|
846
541
|
"value": {
|
847
542
|
"type": "boolean",
|
848
543
|
"kind": "expression"
|
849
544
|
}
|
850
545
|
},
|
851
546
|
{
|
852
|
-
"name": "
|
853
|
-
"default": "
|
854
|
-
"description": "
|
547
|
+
"name": "add-button-text",
|
548
|
+
"default": "`新增地址`",
|
549
|
+
"description": "底部按钮文字",
|
855
550
|
"value": {
|
856
|
-
"type": "
|
551
|
+
"type": "string",
|
857
552
|
"kind": "expression"
|
858
553
|
}
|
859
554
|
},
|
860
555
|
{
|
861
|
-
"name": "
|
862
|
-
"default": "
|
863
|
-
"description": "
|
556
|
+
"name": "default-tag-text",
|
557
|
+
"default": "-",
|
558
|
+
"description": "默认地址标签文字",
|
864
559
|
"value": {
|
865
|
-
"type": "
|
560
|
+
"type": "string",
|
866
561
|
"kind": "expression"
|
867
562
|
}
|
868
|
-
}
|
563
|
+
}
|
564
|
+
]
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"name": "van-badge",
|
568
|
+
"slots": [
|
869
569
|
{
|
870
|
-
"name": "
|
871
|
-
"
|
872
|
-
"description": "是否使用 0.5px 边框",
|
873
|
-
"value": {
|
874
|
-
"type": "boolean",
|
875
|
-
"kind": "expression"
|
876
|
-
}
|
570
|
+
"name": "default",
|
571
|
+
"description": "徽标包裹的子元素"
|
877
572
|
},
|
878
573
|
{
|
879
|
-
"name": "
|
880
|
-
"
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
}
|
886
|
-
},
|
574
|
+
"name": "content",
|
575
|
+
"description": "自定义徽标内容"
|
576
|
+
}
|
577
|
+
],
|
578
|
+
"events": [],
|
579
|
+
"attributes": [
|
887
580
|
{
|
888
|
-
"name": "
|
581
|
+
"name": "content",
|
889
582
|
"default": "-",
|
890
|
-
"description": "
|
891
|
-
"value": {
|
892
|
-
"type": "string",
|
893
|
-
"kind": "expression"
|
894
|
-
}
|
895
|
-
},
|
896
|
-
{
|
897
|
-
"name": "loading-type",
|
898
|
-
"default": "`circular`",
|
899
|
-
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
|
583
|
+
"description": "徽标内容",
|
900
584
|
"value": {
|
901
|
-
"type": "string",
|
585
|
+
"type": "number | string",
|
902
586
|
"kind": "expression"
|
903
587
|
}
|
904
588
|
},
|
905
589
|
{
|
906
|
-
"name": "
|
907
|
-
"default": "`
|
908
|
-
"description": "
|
590
|
+
"name": "color",
|
591
|
+
"default": "`#ee0a24`",
|
592
|
+
"description": "徽标背景颜色",
|
909
593
|
"value": {
|
910
594
|
"type": "string",
|
911
595
|
"kind": "expression"
|
912
596
|
}
|
913
597
|
},
|
914
598
|
{
|
915
|
-
"name": "
|
916
|
-
"default": "
|
917
|
-
"description": "
|
599
|
+
"name": "dot",
|
600
|
+
"default": "`false`",
|
601
|
+
"description": "是否展示为小红点",
|
918
602
|
"value": {
|
919
|
-
"type": "
|
603
|
+
"type": "boolean",
|
920
604
|
"kind": "expression"
|
921
605
|
}
|
922
606
|
},
|
923
607
|
{
|
924
|
-
"name": "
|
608
|
+
"name": "max",
|
925
609
|
"default": "-",
|
926
|
-
"description": "
|
927
|
-
"value": {
|
928
|
-
"type": "string | object",
|
929
|
-
"kind": "expression"
|
930
|
-
}
|
931
|
-
},
|
932
|
-
{
|
933
|
-
"name": "replace",
|
934
|
-
"default": "`false`",
|
935
|
-
"description": "是否在跳转时替换当前页面历史",
|
610
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
936
611
|
"value": {
|
937
|
-
"type": "
|
612
|
+
"type": "number | string",
|
938
613
|
"kind": "expression"
|
939
614
|
}
|
940
615
|
}
|
@@ -1289,52 +964,150 @@
|
|
1289
964
|
]
|
1290
965
|
},
|
1291
966
|
{
|
1292
|
-
"name": "van-
|
967
|
+
"name": "van-area",
|
1293
968
|
"slots": [
|
1294
969
|
{
|
1295
|
-
"name": "
|
1296
|
-
"description": "
|
970
|
+
"name": "title",
|
971
|
+
"description": "自定义标题内容"
|
1297
972
|
},
|
1298
973
|
{
|
1299
|
-
"name": "
|
1300
|
-
"description": "
|
974
|
+
"name": "columns-top",
|
975
|
+
"description": "自定义选项上方内容"
|
976
|
+
},
|
977
|
+
{
|
978
|
+
"name": "columns-bottom",
|
979
|
+
"description": "自定义选项下方内容"
|
980
|
+
}
|
981
|
+
],
|
982
|
+
"events": [
|
983
|
+
{
|
984
|
+
"name": "confirm",
|
985
|
+
"description": "点击右上方完成按钮"
|
986
|
+
},
|
987
|
+
{
|
988
|
+
"name": "cancel",
|
989
|
+
"description": "点击取消按钮时"
|
990
|
+
},
|
991
|
+
{
|
992
|
+
"name": "change",
|
993
|
+
"description": "选项改变时触发"
|
1301
994
|
}
|
1302
995
|
],
|
1303
|
-
"events": [],
|
1304
996
|
"attributes": [
|
1305
997
|
{
|
1306
|
-
"name": "
|
998
|
+
"name": "value",
|
1307
999
|
"default": "-",
|
1308
|
-
"description": "
|
1000
|
+
"description": "当前选中的省市区`code`",
|
1001
|
+
"value": {
|
1002
|
+
"type": "string",
|
1003
|
+
"kind": "expression"
|
1004
|
+
}
|
1005
|
+
},
|
1006
|
+
{
|
1007
|
+
"name": "title",
|
1008
|
+
"default": "-",
|
1009
|
+
"description": "顶部栏标题",
|
1010
|
+
"value": {
|
1011
|
+
"type": "string",
|
1012
|
+
"kind": "expression"
|
1013
|
+
}
|
1014
|
+
},
|
1015
|
+
{
|
1016
|
+
"name": "confirm-button-text",
|
1017
|
+
"default": "`确认`",
|
1018
|
+
"description": "确认按钮文字",
|
1019
|
+
"value": {
|
1020
|
+
"type": "string",
|
1021
|
+
"kind": "expression"
|
1022
|
+
}
|
1023
|
+
},
|
1024
|
+
{
|
1025
|
+
"name": "cancel-button-text",
|
1026
|
+
"default": "`取消`",
|
1027
|
+
"description": "取消按钮文字",
|
1028
|
+
"value": {
|
1029
|
+
"type": "string",
|
1030
|
+
"kind": "expression"
|
1031
|
+
}
|
1032
|
+
},
|
1033
|
+
{
|
1034
|
+
"name": "area-list",
|
1035
|
+
"default": "-",
|
1036
|
+
"description": "省市区数据,格式见下方",
|
1037
|
+
"value": {
|
1038
|
+
"type": "object",
|
1039
|
+
"kind": "expression"
|
1040
|
+
}
|
1041
|
+
},
|
1042
|
+
{
|
1043
|
+
"name": "columns-placeholder",
|
1044
|
+
"default": "`[]`",
|
1045
|
+
"description": "列占位提示文字",
|
1046
|
+
"value": {
|
1047
|
+
"type": "string[]",
|
1048
|
+
"kind": "expression"
|
1049
|
+
}
|
1050
|
+
},
|
1051
|
+
{
|
1052
|
+
"name": "loading",
|
1053
|
+
"default": "`false`",
|
1054
|
+
"description": "是否显示加载状态",
|
1055
|
+
"value": {
|
1056
|
+
"type": "boolean",
|
1057
|
+
"kind": "expression"
|
1058
|
+
}
|
1059
|
+
},
|
1060
|
+
{
|
1061
|
+
"name": "readonly",
|
1062
|
+
"default": "`false`",
|
1063
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
1064
|
+
"value": {
|
1065
|
+
"type": "boolean",
|
1066
|
+
"kind": "expression"
|
1067
|
+
}
|
1068
|
+
},
|
1069
|
+
{
|
1070
|
+
"name": "item-height",
|
1071
|
+
"default": "`44`",
|
1072
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
1073
|
+
"value": {
|
1074
|
+
"type": "number | string",
|
1075
|
+
"kind": "expression"
|
1076
|
+
}
|
1077
|
+
},
|
1078
|
+
{
|
1079
|
+
"name": "columns-num",
|
1080
|
+
"default": "`3`",
|
1081
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
1309
1082
|
"value": {
|
1310
1083
|
"type": "number | string",
|
1311
1084
|
"kind": "expression"
|
1312
1085
|
}
|
1313
1086
|
},
|
1314
1087
|
{
|
1315
|
-
"name": "
|
1316
|
-
"default": "
|
1317
|
-
"description": "
|
1088
|
+
"name": "visible-item-count",
|
1089
|
+
"default": "`6`",
|
1090
|
+
"description": "可见的选项个数",
|
1318
1091
|
"value": {
|
1319
|
-
"type": "string",
|
1092
|
+
"type": "number | string",
|
1320
1093
|
"kind": "expression"
|
1321
1094
|
}
|
1322
1095
|
},
|
1323
1096
|
{
|
1324
|
-
"name": "
|
1325
|
-
"default": "`
|
1326
|
-
"description": "
|
1097
|
+
"name": "swipe-duration",
|
1098
|
+
"default": "`1000`",
|
1099
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
1327
1100
|
"value": {
|
1328
|
-
"type": "
|
1101
|
+
"type": "number | string",
|
1329
1102
|
"kind": "expression"
|
1330
1103
|
}
|
1331
1104
|
},
|
1332
1105
|
{
|
1333
|
-
"name": "
|
1106
|
+
"name": "is-oversea-code",
|
1334
1107
|
"default": "-",
|
1335
|
-
"description": "
|
1108
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
1336
1109
|
"value": {
|
1337
|
-
"type": "
|
1110
|
+
"type": "() => boolean",
|
1338
1111
|
"kind": "expression"
|
1339
1112
|
}
|
1340
1113
|
}
|
@@ -1581,6 +1354,15 @@
|
|
1581
1354
|
"kind": "expression"
|
1582
1355
|
}
|
1583
1356
|
},
|
1357
|
+
{
|
1358
|
+
"name": "show-header",
|
1359
|
+
"default": "`true`",
|
1360
|
+
"description": "是否展示标题栏",
|
1361
|
+
"value": {
|
1362
|
+
"type": "boolean",
|
1363
|
+
"kind": "expression"
|
1364
|
+
}
|
1365
|
+
},
|
1584
1366
|
{
|
1585
1367
|
"name": "field-names",
|
1586
1368
|
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
@@ -1810,25 +1592,252 @@
|
|
1810
1592
|
"default": "-",
|
1811
1593
|
"description": "左侧标题额外类名",
|
1812
1594
|
"value": {
|
1813
|
-
"type": "any",
|
1595
|
+
"type": "any",
|
1596
|
+
"kind": "expression"
|
1597
|
+
}
|
1598
|
+
},
|
1599
|
+
{
|
1600
|
+
"name": "value-class",
|
1601
|
+
"default": "-",
|
1602
|
+
"description": "右侧内容额外类名",
|
1603
|
+
"value": {
|
1604
|
+
"type": "any",
|
1605
|
+
"kind": "expression"
|
1606
|
+
}
|
1607
|
+
},
|
1608
|
+
{
|
1609
|
+
"name": "label-class",
|
1610
|
+
"default": "-",
|
1611
|
+
"description": "描述信息额外类名",
|
1612
|
+
"value": {
|
1613
|
+
"type": "any",
|
1614
|
+
"kind": "expression"
|
1615
|
+
}
|
1616
|
+
}
|
1617
|
+
]
|
1618
|
+
},
|
1619
|
+
{
|
1620
|
+
"name": "van-button",
|
1621
|
+
"slots": [
|
1622
|
+
{
|
1623
|
+
"name": "default",
|
1624
|
+
"description": "按钮内容"
|
1625
|
+
},
|
1626
|
+
{
|
1627
|
+
"name": "icon",
|
1628
|
+
"description": "自定义图标"
|
1629
|
+
},
|
1630
|
+
{
|
1631
|
+
"name": "loading",
|
1632
|
+
"description": "自定义加载图标"
|
1633
|
+
}
|
1634
|
+
],
|
1635
|
+
"events": [
|
1636
|
+
{
|
1637
|
+
"name": "click",
|
1638
|
+
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
1639
|
+
},
|
1640
|
+
{
|
1641
|
+
"name": "touchstart",
|
1642
|
+
"description": "开始触摸按钮时触发"
|
1643
|
+
}
|
1644
|
+
],
|
1645
|
+
"attributes": [
|
1646
|
+
{
|
1647
|
+
"name": "type",
|
1648
|
+
"default": "`default`",
|
1649
|
+
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
1650
|
+
"value": {
|
1651
|
+
"type": "string",
|
1652
|
+
"kind": "expression"
|
1653
|
+
}
|
1654
|
+
},
|
1655
|
+
{
|
1656
|
+
"name": "size",
|
1657
|
+
"default": "`normal`",
|
1658
|
+
"description": "尺寸,可选值为 `large` `small` `mini`",
|
1659
|
+
"value": {
|
1660
|
+
"type": "string",
|
1661
|
+
"kind": "expression"
|
1662
|
+
}
|
1663
|
+
},
|
1664
|
+
{
|
1665
|
+
"name": "text",
|
1666
|
+
"default": "-",
|
1667
|
+
"description": "按钮文字",
|
1668
|
+
"value": {
|
1669
|
+
"type": "string",
|
1670
|
+
"kind": "expression"
|
1671
|
+
}
|
1672
|
+
},
|
1673
|
+
{
|
1674
|
+
"name": "color",
|
1675
|
+
"default": "-",
|
1676
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
1677
|
+
"value": {
|
1678
|
+
"type": "string",
|
1679
|
+
"kind": "expression"
|
1680
|
+
}
|
1681
|
+
},
|
1682
|
+
{
|
1683
|
+
"name": "icon",
|
1684
|
+
"default": "-",
|
1685
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
1686
|
+
"value": {
|
1687
|
+
"type": "string",
|
1688
|
+
"kind": "expression"
|
1689
|
+
}
|
1690
|
+
},
|
1691
|
+
{
|
1692
|
+
"name": "icon-prefix",
|
1693
|
+
"default": "`van-icon`",
|
1694
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
1695
|
+
"value": {
|
1696
|
+
"type": "string",
|
1697
|
+
"kind": "expression"
|
1698
|
+
}
|
1699
|
+
},
|
1700
|
+
{
|
1701
|
+
"name": "icon-position",
|
1702
|
+
"default": "`left`",
|
1703
|
+
"description": "图标展示位置,可选值为 `right`",
|
1704
|
+
"value": {
|
1705
|
+
"type": "string",
|
1706
|
+
"kind": "expression"
|
1707
|
+
}
|
1708
|
+
},
|
1709
|
+
{
|
1710
|
+
"name": "tag",
|
1711
|
+
"default": "`button`",
|
1712
|
+
"description": "按钮根节点的 HTML 标签",
|
1713
|
+
"value": {
|
1714
|
+
"type": "string",
|
1715
|
+
"kind": "expression"
|
1716
|
+
}
|
1717
|
+
},
|
1718
|
+
{
|
1719
|
+
"name": "native-type",
|
1720
|
+
"default": "-",
|
1721
|
+
"description": "原生 button 标签的 type 属性",
|
1722
|
+
"value": {
|
1723
|
+
"type": "string",
|
1724
|
+
"kind": "expression"
|
1725
|
+
}
|
1726
|
+
},
|
1727
|
+
{
|
1728
|
+
"name": "block",
|
1729
|
+
"default": "`false`",
|
1730
|
+
"description": "是否为块级元素",
|
1731
|
+
"value": {
|
1732
|
+
"type": "boolean",
|
1733
|
+
"kind": "expression"
|
1734
|
+
}
|
1735
|
+
},
|
1736
|
+
{
|
1737
|
+
"name": "plain",
|
1738
|
+
"default": "`false`",
|
1739
|
+
"description": "是否为朴素按钮",
|
1740
|
+
"value": {
|
1741
|
+
"type": "boolean",
|
1742
|
+
"kind": "expression"
|
1743
|
+
}
|
1744
|
+
},
|
1745
|
+
{
|
1746
|
+
"name": "square",
|
1747
|
+
"default": "`false`",
|
1748
|
+
"description": "是否为方形按钮",
|
1749
|
+
"value": {
|
1750
|
+
"type": "boolean",
|
1751
|
+
"kind": "expression"
|
1752
|
+
}
|
1753
|
+
},
|
1754
|
+
{
|
1755
|
+
"name": "round",
|
1756
|
+
"default": "`false`",
|
1757
|
+
"description": "是否为圆形按钮",
|
1758
|
+
"value": {
|
1759
|
+
"type": "boolean",
|
1760
|
+
"kind": "expression"
|
1761
|
+
}
|
1762
|
+
},
|
1763
|
+
{
|
1764
|
+
"name": "disabled",
|
1765
|
+
"default": "`false`",
|
1766
|
+
"description": "是否禁用按钮",
|
1767
|
+
"value": {
|
1768
|
+
"type": "boolean",
|
1769
|
+
"kind": "expression"
|
1770
|
+
}
|
1771
|
+
},
|
1772
|
+
{
|
1773
|
+
"name": "hairline",
|
1774
|
+
"default": "`false`",
|
1775
|
+
"description": "是否使用 0.5px 边框",
|
1776
|
+
"value": {
|
1777
|
+
"type": "boolean",
|
1778
|
+
"kind": "expression"
|
1779
|
+
}
|
1780
|
+
},
|
1781
|
+
{
|
1782
|
+
"name": "loading",
|
1783
|
+
"default": "`false`",
|
1784
|
+
"description": "是否显示为加载状态",
|
1785
|
+
"value": {
|
1786
|
+
"type": "boolean",
|
1787
|
+
"kind": "expression"
|
1788
|
+
}
|
1789
|
+
},
|
1790
|
+
{
|
1791
|
+
"name": "loading-text",
|
1792
|
+
"default": "-",
|
1793
|
+
"description": "加载状态提示文字",
|
1794
|
+
"value": {
|
1795
|
+
"type": "string",
|
1796
|
+
"kind": "expression"
|
1797
|
+
}
|
1798
|
+
},
|
1799
|
+
{
|
1800
|
+
"name": "loading-type",
|
1801
|
+
"default": "`circular`",
|
1802
|
+
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
|
1803
|
+
"value": {
|
1804
|
+
"type": "string",
|
1805
|
+
"kind": "expression"
|
1806
|
+
}
|
1807
|
+
},
|
1808
|
+
{
|
1809
|
+
"name": "loading-size",
|
1810
|
+
"default": "`20px`",
|
1811
|
+
"description": "加载图标大小",
|
1812
|
+
"value": {
|
1813
|
+
"type": "string",
|
1814
|
+
"kind": "expression"
|
1815
|
+
}
|
1816
|
+
},
|
1817
|
+
{
|
1818
|
+
"name": "url",
|
1819
|
+
"default": "-",
|
1820
|
+
"description": "点击后跳转的链接地址",
|
1821
|
+
"value": {
|
1822
|
+
"type": "string",
|
1814
1823
|
"kind": "expression"
|
1815
1824
|
}
|
1816
1825
|
},
|
1817
1826
|
{
|
1818
|
-
"name": "
|
1827
|
+
"name": "to",
|
1819
1828
|
"default": "-",
|
1820
|
-
"description": "
|
1829
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
1821
1830
|
"value": {
|
1822
|
-
"type": "
|
1831
|
+
"type": "string | object",
|
1823
1832
|
"kind": "expression"
|
1824
1833
|
}
|
1825
1834
|
},
|
1826
1835
|
{
|
1827
|
-
"name": "
|
1828
|
-
"default": "
|
1829
|
-
"description": "
|
1836
|
+
"name": "replace",
|
1837
|
+
"default": "`false`",
|
1838
|
+
"description": "是否在跳转时替换当前页面历史",
|
1830
1839
|
"value": {
|
1831
|
-
"type": "
|
1840
|
+
"type": "boolean",
|
1832
1841
|
"kind": "expression"
|
1833
1842
|
}
|
1834
1843
|
}
|
@@ -2837,274 +2846,40 @@
|
|
2837
2846
|
"type": "string",
|
2838
2847
|
"kind": "expression"
|
2839
2848
|
}
|
2840
|
-
},
|
2841
|
-
{
|
2842
|
-
"name": "show-exchange-bar",
|
2843
|
-
"default": "`true`",
|
2844
|
-
"description": "是否展示兑换栏",
|
2845
|
-
"value": {
|
2846
|
-
"type": "boolean",
|
2847
|
-
"kind": "expression"
|
2848
|
-
}
|
2849
|
-
},
|
2850
|
-
{
|
2851
|
-
"name": "currency",
|
2852
|
-
"default": "`¥`",
|
2853
|
-
"description": "货币符号",
|
2854
|
-
"value": {
|
2855
|
-
"type": "string",
|
2856
|
-
"kind": "expression"
|
2857
|
-
}
|
2858
|
-
},
|
2859
|
-
{
|
2860
|
-
"name": "empty-image",
|
2861
|
-
"default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
|
2862
|
-
"description": "列表为空时的占位图",
|
2863
|
-
"value": {
|
2864
|
-
"type": "string",
|
2865
|
-
"kind": "expression"
|
2866
|
-
}
|
2867
|
-
},
|
2868
|
-
{
|
2869
|
-
"name": "show-count",
|
2870
|
-
"default": "`true`",
|
2871
|
-
"description": "是否展示可用 / 不可用数量",
|
2872
|
-
"value": {
|
2873
|
-
"type": "boolean",
|
2874
|
-
"kind": "expression"
|
2875
|
-
}
|
2876
|
-
}
|
2877
|
-
]
|
2878
|
-
},
|
2879
|
-
{
|
2880
|
-
"name": "van-datetime-picker",
|
2881
|
-
"slots": [
|
2882
|
-
{
|
2883
|
-
"name": "default",
|
2884
|
-
"description": "自定义整个顶部栏的内容"
|
2885
|
-
},
|
2886
|
-
{
|
2887
|
-
"name": "title",
|
2888
|
-
"description": "自定义标题内容"
|
2889
|
-
},
|
2890
|
-
{
|
2891
|
-
"name": "confirm",
|
2892
|
-
"description": "自定义确认按钮内容"
|
2893
|
-
},
|
2894
|
-
{
|
2895
|
-
"name": "cancel",
|
2896
|
-
"description": "自定义取消按钮内容"
|
2897
|
-
},
|
2898
|
-
{
|
2899
|
-
"name": "option",
|
2900
|
-
"description": "自定义选项内容"
|
2901
|
-
},
|
2902
|
-
{
|
2903
|
-
"name": "columns-top",
|
2904
|
-
"description": "自定义选项上方内容"
|
2905
|
-
},
|
2906
|
-
{
|
2907
|
-
"name": "columns-bottom",
|
2908
|
-
"description": "自定义选项下方内容"
|
2909
|
-
}
|
2910
|
-
],
|
2911
|
-
"events": [
|
2912
|
-
{
|
2913
|
-
"name": "change",
|
2914
|
-
"description": "当值变化时触发的事件"
|
2915
|
-
},
|
2916
|
-
{
|
2917
|
-
"name": "confirm",
|
2918
|
-
"description": "点击完成按钮时触发的事件"
|
2919
|
-
},
|
2920
|
-
{
|
2921
|
-
"name": "cancel",
|
2922
|
-
"description": "点击取消按钮时触发的事件"
|
2923
|
-
}
|
2924
|
-
],
|
2925
|
-
"attributes": [
|
2926
|
-
{
|
2927
|
-
"name": "type",
|
2928
|
-
"default": "`datetime`",
|
2929
|
-
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
|
2930
|
-
"value": {
|
2931
|
-
"type": "string",
|
2932
|
-
"kind": "expression"
|
2933
|
-
}
|
2934
|
-
},
|
2935
|
-
{
|
2936
|
-
"name": "title",
|
2937
|
-
"default": "`''`",
|
2938
|
-
"description": "顶部栏标题",
|
2939
|
-
"value": {
|
2940
|
-
"type": "string",
|
2941
|
-
"kind": "expression"
|
2942
|
-
}
|
2943
|
-
},
|
2944
|
-
{
|
2945
|
-
"name": "confirm-button-text",
|
2946
|
-
"default": "`确认`",
|
2947
|
-
"description": "确认按钮文字",
|
2948
|
-
"value": {
|
2949
|
-
"type": "string",
|
2950
|
-
"kind": "expression"
|
2951
|
-
}
|
2952
|
-
},
|
2953
|
-
{
|
2954
|
-
"name": "cancel-button-text",
|
2955
|
-
"default": "`取消`",
|
2956
|
-
"description": "取消按钮文字",
|
2957
|
-
"value": {
|
2958
|
-
"type": "string",
|
2959
|
-
"kind": "expression"
|
2960
|
-
}
|
2961
|
-
},
|
2962
|
-
{
|
2963
|
-
"name": "show-toolbar",
|
2964
|
-
"default": "`true`",
|
2965
|
-
"description": "是否显示顶部栏",
|
2966
|
-
"value": {
|
2967
|
-
"type": "boolean",
|
2968
|
-
"kind": "expression"
|
2969
|
-
}
|
2970
|
-
},
|
2971
|
-
{
|
2972
|
-
"name": "loading",
|
2973
|
-
"default": "`false`",
|
2974
|
-
"description": "是否显示加载状态",
|
2975
|
-
"value": {
|
2976
|
-
"type": "boolean",
|
2977
|
-
"kind": "expression"
|
2978
|
-
}
|
2979
|
-
},
|
2980
|
-
{
|
2981
|
-
"name": "readonly",
|
2982
|
-
"default": "`false`",
|
2983
|
-
"description": "是否为只读状态,只读状态下无法切换选项",
|
2984
|
-
"value": {
|
2985
|
-
"type": "boolean",
|
2986
|
-
"kind": "expression"
|
2987
|
-
}
|
2988
|
-
},
|
2989
|
-
{
|
2990
|
-
"name": "filter",
|
2991
|
-
"default": "-",
|
2992
|
-
"description": "选项过滤函数",
|
2993
|
-
"value": {
|
2994
|
-
"type": "(type, vals) => vals",
|
2995
|
-
"kind": "expression"
|
2996
|
-
}
|
2997
|
-
},
|
2998
|
-
{
|
2999
|
-
"name": "formatter",
|
3000
|
-
"default": "-",
|
3001
|
-
"description": "选项格式化函数",
|
3002
|
-
"value": {
|
3003
|
-
"type": "(type, val) => val",
|
3004
|
-
"kind": "expression"
|
3005
|
-
}
|
3006
|
-
},
|
3007
|
-
{
|
3008
|
-
"name": "columns-order",
|
3009
|
-
"default": "-",
|
3010
|
-
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
3011
|
-
"value": {
|
3012
|
-
"type": "string[]",
|
3013
|
-
"kind": "expression"
|
3014
|
-
}
|
3015
|
-
},
|
3016
|
-
{
|
3017
|
-
"name": "item-height",
|
3018
|
-
"default": "`44`",
|
3019
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
3020
|
-
"value": {
|
3021
|
-
"type": "number | string",
|
3022
|
-
"kind": "expression"
|
3023
|
-
}
|
3024
|
-
},
|
3025
|
-
{
|
3026
|
-
"name": "visible-item-count",
|
3027
|
-
"default": "`6`",
|
3028
|
-
"description": "可见的选项个数",
|
3029
|
-
"value": {
|
3030
|
-
"type": "number | string",
|
3031
|
-
"kind": "expression"
|
3032
|
-
}
|
3033
|
-
},
|
3034
|
-
{
|
3035
|
-
"name": "swipe-duration",
|
3036
|
-
"default": "`1000`",
|
3037
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
3038
|
-
"value": {
|
3039
|
-
"type": "number | string",
|
3040
|
-
"kind": "expression"
|
3041
|
-
}
|
3042
|
-
}
|
3043
|
-
]
|
3044
|
-
},
|
3045
|
-
{
|
3046
|
-
"name": "van-date-picker",
|
3047
|
-
"slots": [],
|
3048
|
-
"events": [],
|
3049
|
-
"attributes": [
|
3050
|
-
{
|
3051
|
-
"name": "min-date",
|
3052
|
-
"default": "十年前",
|
3053
|
-
"description": "可选的最小时间,精确到分钟",
|
3054
|
-
"value": {
|
3055
|
-
"type": "Date",
|
3056
|
-
"kind": "expression"
|
3057
|
-
}
|
3058
|
-
},
|
3059
|
-
{
|
3060
|
-
"name": "max-date",
|
3061
|
-
"default": "十年后",
|
3062
|
-
"description": "可选的最大时间,精确到分钟",
|
3063
|
-
"value": {
|
3064
|
-
"type": "Date",
|
3065
|
-
"kind": "expression"
|
3066
|
-
}
|
3067
|
-
}
|
3068
|
-
]
|
3069
|
-
},
|
3070
|
-
{
|
3071
|
-
"name": "van-time-picker",
|
3072
|
-
"slots": [],
|
3073
|
-
"events": [],
|
3074
|
-
"attributes": [
|
3075
|
-
{
|
3076
|
-
"name": "min-hour",
|
3077
|
-
"default": "`0`",
|
3078
|
-
"description": "可选的最小小时",
|
2849
|
+
},
|
2850
|
+
{
|
2851
|
+
"name": "show-exchange-bar",
|
2852
|
+
"default": "`true`",
|
2853
|
+
"description": "是否展示兑换栏",
|
3079
2854
|
"value": {
|
3080
|
-
"type": "
|
2855
|
+
"type": "boolean",
|
3081
2856
|
"kind": "expression"
|
3082
2857
|
}
|
3083
2858
|
},
|
3084
2859
|
{
|
3085
|
-
"name": "
|
3086
|
-
"default": "
|
3087
|
-
"description": "
|
2860
|
+
"name": "currency",
|
2861
|
+
"default": "`¥`",
|
2862
|
+
"description": "货币符号",
|
3088
2863
|
"value": {
|
3089
|
-
"type": "
|
2864
|
+
"type": "string",
|
3090
2865
|
"kind": "expression"
|
3091
2866
|
}
|
3092
2867
|
},
|
3093
2868
|
{
|
3094
|
-
"name": "
|
3095
|
-
"default": "`
|
3096
|
-
"description": "
|
2869
|
+
"name": "empty-image",
|
2870
|
+
"default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
|
2871
|
+
"description": "列表为空时的占位图",
|
3097
2872
|
"value": {
|
3098
|
-
"type": "
|
2873
|
+
"type": "string",
|
3099
2874
|
"kind": "expression"
|
3100
2875
|
}
|
3101
2876
|
},
|
3102
2877
|
{
|
3103
|
-
"name": "
|
3104
|
-
"default": "`
|
3105
|
-
"description": "
|
2878
|
+
"name": "show-count",
|
2879
|
+
"default": "`true`",
|
2880
|
+
"description": "是否展示可用 / 不可用数量",
|
3106
2881
|
"value": {
|
3107
|
-
"type": "
|
2882
|
+
"type": "boolean",
|
3108
2883
|
"kind": "expression"
|
3109
2884
|
}
|
3110
2885
|
}
|
@@ -3316,43 +3091,277 @@
|
|
3316
3091
|
"default": "`true`",
|
3317
3092
|
"description": "是否锁定背景滚动",
|
3318
3093
|
"value": {
|
3319
|
-
"type": "boolean",
|
3094
|
+
"type": "boolean",
|
3095
|
+
"kind": "expression"
|
3096
|
+
}
|
3097
|
+
},
|
3098
|
+
{
|
3099
|
+
"name": "allow-html",
|
3100
|
+
"default": "`true`",
|
3101
|
+
"description": "是否允许 message 内容中渲染 HTML",
|
3102
|
+
"value": {
|
3103
|
+
"type": "boolean",
|
3104
|
+
"kind": "expression"
|
3105
|
+
}
|
3106
|
+
},
|
3107
|
+
{
|
3108
|
+
"name": "before-close",
|
3109
|
+
"default": "-",
|
3110
|
+
"description": "关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭",
|
3111
|
+
"value": {
|
3112
|
+
"type": "(action, done) => void",
|
3113
|
+
"kind": "expression"
|
3114
|
+
}
|
3115
|
+
},
|
3116
|
+
{
|
3117
|
+
"name": "transition",
|
3118
|
+
"default": "-",
|
3119
|
+
"description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
|
3120
|
+
"value": {
|
3121
|
+
"type": "string",
|
3122
|
+
"kind": "expression"
|
3123
|
+
}
|
3124
|
+
},
|
3125
|
+
{
|
3126
|
+
"name": "get-container",
|
3127
|
+
"default": "-",
|
3128
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
3129
|
+
"value": {
|
3130
|
+
"type": "string | () => Element",
|
3131
|
+
"kind": "expression"
|
3132
|
+
}
|
3133
|
+
}
|
3134
|
+
]
|
3135
|
+
},
|
3136
|
+
{
|
3137
|
+
"name": "van-datetime-picker",
|
3138
|
+
"slots": [
|
3139
|
+
{
|
3140
|
+
"name": "default",
|
3141
|
+
"description": "自定义整个顶部栏的内容"
|
3142
|
+
},
|
3143
|
+
{
|
3144
|
+
"name": "title",
|
3145
|
+
"description": "自定义标题内容"
|
3146
|
+
},
|
3147
|
+
{
|
3148
|
+
"name": "confirm",
|
3149
|
+
"description": "自定义确认按钮内容"
|
3150
|
+
},
|
3151
|
+
{
|
3152
|
+
"name": "cancel",
|
3153
|
+
"description": "自定义取消按钮内容"
|
3154
|
+
},
|
3155
|
+
{
|
3156
|
+
"name": "option",
|
3157
|
+
"description": "自定义选项内容"
|
3158
|
+
},
|
3159
|
+
{
|
3160
|
+
"name": "columns-top",
|
3161
|
+
"description": "自定义选项上方内容"
|
3162
|
+
},
|
3163
|
+
{
|
3164
|
+
"name": "columns-bottom",
|
3165
|
+
"description": "自定义选项下方内容"
|
3166
|
+
}
|
3167
|
+
],
|
3168
|
+
"events": [
|
3169
|
+
{
|
3170
|
+
"name": "change",
|
3171
|
+
"description": "当值变化时触发的事件"
|
3172
|
+
},
|
3173
|
+
{
|
3174
|
+
"name": "confirm",
|
3175
|
+
"description": "点击完成按钮时触发的事件"
|
3176
|
+
},
|
3177
|
+
{
|
3178
|
+
"name": "cancel",
|
3179
|
+
"description": "点击取消按钮时触发的事件"
|
3180
|
+
}
|
3181
|
+
],
|
3182
|
+
"attributes": [
|
3183
|
+
{
|
3184
|
+
"name": "type",
|
3185
|
+
"default": "`datetime`",
|
3186
|
+
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
|
3187
|
+
"value": {
|
3188
|
+
"type": "string",
|
3189
|
+
"kind": "expression"
|
3190
|
+
}
|
3191
|
+
},
|
3192
|
+
{
|
3193
|
+
"name": "title",
|
3194
|
+
"default": "`''`",
|
3195
|
+
"description": "顶部栏标题",
|
3196
|
+
"value": {
|
3197
|
+
"type": "string",
|
3198
|
+
"kind": "expression"
|
3199
|
+
}
|
3200
|
+
},
|
3201
|
+
{
|
3202
|
+
"name": "confirm-button-text",
|
3203
|
+
"default": "`确认`",
|
3204
|
+
"description": "确认按钮文字",
|
3205
|
+
"value": {
|
3206
|
+
"type": "string",
|
3207
|
+
"kind": "expression"
|
3208
|
+
}
|
3209
|
+
},
|
3210
|
+
{
|
3211
|
+
"name": "cancel-button-text",
|
3212
|
+
"default": "`取消`",
|
3213
|
+
"description": "取消按钮文字",
|
3214
|
+
"value": {
|
3215
|
+
"type": "string",
|
3216
|
+
"kind": "expression"
|
3217
|
+
}
|
3218
|
+
},
|
3219
|
+
{
|
3220
|
+
"name": "show-toolbar",
|
3221
|
+
"default": "`true`",
|
3222
|
+
"description": "是否显示顶部栏",
|
3223
|
+
"value": {
|
3224
|
+
"type": "boolean",
|
3225
|
+
"kind": "expression"
|
3226
|
+
}
|
3227
|
+
},
|
3228
|
+
{
|
3229
|
+
"name": "loading",
|
3230
|
+
"default": "`false`",
|
3231
|
+
"description": "是否显示加载状态",
|
3232
|
+
"value": {
|
3233
|
+
"type": "boolean",
|
3234
|
+
"kind": "expression"
|
3235
|
+
}
|
3236
|
+
},
|
3237
|
+
{
|
3238
|
+
"name": "readonly",
|
3239
|
+
"default": "`false`",
|
3240
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
3241
|
+
"value": {
|
3242
|
+
"type": "boolean",
|
3243
|
+
"kind": "expression"
|
3244
|
+
}
|
3245
|
+
},
|
3246
|
+
{
|
3247
|
+
"name": "filter",
|
3248
|
+
"default": "-",
|
3249
|
+
"description": "选项过滤函数",
|
3250
|
+
"value": {
|
3251
|
+
"type": "(type, vals) => vals",
|
3252
|
+
"kind": "expression"
|
3253
|
+
}
|
3254
|
+
},
|
3255
|
+
{
|
3256
|
+
"name": "formatter",
|
3257
|
+
"default": "-",
|
3258
|
+
"description": "选项格式化函数",
|
3259
|
+
"value": {
|
3260
|
+
"type": "(type, val) => val",
|
3261
|
+
"kind": "expression"
|
3262
|
+
}
|
3263
|
+
},
|
3264
|
+
{
|
3265
|
+
"name": "columns-order",
|
3266
|
+
"default": "-",
|
3267
|
+
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
3268
|
+
"value": {
|
3269
|
+
"type": "string[]",
|
3270
|
+
"kind": "expression"
|
3271
|
+
}
|
3272
|
+
},
|
3273
|
+
{
|
3274
|
+
"name": "item-height",
|
3275
|
+
"default": "`44`",
|
3276
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
3277
|
+
"value": {
|
3278
|
+
"type": "number | string",
|
3279
|
+
"kind": "expression"
|
3280
|
+
}
|
3281
|
+
},
|
3282
|
+
{
|
3283
|
+
"name": "visible-item-count",
|
3284
|
+
"default": "`6`",
|
3285
|
+
"description": "可见的选项个数",
|
3286
|
+
"value": {
|
3287
|
+
"type": "number | string",
|
3288
|
+
"kind": "expression"
|
3289
|
+
}
|
3290
|
+
},
|
3291
|
+
{
|
3292
|
+
"name": "swipe-duration",
|
3293
|
+
"default": "`1000`",
|
3294
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
3295
|
+
"value": {
|
3296
|
+
"type": "number | string",
|
3297
|
+
"kind": "expression"
|
3298
|
+
}
|
3299
|
+
}
|
3300
|
+
]
|
3301
|
+
},
|
3302
|
+
{
|
3303
|
+
"name": "van-date-picker",
|
3304
|
+
"slots": [],
|
3305
|
+
"events": [],
|
3306
|
+
"attributes": [
|
3307
|
+
{
|
3308
|
+
"name": "min-date",
|
3309
|
+
"default": "十年前",
|
3310
|
+
"description": "可选的最小时间,精确到分钟",
|
3311
|
+
"value": {
|
3312
|
+
"type": "Date",
|
3313
|
+
"kind": "expression"
|
3314
|
+
}
|
3315
|
+
},
|
3316
|
+
{
|
3317
|
+
"name": "max-date",
|
3318
|
+
"default": "十年后",
|
3319
|
+
"description": "可选的最大时间,精确到分钟",
|
3320
|
+
"value": {
|
3321
|
+
"type": "Date",
|
3320
3322
|
"kind": "expression"
|
3321
3323
|
}
|
3322
|
-
}
|
3324
|
+
}
|
3325
|
+
]
|
3326
|
+
},
|
3327
|
+
{
|
3328
|
+
"name": "van-time-picker",
|
3329
|
+
"slots": [],
|
3330
|
+
"events": [],
|
3331
|
+
"attributes": [
|
3323
3332
|
{
|
3324
|
-
"name": "
|
3325
|
-
"default": "`
|
3326
|
-
"description": "
|
3333
|
+
"name": "min-hour",
|
3334
|
+
"default": "`0`",
|
3335
|
+
"description": "可选的最小小时",
|
3327
3336
|
"value": {
|
3328
|
-
"type": "
|
3337
|
+
"type": "number | string",
|
3329
3338
|
"kind": "expression"
|
3330
3339
|
}
|
3331
3340
|
},
|
3332
3341
|
{
|
3333
|
-
"name": "
|
3334
|
-
"default": "
|
3335
|
-
"description": "
|
3342
|
+
"name": "max-hour",
|
3343
|
+
"default": "`23`",
|
3344
|
+
"description": "可选的最大小时",
|
3336
3345
|
"value": {
|
3337
|
-
"type": "
|
3346
|
+
"type": "number | string",
|
3338
3347
|
"kind": "expression"
|
3339
3348
|
}
|
3340
3349
|
},
|
3341
3350
|
{
|
3342
|
-
"name": "
|
3343
|
-
"default": "
|
3344
|
-
"description": "
|
3351
|
+
"name": "min-minute",
|
3352
|
+
"default": "`0`",
|
3353
|
+
"description": "可选的最小分钟",
|
3345
3354
|
"value": {
|
3346
|
-
"type": "string",
|
3355
|
+
"type": "number | string",
|
3347
3356
|
"kind": "expression"
|
3348
3357
|
}
|
3349
3358
|
},
|
3350
3359
|
{
|
3351
|
-
"name": "
|
3352
|
-
"default": "
|
3353
|
-
"description": "
|
3360
|
+
"name": "max-minute",
|
3361
|
+
"default": "`59`",
|
3362
|
+
"description": "可选的最大分钟",
|
3354
3363
|
"value": {
|
3355
|
-
"type": "
|
3364
|
+
"type": "number | string",
|
3356
3365
|
"kind": "expression"
|
3357
3366
|
}
|
3358
3367
|
}
|
@@ -4932,6 +4941,15 @@
|
|
4932
4941
|
"kind": "expression"
|
4933
4942
|
}
|
4934
4943
|
},
|
4944
|
+
{
|
4945
|
+
"name": "overlay-style",
|
4946
|
+
"default": "-",
|
4947
|
+
"description": "自定义遮罩层样式",
|
4948
|
+
"value": {
|
4949
|
+
"type": "object",
|
4950
|
+
"kind": "expression"
|
4951
|
+
}
|
4952
|
+
},
|
4935
4953
|
{
|
4936
4954
|
"name": "get-container",
|
4937
4955
|
"default": "-",
|
@@ -7830,6 +7848,14 @@
|
|
7830
7848
|
{
|
7831
7849
|
"name": "button",
|
7832
7850
|
"description": "自定义滑动按钮"
|
7851
|
+
},
|
7852
|
+
{
|
7853
|
+
"name": "left-button",
|
7854
|
+
"description": "自定义左侧滑块按钮(双滑块模式下)"
|
7855
|
+
},
|
7856
|
+
{
|
7857
|
+
"name": "right-button",
|
7858
|
+
"description": "自定义右侧滑块按钮(双滑块模式下)"
|
7833
7859
|
}
|
7834
7860
|
],
|
7835
7861
|
"events": [
|
@@ -8823,282 +8849,87 @@
|
|
8823
8849
|
"description": "左侧标题",
|
8824
8850
|
"value": {
|
8825
8851
|
"type": "string",
|
8826
|
-
"kind": "expression"
|
8827
|
-
}
|
8828
|
-
},
|
8829
|
-
{
|
8830
|
-
"name": "border",
|
8831
|
-
"default": "`true`",
|
8832
|
-
"description": "是否展示单元格内边框",
|
8833
|
-
"value": {
|
8834
|
-
"type": "boolean",
|
8835
|
-
"kind": "expression"
|
8836
|
-
}
|
8837
|
-
},
|
8838
|
-
{
|
8839
|
-
"name": "cell-size",
|
8840
|
-
"default": "-",
|
8841
|
-
"description": "单元格大小,可选值为 `large`",
|
8842
|
-
"value": {
|
8843
|
-
"type": "string",
|
8844
|
-
"kind": "expression"
|
8845
|
-
}
|
8846
|
-
},
|
8847
|
-
{
|
8848
|
-
"name": "loading",
|
8849
|
-
"default": "`false`",
|
8850
|
-
"description": "是否为加载状态",
|
8851
|
-
"value": {
|
8852
|
-
"type": "boolean",
|
8853
|
-
"kind": "expression"
|
8854
|
-
}
|
8855
|
-
},
|
8856
|
-
{
|
8857
|
-
"name": "disabled",
|
8858
|
-
"default": "`false`",
|
8859
|
-
"description": "是否为禁用状态",
|
8860
|
-
"value": {
|
8861
|
-
"type": "boolean",
|
8862
|
-
"kind": "expression"
|
8863
|
-
}
|
8864
|
-
},
|
8865
|
-
{
|
8866
|
-
"name": "size",
|
8867
|
-
"default": "`24px`",
|
8868
|
-
"description": "开关尺寸",
|
8869
|
-
"value": {
|
8870
|
-
"type": "number | string",
|
8871
|
-
"kind": "expression"
|
8872
|
-
}
|
8873
|
-
},
|
8874
|
-
{
|
8875
|
-
"name": "active-color",
|
8876
|
-
"default": "`#1989fa`",
|
8877
|
-
"description": "开关时的背景色",
|
8878
|
-
"value": {
|
8879
|
-
"type": "string",
|
8880
|
-
"kind": "expression"
|
8881
|
-
}
|
8882
|
-
},
|
8883
|
-
{
|
8884
|
-
"name": "inactive-color",
|
8885
|
-
"default": "`white`",
|
8886
|
-
"description": "开关时的背景色",
|
8887
|
-
"value": {
|
8888
|
-
"type": "string",
|
8889
|
-
"kind": "expression"
|
8890
|
-
}
|
8891
|
-
},
|
8892
|
-
{
|
8893
|
-
"name": "active-value",
|
8894
|
-
"default": "`true`",
|
8895
|
-
"description": "打开时的值",
|
8896
|
-
"value": {
|
8897
|
-
"type": "any",
|
8898
|
-
"kind": "expression"
|
8899
|
-
}
|
8900
|
-
},
|
8901
|
-
{
|
8902
|
-
"name": "inactive-value",
|
8903
|
-
"default": "`false`",
|
8904
|
-
"description": "关闭时的值",
|
8905
|
-
"value": {
|
8906
|
-
"type": "any",
|
8907
|
-
"kind": "expression"
|
8908
|
-
}
|
8909
|
-
}
|
8910
|
-
]
|
8911
|
-
},
|
8912
|
-
{
|
8913
|
-
"name": "van-tabbar",
|
8914
|
-
"slots": [],
|
8915
|
-
"events": [
|
8916
|
-
{
|
8917
|
-
"name": "change",
|
8918
|
-
"description": "切换标签时触发"
|
8919
|
-
}
|
8920
|
-
],
|
8921
|
-
"attributes": [
|
8922
|
-
{
|
8923
|
-
"name": "v-model",
|
8924
|
-
"default": "`0`",
|
8925
|
-
"description": "当前选中标签的名称或索引值",
|
8926
|
-
"value": {
|
8927
|
-
"type": "number | string",
|
8928
|
-
"kind": "expression"
|
8929
|
-
}
|
8930
|
-
},
|
8931
|
-
{
|
8932
|
-
"name": "fixed",
|
8933
|
-
"default": "`true`",
|
8934
|
-
"description": "是否固定在底部",
|
8935
|
-
"value": {
|
8936
|
-
"type": "boolean",
|
8937
|
-
"kind": "expression"
|
8938
|
-
}
|
8939
|
-
},
|
8940
|
-
{
|
8941
|
-
"name": "border",
|
8942
|
-
"default": "`true`",
|
8943
|
-
"description": "是否显示外边框",
|
8944
|
-
"value": {
|
8945
|
-
"type": "boolean",
|
8946
|
-
"kind": "expression"
|
8947
|
-
}
|
8948
|
-
},
|
8949
|
-
{
|
8950
|
-
"name": "z-index",
|
8951
|
-
"default": "`1`",
|
8952
|
-
"description": "元素 z-index",
|
8953
|
-
"value": {
|
8954
|
-
"type": "number | string",
|
8955
|
-
"kind": "expression"
|
8956
|
-
}
|
8957
|
-
},
|
8958
|
-
{
|
8959
|
-
"name": "active-color",
|
8960
|
-
"default": "`#1989fa`",
|
8961
|
-
"description": "选中标签的颜色",
|
8962
|
-
"value": {
|
8963
|
-
"type": "string",
|
8964
|
-
"kind": "expression"
|
8965
|
-
}
|
8966
|
-
},
|
8967
|
-
{
|
8968
|
-
"name": "inactive-color",
|
8969
|
-
"default": "`#7d7e80`",
|
8970
|
-
"description": "未选中标签的颜色",
|
8971
|
-
"value": {
|
8972
|
-
"type": "string",
|
8973
|
-
"kind": "expression"
|
8974
|
-
}
|
8975
|
-
},
|
8976
|
-
{
|
8977
|
-
"name": "route",
|
8978
|
-
"default": "`false`",
|
8979
|
-
"description": "是否开启路由模式",
|
8980
|
-
"value": {
|
8981
|
-
"type": "boolean",
|
8982
|
-
"kind": "expression"
|
8983
|
-
}
|
8984
|
-
},
|
8985
|
-
{
|
8986
|
-
"name": "placeholder",
|
8987
|
-
"default": "`false`",
|
8988
|
-
"description": "固定在底部时,是否在标签位置生成一个等高的占位元素",
|
8989
|
-
"value": {
|
8990
|
-
"type": "boolean",
|
8991
|
-
"kind": "expression"
|
8992
|
-
}
|
8993
|
-
},
|
8994
|
-
{
|
8995
|
-
"name": "safe-area-inset-bottom",
|
8996
|
-
"default": "`false`",
|
8997
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启",
|
8998
|
-
"value": {
|
8999
|
-
"type": "boolean",
|
9000
|
-
"kind": "expression"
|
9001
|
-
}
|
9002
|
-
},
|
9003
|
-
{
|
9004
|
-
"name": "before-change",
|
9005
|
-
"default": "-",
|
9006
|
-
"description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise",
|
9007
|
-
"value": {
|
9008
|
-
"type": "(name) => boolean | Promise",
|
9009
|
-
"kind": "expression"
|
9010
|
-
}
|
9011
|
-
}
|
9012
|
-
]
|
9013
|
-
},
|
9014
|
-
{
|
9015
|
-
"name": "van-tabbar-item",
|
9016
|
-
"slots": [
|
9017
|
-
{
|
9018
|
-
"name": "icon",
|
9019
|
-
"description": "自定义图标"
|
9020
|
-
}
|
9021
|
-
],
|
9022
|
-
"events": [],
|
9023
|
-
"attributes": [
|
8852
|
+
"kind": "expression"
|
8853
|
+
}
|
8854
|
+
},
|
9024
8855
|
{
|
9025
|
-
"name": "
|
9026
|
-
"default": "
|
9027
|
-
"description": "
|
8856
|
+
"name": "border",
|
8857
|
+
"default": "`true`",
|
8858
|
+
"description": "是否展示单元格内边框",
|
9028
8859
|
"value": {
|
9029
|
-
"type": "
|
8860
|
+
"type": "boolean",
|
9030
8861
|
"kind": "expression"
|
9031
8862
|
}
|
9032
8863
|
},
|
9033
8864
|
{
|
9034
|
-
"name": "
|
8865
|
+
"name": "cell-size",
|
9035
8866
|
"default": "-",
|
9036
|
-
"description": "
|
8867
|
+
"description": "单元格大小,可选值为 `large`",
|
9037
8868
|
"value": {
|
9038
8869
|
"type": "string",
|
9039
8870
|
"kind": "expression"
|
9040
8871
|
}
|
9041
8872
|
},
|
9042
8873
|
{
|
9043
|
-
"name": "
|
9044
|
-
"default": "`
|
9045
|
-
"description": "
|
8874
|
+
"name": "loading",
|
8875
|
+
"default": "`false`",
|
8876
|
+
"description": "是否为加载状态",
|
9046
8877
|
"value": {
|
9047
|
-
"type": "
|
8878
|
+
"type": "boolean",
|
9048
8879
|
"kind": "expression"
|
9049
8880
|
}
|
9050
8881
|
},
|
9051
8882
|
{
|
9052
|
-
"name": "
|
8883
|
+
"name": "disabled",
|
9053
8884
|
"default": "`false`",
|
9054
|
-
"description": "
|
8885
|
+
"description": "是否为禁用状态",
|
9055
8886
|
"value": {
|
9056
8887
|
"type": "boolean",
|
9057
8888
|
"kind": "expression"
|
9058
8889
|
}
|
9059
8890
|
},
|
9060
8891
|
{
|
9061
|
-
"name": "
|
9062
|
-
"default": "
|
9063
|
-
"description": "
|
8892
|
+
"name": "size",
|
8893
|
+
"default": "`24px`",
|
8894
|
+
"description": "开关尺寸",
|
9064
8895
|
"value": {
|
9065
8896
|
"type": "number | string",
|
9066
8897
|
"kind": "expression"
|
9067
8898
|
}
|
9068
8899
|
},
|
9069
8900
|
{
|
9070
|
-
"name": "
|
9071
|
-
"default": "
|
9072
|
-
"description": "
|
8901
|
+
"name": "active-color",
|
8902
|
+
"default": "`#1989fa`",
|
8903
|
+
"description": "开关时的背景色",
|
9073
8904
|
"value": {
|
9074
|
-
"type": "
|
8905
|
+
"type": "string",
|
9075
8906
|
"kind": "expression"
|
9076
8907
|
}
|
9077
8908
|
},
|
9078
8909
|
{
|
9079
|
-
"name": "
|
9080
|
-
"default": "
|
9081
|
-
"description": "
|
8910
|
+
"name": "inactive-color",
|
8911
|
+
"default": "`white`",
|
8912
|
+
"description": "开关时的背景色",
|
9082
8913
|
"value": {
|
9083
8914
|
"type": "string",
|
9084
8915
|
"kind": "expression"
|
9085
8916
|
}
|
9086
8917
|
},
|
9087
8918
|
{
|
9088
|
-
"name": "
|
9089
|
-
"default": "
|
9090
|
-
"description": "
|
8919
|
+
"name": "active-value",
|
8920
|
+
"default": "`true`",
|
8921
|
+
"description": "打开时的值",
|
9091
8922
|
"value": {
|
9092
|
-
"type": "
|
8923
|
+
"type": "any",
|
9093
8924
|
"kind": "expression"
|
9094
8925
|
}
|
9095
8926
|
},
|
9096
8927
|
{
|
9097
|
-
"name": "
|
8928
|
+
"name": "inactive-value",
|
9098
8929
|
"default": "`false`",
|
9099
|
-
"description": "
|
8930
|
+
"description": "关闭时的值",
|
9100
8931
|
"value": {
|
9101
|
-
"type": "
|
8932
|
+
"type": "any",
|
9102
8933
|
"kind": "expression"
|
9103
8934
|
}
|
9104
8935
|
}
|
@@ -9427,6 +9258,201 @@
|
|
9427
9258
|
}
|
9428
9259
|
]
|
9429
9260
|
},
|
9261
|
+
{
|
9262
|
+
"name": "van-tabbar",
|
9263
|
+
"slots": [],
|
9264
|
+
"events": [
|
9265
|
+
{
|
9266
|
+
"name": "change",
|
9267
|
+
"description": "切换标签时触发"
|
9268
|
+
}
|
9269
|
+
],
|
9270
|
+
"attributes": [
|
9271
|
+
{
|
9272
|
+
"name": "v-model",
|
9273
|
+
"default": "`0`",
|
9274
|
+
"description": "当前选中标签的名称或索引值",
|
9275
|
+
"value": {
|
9276
|
+
"type": "number | string",
|
9277
|
+
"kind": "expression"
|
9278
|
+
}
|
9279
|
+
},
|
9280
|
+
{
|
9281
|
+
"name": "fixed",
|
9282
|
+
"default": "`true`",
|
9283
|
+
"description": "是否固定在底部",
|
9284
|
+
"value": {
|
9285
|
+
"type": "boolean",
|
9286
|
+
"kind": "expression"
|
9287
|
+
}
|
9288
|
+
},
|
9289
|
+
{
|
9290
|
+
"name": "border",
|
9291
|
+
"default": "`true`",
|
9292
|
+
"description": "是否显示外边框",
|
9293
|
+
"value": {
|
9294
|
+
"type": "boolean",
|
9295
|
+
"kind": "expression"
|
9296
|
+
}
|
9297
|
+
},
|
9298
|
+
{
|
9299
|
+
"name": "z-index",
|
9300
|
+
"default": "`1`",
|
9301
|
+
"description": "元素 z-index",
|
9302
|
+
"value": {
|
9303
|
+
"type": "number | string",
|
9304
|
+
"kind": "expression"
|
9305
|
+
}
|
9306
|
+
},
|
9307
|
+
{
|
9308
|
+
"name": "active-color",
|
9309
|
+
"default": "`#1989fa`",
|
9310
|
+
"description": "选中标签的颜色",
|
9311
|
+
"value": {
|
9312
|
+
"type": "string",
|
9313
|
+
"kind": "expression"
|
9314
|
+
}
|
9315
|
+
},
|
9316
|
+
{
|
9317
|
+
"name": "inactive-color",
|
9318
|
+
"default": "`#7d7e80`",
|
9319
|
+
"description": "未选中标签的颜色",
|
9320
|
+
"value": {
|
9321
|
+
"type": "string",
|
9322
|
+
"kind": "expression"
|
9323
|
+
}
|
9324
|
+
},
|
9325
|
+
{
|
9326
|
+
"name": "route",
|
9327
|
+
"default": "`false`",
|
9328
|
+
"description": "是否开启路由模式",
|
9329
|
+
"value": {
|
9330
|
+
"type": "boolean",
|
9331
|
+
"kind": "expression"
|
9332
|
+
}
|
9333
|
+
},
|
9334
|
+
{
|
9335
|
+
"name": "placeholder",
|
9336
|
+
"default": "`false`",
|
9337
|
+
"description": "固定在底部时,是否在标签位置生成一个等高的占位元素",
|
9338
|
+
"value": {
|
9339
|
+
"type": "boolean",
|
9340
|
+
"kind": "expression"
|
9341
|
+
}
|
9342
|
+
},
|
9343
|
+
{
|
9344
|
+
"name": "safe-area-inset-bottom",
|
9345
|
+
"default": "`false`",
|
9346
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启",
|
9347
|
+
"value": {
|
9348
|
+
"type": "boolean",
|
9349
|
+
"kind": "expression"
|
9350
|
+
}
|
9351
|
+
},
|
9352
|
+
{
|
9353
|
+
"name": "before-change",
|
9354
|
+
"default": "-",
|
9355
|
+
"description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise",
|
9356
|
+
"value": {
|
9357
|
+
"type": "(name) => boolean | Promise",
|
9358
|
+
"kind": "expression"
|
9359
|
+
}
|
9360
|
+
}
|
9361
|
+
]
|
9362
|
+
},
|
9363
|
+
{
|
9364
|
+
"name": "van-tabbar-item",
|
9365
|
+
"slots": [
|
9366
|
+
{
|
9367
|
+
"name": "icon",
|
9368
|
+
"description": "自定义图标"
|
9369
|
+
}
|
9370
|
+
],
|
9371
|
+
"events": [],
|
9372
|
+
"attributes": [
|
9373
|
+
{
|
9374
|
+
"name": "name",
|
9375
|
+
"default": "当前标签的索引值",
|
9376
|
+
"description": "标签名称,作为匹配的标识符",
|
9377
|
+
"value": {
|
9378
|
+
"type": "number | string",
|
9379
|
+
"kind": "expression"
|
9380
|
+
}
|
9381
|
+
},
|
9382
|
+
{
|
9383
|
+
"name": "icon",
|
9384
|
+
"default": "-",
|
9385
|
+
"description": "[图标名称](#/zh-CN/icon)或图片链接",
|
9386
|
+
"value": {
|
9387
|
+
"type": "string",
|
9388
|
+
"kind": "expression"
|
9389
|
+
}
|
9390
|
+
},
|
9391
|
+
{
|
9392
|
+
"name": "icon-prefix",
|
9393
|
+
"default": "`van-icon`",
|
9394
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
9395
|
+
"value": {
|
9396
|
+
"type": "string",
|
9397
|
+
"kind": "expression"
|
9398
|
+
}
|
9399
|
+
},
|
9400
|
+
{
|
9401
|
+
"name": "dot",
|
9402
|
+
"default": "`false`",
|
9403
|
+
"description": "是否显示图标右上角小红点",
|
9404
|
+
"value": {
|
9405
|
+
"type": "boolean",
|
9406
|
+
"kind": "expression"
|
9407
|
+
}
|
9408
|
+
},
|
9409
|
+
{
|
9410
|
+
"name": "badge",
|
9411
|
+
"default": "-",
|
9412
|
+
"description": "图标右上角徽标的内容",
|
9413
|
+
"value": {
|
9414
|
+
"type": "number | string",
|
9415
|
+
"kind": "expression"
|
9416
|
+
}
|
9417
|
+
},
|
9418
|
+
{
|
9419
|
+
"name": "info",
|
9420
|
+
"default": "-",
|
9421
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
|
9422
|
+
"value": {
|
9423
|
+
"type": "number | string",
|
9424
|
+
"kind": "expression"
|
9425
|
+
}
|
9426
|
+
},
|
9427
|
+
{
|
9428
|
+
"name": "url",
|
9429
|
+
"default": "-",
|
9430
|
+
"description": "点击后跳转的链接地址",
|
9431
|
+
"value": {
|
9432
|
+
"type": "string",
|
9433
|
+
"kind": "expression"
|
9434
|
+
}
|
9435
|
+
},
|
9436
|
+
{
|
9437
|
+
"name": "to",
|
9438
|
+
"default": "-",
|
9439
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
9440
|
+
"value": {
|
9441
|
+
"type": "string | object",
|
9442
|
+
"kind": "expression"
|
9443
|
+
}
|
9444
|
+
},
|
9445
|
+
{
|
9446
|
+
"name": "replace",
|
9447
|
+
"default": "`false`",
|
9448
|
+
"description": "是否在跳转时替换当前页面历史",
|
9449
|
+
"value": {
|
9450
|
+
"type": "boolean",
|
9451
|
+
"kind": "expression"
|
9452
|
+
}
|
9453
|
+
}
|
9454
|
+
]
|
9455
|
+
},
|
9430
9456
|
{
|
9431
9457
|
"name": "van-tag",
|
9432
9458
|
"slots": [
|