vant 2.12.51 → 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.
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.less +1 -0
- package/es/index.js +1 -1
- package/es/uploader/index.js +5 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.less +1 -0
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/uploader/index.js +5 -1
- package/lib/vant.js +6 -2
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +267 -267
- package/vetur/tags.json +93 -93
- package/vetur/web-types.json +802 -802
- package/changelog.generated.md +0 -11
package/vetur/web-types.json
CHANGED
@@ -2,203 +2,117 @@
|
|
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.52",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
9
9
|
{
|
10
|
-
"name": "van-
|
10
|
+
"name": "van-address-list",
|
11
11
|
"slots": [
|
12
12
|
{
|
13
13
|
"name": "default",
|
14
|
-
"description": "
|
14
|
+
"description": "在列表下方插入内容"
|
15
15
|
},
|
16
16
|
{
|
17
|
-
"name": "
|
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": "
|
24
|
-
"description": "
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"name": "cancel",
|
28
|
-
"description": "点击取消按钮时触发"
|
31
|
+
"name": "add",
|
32
|
+
"description": "点击新增按钮时触发"
|
29
33
|
},
|
30
34
|
{
|
31
|
-
"name": "
|
32
|
-
"description": "
|
35
|
+
"name": "edit",
|
36
|
+
"description": "点击编辑按钮时触发"
|
33
37
|
},
|
34
38
|
{
|
35
|
-
"name": "
|
36
|
-
"description": "
|
39
|
+
"name": "select",
|
40
|
+
"description": "切换选中的地址时触发"
|
37
41
|
},
|
38
42
|
{
|
39
|
-
"name": "
|
40
|
-
"description": "
|
43
|
+
"name": "edit-disabled",
|
44
|
+
"description": "编辑不可配送的地址时触发"
|
41
45
|
},
|
42
46
|
{
|
43
|
-
"name": "
|
44
|
-
"description": "
|
47
|
+
"name": "select-disabled",
|
48
|
+
"description": "选中不可配送的地址时触发"
|
45
49
|
},
|
46
50
|
{
|
47
|
-
"name": "click-
|
48
|
-
"description": "
|
51
|
+
"name": "click-item",
|
52
|
+
"description": "点击任意地址时触发"
|
49
53
|
}
|
50
54
|
],
|
51
55
|
"attributes": [
|
52
56
|
{
|
53
|
-
"name": "v-model
|
54
|
-
"default": "
|
55
|
-
"description": "
|
57
|
+
"name": "v-model",
|
58
|
+
"default": "-",
|
59
|
+
"description": "当前选中地址的 id",
|
56
60
|
"value": {
|
57
|
-
"type": "
|
61
|
+
"type": "string",
|
58
62
|
"kind": "expression"
|
59
63
|
}
|
60
64
|
},
|
61
65
|
{
|
62
|
-
"name": "
|
66
|
+
"name": "list",
|
63
67
|
"default": "`[]`",
|
64
|
-
"description": "
|
65
|
-
"value": {
|
66
|
-
"type": "Action[]",
|
67
|
-
"kind": "expression"
|
68
|
-
}
|
69
|
-
},
|
70
|
-
{
|
71
|
-
"name": "title",
|
72
|
-
"default": "-",
|
73
|
-
"description": "顶部标题",
|
68
|
+
"description": "地址列表",
|
74
69
|
"value": {
|
75
|
-
"type": "
|
70
|
+
"type": "Address[]",
|
76
71
|
"kind": "expression"
|
77
72
|
}
|
78
73
|
},
|
79
74
|
{
|
80
|
-
"name": "
|
81
|
-
"default": "
|
82
|
-
"description": "
|
75
|
+
"name": "disabled-list",
|
76
|
+
"default": "`[]`",
|
77
|
+
"description": "不可配送地址列表",
|
83
78
|
"value": {
|
84
|
-
"type": "
|
79
|
+
"type": "Address[]",
|
85
80
|
"kind": "expression"
|
86
81
|
}
|
87
82
|
},
|
88
83
|
{
|
89
|
-
"name": "
|
84
|
+
"name": "disabled-text",
|
90
85
|
"default": "-",
|
91
|
-
"description": "
|
86
|
+
"description": "不可配送提示文案",
|
92
87
|
"value": {
|
93
88
|
"type": "string",
|
94
89
|
"kind": "expression"
|
95
90
|
}
|
96
91
|
},
|
97
92
|
{
|
98
|
-
"name": "
|
93
|
+
"name": "switchable",
|
99
94
|
"default": "`true`",
|
100
|
-
"description": "
|
95
|
+
"description": "是否允许切换地址",
|
101
96
|
"value": {
|
102
97
|
"type": "boolean",
|
103
98
|
"kind": "expression"
|
104
99
|
}
|
105
100
|
},
|
106
101
|
{
|
107
|
-
"name": "
|
108
|
-
"default": "
|
109
|
-
"description": "
|
102
|
+
"name": "add-button-text",
|
103
|
+
"default": "`新增地址`",
|
104
|
+
"description": "底部按钮文字",
|
110
105
|
"value": {
|
111
106
|
"type": "string",
|
112
107
|
"kind": "expression"
|
113
108
|
}
|
114
109
|
},
|
115
110
|
{
|
116
|
-
"name": "
|
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",
|
111
|
+
"name": "default-tag-text",
|
198
112
|
"default": "-",
|
199
|
-
"description": "
|
113
|
+
"description": "默认地址标签文字",
|
200
114
|
"value": {
|
201
|
-
"type": "string
|
115
|
+
"type": "string",
|
202
116
|
"kind": "expression"
|
203
117
|
}
|
204
118
|
}
|
@@ -355,94 +269,292 @@
|
|
355
269
|
]
|
356
270
|
},
|
357
271
|
{
|
358
|
-
"name": "van-
|
272
|
+
"name": "van-action-sheet",
|
359
273
|
"slots": [
|
360
274
|
{
|
361
275
|
"name": "default",
|
362
|
-
"description": "
|
276
|
+
"description": "自定义面板的展示内容"
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"name": "description",
|
280
|
+
"description": "自定义描述文案"
|
363
281
|
}
|
364
282
|
],
|
365
283
|
"events": [
|
366
284
|
{
|
367
|
-
"name": "
|
368
|
-
"description": "
|
369
|
-
},
|
370
|
-
{
|
371
|
-
"name": "focus",
|
372
|
-
"description": "输入框聚焦时触发"
|
373
|
-
},
|
374
|
-
{
|
375
|
-
"name": "delete",
|
376
|
-
"description": "确认删除地址时触发"
|
285
|
+
"name": "select",
|
286
|
+
"description": "点击选项时触发,禁用或加载状态下不会触发"
|
377
287
|
},
|
378
288
|
{
|
379
|
-
"name": "cancel
|
380
|
-
"description": "
|
289
|
+
"name": "cancel",
|
290
|
+
"description": "点击取消按钮时触发"
|
381
291
|
},
|
382
292
|
{
|
383
|
-
"name": "
|
384
|
-
"description": "
|
293
|
+
"name": "open",
|
294
|
+
"description": "打开面板时触发"
|
385
295
|
},
|
386
296
|
{
|
387
|
-
"name": "
|
388
|
-
"description": "
|
297
|
+
"name": "close",
|
298
|
+
"description": "关闭面板时触发"
|
389
299
|
},
|
390
300
|
{
|
391
|
-
"name": "
|
392
|
-
"description": "
|
301
|
+
"name": "opened",
|
302
|
+
"description": "打开面板且动画结束后触发"
|
393
303
|
},
|
394
304
|
{
|
395
|
-
"name": "
|
396
|
-
"description": "
|
305
|
+
"name": "closed",
|
306
|
+
"description": "关闭面板且动画结束后触发"
|
397
307
|
},
|
398
308
|
{
|
399
|
-
"name": "
|
400
|
-
"description": "
|
309
|
+
"name": "click-overlay",
|
310
|
+
"description": "点击遮罩层时触发"
|
401
311
|
}
|
402
312
|
],
|
403
313
|
"attributes": [
|
404
314
|
{
|
405
|
-
"name": "
|
406
|
-
"default": "
|
407
|
-
"description": "
|
315
|
+
"name": "v-model (value)",
|
316
|
+
"default": "`false`",
|
317
|
+
"description": "是否显示动作面板",
|
408
318
|
"value": {
|
409
|
-
"type": "
|
319
|
+
"type": "boolean",
|
410
320
|
"kind": "expression"
|
411
321
|
}
|
412
322
|
},
|
413
323
|
{
|
414
|
-
"name": "
|
324
|
+
"name": "actions",
|
415
325
|
"default": "`[]`",
|
416
|
-
"description": "
|
326
|
+
"description": "面板选项列表",
|
417
327
|
"value": {
|
418
|
-
"type": "
|
328
|
+
"type": "Action[]",
|
419
329
|
"kind": "expression"
|
420
330
|
}
|
421
331
|
},
|
422
332
|
{
|
423
|
-
"name": "
|
424
|
-
"default": "
|
425
|
-
"description": "
|
333
|
+
"name": "title",
|
334
|
+
"default": "-",
|
335
|
+
"description": "顶部标题",
|
426
336
|
"value": {
|
427
337
|
"type": "string",
|
428
338
|
"kind": "expression"
|
429
339
|
}
|
430
340
|
},
|
431
341
|
{
|
432
|
-
"name": "
|
433
|
-
"default": "
|
434
|
-
"description": "
|
342
|
+
"name": "cancel-text",
|
343
|
+
"default": "-",
|
344
|
+
"description": "取消按钮文字",
|
435
345
|
"value": {
|
436
|
-
"type": "
|
346
|
+
"type": "string",
|
437
347
|
"kind": "expression"
|
438
348
|
}
|
439
349
|
},
|
440
350
|
{
|
441
|
-
"name": "
|
442
|
-
"default": "
|
443
|
-
"description": "
|
351
|
+
"name": "description",
|
352
|
+
"default": "-",
|
353
|
+
"description": "选项上方的描述信息",
|
444
354
|
"value": {
|
445
|
-
"type": "
|
355
|
+
"type": "string",
|
356
|
+
"kind": "expression"
|
357
|
+
}
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"name": "closeable",
|
361
|
+
"default": "`true`",
|
362
|
+
"description": "是否显示关闭图标",
|
363
|
+
"value": {
|
364
|
+
"type": "boolean",
|
365
|
+
"kind": "expression"
|
366
|
+
}
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"name": "close-icon",
|
370
|
+
"default": "`cross`",
|
371
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
|
372
|
+
"value": {
|
373
|
+
"type": "string",
|
374
|
+
"kind": "expression"
|
375
|
+
}
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"name": "duration",
|
379
|
+
"default": "`0.3`",
|
380
|
+
"description": "动画时长,单位秒",
|
381
|
+
"value": {
|
382
|
+
"type": "number | string",
|
383
|
+
"kind": "expression"
|
384
|
+
}
|
385
|
+
},
|
386
|
+
{
|
387
|
+
"name": "round",
|
388
|
+
"default": "`true`",
|
389
|
+
"description": "是否显示圆角",
|
390
|
+
"value": {
|
391
|
+
"type": "boolean",
|
392
|
+
"kind": "expression"
|
393
|
+
}
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"name": "overlay",
|
397
|
+
"default": "`true`",
|
398
|
+
"description": "是否显示遮罩层",
|
399
|
+
"value": {
|
400
|
+
"type": "boolean",
|
401
|
+
"kind": "expression"
|
402
|
+
}
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"name": "lock-scroll",
|
406
|
+
"default": "`true`",
|
407
|
+
"description": "是否锁定背景滚动",
|
408
|
+
"value": {
|
409
|
+
"type": "boolean",
|
410
|
+
"kind": "expression"
|
411
|
+
}
|
412
|
+
},
|
413
|
+
{
|
414
|
+
"name": "lazy-render",
|
415
|
+
"default": "`true`",
|
416
|
+
"description": "是否在显示弹层时才渲染节点",
|
417
|
+
"value": {
|
418
|
+
"type": "boolean",
|
419
|
+
"kind": "expression"
|
420
|
+
}
|
421
|
+
},
|
422
|
+
{
|
423
|
+
"name": "close-on-popstate",
|
424
|
+
"default": "`false`",
|
425
|
+
"description": "是否在页面回退时自动关闭",
|
426
|
+
"value": {
|
427
|
+
"type": "boolean",
|
428
|
+
"kind": "expression"
|
429
|
+
}
|
430
|
+
},
|
431
|
+
{
|
432
|
+
"name": "close-on-click-action",
|
433
|
+
"default": "`false`",
|
434
|
+
"description": "是否在点击选项后关闭",
|
435
|
+
"value": {
|
436
|
+
"type": "boolean",
|
437
|
+
"kind": "expression"
|
438
|
+
}
|
439
|
+
},
|
440
|
+
{
|
441
|
+
"name": "close-on-click-overlay",
|
442
|
+
"default": "`true`",
|
443
|
+
"description": "是否在点击遮罩层后关闭",
|
444
|
+
"value": {
|
445
|
+
"type": "boolean",
|
446
|
+
"kind": "expression"
|
447
|
+
}
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"name": "safe-area-inset-bottom",
|
451
|
+
"default": "`true`",
|
452
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
453
|
+
"value": {
|
454
|
+
"type": "boolean",
|
455
|
+
"kind": "expression"
|
456
|
+
}
|
457
|
+
},
|
458
|
+
{
|
459
|
+
"name": "get-container",
|
460
|
+
"default": "-",
|
461
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
462
|
+
"value": {
|
463
|
+
"type": "string | () => Element",
|
464
|
+
"kind": "expression"
|
465
|
+
}
|
466
|
+
}
|
467
|
+
]
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"name": "van-address-edit",
|
471
|
+
"slots": [
|
472
|
+
{
|
473
|
+
"name": "default",
|
474
|
+
"description": "在邮政编码下方插入内容"
|
475
|
+
}
|
476
|
+
],
|
477
|
+
"events": [
|
478
|
+
{
|
479
|
+
"name": "save",
|
480
|
+
"description": "点击保存按钮时触发"
|
481
|
+
},
|
482
|
+
{
|
483
|
+
"name": "focus",
|
484
|
+
"description": "输入框聚焦时触发"
|
485
|
+
},
|
486
|
+
{
|
487
|
+
"name": "delete",
|
488
|
+
"description": "确认删除地址时触发"
|
489
|
+
},
|
490
|
+
{
|
491
|
+
"name": "cancel-delete",
|
492
|
+
"description": "取消删除地址时触发"
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"name": "select-search",
|
496
|
+
"description": "选中搜索结果时触发"
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"name": "click-area",
|
500
|
+
"description": "点击收件地区时触发"
|
501
|
+
},
|
502
|
+
{
|
503
|
+
"name": "change-area",
|
504
|
+
"description": "修改收件地区时触发"
|
505
|
+
},
|
506
|
+
{
|
507
|
+
"name": "change-detail",
|
508
|
+
"description": "修改详细地址时触发"
|
509
|
+
},
|
510
|
+
{
|
511
|
+
"name": "change-default",
|
512
|
+
"description": "切换是否使用默认地址时触发"
|
513
|
+
}
|
514
|
+
],
|
515
|
+
"attributes": [
|
516
|
+
{
|
517
|
+
"name": "area-list",
|
518
|
+
"default": "-",
|
519
|
+
"description": "地区列表",
|
520
|
+
"value": {
|
521
|
+
"type": "object",
|
522
|
+
"kind": "expression"
|
523
|
+
}
|
524
|
+
},
|
525
|
+
{
|
526
|
+
"name": "area-columns-placeholder",
|
527
|
+
"default": "`[]`",
|
528
|
+
"description": "地区选择列占位提示文字",
|
529
|
+
"value": {
|
530
|
+
"type": "string[]",
|
531
|
+
"kind": "expression"
|
532
|
+
}
|
533
|
+
},
|
534
|
+
{
|
535
|
+
"name": "area-placeholder",
|
536
|
+
"default": "`选择省 / 市 / 区`",
|
537
|
+
"description": "地区输入框占位提示文字",
|
538
|
+
"value": {
|
539
|
+
"type": "string",
|
540
|
+
"kind": "expression"
|
541
|
+
}
|
542
|
+
},
|
543
|
+
{
|
544
|
+
"name": "address-info",
|
545
|
+
"default": "`{}`",
|
546
|
+
"description": "收货人信息初始值",
|
547
|
+
"value": {
|
548
|
+
"type": "AddressInfo",
|
549
|
+
"kind": "expression"
|
550
|
+
}
|
551
|
+
},
|
552
|
+
{
|
553
|
+
"name": "search-result",
|
554
|
+
"default": "`[]`",
|
555
|
+
"description": "详细地址搜索结果",
|
556
|
+
"value": {
|
557
|
+
"type": "SearchResult[]",
|
446
558
|
"kind": "expression"
|
447
559
|
}
|
448
560
|
},
|
@@ -601,58 +713,6 @@
|
|
601
713
|
}
|
602
714
|
]
|
603
715
|
},
|
604
|
-
{
|
605
|
-
"name": "van-badge",
|
606
|
-
"slots": [
|
607
|
-
{
|
608
|
-
"name": "default",
|
609
|
-
"description": "徽标包裹的子元素"
|
610
|
-
},
|
611
|
-
{
|
612
|
-
"name": "content",
|
613
|
-
"description": "自定义徽标内容"
|
614
|
-
}
|
615
|
-
],
|
616
|
-
"events": [],
|
617
|
-
"attributes": [
|
618
|
-
{
|
619
|
-
"name": "content",
|
620
|
-
"default": "-",
|
621
|
-
"description": "徽标内容",
|
622
|
-
"value": {
|
623
|
-
"type": "number | string",
|
624
|
-
"kind": "expression"
|
625
|
-
}
|
626
|
-
},
|
627
|
-
{
|
628
|
-
"name": "color",
|
629
|
-
"default": "`#ee0a24`",
|
630
|
-
"description": "徽标背景颜色",
|
631
|
-
"value": {
|
632
|
-
"type": "string",
|
633
|
-
"kind": "expression"
|
634
|
-
}
|
635
|
-
},
|
636
|
-
{
|
637
|
-
"name": "dot",
|
638
|
-
"default": "`false`",
|
639
|
-
"description": "是否展示为小红点",
|
640
|
-
"value": {
|
641
|
-
"type": "boolean",
|
642
|
-
"kind": "expression"
|
643
|
-
}
|
644
|
-
},
|
645
|
-
{
|
646
|
-
"name": "max",
|
647
|
-
"default": "-",
|
648
|
-
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
649
|
-
"value": {
|
650
|
-
"type": "number | string",
|
651
|
-
"kind": "expression"
|
652
|
-
}
|
653
|
-
}
|
654
|
-
]
|
655
|
-
},
|
656
716
|
{
|
657
717
|
"name": "van-button",
|
658
718
|
"slots": [
|
@@ -881,261 +941,52 @@
|
|
881
941
|
]
|
882
942
|
},
|
883
943
|
{
|
884
|
-
"name": "van-
|
944
|
+
"name": "van-badge",
|
885
945
|
"slots": [
|
886
946
|
{
|
887
|
-
"name": "
|
888
|
-
"description": "
|
889
|
-
},
|
890
|
-
{
|
891
|
-
"name": "option",
|
892
|
-
"description": "自定义选项文字"
|
893
|
-
}
|
894
|
-
],
|
895
|
-
"events": [
|
896
|
-
{
|
897
|
-
"name": "change",
|
898
|
-
"description": "选中项变化时触发"
|
899
|
-
},
|
900
|
-
{
|
901
|
-
"name": "finish",
|
902
|
-
"description": "全部选项选择完成后触发"
|
947
|
+
"name": "default",
|
948
|
+
"description": "徽标包裹的子元素"
|
903
949
|
},
|
904
950
|
{
|
905
|
-
"name": "
|
906
|
-
"description": "
|
951
|
+
"name": "content",
|
952
|
+
"description": "自定义徽标内容"
|
907
953
|
}
|
908
954
|
],
|
955
|
+
"events": [],
|
909
956
|
"attributes": [
|
910
957
|
{
|
911
|
-
"name": "
|
912
|
-
"default": "-",
|
913
|
-
"description": "顶部标题",
|
914
|
-
"value": {
|
915
|
-
"type": "string",
|
916
|
-
"kind": "expression"
|
917
|
-
}
|
918
|
-
},
|
919
|
-
{
|
920
|
-
"name": "value",
|
958
|
+
"name": "content",
|
921
959
|
"default": "-",
|
922
|
-
"description": "
|
923
|
-
"value": {
|
924
|
-
"type": "string | number",
|
925
|
-
"kind": "expression"
|
926
|
-
}
|
927
|
-
},
|
928
|
-
{
|
929
|
-
"name": "options",
|
930
|
-
"default": "`[]`",
|
931
|
-
"description": "可选项数据源",
|
932
|
-
"value": {
|
933
|
-
"type": "Option[]",
|
934
|
-
"kind": "expression"
|
935
|
-
}
|
936
|
-
},
|
937
|
-
{
|
938
|
-
"name": "placeholder",
|
939
|
-
"default": "`请选择`",
|
940
|
-
"description": "未选中时的提示文案",
|
960
|
+
"description": "徽标内容",
|
941
961
|
"value": {
|
942
|
-
"type": "string",
|
962
|
+
"type": "number | string",
|
943
963
|
"kind": "expression"
|
944
964
|
}
|
945
965
|
},
|
946
966
|
{
|
947
|
-
"name": "
|
967
|
+
"name": "color",
|
948
968
|
"default": "`#ee0a24`",
|
949
|
-
"description": "
|
950
|
-
"value": {
|
951
|
-
"type": "string",
|
952
|
-
"kind": "expression"
|
953
|
-
}
|
954
|
-
},
|
955
|
-
{
|
956
|
-
"name": "closeable",
|
957
|
-
"default": "`true`",
|
958
|
-
"description": "是否显示关闭图标",
|
959
|
-
"value": {
|
960
|
-
"type": "boolean",
|
961
|
-
"kind": "expression"
|
962
|
-
}
|
963
|
-
},
|
964
|
-
{
|
965
|
-
"name": "show-header",
|
966
|
-
"default": "`true`",
|
967
|
-
"description": "是否展示标题栏",
|
968
|
-
"value": {
|
969
|
-
"type": "boolean",
|
970
|
-
"kind": "expression"
|
971
|
-
}
|
972
|
-
},
|
973
|
-
{
|
974
|
-
"name": "field-names",
|
975
|
-
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
976
|
-
"description": "自定义 `options` 结构中的字段",
|
977
|
-
"value": {
|
978
|
-
"type": "object",
|
979
|
-
"kind": "expression"
|
980
|
-
}
|
981
|
-
}
|
982
|
-
]
|
983
|
-
},
|
984
|
-
{
|
985
|
-
"name": "van-card",
|
986
|
-
"slots": [
|
987
|
-
{
|
988
|
-
"name": "title",
|
989
|
-
"description": "自定义标题"
|
990
|
-
},
|
991
|
-
{
|
992
|
-
"name": "desc",
|
993
|
-
"description": "自定义描述"
|
994
|
-
},
|
995
|
-
{
|
996
|
-
"name": "num",
|
997
|
-
"description": "自定义数量"
|
998
|
-
},
|
999
|
-
{
|
1000
|
-
"name": "price",
|
1001
|
-
"description": "自定义价格"
|
1002
|
-
},
|
1003
|
-
{
|
1004
|
-
"name": "origin-price",
|
1005
|
-
"description": "自定义商品原价"
|
1006
|
-
},
|
1007
|
-
{
|
1008
|
-
"name": "price-top",
|
1009
|
-
"description": "自定义价格上方区域"
|
1010
|
-
},
|
1011
|
-
{
|
1012
|
-
"name": "bottom",
|
1013
|
-
"description": "自定义价格下方区域"
|
1014
|
-
},
|
1015
|
-
{
|
1016
|
-
"name": "thumb",
|
1017
|
-
"description": "自定义图片"
|
1018
|
-
},
|
1019
|
-
{
|
1020
|
-
"name": "tag",
|
1021
|
-
"description": "自定义图片角标"
|
1022
|
-
},
|
1023
|
-
{
|
1024
|
-
"name": "tags",
|
1025
|
-
"description": "自定义描述下方标签区域"
|
1026
|
-
},
|
1027
|
-
{
|
1028
|
-
"name": "footer",
|
1029
|
-
"description": "自定义右下角内容"
|
1030
|
-
}
|
1031
|
-
],
|
1032
|
-
"events": [
|
1033
|
-
{
|
1034
|
-
"name": "click",
|
1035
|
-
"description": "点击时触发"
|
1036
|
-
},
|
1037
|
-
{
|
1038
|
-
"name": "click-thumb",
|
1039
|
-
"description": "点击自定义图片时触发"
|
1040
|
-
}
|
1041
|
-
],
|
1042
|
-
"attributes": [
|
1043
|
-
{
|
1044
|
-
"name": "thumb",
|
1045
|
-
"default": "-",
|
1046
|
-
"description": "左侧图片 URL",
|
1047
|
-
"value": {
|
1048
|
-
"type": "string",
|
1049
|
-
"kind": "expression"
|
1050
|
-
}
|
1051
|
-
},
|
1052
|
-
{
|
1053
|
-
"name": "title",
|
1054
|
-
"default": "-",
|
1055
|
-
"description": "标题",
|
1056
|
-
"value": {
|
1057
|
-
"type": "string",
|
1058
|
-
"kind": "expression"
|
1059
|
-
}
|
1060
|
-
},
|
1061
|
-
{
|
1062
|
-
"name": "desc",
|
1063
|
-
"default": "-",
|
1064
|
-
"description": "描述",
|
1065
|
-
"value": {
|
1066
|
-
"type": "string",
|
1067
|
-
"kind": "expression"
|
1068
|
-
}
|
1069
|
-
},
|
1070
|
-
{
|
1071
|
-
"name": "tag",
|
1072
|
-
"default": "-",
|
1073
|
-
"description": "图片角标",
|
969
|
+
"description": "徽标背景颜色",
|
1074
970
|
"value": {
|
1075
971
|
"type": "string",
|
1076
972
|
"kind": "expression"
|
1077
973
|
}
|
1078
974
|
},
|
1079
975
|
{
|
1080
|
-
"name": "
|
1081
|
-
"default": "-",
|
1082
|
-
"description": "商品数量",
|
1083
|
-
"value": {
|
1084
|
-
"type": "number | string",
|
1085
|
-
"kind": "expression"
|
1086
|
-
}
|
1087
|
-
},
|
1088
|
-
{
|
1089
|
-
"name": "price",
|
1090
|
-
"default": "-",
|
1091
|
-
"description": "商品价格",
|
1092
|
-
"value": {
|
1093
|
-
"type": "number | string",
|
1094
|
-
"kind": "expression"
|
1095
|
-
}
|
1096
|
-
},
|
1097
|
-
{
|
1098
|
-
"name": "origin-price",
|
1099
|
-
"default": "-",
|
1100
|
-
"description": "商品划线原价",
|
1101
|
-
"value": {
|
1102
|
-
"type": "number | string",
|
1103
|
-
"kind": "expression"
|
1104
|
-
}
|
1105
|
-
},
|
1106
|
-
{
|
1107
|
-
"name": "centered",
|
976
|
+
"name": "dot",
|
1108
977
|
"default": "`false`",
|
1109
|
-
"description": "
|
978
|
+
"description": "是否展示为小红点",
|
1110
979
|
"value": {
|
1111
980
|
"type": "boolean",
|
1112
981
|
"kind": "expression"
|
1113
982
|
}
|
1114
983
|
},
|
1115
984
|
{
|
1116
|
-
"name": "
|
1117
|
-
"default": "`¥`",
|
1118
|
-
"description": "货币符号",
|
1119
|
-
"value": {
|
1120
|
-
"type": "string",
|
1121
|
-
"kind": "expression"
|
1122
|
-
}
|
1123
|
-
},
|
1124
|
-
{
|
1125
|
-
"name": "thumb-link",
|
985
|
+
"name": "max",
|
1126
986
|
"default": "-",
|
1127
|
-
"description": "
|
1128
|
-
"value": {
|
1129
|
-
"type": "string",
|
1130
|
-
"kind": "expression"
|
1131
|
-
}
|
1132
|
-
},
|
1133
|
-
{
|
1134
|
-
"name": "lazy-load",
|
1135
|
-
"default": "`false`",
|
1136
|
-
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
|
987
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
1137
988
|
"value": {
|
1138
|
-
"type": "
|
989
|
+
"type": "number | string",
|
1139
990
|
"kind": "expression"
|
1140
991
|
}
|
1141
992
|
}
|
@@ -1469,114 +1320,263 @@
|
|
1469
1320
|
]
|
1470
1321
|
},
|
1471
1322
|
{
|
1472
|
-
"name": "van-
|
1323
|
+
"name": "van-card",
|
1473
1324
|
"slots": [
|
1474
1325
|
{
|
1475
|
-
"name": "
|
1476
|
-
"description": "
|
1326
|
+
"name": "title",
|
1327
|
+
"description": "自定义标题"
|
1477
1328
|
},
|
1478
1329
|
{
|
1479
|
-
"name": "
|
1480
|
-
"description": "
|
1330
|
+
"name": "desc",
|
1331
|
+
"description": "自定义描述"
|
1481
1332
|
},
|
1482
1333
|
{
|
1483
|
-
"name": "
|
1484
|
-
"description": "
|
1334
|
+
"name": "num",
|
1335
|
+
"description": "自定义数量"
|
1485
1336
|
},
|
1486
1337
|
{
|
1487
|
-
"name": "
|
1488
|
-
"description": "
|
1489
|
-
}
|
1490
|
-
],
|
1491
|
-
"events": [
|
1338
|
+
"name": "price",
|
1339
|
+
"description": "自定义价格"
|
1340
|
+
},
|
1492
1341
|
{
|
1493
|
-
"name": "
|
1494
|
-
"description": "
|
1342
|
+
"name": "origin-price",
|
1343
|
+
"description": "自定义商品原价"
|
1495
1344
|
},
|
1496
1345
|
{
|
1497
|
-
"name": "
|
1498
|
-
"description": "
|
1346
|
+
"name": "price-top",
|
1347
|
+
"description": "自定义价格上方区域"
|
1499
1348
|
},
|
1500
1349
|
{
|
1501
|
-
"name": "
|
1502
|
-
"description": "
|
1350
|
+
"name": "bottom",
|
1351
|
+
"description": "自定义价格下方区域"
|
1503
1352
|
},
|
1504
1353
|
{
|
1505
|
-
"name": "
|
1506
|
-
"description": "
|
1354
|
+
"name": "thumb",
|
1355
|
+
"description": "自定义图片"
|
1507
1356
|
},
|
1508
1357
|
{
|
1509
|
-
"name": "
|
1510
|
-
"description": "
|
1358
|
+
"name": "tag",
|
1359
|
+
"description": "自定义图片角标"
|
1511
1360
|
},
|
1512
1361
|
{
|
1513
|
-
"name": "
|
1514
|
-
"description": "
|
1362
|
+
"name": "tags",
|
1363
|
+
"description": "自定义描述下方标签区域"
|
1364
|
+
},
|
1365
|
+
{
|
1366
|
+
"name": "footer",
|
1367
|
+
"description": "自定义右下角内容"
|
1368
|
+
}
|
1369
|
+
],
|
1370
|
+
"events": [
|
1371
|
+
{
|
1372
|
+
"name": "click",
|
1373
|
+
"description": "点击时触发"
|
1374
|
+
},
|
1375
|
+
{
|
1376
|
+
"name": "click-thumb",
|
1377
|
+
"description": "点击自定义图片时触发"
|
1515
1378
|
}
|
1516
1379
|
],
|
1517
1380
|
"attributes": [
|
1518
1381
|
{
|
1519
|
-
"name": "
|
1382
|
+
"name": "thumb",
|
1520
1383
|
"default": "-",
|
1521
|
-
"description": "
|
1384
|
+
"description": "左侧图片 URL",
|
1522
1385
|
"value": {
|
1523
1386
|
"type": "string",
|
1524
1387
|
"kind": "expression"
|
1525
1388
|
}
|
1526
1389
|
},
|
1527
1390
|
{
|
1528
|
-
"name": "
|
1529
|
-
"default": "
|
1530
|
-
"description": "
|
1391
|
+
"name": "title",
|
1392
|
+
"default": "-",
|
1393
|
+
"description": "标题",
|
1531
1394
|
"value": {
|
1532
|
-
"type": "
|
1395
|
+
"type": "string",
|
1533
1396
|
"kind": "expression"
|
1534
1397
|
}
|
1535
1398
|
},
|
1536
1399
|
{
|
1537
|
-
"name": "
|
1538
|
-
"default": "
|
1539
|
-
"description": "
|
1400
|
+
"name": "desc",
|
1401
|
+
"default": "-",
|
1402
|
+
"description": "描述",
|
1540
1403
|
"value": {
|
1541
|
-
"type": "
|
1404
|
+
"type": "string",
|
1542
1405
|
"kind": "expression"
|
1543
1406
|
}
|
1544
1407
|
},
|
1545
1408
|
{
|
1546
|
-
"name": "
|
1409
|
+
"name": "tag",
|
1547
1410
|
"default": "-",
|
1548
|
-
"description": "
|
1411
|
+
"description": "图片角标",
|
1549
1412
|
"value": {
|
1550
1413
|
"type": "string",
|
1551
1414
|
"kind": "expression"
|
1552
1415
|
}
|
1553
1416
|
},
|
1554
1417
|
{
|
1555
|
-
"name": "
|
1556
|
-
"default": "
|
1557
|
-
"description": "
|
1418
|
+
"name": "num",
|
1419
|
+
"default": "-",
|
1420
|
+
"description": "商品数量",
|
1421
|
+
"value": {
|
1422
|
+
"type": "number | string",
|
1423
|
+
"kind": "expression"
|
1424
|
+
}
|
1425
|
+
},
|
1426
|
+
{
|
1427
|
+
"name": "price",
|
1428
|
+
"default": "-",
|
1429
|
+
"description": "商品价格",
|
1430
|
+
"value": {
|
1431
|
+
"type": "number | string",
|
1432
|
+
"kind": "expression"
|
1433
|
+
}
|
1434
|
+
},
|
1435
|
+
{
|
1436
|
+
"name": "origin-price",
|
1437
|
+
"default": "-",
|
1438
|
+
"description": "商品划线原价",
|
1439
|
+
"value": {
|
1440
|
+
"type": "number | string",
|
1441
|
+
"kind": "expression"
|
1442
|
+
}
|
1443
|
+
},
|
1444
|
+
{
|
1445
|
+
"name": "centered",
|
1446
|
+
"default": "`false`",
|
1447
|
+
"description": "内容是否垂直居中",
|
1558
1448
|
"value": {
|
1559
1449
|
"type": "boolean",
|
1560
1450
|
"kind": "expression"
|
1561
1451
|
}
|
1562
1452
|
},
|
1563
1453
|
{
|
1564
|
-
"name": "
|
1565
|
-
"default": "
|
1566
|
-
"description": "
|
1454
|
+
"name": "currency",
|
1455
|
+
"default": "`¥`",
|
1456
|
+
"description": "货币符号",
|
1567
1457
|
"value": {
|
1568
1458
|
"type": "string",
|
1569
1459
|
"kind": "expression"
|
1570
1460
|
}
|
1571
1461
|
},
|
1572
1462
|
{
|
1573
|
-
"name": "
|
1463
|
+
"name": "thumb-link",
|
1574
1464
|
"default": "-",
|
1575
|
-
"description": "
|
1465
|
+
"description": "点击左侧图片后跳转的链接地址",
|
1466
|
+
"value": {
|
1467
|
+
"type": "string",
|
1468
|
+
"kind": "expression"
|
1469
|
+
}
|
1470
|
+
},
|
1471
|
+
{
|
1472
|
+
"name": "lazy-load",
|
1473
|
+
"default": "`false`",
|
1474
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
|
1475
|
+
"value": {
|
1476
|
+
"type": "boolean",
|
1477
|
+
"kind": "expression"
|
1478
|
+
}
|
1479
|
+
}
|
1480
|
+
]
|
1481
|
+
},
|
1482
|
+
{
|
1483
|
+
"name": "van-cascader",
|
1484
|
+
"slots": [
|
1485
|
+
{
|
1486
|
+
"name": "title",
|
1487
|
+
"description": "自定义顶部标题"
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"name": "option",
|
1491
|
+
"description": "自定义选项文字"
|
1492
|
+
}
|
1493
|
+
],
|
1494
|
+
"events": [
|
1495
|
+
{
|
1496
|
+
"name": "change",
|
1497
|
+
"description": "选中项变化时触发"
|
1498
|
+
},
|
1499
|
+
{
|
1500
|
+
"name": "finish",
|
1501
|
+
"description": "全部选项选择完成后触发"
|
1502
|
+
},
|
1503
|
+
{
|
1504
|
+
"name": "close",
|
1505
|
+
"description": "点击关闭图标时触发"
|
1506
|
+
}
|
1507
|
+
],
|
1508
|
+
"attributes": [
|
1509
|
+
{
|
1510
|
+
"name": "title",
|
1511
|
+
"default": "-",
|
1512
|
+
"description": "顶部标题",
|
1513
|
+
"value": {
|
1514
|
+
"type": "string",
|
1515
|
+
"kind": "expression"
|
1516
|
+
}
|
1517
|
+
},
|
1518
|
+
{
|
1519
|
+
"name": "value",
|
1520
|
+
"default": "-",
|
1521
|
+
"description": "选中项的值",
|
1522
|
+
"value": {
|
1523
|
+
"type": "string | number",
|
1524
|
+
"kind": "expression"
|
1525
|
+
}
|
1526
|
+
},
|
1527
|
+
{
|
1528
|
+
"name": "options",
|
1529
|
+
"default": "`[]`",
|
1530
|
+
"description": "可选项数据源",
|
1531
|
+
"value": {
|
1532
|
+
"type": "Option[]",
|
1533
|
+
"kind": "expression"
|
1534
|
+
}
|
1535
|
+
},
|
1536
|
+
{
|
1537
|
+
"name": "placeholder",
|
1538
|
+
"default": "`请选择`",
|
1539
|
+
"description": "未选中时的提示文案",
|
1540
|
+
"value": {
|
1541
|
+
"type": "string",
|
1542
|
+
"kind": "expression"
|
1543
|
+
}
|
1544
|
+
},
|
1545
|
+
{
|
1546
|
+
"name": "active-color",
|
1547
|
+
"default": "`#ee0a24`",
|
1548
|
+
"description": "选中状态的高亮颜色",
|
1576
1549
|
"value": {
|
1577
1550
|
"type": "string",
|
1578
1551
|
"kind": "expression"
|
1579
1552
|
}
|
1553
|
+
},
|
1554
|
+
{
|
1555
|
+
"name": "closeable",
|
1556
|
+
"default": "`true`",
|
1557
|
+
"description": "是否显示关闭图标",
|
1558
|
+
"value": {
|
1559
|
+
"type": "boolean",
|
1560
|
+
"kind": "expression"
|
1561
|
+
}
|
1562
|
+
},
|
1563
|
+
{
|
1564
|
+
"name": "show-header",
|
1565
|
+
"default": "`true`",
|
1566
|
+
"description": "是否展示标题栏",
|
1567
|
+
"value": {
|
1568
|
+
"type": "boolean",
|
1569
|
+
"kind": "expression"
|
1570
|
+
}
|
1571
|
+
},
|
1572
|
+
{
|
1573
|
+
"name": "field-names",
|
1574
|
+
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
1575
|
+
"description": "自定义 `options` 结构中的字段",
|
1576
|
+
"value": {
|
1577
|
+
"type": "object",
|
1578
|
+
"kind": "expression"
|
1579
|
+
}
|
1580
1580
|
}
|
1581
1581
|
]
|
1582
1582
|
},
|
@@ -2595,461 +2595,461 @@
|
|
2595
2595
|
]
|
2596
2596
|
},
|
2597
2597
|
{
|
2598
|
-
"name": "van-
|
2598
|
+
"name": "van-datetime-picker",
|
2599
2599
|
"slots": [
|
2600
2600
|
{
|
2601
|
-
"name": "
|
2602
|
-
"description": "
|
2601
|
+
"name": "default",
|
2602
|
+
"description": "自定义整个顶部栏的内容"
|
2603
2603
|
},
|
2604
2604
|
{
|
2605
|
-
"name": "
|
2606
|
-
"description": "
|
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": "自定义选项下方内容"
|
2607
2627
|
}
|
2608
2628
|
],
|
2609
2629
|
"events": [
|
2610
2630
|
{
|
2611
2631
|
"name": "change",
|
2612
|
-
"description": "
|
2632
|
+
"description": "当值变化时触发的事件"
|
2613
2633
|
},
|
2614
2634
|
{
|
2615
|
-
"name": "
|
2616
|
-
"description": "
|
2617
|
-
}
|
2618
|
-
|
2635
|
+
"name": "confirm",
|
2636
|
+
"description": "点击完成按钮时触发的事件"
|
2637
|
+
},
|
2638
|
+
{
|
2639
|
+
"name": "cancel",
|
2640
|
+
"description": "点击取消按钮时触发的事件"
|
2641
|
+
}
|
2642
|
+
],
|
2619
2643
|
"attributes": [
|
2620
2644
|
{
|
2621
|
-
"name": "
|
2622
|
-
"default": "
|
2623
|
-
"description": "
|
2645
|
+
"name": "type",
|
2646
|
+
"default": "`datetime`",
|
2647
|
+
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
|
2624
2648
|
"value": {
|
2625
2649
|
"type": "string",
|
2626
2650
|
"kind": "expression"
|
2627
2651
|
}
|
2628
2652
|
},
|
2629
2653
|
{
|
2630
|
-
"name": "
|
2631
|
-
"default": "
|
2632
|
-
"description": "
|
2654
|
+
"name": "title",
|
2655
|
+
"default": "`''`",
|
2656
|
+
"description": "顶部栏标题",
|
2633
2657
|
"value": {
|
2634
|
-
"type": "
|
2658
|
+
"type": "string",
|
2635
2659
|
"kind": "expression"
|
2636
2660
|
}
|
2637
2661
|
},
|
2638
2662
|
{
|
2639
|
-
"name": "
|
2640
|
-
"default": "
|
2641
|
-
"description": "
|
2663
|
+
"name": "confirm-button-text",
|
2664
|
+
"default": "`确认`",
|
2665
|
+
"description": "确认按钮文字",
|
2642
2666
|
"value": {
|
2643
|
-
"type": "
|
2667
|
+
"type": "string",
|
2644
2668
|
"kind": "expression"
|
2645
2669
|
}
|
2646
2670
|
},
|
2647
2671
|
{
|
2648
|
-
"name": "
|
2649
|
-
"default": "
|
2650
|
-
"description": "
|
2672
|
+
"name": "cancel-button-text",
|
2673
|
+
"default": "`取消`",
|
2674
|
+
"description": "取消按钮文字",
|
2651
2675
|
"value": {
|
2652
|
-
"type": "
|
2676
|
+
"type": "string",
|
2653
2677
|
"kind": "expression"
|
2654
2678
|
}
|
2655
2679
|
},
|
2656
2680
|
{
|
2657
|
-
"name": "
|
2681
|
+
"name": "show-toolbar",
|
2658
2682
|
"default": "`true`",
|
2659
|
-
"description": "
|
2683
|
+
"description": "是否显示顶部栏",
|
2660
2684
|
"value": {
|
2661
2685
|
"type": "boolean",
|
2662
2686
|
"kind": "expression"
|
2663
2687
|
}
|
2664
2688
|
},
|
2665
2689
|
{
|
2666
|
-
"name": "
|
2667
|
-
"default": "
|
2668
|
-
"description": "
|
2690
|
+
"name": "loading",
|
2691
|
+
"default": "`false`",
|
2692
|
+
"description": "是否显示加载状态",
|
2669
2693
|
"value": {
|
2670
|
-
"type": "
|
2694
|
+
"type": "boolean",
|
2671
2695
|
"kind": "expression"
|
2672
2696
|
}
|
2673
2697
|
},
|
2674
2698
|
{
|
2675
|
-
"name": "
|
2676
|
-
"default": "
|
2677
|
-
"description": "
|
2699
|
+
"name": "readonly",
|
2700
|
+
"default": "`false`",
|
2701
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
2678
2702
|
"value": {
|
2679
|
-
"type": "
|
2703
|
+
"type": "boolean",
|
2680
2704
|
"kind": "expression"
|
2681
2705
|
}
|
2682
2706
|
},
|
2683
2707
|
{
|
2684
|
-
"name": "
|
2685
|
-
"default": "
|
2686
|
-
"description": "
|
2708
|
+
"name": "filter",
|
2709
|
+
"default": "-",
|
2710
|
+
"description": "选项过滤函数",
|
2687
2711
|
"value": {
|
2688
|
-
"type": "
|
2712
|
+
"type": "(type, vals) => vals",
|
2689
2713
|
"kind": "expression"
|
2690
2714
|
}
|
2691
2715
|
},
|
2692
2716
|
{
|
2693
|
-
"name": "
|
2694
|
-
"default": "
|
2695
|
-
"description": "
|
2717
|
+
"name": "formatter",
|
2718
|
+
"default": "-",
|
2719
|
+
"description": "选项格式化函数",
|
2696
2720
|
"value": {
|
2697
|
-
"type": "
|
2721
|
+
"type": "(type, val) => val",
|
2698
2722
|
"kind": "expression"
|
2699
2723
|
}
|
2700
2724
|
},
|
2701
2725
|
{
|
2702
|
-
"name": "
|
2703
|
-
"default": "
|
2704
|
-
"description": "
|
2726
|
+
"name": "columns-order",
|
2727
|
+
"default": "-",
|
2728
|
+
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
2705
2729
|
"value": {
|
2706
|
-
"type": "
|
2730
|
+
"type": "string[]",
|
2707
2731
|
"kind": "expression"
|
2708
2732
|
}
|
2709
2733
|
},
|
2710
2734
|
{
|
2711
|
-
"name": "
|
2712
|
-
"default": "
|
2713
|
-
"description": "
|
2735
|
+
"name": "item-height",
|
2736
|
+
"default": "`44`",
|
2737
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
2714
2738
|
"value": {
|
2715
|
-
"type": "string",
|
2739
|
+
"type": "number | string",
|
2716
2740
|
"kind": "expression"
|
2717
2741
|
}
|
2718
2742
|
},
|
2719
2743
|
{
|
2720
|
-
"name": "
|
2721
|
-
"default": "
|
2722
|
-
"description": "
|
2744
|
+
"name": "visible-item-count",
|
2745
|
+
"default": "`6`",
|
2746
|
+
"description": "可见的选项个数",
|
2723
2747
|
"value": {
|
2724
|
-
"type": "string",
|
2748
|
+
"type": "number | string",
|
2725
2749
|
"kind": "expression"
|
2726
2750
|
}
|
2727
2751
|
},
|
2728
2752
|
{
|
2729
|
-
"name": "
|
2730
|
-
"default": "
|
2731
|
-
"description": "
|
2753
|
+
"name": "swipe-duration",
|
2754
|
+
"default": "`1000`",
|
2755
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
2732
2756
|
"value": {
|
2733
|
-
"type": "string",
|
2757
|
+
"type": "number | string",
|
2734
2758
|
"kind": "expression"
|
2735
2759
|
}
|
2736
2760
|
},
|
2737
2761
|
{
|
2738
|
-
"name": "
|
2739
|
-
"default": "
|
2740
|
-
"description": "
|
2762
|
+
"name": "min-date",
|
2763
|
+
"default": "十年前",
|
2764
|
+
"description": "可选的最小时间,精确到分钟",
|
2741
2765
|
"value": {
|
2742
|
-
"type": "
|
2766
|
+
"type": "Date",
|
2743
2767
|
"kind": "expression"
|
2744
2768
|
}
|
2745
2769
|
},
|
2746
2770
|
{
|
2747
|
-
"name": "
|
2748
|
-
"default": "
|
2749
|
-
"description": "
|
2771
|
+
"name": "max-date",
|
2772
|
+
"default": "十年后",
|
2773
|
+
"description": "可选的最大时间,精确到分钟",
|
2750
2774
|
"value": {
|
2751
|
-
"type": "
|
2775
|
+
"type": "Date",
|
2752
2776
|
"kind": "expression"
|
2753
2777
|
}
|
2754
2778
|
},
|
2755
2779
|
{
|
2756
|
-
"name": "
|
2757
|
-
"default": "`
|
2758
|
-
"description": "
|
2780
|
+
"name": "min-hour",
|
2781
|
+
"default": "`0`",
|
2782
|
+
"description": "可选的最小小时",
|
2759
2783
|
"value": {
|
2760
|
-
"type": "number",
|
2784
|
+
"type": "number | string",
|
2761
2785
|
"kind": "expression"
|
2762
2786
|
}
|
2763
2787
|
},
|
2764
2788
|
{
|
2765
|
-
"name": "
|
2766
|
-
"default": "
|
2767
|
-
"description": "
|
2789
|
+
"name": "max-hour",
|
2790
|
+
"default": "`23`",
|
2791
|
+
"description": "可选的最大小时",
|
2768
2792
|
"value": {
|
2769
|
-
"type": "number",
|
2793
|
+
"type": "number | string",
|
2770
2794
|
"kind": "expression"
|
2771
2795
|
}
|
2772
2796
|
},
|
2773
2797
|
{
|
2774
|
-
"name": "
|
2775
|
-
"default": "`
|
2776
|
-
"description": "
|
2798
|
+
"name": "min-minute",
|
2799
|
+
"default": "`0`",
|
2800
|
+
"description": "可选的最小分钟",
|
2777
2801
|
"value": {
|
2778
|
-
"type": "
|
2802
|
+
"type": "number | string",
|
2779
2803
|
"kind": "expression"
|
2780
2804
|
}
|
2781
2805
|
},
|
2782
2806
|
{
|
2783
|
-
"name": "
|
2784
|
-
"default": "
|
2785
|
-
"description": "
|
2807
|
+
"name": "max-minute",
|
2808
|
+
"default": "`59`",
|
2809
|
+
"description": "可选的最大分钟",
|
2786
2810
|
"value": {
|
2787
|
-
"type": "string",
|
2811
|
+
"type": "number | string",
|
2788
2812
|
"kind": "expression"
|
2789
2813
|
}
|
2814
|
+
}
|
2815
|
+
]
|
2816
|
+
},
|
2817
|
+
{
|
2818
|
+
"name": "van-coupon",
|
2819
|
+
"slots": [
|
2820
|
+
{
|
2821
|
+
"name": "list-footer",
|
2822
|
+
"description": "优惠券列表底部"
|
2790
2823
|
},
|
2791
2824
|
{
|
2792
|
-
"name": "
|
2793
|
-
"
|
2794
|
-
|
2825
|
+
"name": "disabled-list-footer",
|
2826
|
+
"description": "不可用优惠券列表底部"
|
2827
|
+
}
|
2828
|
+
],
|
2829
|
+
"events": [
|
2830
|
+
{
|
2831
|
+
"name": "change",
|
2832
|
+
"description": "优惠券切换回调"
|
2833
|
+
},
|
2834
|
+
{
|
2835
|
+
"name": "exchange",
|
2836
|
+
"description": "兑换优惠券回调"
|
2837
|
+
}
|
2838
|
+
],
|
2839
|
+
"attributes": [
|
2840
|
+
{
|
2841
|
+
"name": "title",
|
2842
|
+
"default": "`优惠券`",
|
2843
|
+
"description": "单元格标题",
|
2795
2844
|
"value": {
|
2796
2845
|
"type": "string",
|
2797
2846
|
"kind": "expression"
|
2798
2847
|
}
|
2799
2848
|
},
|
2800
2849
|
{
|
2801
|
-
"name": "
|
2802
|
-
"default": "`
|
2803
|
-
"description": "
|
2850
|
+
"name": "chosen-coupon",
|
2851
|
+
"default": "`-1`",
|
2852
|
+
"description": "当前选中优惠券的索引",
|
2804
2853
|
"value": {
|
2805
|
-
"type": "
|
2854
|
+
"type": "number | string",
|
2806
2855
|
"kind": "expression"
|
2807
2856
|
}
|
2808
2857
|
},
|
2809
2858
|
{
|
2810
|
-
"name": "
|
2811
|
-
"default": "
|
2812
|
-
"description": "
|
2859
|
+
"name": "coupons",
|
2860
|
+
"default": "`[]`",
|
2861
|
+
"description": "可用优惠券列表",
|
2813
2862
|
"value": {
|
2814
|
-
"type": "
|
2863
|
+
"type": "Coupon[]",
|
2815
2864
|
"kind": "expression"
|
2816
2865
|
}
|
2817
2866
|
},
|
2818
2867
|
{
|
2819
|
-
"name": "
|
2820
|
-
"default": "`
|
2821
|
-
"description": "
|
2868
|
+
"name": "editable",
|
2869
|
+
"default": "`true`",
|
2870
|
+
"description": "能否切换优惠券",
|
2822
2871
|
"value": {
|
2823
|
-
"type": "
|
2872
|
+
"type": "boolean",
|
2824
2873
|
"kind": "expression"
|
2825
2874
|
}
|
2826
2875
|
},
|
2827
2876
|
{
|
2828
|
-
"name": "
|
2877
|
+
"name": "border",
|
2829
2878
|
"default": "`true`",
|
2830
|
-
"description": "
|
2879
|
+
"description": "是否显示内边框",
|
2831
2880
|
"value": {
|
2832
2881
|
"type": "boolean",
|
2833
2882
|
"kind": "expression"
|
2834
2883
|
}
|
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
2884
|
},
|
2865
2885
|
{
|
2866
|
-
"name": "
|
2867
|
-
"
|
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`",
|
2886
|
+
"name": "currency",
|
2887
|
+
"default": "`¥`",
|
2888
|
+
"description": "货币符号",
|
2889
2889
|
"value": {
|
2890
2890
|
"type": "string",
|
2891
2891
|
"kind": "expression"
|
2892
2892
|
}
|
2893
2893
|
},
|
2894
2894
|
{
|
2895
|
-
"name": "
|
2896
|
-
"default": "
|
2897
|
-
"description": "
|
2895
|
+
"name": "v-model",
|
2896
|
+
"default": "-",
|
2897
|
+
"description": "当前输入的兑换码",
|
2898
2898
|
"value": {
|
2899
2899
|
"type": "string",
|
2900
2900
|
"kind": "expression"
|
2901
2901
|
}
|
2902
2902
|
},
|
2903
2903
|
{
|
2904
|
-
"name": "
|
2905
|
-
"default": "
|
2906
|
-
"description": "
|
2904
|
+
"name": "chosen-coupon",
|
2905
|
+
"default": "`-1`",
|
2906
|
+
"description": "当前选中优惠券的索引",
|
2907
2907
|
"value": {
|
2908
|
-
"type": "
|
2908
|
+
"type": "number",
|
2909
2909
|
"kind": "expression"
|
2910
2910
|
}
|
2911
2911
|
},
|
2912
2912
|
{
|
2913
|
-
"name": "
|
2914
|
-
"default": "
|
2915
|
-
"description": "
|
2913
|
+
"name": "coupons",
|
2914
|
+
"default": "`[]`",
|
2915
|
+
"description": "可用优惠券列表",
|
2916
2916
|
"value": {
|
2917
|
-
"type": "
|
2917
|
+
"type": "Coupon[]",
|
2918
2918
|
"kind": "expression"
|
2919
2919
|
}
|
2920
2920
|
},
|
2921
2921
|
{
|
2922
|
-
"name": "
|
2923
|
-
"default": "`
|
2924
|
-
"description": "
|
2922
|
+
"name": "disabled-coupons",
|
2923
|
+
"default": "`[]`",
|
2924
|
+
"description": "不可用优惠券列表",
|
2925
2925
|
"value": {
|
2926
|
-
"type": "
|
2926
|
+
"type": "Coupon[]",
|
2927
2927
|
"kind": "expression"
|
2928
2928
|
}
|
2929
2929
|
},
|
2930
2930
|
{
|
2931
|
-
"name": "
|
2932
|
-
"default": "
|
2933
|
-
"description": "
|
2931
|
+
"name": "enabled-title",
|
2932
|
+
"default": "`可使用优惠券`",
|
2933
|
+
"description": "可用优惠券列表标题",
|
2934
2934
|
"value": {
|
2935
|
-
"type": "
|
2935
|
+
"type": "string",
|
2936
2936
|
"kind": "expression"
|
2937
2937
|
}
|
2938
2938
|
},
|
2939
2939
|
{
|
2940
|
-
"name": "
|
2941
|
-
"default": "
|
2942
|
-
"description": "
|
2940
|
+
"name": "disabled-title",
|
2941
|
+
"default": "`不可使用优惠券`",
|
2942
|
+
"description": "不可用优惠券列表标题",
|
2943
2943
|
"value": {
|
2944
|
-
"type": "
|
2944
|
+
"type": "string",
|
2945
2945
|
"kind": "expression"
|
2946
2946
|
}
|
2947
2947
|
},
|
2948
2948
|
{
|
2949
|
-
"name": "
|
2950
|
-
"default": "
|
2951
|
-
"description": "
|
2949
|
+
"name": "exchange-button-text",
|
2950
|
+
"default": "`兑换`",
|
2951
|
+
"description": "兑换按钮文字",
|
2952
2952
|
"value": {
|
2953
|
-
"type": "
|
2953
|
+
"type": "string",
|
2954
2954
|
"kind": "expression"
|
2955
2955
|
}
|
2956
2956
|
},
|
2957
2957
|
{
|
2958
|
-
"name": "
|
2959
|
-
"default": "
|
2960
|
-
"description": "
|
2958
|
+
"name": "exchange-button-loading",
|
2959
|
+
"default": "`false`",
|
2960
|
+
"description": "是否显示兑换按钮加载动画",
|
2961
2961
|
"value": {
|
2962
|
-
"type": "
|
2962
|
+
"type": "boolean",
|
2963
2963
|
"kind": "expression"
|
2964
2964
|
}
|
2965
2965
|
},
|
2966
2966
|
{
|
2967
|
-
"name": "
|
2968
|
-
"default": "
|
2969
|
-
"description": "
|
2967
|
+
"name": "exchange-button-disabled",
|
2968
|
+
"default": "`false`",
|
2969
|
+
"description": "是否禁用兑换按钮",
|
2970
2970
|
"value": {
|
2971
|
-
"type": "
|
2971
|
+
"type": "boolean",
|
2972
2972
|
"kind": "expression"
|
2973
2973
|
}
|
2974
2974
|
},
|
2975
2975
|
{
|
2976
|
-
"name": "
|
2977
|
-
"default": "`
|
2978
|
-
"description": "
|
2976
|
+
"name": "exchange-min-length",
|
2977
|
+
"default": "`1`",
|
2978
|
+
"description": "兑换码最小长度",
|
2979
2979
|
"value": {
|
2980
|
-
"type": "number
|
2980
|
+
"type": "number",
|
2981
2981
|
"kind": "expression"
|
2982
2982
|
}
|
2983
2983
|
},
|
2984
2984
|
{
|
2985
|
-
"name": "
|
2986
|
-
"default": "
|
2987
|
-
"description": "
|
2985
|
+
"name": "displayed-coupon-index",
|
2986
|
+
"default": "-",
|
2987
|
+
"description": "滚动至特定优惠券位置",
|
2988
2988
|
"value": {
|
2989
|
-
"type": "number
|
2989
|
+
"type": "number",
|
2990
2990
|
"kind": "expression"
|
2991
2991
|
}
|
2992
2992
|
},
|
2993
2993
|
{
|
2994
|
-
"name": "
|
2995
|
-
"default": "`
|
2996
|
-
"description": "
|
2994
|
+
"name": "show-close-button",
|
2995
|
+
"default": "`true`",
|
2996
|
+
"description": "是否显示列表底部按钮",
|
2997
2997
|
"value": {
|
2998
|
-
"type": "
|
2998
|
+
"type": "boolean",
|
2999
2999
|
"kind": "expression"
|
3000
3000
|
}
|
3001
3001
|
},
|
3002
3002
|
{
|
3003
|
-
"name": "
|
3004
|
-
"default": "
|
3005
|
-
"description": "
|
3003
|
+
"name": "close-button-text",
|
3004
|
+
"default": "`不使用优惠`",
|
3005
|
+
"description": "列表底部按钮文字",
|
3006
3006
|
"value": {
|
3007
|
-
"type": "
|
3007
|
+
"type": "string",
|
3008
3008
|
"kind": "expression"
|
3009
3009
|
}
|
3010
3010
|
},
|
3011
3011
|
{
|
3012
|
-
"name": "
|
3013
|
-
"default": "
|
3014
|
-
"description": "
|
3012
|
+
"name": "input-placeholder",
|
3013
|
+
"default": "`请输入优惠码`",
|
3014
|
+
"description": "输入框文字提示",
|
3015
3015
|
"value": {
|
3016
|
-
"type": "
|
3016
|
+
"type": "string",
|
3017
3017
|
"kind": "expression"
|
3018
3018
|
}
|
3019
3019
|
},
|
3020
3020
|
{
|
3021
|
-
"name": "
|
3022
|
-
"default": "`
|
3023
|
-
"description": "
|
3021
|
+
"name": "show-exchange-bar",
|
3022
|
+
"default": "`true`",
|
3023
|
+
"description": "是否展示兑换栏",
|
3024
3024
|
"value": {
|
3025
|
-
"type": "
|
3025
|
+
"type": "boolean",
|
3026
3026
|
"kind": "expression"
|
3027
3027
|
}
|
3028
3028
|
},
|
3029
3029
|
{
|
3030
|
-
"name": "
|
3031
|
-
"default": "
|
3032
|
-
"description": "
|
3030
|
+
"name": "currency",
|
3031
|
+
"default": "`¥`",
|
3032
|
+
"description": "货币符号",
|
3033
3033
|
"value": {
|
3034
|
-
"type": "
|
3034
|
+
"type": "string",
|
3035
3035
|
"kind": "expression"
|
3036
3036
|
}
|
3037
3037
|
},
|
3038
3038
|
{
|
3039
|
-
"name": "
|
3040
|
-
"default": "`
|
3041
|
-
"description": "
|
3039
|
+
"name": "empty-image",
|
3040
|
+
"default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
|
3041
|
+
"description": "列表为空时的占位图",
|
3042
3042
|
"value": {
|
3043
|
-
"type": "
|
3043
|
+
"type": "string",
|
3044
3044
|
"kind": "expression"
|
3045
3045
|
}
|
3046
3046
|
},
|
3047
3047
|
{
|
3048
|
-
"name": "
|
3049
|
-
"default": "`
|
3050
|
-
"description": "
|
3048
|
+
"name": "show-count",
|
3049
|
+
"default": "`true`",
|
3050
|
+
"description": "是否展示可用 / 不可用数量",
|
3051
3051
|
"value": {
|
3052
|
-
"type": "
|
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-
|
5135
|
+
"name": "van-notice-bar",
|
5136
5136
|
"slots": [
|
5137
5137
|
{
|
5138
|
-
"name": "
|
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
|
5153
|
-
"description": "
|
5152
|
+
"name": "click",
|
5153
|
+
"description": "点击通知栏时触发"
|
5154
5154
|
},
|
5155
5155
|
{
|
5156
|
-
"name": "
|
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": "
|
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": "
|
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": "
|
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": "
|
5190
|
-
"default": "`
|
5191
|
-
"description": "
|
5193
|
+
"name": "background",
|
5194
|
+
"default": "`#fff7cc`",
|
5195
|
+
"description": "滚动条背景",
|
5192
5196
|
"value": {
|
5193
|
-
"type": "
|
5197
|
+
"type": "string",
|
5194
5198
|
"kind": "expression"
|
5195
5199
|
}
|
5196
5200
|
},
|
5197
5201
|
{
|
5198
|
-
"name": "
|
5199
|
-
"default": "
|
5200
|
-
"description": "
|
5202
|
+
"name": "left-icon",
|
5203
|
+
"default": "-",
|
5204
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
5201
5205
|
"value": {
|
5202
|
-
"type": "
|
5206
|
+
"type": "string",
|
5203
5207
|
"kind": "expression"
|
5204
5208
|
}
|
5205
5209
|
},
|
5206
5210
|
{
|
5207
|
-
"name": "
|
5208
|
-
"default": "`
|
5209
|
-
"description": "
|
5211
|
+
"name": "delay",
|
5212
|
+
"default": "`1`",
|
5213
|
+
"description": "动画延迟时间 (s)",
|
5210
5214
|
"value": {
|
5211
|
-
"type": "
|
5215
|
+
"type": "number | string",
|
5212
5216
|
"kind": "expression"
|
5213
5217
|
}
|
5214
5218
|
},
|
5215
5219
|
{
|
5216
|
-
"name": "
|
5217
|
-
"default": "`
|
5218
|
-
"description": "
|
5220
|
+
"name": "speed",
|
5221
|
+
"default": "`60`",
|
5222
|
+
"description": "滚动速率 (px/s)",
|
5219
5223
|
"value": {
|
5220
|
-
"type": "
|
5224
|
+
"type": "number | string",
|
5221
5225
|
"kind": "expression"
|
5222
5226
|
}
|
5223
5227
|
},
|
5224
5228
|
{
|
5225
|
-
"name": "
|
5226
|
-
"default": "
|
5227
|
-
"description": "
|
5229
|
+
"name": "scrollable",
|
5230
|
+
"default": "-",
|
5231
|
+
"description": "是否开启滚动播放,内容长度溢出时默认开启",
|
5228
5232
|
"value": {
|
5229
|
-
"type": "
|
5233
|
+
"type": "boolean",
|
5230
5234
|
"kind": "expression"
|
5231
5235
|
}
|
5232
5236
|
},
|
5233
5237
|
{
|
5234
|
-
"name": "
|
5238
|
+
"name": "wrapable",
|
5235
5239
|
"default": "`false`",
|
5236
|
-
"description": "
|
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-
|
5249
|
+
"name": "van-nav-bar",
|
5246
5250
|
"slots": [
|
5247
5251
|
{
|
5248
|
-
"name": "
|
5249
|
-
"description": "
|
5252
|
+
"name": "title",
|
5253
|
+
"description": "自定义标题"
|
5250
5254
|
},
|
5251
5255
|
{
|
5252
|
-
"name": "left
|
5253
|
-
"description": "
|
5256
|
+
"name": "left",
|
5257
|
+
"description": "自定义左侧区域内容"
|
5254
5258
|
},
|
5255
5259
|
{
|
5256
|
-
"name": "right
|
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": "
|
5271
|
-
"description": "
|
5270
|
+
"name": "click-right",
|
5271
|
+
"description": "点击右侧按钮时触发"
|
5272
5272
|
}
|
5273
5273
|
],
|
5274
5274
|
"attributes": [
|
5275
5275
|
{
|
5276
|
-
"name": "
|
5276
|
+
"name": "title",
|
5277
5277
|
"default": "`''`",
|
5278
|
-
"description": "
|
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": "
|
5295
|
-
"default": "
|
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": "
|
5304
|
-
"default": "
|
5305
|
-
"description": "
|
5303
|
+
"name": "left-arrow",
|
5304
|
+
"default": "`false`",
|
5305
|
+
"description": "是否显示左侧箭头",
|
5306
5306
|
"value": {
|
5307
|
-
"type": "
|
5307
|
+
"type": "boolean",
|
5308
5308
|
"kind": "expression"
|
5309
5309
|
}
|
5310
5310
|
},
|
5311
5311
|
{
|
5312
|
-
"name": "
|
5313
|
-
"default": "
|
5314
|
-
"description": "
|
5312
|
+
"name": "border",
|
5313
|
+
"default": "`true`",
|
5314
|
+
"description": "是否显示下边框",
|
5315
5315
|
"value": {
|
5316
|
-
"type": "
|
5316
|
+
"type": "boolean",
|
5317
5317
|
"kind": "expression"
|
5318
5318
|
}
|
5319
5319
|
},
|
5320
5320
|
{
|
5321
|
-
"name": "
|
5322
|
-
"default": "`
|
5323
|
-
"description": "
|
5321
|
+
"name": "fixed",
|
5322
|
+
"default": "`false`",
|
5323
|
+
"description": "是否固定在顶部",
|
5324
5324
|
"value": {
|
5325
|
-
"type": "
|
5325
|
+
"type": "boolean",
|
5326
5326
|
"kind": "expression"
|
5327
5327
|
}
|
5328
5328
|
},
|
5329
5329
|
{
|
5330
|
-
"name": "
|
5331
|
-
"default": "`
|
5332
|
-
"description": "
|
5330
|
+
"name": "placeholder",
|
5331
|
+
"default": "`false`",
|
5332
|
+
"description": "固定在顶部时,是否在标签位置生成一个等高的占位元素",
|
5333
5333
|
"value": {
|
5334
|
-
"type": "
|
5334
|
+
"type": "boolean",
|
5335
5335
|
"kind": "expression"
|
5336
5336
|
}
|
5337
5337
|
},
|
5338
5338
|
{
|
5339
|
-
"name": "
|
5340
|
-
"default": "
|
5341
|
-
"description": "
|
5339
|
+
"name": "z-index",
|
5340
|
+
"default": "`1`",
|
5341
|
+
"description": "导航栏 z-index",
|
5342
5342
|
"value": {
|
5343
|
-
"type": "
|
5343
|
+
"type": "number | string",
|
5344
5344
|
"kind": "expression"
|
5345
5345
|
}
|
5346
5346
|
},
|
5347
5347
|
{
|
5348
|
-
"name": "
|
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"
|