vant 2.12.52 → 2.12.54
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/changelog.generated.md +12 -0
- package/es/index.js +1 -1
- package/es/popover/index.js +14 -2
- package/es/search/index.css +1 -1
- package/es/search/index.less +1 -1
- package/es/sku/Sku.js +12 -3
- package/es/sku/components/SkuRowPropItem.js +5 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/popover/index.js +13 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.less +1 -1
- package/lib/sku/Sku.js +12 -3
- package/lib/sku/components/SkuRowPropItem.js +5 -1
- package/lib/vant.js +31 -6
- package/lib/vant.min.js +2 -2
- package/package.json +1 -1
- package/vetur/attributes.json +316 -316
- package/vetur/tags.json +106 -106
- package/vetur/web-types.json +1008 -1008
package/vetur/web-types.json
CHANGED
@@ -2,119 +2,257 @@
|
|
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.54",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
9
9
|
{
|
10
|
-
"name": "van-
|
10
|
+
"name": "van-action-sheet",
|
11
11
|
"slots": [
|
12
12
|
{
|
13
13
|
"name": "default",
|
14
|
-
"description": "
|
15
|
-
},
|
16
|
-
{
|
17
|
-
"name": "top",
|
18
|
-
"description": "在顶部插入内容"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"name": "item-bottom",
|
22
|
-
"description": "在列表项底部插入内容"
|
14
|
+
"description": "自定义面板的展示内容"
|
23
15
|
},
|
24
16
|
{
|
25
|
-
"name": "
|
26
|
-
"description": "
|
17
|
+
"name": "description",
|
18
|
+
"description": "自定义描述文案"
|
27
19
|
}
|
28
20
|
],
|
29
21
|
"events": [
|
30
22
|
{
|
31
|
-
"name": "
|
32
|
-
"description": "
|
23
|
+
"name": "select",
|
24
|
+
"description": "点击选项时触发,禁用或加载状态下不会触发"
|
33
25
|
},
|
34
26
|
{
|
35
|
-
"name": "
|
36
|
-
"description": "
|
27
|
+
"name": "cancel",
|
28
|
+
"description": "点击取消按钮时触发"
|
37
29
|
},
|
38
30
|
{
|
39
|
-
"name": "
|
40
|
-
"description": "
|
31
|
+
"name": "open",
|
32
|
+
"description": "打开面板时触发"
|
41
33
|
},
|
42
34
|
{
|
43
|
-
"name": "
|
44
|
-
"description": "
|
35
|
+
"name": "close",
|
36
|
+
"description": "关闭面板时触发"
|
45
37
|
},
|
46
38
|
{
|
47
|
-
"name": "
|
48
|
-
"description": "
|
39
|
+
"name": "opened",
|
40
|
+
"description": "打开面板且动画结束后触发"
|
49
41
|
},
|
50
42
|
{
|
51
|
-
"name": "
|
52
|
-
"description": "
|
43
|
+
"name": "closed",
|
44
|
+
"description": "关闭面板且动画结束后触发"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"name": "click-overlay",
|
48
|
+
"description": "点击遮罩层时触发"
|
53
49
|
}
|
54
50
|
],
|
55
51
|
"attributes": [
|
56
52
|
{
|
57
|
-
"name": "v-model",
|
58
|
-
"default": "
|
59
|
-
"description": "
|
53
|
+
"name": "v-model (value)",
|
54
|
+
"default": "`false`",
|
55
|
+
"description": "是否显示动作面板",
|
60
56
|
"value": {
|
61
|
-
"type": "
|
57
|
+
"type": "boolean",
|
62
58
|
"kind": "expression"
|
63
59
|
}
|
64
60
|
},
|
65
61
|
{
|
66
|
-
"name": "
|
62
|
+
"name": "actions",
|
67
63
|
"default": "`[]`",
|
68
|
-
"description": "
|
64
|
+
"description": "面板选项列表",
|
69
65
|
"value": {
|
70
|
-
"type": "
|
66
|
+
"type": "Action[]",
|
71
67
|
"kind": "expression"
|
72
68
|
}
|
73
69
|
},
|
74
70
|
{
|
75
|
-
"name": "
|
76
|
-
"default": "
|
77
|
-
"description": "
|
71
|
+
"name": "title",
|
72
|
+
"default": "-",
|
73
|
+
"description": "顶部标题",
|
78
74
|
"value": {
|
79
|
-
"type": "
|
75
|
+
"type": "string",
|
80
76
|
"kind": "expression"
|
81
77
|
}
|
82
78
|
},
|
83
79
|
{
|
84
|
-
"name": "
|
80
|
+
"name": "cancel-text",
|
85
81
|
"default": "-",
|
86
|
-
"description": "
|
82
|
+
"description": "取消按钮文字",
|
87
83
|
"value": {
|
88
84
|
"type": "string",
|
89
85
|
"kind": "expression"
|
90
86
|
}
|
91
87
|
},
|
92
88
|
{
|
93
|
-
"name": "
|
89
|
+
"name": "description",
|
90
|
+
"default": "-",
|
91
|
+
"description": "选项上方的描述信息",
|
92
|
+
"value": {
|
93
|
+
"type": "string",
|
94
|
+
"kind": "expression"
|
95
|
+
}
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"name": "closeable",
|
94
99
|
"default": "`true`",
|
95
|
-
"description": "
|
100
|
+
"description": "是否显示关闭图标",
|
96
101
|
"value": {
|
97
102
|
"type": "boolean",
|
98
103
|
"kind": "expression"
|
99
104
|
}
|
100
105
|
},
|
101
106
|
{
|
102
|
-
"name": "
|
103
|
-
"default": "
|
104
|
-
"description": "
|
107
|
+
"name": "close-icon",
|
108
|
+
"default": "`cross`",
|
109
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
|
105
110
|
"value": {
|
106
111
|
"type": "string",
|
107
112
|
"kind": "expression"
|
108
113
|
}
|
109
114
|
},
|
110
115
|
{
|
111
|
-
"name": "
|
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",
|
112
198
|
"default": "-",
|
113
|
-
"description": "
|
199
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
200
|
+
"value": {
|
201
|
+
"type": "string | () => Element",
|
202
|
+
"kind": "expression"
|
203
|
+
}
|
204
|
+
}
|
205
|
+
]
|
206
|
+
},
|
207
|
+
{
|
208
|
+
"name": "van-badge",
|
209
|
+
"slots": [
|
210
|
+
{
|
211
|
+
"name": "default",
|
212
|
+
"description": "徽标包裹的子元素"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"name": "content",
|
216
|
+
"description": "自定义徽标内容"
|
217
|
+
}
|
218
|
+
],
|
219
|
+
"events": [],
|
220
|
+
"attributes": [
|
221
|
+
{
|
222
|
+
"name": "content",
|
223
|
+
"default": "-",
|
224
|
+
"description": "徽标内容",
|
225
|
+
"value": {
|
226
|
+
"type": "number | string",
|
227
|
+
"kind": "expression"
|
228
|
+
}
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"name": "color",
|
232
|
+
"default": "`#ee0a24`",
|
233
|
+
"description": "徽标背景颜色",
|
114
234
|
"value": {
|
115
235
|
"type": "string",
|
116
236
|
"kind": "expression"
|
117
237
|
}
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"name": "dot",
|
241
|
+
"default": "`false`",
|
242
|
+
"description": "是否展示为小红点",
|
243
|
+
"value": {
|
244
|
+
"type": "boolean",
|
245
|
+
"kind": "expression"
|
246
|
+
}
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"name": "max",
|
250
|
+
"default": "-",
|
251
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
252
|
+
"value": {
|
253
|
+
"type": "number | string",
|
254
|
+
"kind": "expression"
|
255
|
+
}
|
118
256
|
}
|
119
257
|
]
|
120
258
|
},
|
@@ -269,535 +407,425 @@
|
|
269
407
|
]
|
270
408
|
},
|
271
409
|
{
|
272
|
-
"name": "van-
|
410
|
+
"name": "van-button",
|
273
411
|
"slots": [
|
274
412
|
{
|
275
413
|
"name": "default",
|
276
|
-
"description": "
|
414
|
+
"description": "按钮内容"
|
277
415
|
},
|
278
416
|
{
|
279
|
-
"name": "
|
280
|
-
"description": "
|
417
|
+
"name": "icon",
|
418
|
+
"description": "自定义图标"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"name": "loading",
|
422
|
+
"description": "自定义加载图标"
|
281
423
|
}
|
282
424
|
],
|
283
425
|
"events": [
|
284
426
|
{
|
285
|
-
"name": "
|
286
|
-
"description": "
|
287
|
-
},
|
288
|
-
{
|
289
|
-
"name": "cancel",
|
290
|
-
"description": "点击取消按钮时触发"
|
427
|
+
"name": "click",
|
428
|
+
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
291
429
|
},
|
292
430
|
{
|
293
|
-
"name": "
|
294
|
-
"description": "
|
295
|
-
}
|
431
|
+
"name": "touchstart",
|
432
|
+
"description": "开始触摸按钮时触发"
|
433
|
+
}
|
434
|
+
],
|
435
|
+
"attributes": [
|
296
436
|
{
|
297
|
-
"name": "
|
298
|
-
"
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
{
|
305
|
-
"name": "closed",
|
306
|
-
"description": "关闭面板且动画结束后触发"
|
437
|
+
"name": "type",
|
438
|
+
"default": "`default`",
|
439
|
+
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
440
|
+
"value": {
|
441
|
+
"type": "string",
|
442
|
+
"kind": "expression"
|
443
|
+
}
|
307
444
|
},
|
308
445
|
{
|
309
|
-
"name": "
|
310
|
-
"
|
311
|
-
|
312
|
-
],
|
313
|
-
"attributes": [
|
314
|
-
{
|
315
|
-
"name": "v-model (value)",
|
316
|
-
"default": "`false`",
|
317
|
-
"description": "是否显示动作面板",
|
446
|
+
"name": "size",
|
447
|
+
"default": "`normal`",
|
448
|
+
"description": "尺寸,可选值为 `large` `small` `mini`",
|
318
449
|
"value": {
|
319
|
-
"type": "
|
450
|
+
"type": "string",
|
320
451
|
"kind": "expression"
|
321
452
|
}
|
322
453
|
},
|
323
454
|
{
|
324
|
-
"name": "
|
325
|
-
"default": "
|
326
|
-
"description": "
|
455
|
+
"name": "text",
|
456
|
+
"default": "-",
|
457
|
+
"description": "按钮文字",
|
327
458
|
"value": {
|
328
|
-
"type": "
|
459
|
+
"type": "string",
|
329
460
|
"kind": "expression"
|
330
461
|
}
|
331
462
|
},
|
332
463
|
{
|
333
|
-
"name": "
|
464
|
+
"name": "color",
|
334
465
|
"default": "-",
|
335
|
-
"description": "
|
466
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
336
467
|
"value": {
|
337
468
|
"type": "string",
|
338
469
|
"kind": "expression"
|
339
470
|
}
|
340
471
|
},
|
341
472
|
{
|
342
|
-
"name": "
|
473
|
+
"name": "icon",
|
343
474
|
"default": "-",
|
344
|
-
"description": "
|
475
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
345
476
|
"value": {
|
346
477
|
"type": "string",
|
347
478
|
"kind": "expression"
|
348
479
|
}
|
349
480
|
},
|
350
481
|
{
|
351
|
-
"name": "
|
352
|
-
"default": "-",
|
353
|
-
"description": "
|
482
|
+
"name": "icon-prefix",
|
483
|
+
"default": "`van-icon`",
|
484
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
354
485
|
"value": {
|
355
486
|
"type": "string",
|
356
487
|
"kind": "expression"
|
357
488
|
}
|
358
489
|
},
|
359
490
|
{
|
360
|
-
"name": "
|
361
|
-
"default": "`
|
362
|
-
"description": "
|
491
|
+
"name": "icon-position",
|
492
|
+
"default": "`left`",
|
493
|
+
"description": "图标展示位置,可选值为 `right`",
|
363
494
|
"value": {
|
364
|
-
"type": "
|
495
|
+
"type": "string",
|
365
496
|
"kind": "expression"
|
366
497
|
}
|
367
498
|
},
|
368
499
|
{
|
369
|
-
"name": "
|
370
|
-
"default": "`
|
371
|
-
"description": "
|
500
|
+
"name": "tag",
|
501
|
+
"default": "`button`",
|
502
|
+
"description": "按钮根节点的 HTML 标签",
|
372
503
|
"value": {
|
373
504
|
"type": "string",
|
374
505
|
"kind": "expression"
|
375
506
|
}
|
376
507
|
},
|
377
508
|
{
|
378
|
-
"name": "
|
379
|
-
"default": "
|
380
|
-
"description": "
|
509
|
+
"name": "native-type",
|
510
|
+
"default": "-",
|
511
|
+
"description": "原生 button 标签的 type 属性",
|
381
512
|
"value": {
|
382
|
-
"type": "
|
513
|
+
"type": "string",
|
383
514
|
"kind": "expression"
|
384
515
|
}
|
385
516
|
},
|
386
517
|
{
|
387
|
-
"name": "
|
388
|
-
"default": "`
|
389
|
-
"description": "
|
518
|
+
"name": "block",
|
519
|
+
"default": "`false`",
|
520
|
+
"description": "是否为块级元素",
|
390
521
|
"value": {
|
391
522
|
"type": "boolean",
|
392
523
|
"kind": "expression"
|
393
524
|
}
|
394
525
|
},
|
395
526
|
{
|
396
|
-
"name": "
|
397
|
-
"default": "`
|
398
|
-
"description": "
|
527
|
+
"name": "plain",
|
528
|
+
"default": "`false`",
|
529
|
+
"description": "是否为朴素按钮",
|
399
530
|
"value": {
|
400
531
|
"type": "boolean",
|
401
532
|
"kind": "expression"
|
402
533
|
}
|
403
534
|
},
|
404
535
|
{
|
405
|
-
"name": "
|
406
|
-
"default": "`
|
407
|
-
"description": "
|
536
|
+
"name": "square",
|
537
|
+
"default": "`false`",
|
538
|
+
"description": "是否为方形按钮",
|
408
539
|
"value": {
|
409
540
|
"type": "boolean",
|
410
541
|
"kind": "expression"
|
411
542
|
}
|
412
543
|
},
|
413
544
|
{
|
414
|
-
"name": "
|
415
|
-
"default": "`
|
416
|
-
"description": "
|
545
|
+
"name": "round",
|
546
|
+
"default": "`false`",
|
547
|
+
"description": "是否为圆形按钮",
|
417
548
|
"value": {
|
418
549
|
"type": "boolean",
|
419
550
|
"kind": "expression"
|
420
551
|
}
|
421
552
|
},
|
422
553
|
{
|
423
|
-
"name": "
|
554
|
+
"name": "disabled",
|
424
555
|
"default": "`false`",
|
425
|
-
"description": "
|
556
|
+
"description": "是否禁用按钮",
|
426
557
|
"value": {
|
427
558
|
"type": "boolean",
|
428
559
|
"kind": "expression"
|
429
560
|
}
|
430
561
|
},
|
431
562
|
{
|
432
|
-
"name": "
|
563
|
+
"name": "hairline",
|
433
564
|
"default": "`false`",
|
434
|
-
"description": "
|
565
|
+
"description": "是否使用 0.5px 边框",
|
435
566
|
"value": {
|
436
567
|
"type": "boolean",
|
437
568
|
"kind": "expression"
|
438
569
|
}
|
439
570
|
},
|
440
571
|
{
|
441
|
-
"name": "
|
442
|
-
"default": "`
|
443
|
-
"description": "
|
572
|
+
"name": "loading",
|
573
|
+
"default": "`false`",
|
574
|
+
"description": "是否显示为加载状态",
|
444
575
|
"value": {
|
445
576
|
"type": "boolean",
|
446
577
|
"kind": "expression"
|
447
578
|
}
|
448
579
|
},
|
449
580
|
{
|
450
|
-
"name": "
|
451
|
-
"default": "
|
452
|
-
"description": "
|
581
|
+
"name": "loading-text",
|
582
|
+
"default": "-",
|
583
|
+
"description": "加载状态提示文字",
|
453
584
|
"value": {
|
454
|
-
"type": "
|
585
|
+
"type": "string",
|
455
586
|
"kind": "expression"
|
456
587
|
}
|
457
588
|
},
|
458
589
|
{
|
459
|
-
"name": "
|
590
|
+
"name": "loading-type",
|
591
|
+
"default": "`circular`",
|
592
|
+
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
|
593
|
+
"value": {
|
594
|
+
"type": "string",
|
595
|
+
"kind": "expression"
|
596
|
+
}
|
597
|
+
},
|
598
|
+
{
|
599
|
+
"name": "loading-size",
|
600
|
+
"default": "`20px`",
|
601
|
+
"description": "加载图标大小",
|
602
|
+
"value": {
|
603
|
+
"type": "string",
|
604
|
+
"kind": "expression"
|
605
|
+
}
|
606
|
+
},
|
607
|
+
{
|
608
|
+
"name": "url",
|
460
609
|
"default": "-",
|
461
|
-
"description": "
|
610
|
+
"description": "点击后跳转的链接地址",
|
462
611
|
"value": {
|
463
|
-
"type": "string
|
612
|
+
"type": "string",
|
613
|
+
"kind": "expression"
|
614
|
+
}
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"name": "to",
|
618
|
+
"default": "-",
|
619
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
620
|
+
"value": {
|
621
|
+
"type": "string | object",
|
622
|
+
"kind": "expression"
|
623
|
+
}
|
624
|
+
},
|
625
|
+
{
|
626
|
+
"name": "replace",
|
627
|
+
"default": "`false`",
|
628
|
+
"description": "是否在跳转时替换当前页面历史",
|
629
|
+
"value": {
|
630
|
+
"type": "boolean",
|
464
631
|
"kind": "expression"
|
465
632
|
}
|
466
633
|
}
|
467
634
|
]
|
468
635
|
},
|
469
636
|
{
|
470
|
-
"name": "van-address-
|
637
|
+
"name": "van-address-list",
|
471
638
|
"slots": [
|
472
639
|
{
|
473
640
|
"name": "default",
|
474
|
-
"description": "
|
475
|
-
}
|
476
|
-
],
|
477
|
-
"events": [
|
478
|
-
{
|
479
|
-
"name": "save",
|
480
|
-
"description": "点击保存按钮时触发"
|
641
|
+
"description": "在列表下方插入内容"
|
481
642
|
},
|
482
643
|
{
|
483
|
-
"name": "
|
484
|
-
"description": "
|
644
|
+
"name": "top",
|
645
|
+
"description": "在顶部插入内容"
|
485
646
|
},
|
486
647
|
{
|
487
|
-
"name": "
|
488
|
-
"description": "
|
648
|
+
"name": "item-bottom",
|
649
|
+
"description": "在列表项底部插入内容"
|
489
650
|
},
|
490
651
|
{
|
491
|
-
"name": "
|
492
|
-
"description": "
|
652
|
+
"name": "tag",
|
653
|
+
"description": "列表项标签内容自定义"
|
654
|
+
}
|
655
|
+
],
|
656
|
+
"events": [
|
657
|
+
{
|
658
|
+
"name": "add",
|
659
|
+
"description": "点击新增按钮时触发"
|
493
660
|
},
|
494
661
|
{
|
495
|
-
"name": "
|
496
|
-
"description": "
|
662
|
+
"name": "edit",
|
663
|
+
"description": "点击编辑按钮时触发"
|
497
664
|
},
|
498
665
|
{
|
499
|
-
"name": "
|
500
|
-
"description": "
|
666
|
+
"name": "select",
|
667
|
+
"description": "切换选中的地址时触发"
|
501
668
|
},
|
502
669
|
{
|
503
|
-
"name": "
|
504
|
-
"description": "
|
670
|
+
"name": "edit-disabled",
|
671
|
+
"description": "编辑不可配送的地址时触发"
|
505
672
|
},
|
506
673
|
{
|
507
|
-
"name": "
|
508
|
-
"description": "
|
674
|
+
"name": "select-disabled",
|
675
|
+
"description": "选中不可配送的地址时触发"
|
509
676
|
},
|
510
677
|
{
|
511
|
-
"name": "
|
512
|
-
"description": "
|
678
|
+
"name": "click-item",
|
679
|
+
"description": "点击任意地址时触发"
|
513
680
|
}
|
514
681
|
],
|
515
682
|
"attributes": [
|
516
683
|
{
|
517
|
-
"name": "
|
684
|
+
"name": "v-model",
|
518
685
|
"default": "-",
|
519
|
-
"description": "
|
686
|
+
"description": "当前选中地址的 id",
|
520
687
|
"value": {
|
521
|
-
"type": "
|
688
|
+
"type": "string",
|
522
689
|
"kind": "expression"
|
523
690
|
}
|
524
691
|
},
|
525
692
|
{
|
526
|
-
"name": "
|
693
|
+
"name": "list",
|
527
694
|
"default": "`[]`",
|
528
|
-
"description": "
|
695
|
+
"description": "地址列表",
|
529
696
|
"value": {
|
530
|
-
"type": "
|
697
|
+
"type": "Address[]",
|
531
698
|
"kind": "expression"
|
532
699
|
}
|
533
700
|
},
|
534
701
|
{
|
535
|
-
"name": "
|
536
|
-
"default": "
|
537
|
-
"description": "
|
702
|
+
"name": "disabled-list",
|
703
|
+
"default": "`[]`",
|
704
|
+
"description": "不可配送地址列表",
|
538
705
|
"value": {
|
539
|
-
"type": "
|
706
|
+
"type": "Address[]",
|
540
707
|
"kind": "expression"
|
541
708
|
}
|
542
709
|
},
|
543
710
|
{
|
544
|
-
"name": "
|
545
|
-
"default": "
|
546
|
-
"description": "
|
711
|
+
"name": "disabled-text",
|
712
|
+
"default": "-",
|
713
|
+
"description": "不可配送提示文案",
|
547
714
|
"value": {
|
548
|
-
"type": "
|
715
|
+
"type": "string",
|
549
716
|
"kind": "expression"
|
550
717
|
}
|
551
718
|
},
|
552
719
|
{
|
553
|
-
"name": "
|
554
|
-
"default": "`
|
555
|
-
"description": "
|
720
|
+
"name": "switchable",
|
721
|
+
"default": "`true`",
|
722
|
+
"description": "是否允许切换地址",
|
556
723
|
"value": {
|
557
|
-
"type": "
|
724
|
+
"type": "boolean",
|
558
725
|
"kind": "expression"
|
559
726
|
}
|
560
727
|
},
|
561
728
|
{
|
562
|
-
"name": "
|
563
|
-
"default": "
|
564
|
-
"description": "
|
729
|
+
"name": "add-button-text",
|
730
|
+
"default": "`新增地址`",
|
731
|
+
"description": "底部按钮文字",
|
565
732
|
"value": {
|
566
|
-
"type": "
|
733
|
+
"type": "string",
|
567
734
|
"kind": "expression"
|
568
735
|
}
|
569
736
|
},
|
570
737
|
{
|
571
|
-
"name": "
|
572
|
-
"default": "
|
573
|
-
"description": "
|
574
|
-
"value": {
|
575
|
-
"type": "boolean",
|
576
|
-
"kind": "expression"
|
577
|
-
}
|
578
|
-
},
|
579
|
-
{
|
580
|
-
"name": "show-set-default",
|
581
|
-
"default": "`false`",
|
582
|
-
"description": "是否显示默认地址栏",
|
583
|
-
"value": {
|
584
|
-
"type": "boolean",
|
585
|
-
"kind": "expression"
|
586
|
-
}
|
587
|
-
},
|
588
|
-
{
|
589
|
-
"name": "show-search-result",
|
590
|
-
"default": "`false`",
|
591
|
-
"description": "是否显示搜索结果",
|
592
|
-
"value": {
|
593
|
-
"type": "boolean",
|
594
|
-
"kind": "expression"
|
595
|
-
}
|
596
|
-
},
|
597
|
-
{
|
598
|
-
"name": "show-area",
|
599
|
-
"default": "`true`",
|
600
|
-
"description": "是否显示地区",
|
601
|
-
"value": {
|
602
|
-
"type": "boolean",
|
603
|
-
"kind": "expression"
|
604
|
-
}
|
605
|
-
},
|
606
|
-
{
|
607
|
-
"name": "show-detail",
|
608
|
-
"default": "`true`",
|
609
|
-
"description": "是否显示详细地址",
|
610
|
-
"value": {
|
611
|
-
"type": "boolean",
|
612
|
-
"kind": "expression"
|
613
|
-
}
|
614
|
-
},
|
615
|
-
{
|
616
|
-
"name": "disable-area",
|
617
|
-
"default": "`false`",
|
618
|
-
"description": "是否禁用地区选择",
|
619
|
-
"value": {
|
620
|
-
"type": "boolean",
|
621
|
-
"kind": "expression"
|
622
|
-
}
|
623
|
-
},
|
624
|
-
{
|
625
|
-
"name": "save-button-text",
|
626
|
-
"default": "`保存`",
|
627
|
-
"description": "保存按钮文字",
|
738
|
+
"name": "default-tag-text",
|
739
|
+
"default": "-",
|
740
|
+
"description": "默认地址标签文字",
|
628
741
|
"value": {
|
629
742
|
"type": "string",
|
630
743
|
"kind": "expression"
|
631
744
|
}
|
632
|
-
}
|
745
|
+
}
|
746
|
+
]
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"name": "van-card",
|
750
|
+
"slots": [
|
633
751
|
{
|
634
|
-
"name": "
|
635
|
-
"
|
636
|
-
"description": "删除按钮文字",
|
637
|
-
"value": {
|
638
|
-
"type": "string",
|
639
|
-
"kind": "expression"
|
640
|
-
}
|
752
|
+
"name": "title",
|
753
|
+
"description": "自定义标题"
|
641
754
|
},
|
642
755
|
{
|
643
|
-
"name": "
|
644
|
-
"
|
645
|
-
"description": "详细地址输入框行数",
|
646
|
-
"value": {
|
647
|
-
"type": "number | string",
|
648
|
-
"kind": "expression"
|
649
|
-
}
|
756
|
+
"name": "desc",
|
757
|
+
"description": "自定义描述"
|
650
758
|
},
|
651
759
|
{
|
652
|
-
"name": "
|
653
|
-
"
|
654
|
-
"description": "详细地址最大长度",
|
655
|
-
"value": {
|
656
|
-
"type": "number | string",
|
657
|
-
"kind": "expression"
|
658
|
-
}
|
760
|
+
"name": "num",
|
761
|
+
"description": "自定义数量"
|
659
762
|
},
|
660
763
|
{
|
661
|
-
"name": "
|
662
|
-
"
|
663
|
-
"description": "是否显示保存按钮加载动画",
|
664
|
-
"value": {
|
665
|
-
"type": "boolean",
|
666
|
-
"kind": "expression"
|
667
|
-
}
|
764
|
+
"name": "price",
|
765
|
+
"description": "自定义价格"
|
668
766
|
},
|
669
767
|
{
|
670
|
-
"name": "
|
671
|
-
"
|
672
|
-
"description": "是否显示删除按钮加载动画",
|
673
|
-
"value": {
|
674
|
-
"type": "boolean",
|
675
|
-
"kind": "expression"
|
676
|
-
}
|
768
|
+
"name": "origin-price",
|
769
|
+
"description": "自定义商品原价"
|
677
770
|
},
|
678
771
|
{
|
679
|
-
"name": "
|
680
|
-
"
|
681
|
-
"description": "手机号格式校验函数",
|
682
|
-
"value": {
|
683
|
-
"type": "string => boolean",
|
684
|
-
"kind": "expression"
|
685
|
-
}
|
772
|
+
"name": "price-top",
|
773
|
+
"description": "自定义价格上方区域"
|
686
774
|
},
|
687
775
|
{
|
688
|
-
"name": "
|
689
|
-
"
|
690
|
-
"description": "手机号最大长度",
|
691
|
-
"value": {
|
692
|
-
"type": "number | string",
|
693
|
-
"kind": "expression"
|
694
|
-
}
|
776
|
+
"name": "bottom",
|
777
|
+
"description": "自定义价格下方区域"
|
695
778
|
},
|
696
779
|
{
|
697
|
-
"name": "
|
698
|
-
"
|
699
|
-
"description": "邮政编码格式校验函数",
|
700
|
-
"value": {
|
701
|
-
"type": "string => boolean",
|
702
|
-
"kind": "expression"
|
703
|
-
}
|
780
|
+
"name": "thumb",
|
781
|
+
"description": "自定义图片"
|
704
782
|
},
|
705
783
|
{
|
706
|
-
"name": "
|
707
|
-
"
|
708
|
-
"description": "自定义校验函数",
|
709
|
-
"value": {
|
710
|
-
"type": "(key, val) => string",
|
711
|
-
"kind": "expression"
|
712
|
-
}
|
713
|
-
}
|
714
|
-
]
|
715
|
-
},
|
716
|
-
{
|
717
|
-
"name": "van-button",
|
718
|
-
"slots": [
|
719
|
-
{
|
720
|
-
"name": "default",
|
721
|
-
"description": "按钮内容"
|
784
|
+
"name": "tag",
|
785
|
+
"description": "自定义图片角标"
|
722
786
|
},
|
723
787
|
{
|
724
|
-
"name": "
|
725
|
-
"description": "
|
788
|
+
"name": "tags",
|
789
|
+
"description": "自定义描述下方标签区域"
|
726
790
|
},
|
727
791
|
{
|
728
|
-
"name": "
|
729
|
-
"description": "
|
792
|
+
"name": "footer",
|
793
|
+
"description": "自定义右下角内容"
|
730
794
|
}
|
731
795
|
],
|
732
796
|
"events": [
|
733
797
|
{
|
734
798
|
"name": "click",
|
735
|
-
"description": "
|
799
|
+
"description": "点击时触发"
|
736
800
|
},
|
737
801
|
{
|
738
|
-
"name": "
|
739
|
-
"description": "
|
802
|
+
"name": "click-thumb",
|
803
|
+
"description": "点击自定义图片时触发"
|
740
804
|
}
|
741
805
|
],
|
742
806
|
"attributes": [
|
743
807
|
{
|
744
|
-
"name": "
|
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",
|
808
|
+
"name": "thumb",
|
763
809
|
"default": "-",
|
764
|
-
"description": "
|
810
|
+
"description": "左侧图片 URL",
|
765
811
|
"value": {
|
766
812
|
"type": "string",
|
767
813
|
"kind": "expression"
|
768
814
|
}
|
769
815
|
},
|
770
816
|
{
|
771
|
-
"name": "
|
817
|
+
"name": "title",
|
772
818
|
"default": "-",
|
773
|
-
"description": "
|
819
|
+
"description": "标题",
|
774
820
|
"value": {
|
775
821
|
"type": "string",
|
776
822
|
"kind": "expression"
|
777
823
|
}
|
778
824
|
},
|
779
825
|
{
|
780
|
-
"name": "
|
826
|
+
"name": "desc",
|
781
827
|
"default": "-",
|
782
|
-
"description": "
|
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`",
|
828
|
+
"description": "描述",
|
801
829
|
"value": {
|
802
830
|
"type": "string",
|
803
831
|
"kind": "expression"
|
@@ -805,190 +833,75 @@
|
|
805
833
|
},
|
806
834
|
{
|
807
835
|
"name": "tag",
|
808
|
-
"default": "`button`",
|
809
|
-
"description": "按钮根节点的 HTML 标签",
|
810
|
-
"value": {
|
811
|
-
"type": "string",
|
812
|
-
"kind": "expression"
|
813
|
-
}
|
814
|
-
},
|
815
|
-
{
|
816
|
-
"name": "native-type",
|
817
836
|
"default": "-",
|
818
|
-
"description": "
|
837
|
+
"description": "图片角标",
|
819
838
|
"value": {
|
820
839
|
"type": "string",
|
821
840
|
"kind": "expression"
|
822
841
|
}
|
823
842
|
},
|
824
843
|
{
|
825
|
-
"name": "
|
826
|
-
"default": "`false`",
|
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": "是否为方形按钮",
|
846
|
-
"value": {
|
847
|
-
"type": "boolean",
|
848
|
-
"kind": "expression"
|
849
|
-
}
|
850
|
-
},
|
851
|
-
{
|
852
|
-
"name": "round",
|
853
|
-
"default": "`false`",
|
854
|
-
"description": "是否为圆形按钮",
|
855
|
-
"value": {
|
856
|
-
"type": "boolean",
|
857
|
-
"kind": "expression"
|
858
|
-
}
|
859
|
-
},
|
860
|
-
{
|
861
|
-
"name": "disabled",
|
862
|
-
"default": "`false`",
|
863
|
-
"description": "是否禁用按钮",
|
864
|
-
"value": {
|
865
|
-
"type": "boolean",
|
866
|
-
"kind": "expression"
|
867
|
-
}
|
868
|
-
},
|
869
|
-
{
|
870
|
-
"name": "hairline",
|
871
|
-
"default": "`false`",
|
872
|
-
"description": "是否使用 0.5px 边框",
|
873
|
-
"value": {
|
874
|
-
"type": "boolean",
|
875
|
-
"kind": "expression"
|
876
|
-
}
|
877
|
-
},
|
878
|
-
{
|
879
|
-
"name": "loading",
|
880
|
-
"default": "`false`",
|
881
|
-
"description": "是否显示为加载状态",
|
882
|
-
"value": {
|
883
|
-
"type": "boolean",
|
884
|
-
"kind": "expression"
|
885
|
-
}
|
886
|
-
},
|
887
|
-
{
|
888
|
-
"name": "loading-text",
|
844
|
+
"name": "num",
|
889
845
|
"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`",
|
900
|
-
"value": {
|
901
|
-
"type": "string",
|
902
|
-
"kind": "expression"
|
903
|
-
}
|
904
|
-
},
|
905
|
-
{
|
906
|
-
"name": "loading-size",
|
907
|
-
"default": "`20px`",
|
908
|
-
"description": "加载图标大小",
|
846
|
+
"description": "商品数量",
|
909
847
|
"value": {
|
910
|
-
"type": "string",
|
848
|
+
"type": "number | string",
|
911
849
|
"kind": "expression"
|
912
850
|
}
|
913
851
|
},
|
914
852
|
{
|
915
|
-
"name": "
|
853
|
+
"name": "price",
|
916
854
|
"default": "-",
|
917
|
-
"description": "
|
855
|
+
"description": "商品价格",
|
918
856
|
"value": {
|
919
|
-
"type": "string",
|
857
|
+
"type": "number | string",
|
920
858
|
"kind": "expression"
|
921
859
|
}
|
922
860
|
},
|
923
861
|
{
|
924
|
-
"name": "
|
862
|
+
"name": "origin-price",
|
925
863
|
"default": "-",
|
926
|
-
"description": "
|
864
|
+
"description": "商品划线原价",
|
927
865
|
"value": {
|
928
|
-
"type": "
|
866
|
+
"type": "number | string",
|
929
867
|
"kind": "expression"
|
930
868
|
}
|
931
869
|
},
|
932
870
|
{
|
933
|
-
"name": "
|
871
|
+
"name": "centered",
|
934
872
|
"default": "`false`",
|
935
|
-
"description": "
|
873
|
+
"description": "内容是否垂直居中",
|
936
874
|
"value": {
|
937
875
|
"type": "boolean",
|
938
876
|
"kind": "expression"
|
939
877
|
}
|
940
|
-
}
|
941
|
-
]
|
942
|
-
},
|
943
|
-
{
|
944
|
-
"name": "van-badge",
|
945
|
-
"slots": [
|
946
|
-
{
|
947
|
-
"name": "default",
|
948
|
-
"description": "徽标包裹的子元素"
|
949
878
|
},
|
950
879
|
{
|
951
|
-
"name": "
|
952
|
-
"
|
953
|
-
|
954
|
-
],
|
955
|
-
"events": [],
|
956
|
-
"attributes": [
|
957
|
-
{
|
958
|
-
"name": "content",
|
959
|
-
"default": "-",
|
960
|
-
"description": "徽标内容",
|
880
|
+
"name": "currency",
|
881
|
+
"default": "`¥`",
|
882
|
+
"description": "货币符号",
|
961
883
|
"value": {
|
962
|
-
"type": "
|
884
|
+
"type": "string",
|
963
885
|
"kind": "expression"
|
964
886
|
}
|
965
887
|
},
|
966
888
|
{
|
967
|
-
"name": "
|
968
|
-
"default": "
|
969
|
-
"description": "
|
889
|
+
"name": "thumb-link",
|
890
|
+
"default": "-",
|
891
|
+
"description": "点击左侧图片后跳转的链接地址",
|
970
892
|
"value": {
|
971
893
|
"type": "string",
|
972
894
|
"kind": "expression"
|
973
895
|
}
|
974
896
|
},
|
975
897
|
{
|
976
|
-
"name": "
|
898
|
+
"name": "lazy-load",
|
977
899
|
"default": "`false`",
|
978
|
-
"description": "
|
900
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
|
979
901
|
"value": {
|
980
902
|
"type": "boolean",
|
981
903
|
"kind": "expression"
|
982
904
|
}
|
983
|
-
},
|
984
|
-
{
|
985
|
-
"name": "max",
|
986
|
-
"default": "-",
|
987
|
-
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
988
|
-
"value": {
|
989
|
-
"type": "number | string",
|
990
|
-
"kind": "expression"
|
991
|
-
}
|
992
905
|
}
|
993
906
|
]
|
994
907
|
},
|
@@ -1273,308 +1186,395 @@
|
|
1273
1186
|
}
|
1274
1187
|
},
|
1275
1188
|
{
|
1276
|
-
"name": "max-range",
|
1277
|
-
"default": "无限制",
|
1278
|
-
"description": "日期区间最多可选天数",
|
1189
|
+
"name": "max-range",
|
1190
|
+
"default": "无限制",
|
1191
|
+
"description": "日期区间最多可选天数",
|
1192
|
+
"value": {
|
1193
|
+
"type": "number | string",
|
1194
|
+
"kind": "expression"
|
1195
|
+
}
|
1196
|
+
},
|
1197
|
+
{
|
1198
|
+
"name": "range-prompt",
|
1199
|
+
"default": "`选择天数不能超过 xx 天`",
|
1200
|
+
"description": "范围选择超过最多可选天数时的提示文案",
|
1201
|
+
"value": {
|
1202
|
+
"type": "string",
|
1203
|
+
"kind": "expression"
|
1204
|
+
}
|
1205
|
+
},
|
1206
|
+
{
|
1207
|
+
"name": "allow-same-day",
|
1208
|
+
"default": "`false`",
|
1209
|
+
"description": "是否允许日期范围的起止时间为同一天",
|
1210
|
+
"value": {
|
1211
|
+
"type": "boolean",
|
1212
|
+
"kind": "expression"
|
1213
|
+
}
|
1214
|
+
},
|
1215
|
+
{
|
1216
|
+
"name": "max-range",
|
1217
|
+
"default": "无限制",
|
1218
|
+
"description": "日期最多可选天数",
|
1219
|
+
"value": {
|
1220
|
+
"type": "number | string",
|
1221
|
+
"kind": "expression"
|
1222
|
+
}
|
1223
|
+
},
|
1224
|
+
{
|
1225
|
+
"name": "range-prompt",
|
1226
|
+
"default": "`选择天数不能超过 xx 天`",
|
1227
|
+
"description": "选择超过最多可选天数时的提示文案",
|
1228
|
+
"value": {
|
1229
|
+
"type": "string",
|
1230
|
+
"kind": "expression"
|
1231
|
+
}
|
1232
|
+
}
|
1233
|
+
]
|
1234
|
+
},
|
1235
|
+
{
|
1236
|
+
"name": "van-cascader",
|
1237
|
+
"slots": [
|
1238
|
+
{
|
1239
|
+
"name": "title",
|
1240
|
+
"description": "自定义顶部标题"
|
1241
|
+
},
|
1242
|
+
{
|
1243
|
+
"name": "option",
|
1244
|
+
"description": "自定义选项文字"
|
1245
|
+
}
|
1246
|
+
],
|
1247
|
+
"events": [
|
1248
|
+
{
|
1249
|
+
"name": "change",
|
1250
|
+
"description": "选中项变化时触发"
|
1251
|
+
},
|
1252
|
+
{
|
1253
|
+
"name": "finish",
|
1254
|
+
"description": "全部选项选择完成后触发"
|
1255
|
+
},
|
1256
|
+
{
|
1257
|
+
"name": "close",
|
1258
|
+
"description": "点击关闭图标时触发"
|
1259
|
+
}
|
1260
|
+
],
|
1261
|
+
"attributes": [
|
1262
|
+
{
|
1263
|
+
"name": "title",
|
1264
|
+
"default": "-",
|
1265
|
+
"description": "顶部标题",
|
1266
|
+
"value": {
|
1267
|
+
"type": "string",
|
1268
|
+
"kind": "expression"
|
1269
|
+
}
|
1270
|
+
},
|
1271
|
+
{
|
1272
|
+
"name": "value",
|
1273
|
+
"default": "-",
|
1274
|
+
"description": "选中项的值",
|
1275
|
+
"value": {
|
1276
|
+
"type": "string | number",
|
1277
|
+
"kind": "expression"
|
1278
|
+
}
|
1279
|
+
},
|
1280
|
+
{
|
1281
|
+
"name": "options",
|
1282
|
+
"default": "`[]`",
|
1283
|
+
"description": "可选项数据源",
|
1284
|
+
"value": {
|
1285
|
+
"type": "Option[]",
|
1286
|
+
"kind": "expression"
|
1287
|
+
}
|
1288
|
+
},
|
1289
|
+
{
|
1290
|
+
"name": "placeholder",
|
1291
|
+
"default": "`请选择`",
|
1292
|
+
"description": "未选中时的提示文案",
|
1279
1293
|
"value": {
|
1280
|
-
"type": "
|
1294
|
+
"type": "string",
|
1281
1295
|
"kind": "expression"
|
1282
1296
|
}
|
1283
1297
|
},
|
1284
1298
|
{
|
1285
|
-
"name": "
|
1286
|
-
"default": "
|
1287
|
-
"description": "
|
1299
|
+
"name": "active-color",
|
1300
|
+
"default": "`#ee0a24`",
|
1301
|
+
"description": "选中状态的高亮颜色",
|
1288
1302
|
"value": {
|
1289
1303
|
"type": "string",
|
1290
1304
|
"kind": "expression"
|
1291
1305
|
}
|
1292
1306
|
},
|
1293
1307
|
{
|
1294
|
-
"name": "
|
1295
|
-
"default": "`
|
1296
|
-
"description": "
|
1308
|
+
"name": "closeable",
|
1309
|
+
"default": "`true`",
|
1310
|
+
"description": "是否显示关闭图标",
|
1297
1311
|
"value": {
|
1298
1312
|
"type": "boolean",
|
1299
1313
|
"kind": "expression"
|
1300
1314
|
}
|
1301
1315
|
},
|
1302
1316
|
{
|
1303
|
-
"name": "
|
1304
|
-
"default": "
|
1305
|
-
"description": "
|
1317
|
+
"name": "show-header",
|
1318
|
+
"default": "`true`",
|
1319
|
+
"description": "是否展示标题栏",
|
1306
1320
|
"value": {
|
1307
|
-
"type": "
|
1321
|
+
"type": "boolean",
|
1308
1322
|
"kind": "expression"
|
1309
1323
|
}
|
1310
1324
|
},
|
1311
1325
|
{
|
1312
|
-
"name": "
|
1313
|
-
"default": "
|
1314
|
-
"description": "
|
1326
|
+
"name": "field-names",
|
1327
|
+
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
1328
|
+
"description": "自定义 `options` 结构中的字段",
|
1315
1329
|
"value": {
|
1316
|
-
"type": "
|
1330
|
+
"type": "object",
|
1317
1331
|
"kind": "expression"
|
1318
1332
|
}
|
1319
1333
|
}
|
1320
1334
|
]
|
1321
1335
|
},
|
1322
1336
|
{
|
1323
|
-
"name": "van-
|
1337
|
+
"name": "van-address-edit",
|
1324
1338
|
"slots": [
|
1325
1339
|
{
|
1326
|
-
"name": "
|
1327
|
-
"description": "
|
1328
|
-
}
|
1329
|
-
|
1330
|
-
|
1331
|
-
"description": "自定义描述"
|
1332
|
-
},
|
1333
|
-
{
|
1334
|
-
"name": "num",
|
1335
|
-
"description": "自定义数量"
|
1336
|
-
},
|
1340
|
+
"name": "default",
|
1341
|
+
"description": "在邮政编码下方插入内容"
|
1342
|
+
}
|
1343
|
+
],
|
1344
|
+
"events": [
|
1337
1345
|
{
|
1338
|
-
"name": "
|
1339
|
-
"description": "
|
1346
|
+
"name": "save",
|
1347
|
+
"description": "点击保存按钮时触发"
|
1340
1348
|
},
|
1341
1349
|
{
|
1342
|
-
"name": "
|
1343
|
-
"description": "
|
1350
|
+
"name": "focus",
|
1351
|
+
"description": "输入框聚焦时触发"
|
1344
1352
|
},
|
1345
1353
|
{
|
1346
|
-
"name": "
|
1347
|
-
"description": "
|
1354
|
+
"name": "delete",
|
1355
|
+
"description": "确认删除地址时触发"
|
1348
1356
|
},
|
1349
1357
|
{
|
1350
|
-
"name": "
|
1351
|
-
"description": "
|
1358
|
+
"name": "cancel-delete",
|
1359
|
+
"description": "取消删除地址时触发"
|
1352
1360
|
},
|
1353
1361
|
{
|
1354
|
-
"name": "
|
1355
|
-
"description": "
|
1362
|
+
"name": "select-search",
|
1363
|
+
"description": "选中搜索结果时触发"
|
1356
1364
|
},
|
1357
1365
|
{
|
1358
|
-
"name": "
|
1359
|
-
"description": "
|
1366
|
+
"name": "click-area",
|
1367
|
+
"description": "点击收件地区时触发"
|
1360
1368
|
},
|
1361
1369
|
{
|
1362
|
-
"name": "
|
1363
|
-
"description": "
|
1370
|
+
"name": "change-area",
|
1371
|
+
"description": "修改收件地区时触发"
|
1364
1372
|
},
|
1365
1373
|
{
|
1366
|
-
"name": "
|
1367
|
-
"description": "
|
1368
|
-
}
|
1369
|
-
],
|
1370
|
-
"events": [
|
1371
|
-
{
|
1372
|
-
"name": "click",
|
1373
|
-
"description": "点击时触发"
|
1374
|
+
"name": "change-detail",
|
1375
|
+
"description": "修改详细地址时触发"
|
1374
1376
|
},
|
1375
1377
|
{
|
1376
|
-
"name": "
|
1377
|
-
"description": "
|
1378
|
+
"name": "change-default",
|
1379
|
+
"description": "切换是否使用默认地址时触发"
|
1378
1380
|
}
|
1379
1381
|
],
|
1380
1382
|
"attributes": [
|
1381
1383
|
{
|
1382
|
-
"name": "
|
1384
|
+
"name": "area-list",
|
1383
1385
|
"default": "-",
|
1384
|
-
"description": "
|
1386
|
+
"description": "地区列表",
|
1385
1387
|
"value": {
|
1386
|
-
"type": "
|
1388
|
+
"type": "object",
|
1387
1389
|
"kind": "expression"
|
1388
1390
|
}
|
1389
1391
|
},
|
1390
1392
|
{
|
1391
|
-
"name": "
|
1392
|
-
"default": "
|
1393
|
-
"description": "
|
1393
|
+
"name": "area-columns-placeholder",
|
1394
|
+
"default": "`[]`",
|
1395
|
+
"description": "地区选择列占位提示文字",
|
1394
1396
|
"value": {
|
1395
|
-
"type": "string",
|
1397
|
+
"type": "string[]",
|
1396
1398
|
"kind": "expression"
|
1397
1399
|
}
|
1398
1400
|
},
|
1399
1401
|
{
|
1400
|
-
"name": "
|
1401
|
-
"default": "
|
1402
|
-
"description": "
|
1402
|
+
"name": "area-placeholder",
|
1403
|
+
"default": "`选择省 / 市 / 区`",
|
1404
|
+
"description": "地区输入框占位提示文字",
|
1403
1405
|
"value": {
|
1404
1406
|
"type": "string",
|
1405
1407
|
"kind": "expression"
|
1406
1408
|
}
|
1407
1409
|
},
|
1408
1410
|
{
|
1409
|
-
"name": "
|
1410
|
-
"default": "
|
1411
|
-
"description": "
|
1411
|
+
"name": "address-info",
|
1412
|
+
"default": "`{}`",
|
1413
|
+
"description": "收货人信息初始值",
|
1412
1414
|
"value": {
|
1413
|
-
"type": "
|
1415
|
+
"type": "AddressInfo",
|
1414
1416
|
"kind": "expression"
|
1415
1417
|
}
|
1416
1418
|
},
|
1417
1419
|
{
|
1418
|
-
"name": "
|
1419
|
-
"default": "
|
1420
|
-
"description": "
|
1420
|
+
"name": "search-result",
|
1421
|
+
"default": "`[]`",
|
1422
|
+
"description": "详细地址搜索结果",
|
1421
1423
|
"value": {
|
1422
|
-
"type": "
|
1424
|
+
"type": "SearchResult[]",
|
1423
1425
|
"kind": "expression"
|
1424
1426
|
}
|
1425
1427
|
},
|
1426
1428
|
{
|
1427
|
-
"name": "
|
1428
|
-
"default": "
|
1429
|
-
"description": "
|
1429
|
+
"name": "show-postal",
|
1430
|
+
"default": "`false`",
|
1431
|
+
"description": "是否显示邮政编码",
|
1430
1432
|
"value": {
|
1431
|
-
"type": "
|
1433
|
+
"type": "boolean",
|
1432
1434
|
"kind": "expression"
|
1433
1435
|
}
|
1434
1436
|
},
|
1435
1437
|
{
|
1436
|
-
"name": "
|
1437
|
-
"default": "
|
1438
|
-
"description": "
|
1438
|
+
"name": "show-delete",
|
1439
|
+
"default": "`false`",
|
1440
|
+
"description": "是否显示删除按钮",
|
1439
1441
|
"value": {
|
1440
|
-
"type": "
|
1442
|
+
"type": "boolean",
|
1441
1443
|
"kind": "expression"
|
1442
1444
|
}
|
1443
1445
|
},
|
1444
1446
|
{
|
1445
|
-
"name": "
|
1447
|
+
"name": "show-set-default",
|
1446
1448
|
"default": "`false`",
|
1447
|
-
"description": "
|
1449
|
+
"description": "是否显示默认地址栏",
|
1448
1450
|
"value": {
|
1449
1451
|
"type": "boolean",
|
1450
1452
|
"kind": "expression"
|
1451
1453
|
}
|
1452
1454
|
},
|
1453
1455
|
{
|
1454
|
-
"name": "
|
1455
|
-
"default": "
|
1456
|
-
"description": "
|
1456
|
+
"name": "show-search-result",
|
1457
|
+
"default": "`false`",
|
1458
|
+
"description": "是否显示搜索结果",
|
1457
1459
|
"value": {
|
1458
|
-
"type": "
|
1460
|
+
"type": "boolean",
|
1459
1461
|
"kind": "expression"
|
1460
1462
|
}
|
1461
1463
|
},
|
1462
1464
|
{
|
1463
|
-
"name": "
|
1464
|
-
"default": "
|
1465
|
-
"description": "
|
1465
|
+
"name": "show-area",
|
1466
|
+
"default": "`true`",
|
1467
|
+
"description": "是否显示地区",
|
1466
1468
|
"value": {
|
1467
|
-
"type": "
|
1469
|
+
"type": "boolean",
|
1468
1470
|
"kind": "expression"
|
1469
1471
|
}
|
1470
1472
|
},
|
1471
1473
|
{
|
1472
|
-
"name": "
|
1473
|
-
"default": "`
|
1474
|
-
"description": "
|
1474
|
+
"name": "show-detail",
|
1475
|
+
"default": "`true`",
|
1476
|
+
"description": "是否显示详细地址",
|
1475
1477
|
"value": {
|
1476
1478
|
"type": "boolean",
|
1477
1479
|
"kind": "expression"
|
1478
1480
|
}
|
1479
|
-
}
|
1480
|
-
]
|
1481
|
-
},
|
1482
|
-
{
|
1483
|
-
"name": "van-cascader",
|
1484
|
-
"slots": [
|
1485
|
-
{
|
1486
|
-
"name": "title",
|
1487
|
-
"description": "自定义顶部标题"
|
1488
1481
|
},
|
1489
1482
|
{
|
1490
|
-
"name": "
|
1491
|
-
"
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
"description": "选中项变化时触发"
|
1483
|
+
"name": "disable-area",
|
1484
|
+
"default": "`false`",
|
1485
|
+
"description": "是否禁用地区选择",
|
1486
|
+
"value": {
|
1487
|
+
"type": "boolean",
|
1488
|
+
"kind": "expression"
|
1489
|
+
}
|
1498
1490
|
},
|
1499
1491
|
{
|
1500
|
-
"name": "
|
1501
|
-
"
|
1492
|
+
"name": "save-button-text",
|
1493
|
+
"default": "`保存`",
|
1494
|
+
"description": "保存按钮文字",
|
1495
|
+
"value": {
|
1496
|
+
"type": "string",
|
1497
|
+
"kind": "expression"
|
1498
|
+
}
|
1502
1499
|
},
|
1503
1500
|
{
|
1504
|
-
"name": "
|
1505
|
-
"
|
1506
|
-
|
1507
|
-
],
|
1508
|
-
"attributes": [
|
1509
|
-
{
|
1510
|
-
"name": "title",
|
1511
|
-
"default": "-",
|
1512
|
-
"description": "顶部标题",
|
1501
|
+
"name": "delete-button-text",
|
1502
|
+
"default": "`删除`",
|
1503
|
+
"description": "删除按钮文字",
|
1513
1504
|
"value": {
|
1514
1505
|
"type": "string",
|
1515
1506
|
"kind": "expression"
|
1516
1507
|
}
|
1517
1508
|
},
|
1518
1509
|
{
|
1519
|
-
"name": "
|
1520
|
-
"default": "
|
1521
|
-
"description": "
|
1510
|
+
"name": "detail-rows",
|
1511
|
+
"default": "`1`",
|
1512
|
+
"description": "详细地址输入框行数",
|
1522
1513
|
"value": {
|
1523
|
-
"type": "
|
1514
|
+
"type": "number | string",
|
1524
1515
|
"kind": "expression"
|
1525
1516
|
}
|
1526
1517
|
},
|
1527
1518
|
{
|
1528
|
-
"name": "
|
1529
|
-
"default": "`
|
1530
|
-
"description": "
|
1519
|
+
"name": "detail-maxlength",
|
1520
|
+
"default": "`200`",
|
1521
|
+
"description": "详细地址最大长度",
|
1531
1522
|
"value": {
|
1532
|
-
"type": "
|
1523
|
+
"type": "number | string",
|
1533
1524
|
"kind": "expression"
|
1534
1525
|
}
|
1535
1526
|
},
|
1536
1527
|
{
|
1537
|
-
"name": "
|
1538
|
-
"default": "
|
1539
|
-
"description": "
|
1528
|
+
"name": "is-saving",
|
1529
|
+
"default": "`false`",
|
1530
|
+
"description": "是否显示保存按钮加载动画",
|
1540
1531
|
"value": {
|
1541
|
-
"type": "
|
1532
|
+
"type": "boolean",
|
1542
1533
|
"kind": "expression"
|
1543
1534
|
}
|
1544
1535
|
},
|
1545
1536
|
{
|
1546
|
-
"name": "
|
1547
|
-
"default": "
|
1548
|
-
"description": "
|
1537
|
+
"name": "is-deleting",
|
1538
|
+
"default": "`false`",
|
1539
|
+
"description": "是否显示删除按钮加载动画",
|
1540
|
+
"value": {
|
1541
|
+
"type": "boolean",
|
1542
|
+
"kind": "expression"
|
1543
|
+
}
|
1544
|
+
},
|
1545
|
+
{
|
1546
|
+
"name": "tel-validator",
|
1547
|
+
"default": "-",
|
1548
|
+
"description": "手机号格式校验函数",
|
1549
1549
|
"value": {
|
1550
|
-
"type": "string",
|
1550
|
+
"type": "string => boolean",
|
1551
1551
|
"kind": "expression"
|
1552
1552
|
}
|
1553
1553
|
},
|
1554
1554
|
{
|
1555
|
-
"name": "
|
1556
|
-
"default": "
|
1557
|
-
"description": "
|
1555
|
+
"name": "tel-maxlength",
|
1556
|
+
"default": "-",
|
1557
|
+
"description": "手机号最大长度",
|
1558
1558
|
"value": {
|
1559
|
-
"type": "
|
1559
|
+
"type": "number | string",
|
1560
1560
|
"kind": "expression"
|
1561
1561
|
}
|
1562
1562
|
},
|
1563
1563
|
{
|
1564
|
-
"name": "
|
1565
|
-
"default": "
|
1566
|
-
"description": "
|
1564
|
+
"name": "postal-validator",
|
1565
|
+
"default": "-",
|
1566
|
+
"description": "邮政编码格式校验函数",
|
1567
1567
|
"value": {
|
1568
|
-
"type": "boolean",
|
1568
|
+
"type": "string => boolean",
|
1569
1569
|
"kind": "expression"
|
1570
1570
|
}
|
1571
1571
|
},
|
1572
1572
|
{
|
1573
|
-
"name": "
|
1574
|
-
"default": "
|
1575
|
-
"description": "
|
1573
|
+
"name": "validator",
|
1574
|
+
"default": "-",
|
1575
|
+
"description": "自定义校验函数",
|
1576
1576
|
"value": {
|
1577
|
-
"type": "
|
1577
|
+
"type": "(key, val) => string",
|
1578
1578
|
"kind": "expression"
|
1579
1579
|
}
|
1580
1580
|
}
|
@@ -2547,268 +2547,48 @@
|
|
2547
2547
|
],
|
2548
2548
|
"events": [
|
2549
2549
|
{
|
2550
|
-
"name": "finish",
|
2551
|
-
"description": "倒计时结束时触发"
|
2552
|
-
},
|
2553
|
-
{
|
2554
|
-
"name": "change",
|
2555
|
-
"description": "倒计时变化时触发"
|
2556
|
-
}
|
2557
|
-
],
|
2558
|
-
"attributes": [
|
2559
|
-
{
|
2560
|
-
"name": "time",
|
2561
|
-
"default": "`0`",
|
2562
|
-
"description": "倒计时时长,单位毫秒",
|
2563
|
-
"value": {
|
2564
|
-
"type": "number | string",
|
2565
|
-
"kind": "expression"
|
2566
|
-
}
|
2567
|
-
},
|
2568
|
-
{
|
2569
|
-
"name": "format",
|
2570
|
-
"default": "`HH:mm:ss`",
|
2571
|
-
"description": "时间格式",
|
2572
|
-
"value": {
|
2573
|
-
"type": "string",
|
2574
|
-
"kind": "expression"
|
2575
|
-
}
|
2576
|
-
},
|
2577
|
-
{
|
2578
|
-
"name": "auto-start",
|
2579
|
-
"default": "`true`",
|
2580
|
-
"description": "是否自动开始倒计时",
|
2581
|
-
"value": {
|
2582
|
-
"type": "boolean",
|
2583
|
-
"kind": "expression"
|
2584
|
-
}
|
2585
|
-
},
|
2586
|
-
{
|
2587
|
-
"name": "millisecond",
|
2588
|
-
"default": "`false`",
|
2589
|
-
"description": "是否开启毫秒级渲染",
|
2590
|
-
"value": {
|
2591
|
-
"type": "boolean",
|
2592
|
-
"kind": "expression"
|
2593
|
-
}
|
2594
|
-
}
|
2595
|
-
]
|
2596
|
-
},
|
2597
|
-
{
|
2598
|
-
"name": "van-datetime-picker",
|
2599
|
-
"slots": [
|
2600
|
-
{
|
2601
|
-
"name": "default",
|
2602
|
-
"description": "自定义整个顶部栏的内容"
|
2603
|
-
},
|
2604
|
-
{
|
2605
|
-
"name": "title",
|
2606
|
-
"description": "自定义标题内容"
|
2607
|
-
},
|
2608
|
-
{
|
2609
|
-
"name": "confirm",
|
2610
|
-
"description": "自定义确认按钮内容"
|
2611
|
-
},
|
2612
|
-
{
|
2613
|
-
"name": "cancel",
|
2614
|
-
"description": "自定义取消按钮内容"
|
2615
|
-
},
|
2616
|
-
{
|
2617
|
-
"name": "option",
|
2618
|
-
"description": "自定义选项内容"
|
2619
|
-
},
|
2620
|
-
{
|
2621
|
-
"name": "columns-top",
|
2622
|
-
"description": "自定义选项上方内容"
|
2623
|
-
},
|
2624
|
-
{
|
2625
|
-
"name": "columns-bottom",
|
2626
|
-
"description": "自定义选项下方内容"
|
2627
|
-
}
|
2628
|
-
],
|
2629
|
-
"events": [
|
2630
|
-
{
|
2631
|
-
"name": "change",
|
2632
|
-
"description": "当值变化时触发的事件"
|
2633
|
-
},
|
2634
|
-
{
|
2635
|
-
"name": "confirm",
|
2636
|
-
"description": "点击完成按钮时触发的事件"
|
2637
|
-
},
|
2638
|
-
{
|
2639
|
-
"name": "cancel",
|
2640
|
-
"description": "点击取消按钮时触发的事件"
|
2641
|
-
}
|
2642
|
-
],
|
2643
|
-
"attributes": [
|
2644
|
-
{
|
2645
|
-
"name": "type",
|
2646
|
-
"default": "`datetime`",
|
2647
|
-
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
|
2648
|
-
"value": {
|
2649
|
-
"type": "string",
|
2650
|
-
"kind": "expression"
|
2651
|
-
}
|
2652
|
-
},
|
2653
|
-
{
|
2654
|
-
"name": "title",
|
2655
|
-
"default": "`''`",
|
2656
|
-
"description": "顶部栏标题",
|
2657
|
-
"value": {
|
2658
|
-
"type": "string",
|
2659
|
-
"kind": "expression"
|
2660
|
-
}
|
2661
|
-
},
|
2662
|
-
{
|
2663
|
-
"name": "confirm-button-text",
|
2664
|
-
"default": "`确认`",
|
2665
|
-
"description": "确认按钮文字",
|
2666
|
-
"value": {
|
2667
|
-
"type": "string",
|
2668
|
-
"kind": "expression"
|
2669
|
-
}
|
2670
|
-
},
|
2671
|
-
{
|
2672
|
-
"name": "cancel-button-text",
|
2673
|
-
"default": "`取消`",
|
2674
|
-
"description": "取消按钮文字",
|
2675
|
-
"value": {
|
2676
|
-
"type": "string",
|
2677
|
-
"kind": "expression"
|
2678
|
-
}
|
2679
|
-
},
|
2680
|
-
{
|
2681
|
-
"name": "show-toolbar",
|
2682
|
-
"default": "`true`",
|
2683
|
-
"description": "是否显示顶部栏",
|
2684
|
-
"value": {
|
2685
|
-
"type": "boolean",
|
2686
|
-
"kind": "expression"
|
2687
|
-
}
|
2688
|
-
},
|
2689
|
-
{
|
2690
|
-
"name": "loading",
|
2691
|
-
"default": "`false`",
|
2692
|
-
"description": "是否显示加载状态",
|
2693
|
-
"value": {
|
2694
|
-
"type": "boolean",
|
2695
|
-
"kind": "expression"
|
2696
|
-
}
|
2697
|
-
},
|
2698
|
-
{
|
2699
|
-
"name": "readonly",
|
2700
|
-
"default": "`false`",
|
2701
|
-
"description": "是否为只读状态,只读状态下无法切换选项",
|
2702
|
-
"value": {
|
2703
|
-
"type": "boolean",
|
2704
|
-
"kind": "expression"
|
2705
|
-
}
|
2706
|
-
},
|
2707
|
-
{
|
2708
|
-
"name": "filter",
|
2709
|
-
"default": "-",
|
2710
|
-
"description": "选项过滤函数",
|
2711
|
-
"value": {
|
2712
|
-
"type": "(type, vals) => vals",
|
2713
|
-
"kind": "expression"
|
2714
|
-
}
|
2715
|
-
},
|
2716
|
-
{
|
2717
|
-
"name": "formatter",
|
2718
|
-
"default": "-",
|
2719
|
-
"description": "选项格式化函数",
|
2720
|
-
"value": {
|
2721
|
-
"type": "(type, val) => val",
|
2722
|
-
"kind": "expression"
|
2723
|
-
}
|
2724
|
-
},
|
2725
|
-
{
|
2726
|
-
"name": "columns-order",
|
2727
|
-
"default": "-",
|
2728
|
-
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
2729
|
-
"value": {
|
2730
|
-
"type": "string[]",
|
2731
|
-
"kind": "expression"
|
2732
|
-
}
|
2733
|
-
},
|
2734
|
-
{
|
2735
|
-
"name": "item-height",
|
2736
|
-
"default": "`44`",
|
2737
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
2738
|
-
"value": {
|
2739
|
-
"type": "number | string",
|
2740
|
-
"kind": "expression"
|
2741
|
-
}
|
2742
|
-
},
|
2743
|
-
{
|
2744
|
-
"name": "visible-item-count",
|
2745
|
-
"default": "`6`",
|
2746
|
-
"description": "可见的选项个数",
|
2747
|
-
"value": {
|
2748
|
-
"type": "number | string",
|
2749
|
-
"kind": "expression"
|
2750
|
-
}
|
2751
|
-
},
|
2752
|
-
{
|
2753
|
-
"name": "swipe-duration",
|
2754
|
-
"default": "`1000`",
|
2755
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
2756
|
-
"value": {
|
2757
|
-
"type": "number | string",
|
2758
|
-
"kind": "expression"
|
2759
|
-
}
|
2760
|
-
},
|
2761
|
-
{
|
2762
|
-
"name": "min-date",
|
2763
|
-
"default": "十年前",
|
2764
|
-
"description": "可选的最小时间,精确到分钟",
|
2765
|
-
"value": {
|
2766
|
-
"type": "Date",
|
2767
|
-
"kind": "expression"
|
2768
|
-
}
|
2769
|
-
},
|
2770
|
-
{
|
2771
|
-
"name": "max-date",
|
2772
|
-
"default": "十年后",
|
2773
|
-
"description": "可选的最大时间,精确到分钟",
|
2774
|
-
"value": {
|
2775
|
-
"type": "Date",
|
2776
|
-
"kind": "expression"
|
2777
|
-
}
|
2550
|
+
"name": "finish",
|
2551
|
+
"description": "倒计时结束时触发"
|
2778
2552
|
},
|
2779
2553
|
{
|
2780
|
-
"name": "
|
2554
|
+
"name": "change",
|
2555
|
+
"description": "倒计时变化时触发"
|
2556
|
+
}
|
2557
|
+
],
|
2558
|
+
"attributes": [
|
2559
|
+
{
|
2560
|
+
"name": "time",
|
2781
2561
|
"default": "`0`",
|
2782
|
-
"description": "
|
2562
|
+
"description": "倒计时时长,单位毫秒",
|
2783
2563
|
"value": {
|
2784
2564
|
"type": "number | string",
|
2785
2565
|
"kind": "expression"
|
2786
2566
|
}
|
2787
2567
|
},
|
2788
2568
|
{
|
2789
|
-
"name": "
|
2790
|
-
"default": "`
|
2791
|
-
"description": "
|
2569
|
+
"name": "format",
|
2570
|
+
"default": "`HH:mm:ss`",
|
2571
|
+
"description": "时间格式",
|
2792
2572
|
"value": {
|
2793
|
-
"type": "
|
2573
|
+
"type": "string",
|
2794
2574
|
"kind": "expression"
|
2795
2575
|
}
|
2796
2576
|
},
|
2797
2577
|
{
|
2798
|
-
"name": "
|
2799
|
-
"default": "`
|
2800
|
-
"description": "
|
2578
|
+
"name": "auto-start",
|
2579
|
+
"default": "`true`",
|
2580
|
+
"description": "是否自动开始倒计时",
|
2801
2581
|
"value": {
|
2802
|
-
"type": "
|
2582
|
+
"type": "boolean",
|
2803
2583
|
"kind": "expression"
|
2804
2584
|
}
|
2805
2585
|
},
|
2806
2586
|
{
|
2807
|
-
"name": "
|
2808
|
-
"default": "`
|
2809
|
-
"description": "
|
2587
|
+
"name": "millisecond",
|
2588
|
+
"default": "`false`",
|
2589
|
+
"description": "是否开启毫秒级渲染",
|
2810
2590
|
"value": {
|
2811
|
-
"type": "
|
2591
|
+
"type": "boolean",
|
2812
2592
|
"kind": "expression"
|
2813
2593
|
}
|
2814
2594
|
}
|
@@ -2955,101 +2735,321 @@
|
|
2955
2735
|
}
|
2956
2736
|
},
|
2957
2737
|
{
|
2958
|
-
"name": "exchange-button-loading",
|
2959
|
-
"default": "`false`",
|
2960
|
-
"description": "是否显示兑换按钮加载动画",
|
2738
|
+
"name": "exchange-button-loading",
|
2739
|
+
"default": "`false`",
|
2740
|
+
"description": "是否显示兑换按钮加载动画",
|
2741
|
+
"value": {
|
2742
|
+
"type": "boolean",
|
2743
|
+
"kind": "expression"
|
2744
|
+
}
|
2745
|
+
},
|
2746
|
+
{
|
2747
|
+
"name": "exchange-button-disabled",
|
2748
|
+
"default": "`false`",
|
2749
|
+
"description": "是否禁用兑换按钮",
|
2750
|
+
"value": {
|
2751
|
+
"type": "boolean",
|
2752
|
+
"kind": "expression"
|
2753
|
+
}
|
2754
|
+
},
|
2755
|
+
{
|
2756
|
+
"name": "exchange-min-length",
|
2757
|
+
"default": "`1`",
|
2758
|
+
"description": "兑换码最小长度",
|
2759
|
+
"value": {
|
2760
|
+
"type": "number",
|
2761
|
+
"kind": "expression"
|
2762
|
+
}
|
2763
|
+
},
|
2764
|
+
{
|
2765
|
+
"name": "displayed-coupon-index",
|
2766
|
+
"default": "-",
|
2767
|
+
"description": "滚动至特定优惠券位置",
|
2768
|
+
"value": {
|
2769
|
+
"type": "number",
|
2770
|
+
"kind": "expression"
|
2771
|
+
}
|
2772
|
+
},
|
2773
|
+
{
|
2774
|
+
"name": "show-close-button",
|
2775
|
+
"default": "`true`",
|
2776
|
+
"description": "是否显示列表底部按钮",
|
2777
|
+
"value": {
|
2778
|
+
"type": "boolean",
|
2779
|
+
"kind": "expression"
|
2780
|
+
}
|
2781
|
+
},
|
2782
|
+
{
|
2783
|
+
"name": "close-button-text",
|
2784
|
+
"default": "`不使用优惠`",
|
2785
|
+
"description": "列表底部按钮文字",
|
2786
|
+
"value": {
|
2787
|
+
"type": "string",
|
2788
|
+
"kind": "expression"
|
2789
|
+
}
|
2790
|
+
},
|
2791
|
+
{
|
2792
|
+
"name": "input-placeholder",
|
2793
|
+
"default": "`请输入优惠码`",
|
2794
|
+
"description": "输入框文字提示",
|
2795
|
+
"value": {
|
2796
|
+
"type": "string",
|
2797
|
+
"kind": "expression"
|
2798
|
+
}
|
2799
|
+
},
|
2800
|
+
{
|
2801
|
+
"name": "show-exchange-bar",
|
2802
|
+
"default": "`true`",
|
2803
|
+
"description": "是否展示兑换栏",
|
2804
|
+
"value": {
|
2805
|
+
"type": "boolean",
|
2806
|
+
"kind": "expression"
|
2807
|
+
}
|
2808
|
+
},
|
2809
|
+
{
|
2810
|
+
"name": "currency",
|
2811
|
+
"default": "`¥`",
|
2812
|
+
"description": "货币符号",
|
2813
|
+
"value": {
|
2814
|
+
"type": "string",
|
2815
|
+
"kind": "expression"
|
2816
|
+
}
|
2817
|
+
},
|
2818
|
+
{
|
2819
|
+
"name": "empty-image",
|
2820
|
+
"default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
|
2821
|
+
"description": "列表为空时的占位图",
|
2822
|
+
"value": {
|
2823
|
+
"type": "string",
|
2824
|
+
"kind": "expression"
|
2825
|
+
}
|
2826
|
+
},
|
2827
|
+
{
|
2828
|
+
"name": "show-count",
|
2829
|
+
"default": "`true`",
|
2830
|
+
"description": "是否展示可用 / 不可用数量",
|
2831
|
+
"value": {
|
2832
|
+
"type": "boolean",
|
2833
|
+
"kind": "expression"
|
2834
|
+
}
|
2835
|
+
}
|
2836
|
+
]
|
2837
|
+
},
|
2838
|
+
{
|
2839
|
+
"name": "van-datetime-picker",
|
2840
|
+
"slots": [
|
2841
|
+
{
|
2842
|
+
"name": "default",
|
2843
|
+
"description": "自定义整个顶部栏的内容"
|
2844
|
+
},
|
2845
|
+
{
|
2846
|
+
"name": "title",
|
2847
|
+
"description": "自定义标题内容"
|
2848
|
+
},
|
2849
|
+
{
|
2850
|
+
"name": "confirm",
|
2851
|
+
"description": "自定义确认按钮内容"
|
2852
|
+
},
|
2853
|
+
{
|
2854
|
+
"name": "cancel",
|
2855
|
+
"description": "自定义取消按钮内容"
|
2856
|
+
},
|
2857
|
+
{
|
2858
|
+
"name": "option",
|
2859
|
+
"description": "自定义选项内容"
|
2860
|
+
},
|
2861
|
+
{
|
2862
|
+
"name": "columns-top",
|
2863
|
+
"description": "自定义选项上方内容"
|
2864
|
+
},
|
2865
|
+
{
|
2866
|
+
"name": "columns-bottom",
|
2867
|
+
"description": "自定义选项下方内容"
|
2868
|
+
}
|
2869
|
+
],
|
2870
|
+
"events": [
|
2871
|
+
{
|
2872
|
+
"name": "change",
|
2873
|
+
"description": "当值变化时触发的事件"
|
2874
|
+
},
|
2875
|
+
{
|
2876
|
+
"name": "confirm",
|
2877
|
+
"description": "点击完成按钮时触发的事件"
|
2878
|
+
},
|
2879
|
+
{
|
2880
|
+
"name": "cancel",
|
2881
|
+
"description": "点击取消按钮时触发的事件"
|
2882
|
+
}
|
2883
|
+
],
|
2884
|
+
"attributes": [
|
2885
|
+
{
|
2886
|
+
"name": "type",
|
2887
|
+
"default": "`datetime`",
|
2888
|
+
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
|
2889
|
+
"value": {
|
2890
|
+
"type": "string",
|
2891
|
+
"kind": "expression"
|
2892
|
+
}
|
2893
|
+
},
|
2894
|
+
{
|
2895
|
+
"name": "title",
|
2896
|
+
"default": "`''`",
|
2897
|
+
"description": "顶部栏标题",
|
2898
|
+
"value": {
|
2899
|
+
"type": "string",
|
2900
|
+
"kind": "expression"
|
2901
|
+
}
|
2902
|
+
},
|
2903
|
+
{
|
2904
|
+
"name": "confirm-button-text",
|
2905
|
+
"default": "`确认`",
|
2906
|
+
"description": "确认按钮文字",
|
2907
|
+
"value": {
|
2908
|
+
"type": "string",
|
2909
|
+
"kind": "expression"
|
2910
|
+
}
|
2911
|
+
},
|
2912
|
+
{
|
2913
|
+
"name": "cancel-button-text",
|
2914
|
+
"default": "`取消`",
|
2915
|
+
"description": "取消按钮文字",
|
2916
|
+
"value": {
|
2917
|
+
"type": "string",
|
2918
|
+
"kind": "expression"
|
2919
|
+
}
|
2920
|
+
},
|
2921
|
+
{
|
2922
|
+
"name": "show-toolbar",
|
2923
|
+
"default": "`true`",
|
2924
|
+
"description": "是否显示顶部栏",
|
2925
|
+
"value": {
|
2926
|
+
"type": "boolean",
|
2927
|
+
"kind": "expression"
|
2928
|
+
}
|
2929
|
+
},
|
2930
|
+
{
|
2931
|
+
"name": "loading",
|
2932
|
+
"default": "`false`",
|
2933
|
+
"description": "是否显示加载状态",
|
2934
|
+
"value": {
|
2935
|
+
"type": "boolean",
|
2936
|
+
"kind": "expression"
|
2937
|
+
}
|
2938
|
+
},
|
2939
|
+
{
|
2940
|
+
"name": "readonly",
|
2941
|
+
"default": "`false`",
|
2942
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
2943
|
+
"value": {
|
2944
|
+
"type": "boolean",
|
2945
|
+
"kind": "expression"
|
2946
|
+
}
|
2947
|
+
},
|
2948
|
+
{
|
2949
|
+
"name": "filter",
|
2950
|
+
"default": "-",
|
2951
|
+
"description": "选项过滤函数",
|
2952
|
+
"value": {
|
2953
|
+
"type": "(type, vals) => vals",
|
2954
|
+
"kind": "expression"
|
2955
|
+
}
|
2956
|
+
},
|
2957
|
+
{
|
2958
|
+
"name": "formatter",
|
2959
|
+
"default": "-",
|
2960
|
+
"description": "选项格式化函数",
|
2961
2961
|
"value": {
|
2962
|
-
"type": "
|
2962
|
+
"type": "(type, val) => val",
|
2963
2963
|
"kind": "expression"
|
2964
2964
|
}
|
2965
2965
|
},
|
2966
2966
|
{
|
2967
|
-
"name": "
|
2968
|
-
"default": "
|
2969
|
-
"description": "
|
2967
|
+
"name": "columns-order",
|
2968
|
+
"default": "-",
|
2969
|
+
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
2970
2970
|
"value": {
|
2971
|
-
"type": "
|
2971
|
+
"type": "string[]",
|
2972
2972
|
"kind": "expression"
|
2973
2973
|
}
|
2974
2974
|
},
|
2975
2975
|
{
|
2976
|
-
"name": "
|
2977
|
-
"default": "`
|
2978
|
-
"description": "
|
2976
|
+
"name": "item-height",
|
2977
|
+
"default": "`44`",
|
2978
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
2979
2979
|
"value": {
|
2980
|
-
"type": "number",
|
2980
|
+
"type": "number | string",
|
2981
2981
|
"kind": "expression"
|
2982
2982
|
}
|
2983
2983
|
},
|
2984
2984
|
{
|
2985
|
-
"name": "
|
2986
|
-
"default": "
|
2987
|
-
"description": "
|
2985
|
+
"name": "visible-item-count",
|
2986
|
+
"default": "`6`",
|
2987
|
+
"description": "可见的选项个数",
|
2988
2988
|
"value": {
|
2989
|
-
"type": "number",
|
2989
|
+
"type": "number | string",
|
2990
2990
|
"kind": "expression"
|
2991
2991
|
}
|
2992
2992
|
},
|
2993
2993
|
{
|
2994
|
-
"name": "
|
2995
|
-
"default": "`
|
2996
|
-
"description": "
|
2994
|
+
"name": "swipe-duration",
|
2995
|
+
"default": "`1000`",
|
2996
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
2997
2997
|
"value": {
|
2998
|
-
"type": "
|
2998
|
+
"type": "number | string",
|
2999
2999
|
"kind": "expression"
|
3000
3000
|
}
|
3001
3001
|
},
|
3002
3002
|
{
|
3003
|
-
"name": "
|
3004
|
-
"default": "
|
3005
|
-
"description": "
|
3003
|
+
"name": "min-date",
|
3004
|
+
"default": "十年前",
|
3005
|
+
"description": "可选的最小时间,精确到分钟",
|
3006
3006
|
"value": {
|
3007
|
-
"type": "
|
3007
|
+
"type": "Date",
|
3008
3008
|
"kind": "expression"
|
3009
3009
|
}
|
3010
3010
|
},
|
3011
3011
|
{
|
3012
|
-
"name": "
|
3013
|
-
"default": "
|
3014
|
-
"description": "
|
3012
|
+
"name": "max-date",
|
3013
|
+
"default": "十年后",
|
3014
|
+
"description": "可选的最大时间,精确到分钟",
|
3015
3015
|
"value": {
|
3016
|
-
"type": "
|
3016
|
+
"type": "Date",
|
3017
3017
|
"kind": "expression"
|
3018
3018
|
}
|
3019
3019
|
},
|
3020
3020
|
{
|
3021
|
-
"name": "
|
3022
|
-
"default": "`
|
3023
|
-
"description": "
|
3021
|
+
"name": "min-hour",
|
3022
|
+
"default": "`0`",
|
3023
|
+
"description": "可选的最小小时",
|
3024
3024
|
"value": {
|
3025
|
-
"type": "
|
3025
|
+
"type": "number | string",
|
3026
3026
|
"kind": "expression"
|
3027
3027
|
}
|
3028
3028
|
},
|
3029
3029
|
{
|
3030
|
-
"name": "
|
3031
|
-
"default": "
|
3032
|
-
"description": "
|
3030
|
+
"name": "max-hour",
|
3031
|
+
"default": "`23`",
|
3032
|
+
"description": "可选的最大小时",
|
3033
3033
|
"value": {
|
3034
|
-
"type": "string",
|
3034
|
+
"type": "number | string",
|
3035
3035
|
"kind": "expression"
|
3036
3036
|
}
|
3037
3037
|
},
|
3038
3038
|
{
|
3039
|
-
"name": "
|
3040
|
-
"default": "`
|
3041
|
-
"description": "
|
3039
|
+
"name": "min-minute",
|
3040
|
+
"default": "`0`",
|
3041
|
+
"description": "可选的最小分钟",
|
3042
3042
|
"value": {
|
3043
|
-
"type": "string",
|
3043
|
+
"type": "number | string",
|
3044
3044
|
"kind": "expression"
|
3045
3045
|
}
|
3046
3046
|
},
|
3047
3047
|
{
|
3048
|
-
"name": "
|
3049
|
-
"default": "`
|
3050
|
-
"description": "
|
3048
|
+
"name": "max-minute",
|
3049
|
+
"default": "`59`",
|
3050
|
+
"description": "可选的最大分钟",
|
3051
3051
|
"value": {
|
3052
|
-
"type": "
|
3052
|
+
"type": "number | string",
|
3053
3053
|
"kind": "expression"
|
3054
3054
|
}
|
3055
3055
|
}
|
@@ -3963,7 +3963,7 @@
|
|
3963
3963
|
{
|
3964
3964
|
"name": "label-align",
|
3965
3965
|
"default": "`left`",
|
3966
|
-
"description": "
|
3966
|
+
"description": "表单项 label 对齐方式,可选值为 `center` `right`",
|
3967
3967
|
"value": {
|
3968
3968
|
"type": "string",
|
3969
3969
|
"kind": "expression"
|
@@ -5132,112 +5132,108 @@
|
|
5132
5132
|
"attributes": []
|
5133
5133
|
},
|
5134
5134
|
{
|
5135
|
-
"name": "van-
|
5135
|
+
"name": "van-nav-bar",
|
5136
5136
|
"slots": [
|
5137
5137
|
{
|
5138
|
-
"name": "
|
5139
|
-
"description": "
|
5138
|
+
"name": "title",
|
5139
|
+
"description": "自定义标题"
|
5140
5140
|
},
|
5141
5141
|
{
|
5142
|
-
"name": "left
|
5143
|
-
"description": "
|
5142
|
+
"name": "left",
|
5143
|
+
"description": "自定义左侧区域内容"
|
5144
5144
|
},
|
5145
5145
|
{
|
5146
|
-
"name": "right
|
5147
|
-
"description": "
|
5146
|
+
"name": "right",
|
5147
|
+
"description": "自定义右侧区域内容"
|
5148
5148
|
}
|
5149
5149
|
],
|
5150
5150
|
"events": [
|
5151
5151
|
{
|
5152
|
-
"name": "click",
|
5153
|
-
"description": "
|
5154
|
-
},
|
5155
|
-
{
|
5156
|
-
"name": "close",
|
5157
|
-
"description": "关闭通知栏时触发"
|
5152
|
+
"name": "click-left",
|
5153
|
+
"description": "点击左侧按钮时触发"
|
5158
5154
|
},
|
5159
5155
|
{
|
5160
|
-
"name": "
|
5161
|
-
"description": "
|
5156
|
+
"name": "click-right",
|
5157
|
+
"description": "点击右侧按钮时触发"
|
5162
5158
|
}
|
5163
5159
|
],
|
5164
5160
|
"attributes": [
|
5165
5161
|
{
|
5166
|
-
"name": "
|
5162
|
+
"name": "title",
|
5167
5163
|
"default": "`''`",
|
5168
|
-
"description": "
|
5164
|
+
"description": "标题",
|
5169
5165
|
"value": {
|
5170
5166
|
"type": "string",
|
5171
5167
|
"kind": "expression"
|
5172
5168
|
}
|
5173
5169
|
},
|
5174
5170
|
{
|
5175
|
-
"name": "text",
|
5171
|
+
"name": "left-text",
|
5176
5172
|
"default": "`''`",
|
5177
|
-
"description": "
|
5173
|
+
"description": "左侧文案",
|
5178
5174
|
"value": {
|
5179
5175
|
"type": "string",
|
5180
5176
|
"kind": "expression"
|
5181
5177
|
}
|
5182
5178
|
},
|
5183
5179
|
{
|
5184
|
-
"name": "
|
5185
|
-
"default": "
|
5186
|
-
"description": "
|
5180
|
+
"name": "right-text",
|
5181
|
+
"default": "`''`",
|
5182
|
+
"description": "右侧文案",
|
5187
5183
|
"value": {
|
5188
5184
|
"type": "string",
|
5189
5185
|
"kind": "expression"
|
5190
5186
|
}
|
5191
5187
|
},
|
5192
5188
|
{
|
5193
|
-
"name": "
|
5194
|
-
"default": "
|
5195
|
-
"description": "
|
5189
|
+
"name": "left-arrow",
|
5190
|
+
"default": "`false`",
|
5191
|
+
"description": "是否显示左侧箭头",
|
5196
5192
|
"value": {
|
5197
|
-
"type": "
|
5193
|
+
"type": "boolean",
|
5198
5194
|
"kind": "expression"
|
5199
5195
|
}
|
5200
5196
|
},
|
5201
5197
|
{
|
5202
|
-
"name": "
|
5203
|
-
"default": "
|
5204
|
-
"description": "
|
5198
|
+
"name": "border",
|
5199
|
+
"default": "`true`",
|
5200
|
+
"description": "是否显示下边框",
|
5205
5201
|
"value": {
|
5206
|
-
"type": "
|
5202
|
+
"type": "boolean",
|
5207
5203
|
"kind": "expression"
|
5208
5204
|
}
|
5209
5205
|
},
|
5210
5206
|
{
|
5211
|
-
"name": "
|
5212
|
-
"default": "`
|
5213
|
-
"description": "
|
5207
|
+
"name": "fixed",
|
5208
|
+
"default": "`false`",
|
5209
|
+
"description": "是否固定在顶部",
|
5214
5210
|
"value": {
|
5215
|
-
"type": "
|
5211
|
+
"type": "boolean",
|
5216
5212
|
"kind": "expression"
|
5217
5213
|
}
|
5218
5214
|
},
|
5219
5215
|
{
|
5220
|
-
"name": "
|
5221
|
-
"default": "`
|
5222
|
-
"description": "
|
5216
|
+
"name": "placeholder",
|
5217
|
+
"default": "`false`",
|
5218
|
+
"description": "固定在顶部时,是否在标签位置生成一个等高的占位元素",
|
5223
5219
|
"value": {
|
5224
|
-
"type": "
|
5220
|
+
"type": "boolean",
|
5225
5221
|
"kind": "expression"
|
5226
5222
|
}
|
5227
5223
|
},
|
5228
5224
|
{
|
5229
|
-
"name": "
|
5230
|
-
"default": "
|
5231
|
-
"description": "
|
5225
|
+
"name": "z-index",
|
5226
|
+
"default": "`1`",
|
5227
|
+
"description": "导航栏 z-index",
|
5232
5228
|
"value": {
|
5233
|
-
"type": "
|
5229
|
+
"type": "number | string",
|
5234
5230
|
"kind": "expression"
|
5235
5231
|
}
|
5236
5232
|
},
|
5237
5233
|
{
|
5238
|
-
"name": "
|
5234
|
+
"name": "safe-area-inset-top",
|
5239
5235
|
"default": "`false`",
|
5240
|
-
"description": "
|
5236
|
+
"description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
5241
5237
|
"value": {
|
5242
5238
|
"type": "boolean",
|
5243
5239
|
"kind": "expression"
|
@@ -5246,108 +5242,112 @@
|
|
5246
5242
|
]
|
5247
5243
|
},
|
5248
5244
|
{
|
5249
|
-
"name": "van-
|
5245
|
+
"name": "van-notice-bar",
|
5250
5246
|
"slots": [
|
5251
5247
|
{
|
5252
|
-
"name": "
|
5253
|
-
"description": "
|
5248
|
+
"name": "default",
|
5249
|
+
"description": "通知文本内容"
|
5254
5250
|
},
|
5255
5251
|
{
|
5256
|
-
"name": "left",
|
5257
|
-
"description": "
|
5252
|
+
"name": "left-icon",
|
5253
|
+
"description": "自定义左侧图标"
|
5258
5254
|
},
|
5259
5255
|
{
|
5260
|
-
"name": "right",
|
5261
|
-
"description": "
|
5256
|
+
"name": "right-icon",
|
5257
|
+
"description": "自定义右侧图标"
|
5262
5258
|
}
|
5263
5259
|
],
|
5264
5260
|
"events": [
|
5265
5261
|
{
|
5266
|
-
"name": "click
|
5267
|
-
"description": "
|
5262
|
+
"name": "click",
|
5263
|
+
"description": "点击通知栏时触发"
|
5268
5264
|
},
|
5269
5265
|
{
|
5270
|
-
"name": "
|
5271
|
-
"description": "
|
5266
|
+
"name": "close",
|
5267
|
+
"description": "关闭通知栏时触发"
|
5268
|
+
},
|
5269
|
+
{
|
5270
|
+
"name": "replay",
|
5271
|
+
"description": "每当滚动栏重新开始滚动时触发"
|
5272
5272
|
}
|
5273
5273
|
],
|
5274
5274
|
"attributes": [
|
5275
5275
|
{
|
5276
|
-
"name": "
|
5276
|
+
"name": "mode",
|
5277
5277
|
"default": "`''`",
|
5278
|
-
"description": "
|
5278
|
+
"description": "通知栏模式,可选值为 `closeable` `link`",
|
5279
5279
|
"value": {
|
5280
5280
|
"type": "string",
|
5281
5281
|
"kind": "expression"
|
5282
5282
|
}
|
5283
5283
|
},
|
5284
5284
|
{
|
5285
|
-
"name": "
|
5285
|
+
"name": "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": "color",
|
5295
|
+
"default": "`#f60`",
|
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": "background",
|
5304
|
+
"default": "`#fff7cc`",
|
5305
|
+
"description": "滚动条背景",
|
5306
5306
|
"value": {
|
5307
|
-
"type": "
|
5307
|
+
"type": "string",
|
5308
5308
|
"kind": "expression"
|
5309
5309
|
}
|
5310
5310
|
},
|
5311
5311
|
{
|
5312
|
-
"name": "
|
5313
|
-
"default": "
|
5314
|
-
"description": "
|
5312
|
+
"name": "left-icon",
|
5313
|
+
"default": "-",
|
5314
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
5315
5315
|
"value": {
|
5316
|
-
"type": "
|
5316
|
+
"type": "string",
|
5317
5317
|
"kind": "expression"
|
5318
5318
|
}
|
5319
5319
|
},
|
5320
5320
|
{
|
5321
|
-
"name": "
|
5322
|
-
"default": "`
|
5323
|
-
"description": "
|
5321
|
+
"name": "delay",
|
5322
|
+
"default": "`1`",
|
5323
|
+
"description": "动画延迟时间 (s)",
|
5324
5324
|
"value": {
|
5325
|
-
"type": "
|
5325
|
+
"type": "number | string",
|
5326
5326
|
"kind": "expression"
|
5327
5327
|
}
|
5328
5328
|
},
|
5329
5329
|
{
|
5330
|
-
"name": "
|
5331
|
-
"default": "`
|
5332
|
-
"description": "
|
5330
|
+
"name": "speed",
|
5331
|
+
"default": "`60`",
|
5332
|
+
"description": "滚动速率 (px/s)",
|
5333
5333
|
"value": {
|
5334
|
-
"type": "
|
5334
|
+
"type": "number | string",
|
5335
5335
|
"kind": "expression"
|
5336
5336
|
}
|
5337
5337
|
},
|
5338
5338
|
{
|
5339
|
-
"name": "
|
5340
|
-
"default": "
|
5341
|
-
"description": "
|
5339
|
+
"name": "scrollable",
|
5340
|
+
"default": "-",
|
5341
|
+
"description": "是否开启滚动播放,内容长度溢出时默认开启",
|
5342
5342
|
"value": {
|
5343
|
-
"type": "
|
5343
|
+
"type": "boolean",
|
5344
5344
|
"kind": "expression"
|
5345
5345
|
}
|
5346
5346
|
},
|
5347
5347
|
{
|
5348
|
-
"name": "
|
5348
|
+
"name": "wrapable",
|
5349
5349
|
"default": "`false`",
|
5350
|
-
"description": "
|
5350
|
+
"description": "是否开启文本换行,只在禁用滚动时生效",
|
5351
5351
|
"value": {
|
5352
5352
|
"type": "boolean",
|
5353
5353
|
"kind": "expression"
|
@@ -6817,7 +6817,7 @@
|
|
6817
6817
|
{
|
6818
6818
|
"name": "readonly",
|
6819
6819
|
"default": "`false`",
|
6820
|
-
"description": "是否为只读状态
|
6820
|
+
"description": "是否为只读状态",
|
6821
6821
|
"value": {
|
6822
6822
|
"type": "boolean",
|
6823
6823
|
"kind": "expression"
|