vant 2.12.51 → 2.12.53
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/sku/Sku.js +12 -3
- package/es/sku/components/SkuRowPropItem.js +5 -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/sku/Sku.js +12 -3
- package/lib/sku/components/SkuRowPropItem.js +5 -1
- package/lib/uploader/index.js +5 -1
- package/lib/vant.js +23 -6
- package/lib/vant.min.js +2 -2
- package/package.json +1 -1
- package/vetur/attributes.json +380 -380
- package/vetur/tags.json +135 -135
- package/vetur/web-types.json +1155 -1155
- package/changelog.generated.md +0 -11
package/vetur/web-types.json
CHANGED
@@ -2,10 +2,122 @@
|
|
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.53",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
9
|
+
{
|
10
|
+
"name": "van-address-list",
|
11
|
+
"slots": [
|
12
|
+
{
|
13
|
+
"name": "default",
|
14
|
+
"description": "在列表下方插入内容"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"name": "top",
|
18
|
+
"description": "在顶部插入内容"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"name": "item-bottom",
|
22
|
+
"description": "在列表项底部插入内容"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"name": "tag",
|
26
|
+
"description": "列表项标签内容自定义"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"events": [
|
30
|
+
{
|
31
|
+
"name": "add",
|
32
|
+
"description": "点击新增按钮时触发"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"name": "edit",
|
36
|
+
"description": "点击编辑按钮时触发"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"name": "select",
|
40
|
+
"description": "切换选中的地址时触发"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"name": "edit-disabled",
|
44
|
+
"description": "编辑不可配送的地址时触发"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"name": "select-disabled",
|
48
|
+
"description": "选中不可配送的地址时触发"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"name": "click-item",
|
52
|
+
"description": "点击任意地址时触发"
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"attributes": [
|
56
|
+
{
|
57
|
+
"name": "v-model",
|
58
|
+
"default": "-",
|
59
|
+
"description": "当前选中地址的 id",
|
60
|
+
"value": {
|
61
|
+
"type": "string",
|
62
|
+
"kind": "expression"
|
63
|
+
}
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"name": "list",
|
67
|
+
"default": "`[]`",
|
68
|
+
"description": "地址列表",
|
69
|
+
"value": {
|
70
|
+
"type": "Address[]",
|
71
|
+
"kind": "expression"
|
72
|
+
}
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"name": "disabled-list",
|
76
|
+
"default": "`[]`",
|
77
|
+
"description": "不可配送地址列表",
|
78
|
+
"value": {
|
79
|
+
"type": "Address[]",
|
80
|
+
"kind": "expression"
|
81
|
+
}
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "disabled-text",
|
85
|
+
"default": "-",
|
86
|
+
"description": "不可配送提示文案",
|
87
|
+
"value": {
|
88
|
+
"type": "string",
|
89
|
+
"kind": "expression"
|
90
|
+
}
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"name": "switchable",
|
94
|
+
"default": "`true`",
|
95
|
+
"description": "是否允许切换地址",
|
96
|
+
"value": {
|
97
|
+
"type": "boolean",
|
98
|
+
"kind": "expression"
|
99
|
+
}
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"name": "add-button-text",
|
103
|
+
"default": "`新增地址`",
|
104
|
+
"description": "底部按钮文字",
|
105
|
+
"value": {
|
106
|
+
"type": "string",
|
107
|
+
"kind": "expression"
|
108
|
+
}
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"name": "default-tag-text",
|
112
|
+
"default": "-",
|
113
|
+
"description": "默认地址标签文字",
|
114
|
+
"value": {
|
115
|
+
"type": "string",
|
116
|
+
"kind": "expression"
|
117
|
+
}
|
118
|
+
}
|
119
|
+
]
|
120
|
+
},
|
9
121
|
{
|
10
122
|
"name": "van-action-sheet",
|
11
123
|
"slots": [
|
@@ -205,449 +317,397 @@
|
|
205
317
|
]
|
206
318
|
},
|
207
319
|
{
|
208
|
-
"name": "van-
|
320
|
+
"name": "van-address-edit",
|
209
321
|
"slots": [
|
210
322
|
{
|
211
|
-
"name": "
|
212
|
-
"description": "
|
323
|
+
"name": "default",
|
324
|
+
"description": "在邮政编码下方插入内容"
|
325
|
+
}
|
326
|
+
],
|
327
|
+
"events": [
|
328
|
+
{
|
329
|
+
"name": "save",
|
330
|
+
"description": "点击保存按钮时触发"
|
213
331
|
},
|
214
332
|
{
|
215
|
-
"name": "
|
216
|
-
"description": "
|
333
|
+
"name": "focus",
|
334
|
+
"description": "输入框聚焦时触发"
|
217
335
|
},
|
218
336
|
{
|
219
|
-
"name": "
|
220
|
-
"description": "
|
221
|
-
}
|
222
|
-
],
|
223
|
-
"events": [
|
337
|
+
"name": "delete",
|
338
|
+
"description": "确认删除地址时触发"
|
339
|
+
},
|
224
340
|
{
|
225
|
-
"name": "
|
226
|
-
"description": "
|
341
|
+
"name": "cancel-delete",
|
342
|
+
"description": "取消删除地址时触发"
|
227
343
|
},
|
228
344
|
{
|
229
|
-
"name": "
|
230
|
-
"description": "
|
345
|
+
"name": "select-search",
|
346
|
+
"description": "选中搜索结果时触发"
|
231
347
|
},
|
232
348
|
{
|
233
|
-
"name": "
|
234
|
-
"description": "
|
349
|
+
"name": "click-area",
|
350
|
+
"description": "点击收件地区时触发"
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"name": "change-area",
|
354
|
+
"description": "修改收件地区时触发"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"name": "change-detail",
|
358
|
+
"description": "修改详细地址时触发"
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"name": "change-default",
|
362
|
+
"description": "切换是否使用默认地址时触发"
|
235
363
|
}
|
236
364
|
],
|
237
365
|
"attributes": [
|
238
366
|
{
|
239
|
-
"name": "
|
367
|
+
"name": "area-list",
|
240
368
|
"default": "-",
|
241
|
-
"description": "
|
369
|
+
"description": "地区列表",
|
242
370
|
"value": {
|
243
|
-
"type": "
|
371
|
+
"type": "object",
|
244
372
|
"kind": "expression"
|
245
373
|
}
|
246
374
|
},
|
247
375
|
{
|
248
|
-
"name": "
|
249
|
-
"default": "
|
250
|
-
"description": "
|
376
|
+
"name": "area-columns-placeholder",
|
377
|
+
"default": "`[]`",
|
378
|
+
"description": "地区选择列占位提示文字",
|
251
379
|
"value": {
|
252
|
-
"type": "string",
|
380
|
+
"type": "string[]",
|
253
381
|
"kind": "expression"
|
254
382
|
}
|
255
383
|
},
|
256
384
|
{
|
257
|
-
"name": "
|
258
|
-
"default": "
|
259
|
-
"description": "
|
385
|
+
"name": "area-placeholder",
|
386
|
+
"default": "`选择省 / 市 / 区`",
|
387
|
+
"description": "地区输入框占位提示文字",
|
260
388
|
"value": {
|
261
389
|
"type": "string",
|
262
390
|
"kind": "expression"
|
263
391
|
}
|
264
392
|
},
|
265
393
|
{
|
266
|
-
"name": "
|
267
|
-
"default": "
|
268
|
-
"description": "
|
394
|
+
"name": "address-info",
|
395
|
+
"default": "`{}`",
|
396
|
+
"description": "收货人信息初始值",
|
269
397
|
"value": {
|
270
|
-
"type": "
|
398
|
+
"type": "AddressInfo",
|
271
399
|
"kind": "expression"
|
272
400
|
}
|
273
401
|
},
|
274
402
|
{
|
275
|
-
"name": "
|
276
|
-
"default": "
|
277
|
-
"description": "
|
403
|
+
"name": "search-result",
|
404
|
+
"default": "`[]`",
|
405
|
+
"description": "详细地址搜索结果",
|
278
406
|
"value": {
|
279
|
-
"type": "
|
407
|
+
"type": "SearchResult[]",
|
280
408
|
"kind": "expression"
|
281
409
|
}
|
282
410
|
},
|
283
411
|
{
|
284
|
-
"name": "
|
285
|
-
"default": "`
|
286
|
-
"description": "
|
412
|
+
"name": "show-postal",
|
413
|
+
"default": "`false`",
|
414
|
+
"description": "是否显示邮政编码",
|
287
415
|
"value": {
|
288
|
-
"type": "
|
416
|
+
"type": "boolean",
|
289
417
|
"kind": "expression"
|
290
418
|
}
|
291
419
|
},
|
292
420
|
{
|
293
|
-
"name": "
|
421
|
+
"name": "show-delete",
|
294
422
|
"default": "`false`",
|
295
|
-
"description": "
|
423
|
+
"description": "是否显示删除按钮",
|
296
424
|
"value": {
|
297
425
|
"type": "boolean",
|
298
426
|
"kind": "expression"
|
299
427
|
}
|
300
428
|
},
|
301
429
|
{
|
302
|
-
"name": "
|
430
|
+
"name": "show-set-default",
|
303
431
|
"default": "`false`",
|
304
|
-
"description": "
|
432
|
+
"description": "是否显示默认地址栏",
|
305
433
|
"value": {
|
306
434
|
"type": "boolean",
|
307
435
|
"kind": "expression"
|
308
436
|
}
|
309
437
|
},
|
310
438
|
{
|
311
|
-
"name": "
|
312
|
-
"default": "`
|
313
|
-
"description": "
|
439
|
+
"name": "show-search-result",
|
440
|
+
"default": "`false`",
|
441
|
+
"description": "是否显示搜索结果",
|
314
442
|
"value": {
|
315
|
-
"type": "
|
443
|
+
"type": "boolean",
|
316
444
|
"kind": "expression"
|
317
445
|
}
|
318
446
|
},
|
319
447
|
{
|
320
|
-
"name": "
|
321
|
-
"default": "`
|
322
|
-
"description": "
|
448
|
+
"name": "show-area",
|
449
|
+
"default": "`true`",
|
450
|
+
"description": "是否显示地区",
|
323
451
|
"value": {
|
324
|
-
"type": "
|
452
|
+
"type": "boolean",
|
325
453
|
"kind": "expression"
|
326
454
|
}
|
327
455
|
},
|
328
456
|
{
|
329
|
-
"name": "
|
330
|
-
"default": "`
|
331
|
-
"description": "
|
457
|
+
"name": "show-detail",
|
458
|
+
"default": "`true`",
|
459
|
+
"description": "是否显示详细地址",
|
332
460
|
"value": {
|
333
|
-
"type": "
|
461
|
+
"type": "boolean",
|
334
462
|
"kind": "expression"
|
335
463
|
}
|
336
464
|
},
|
337
465
|
{
|
338
|
-
"name": "
|
339
|
-
"default": "`
|
340
|
-
"description": "
|
466
|
+
"name": "disable-area",
|
467
|
+
"default": "`false`",
|
468
|
+
"description": "是否禁用地区选择",
|
341
469
|
"value": {
|
342
|
-
"type": "
|
470
|
+
"type": "boolean",
|
343
471
|
"kind": "expression"
|
344
472
|
}
|
345
473
|
},
|
346
474
|
{
|
347
|
-
"name": "
|
348
|
-
"default": "
|
349
|
-
"description": "
|
475
|
+
"name": "save-button-text",
|
476
|
+
"default": "`保存`",
|
477
|
+
"description": "保存按钮文字",
|
350
478
|
"value": {
|
351
|
-
"type": "
|
479
|
+
"type": "string",
|
352
480
|
"kind": "expression"
|
353
481
|
}
|
354
|
-
}
|
355
|
-
]
|
356
|
-
},
|
357
|
-
{
|
358
|
-
"name": "van-address-edit",
|
359
|
-
"slots": [
|
360
|
-
{
|
361
|
-
"name": "default",
|
362
|
-
"description": "在邮政编码下方插入内容"
|
363
|
-
}
|
364
|
-
],
|
365
|
-
"events": [
|
366
|
-
{
|
367
|
-
"name": "save",
|
368
|
-
"description": "点击保存按钮时触发"
|
369
|
-
},
|
370
|
-
{
|
371
|
-
"name": "focus",
|
372
|
-
"description": "输入框聚焦时触发"
|
373
482
|
},
|
374
483
|
{
|
375
|
-
"name": "delete",
|
376
|
-
"
|
377
|
-
|
378
|
-
{
|
379
|
-
"name": "cancel-delete",
|
380
|
-
"description": "取消删除地址时触发"
|
381
|
-
},
|
382
|
-
{
|
383
|
-
"name": "select-search",
|
384
|
-
"description": "选中搜索结果时触发"
|
385
|
-
},
|
386
|
-
{
|
387
|
-
"name": "click-area",
|
388
|
-
"description": "点击收件地区时触发"
|
389
|
-
},
|
390
|
-
{
|
391
|
-
"name": "change-area",
|
392
|
-
"description": "修改收件地区时触发"
|
393
|
-
},
|
394
|
-
{
|
395
|
-
"name": "change-detail",
|
396
|
-
"description": "修改详细地址时触发"
|
397
|
-
},
|
398
|
-
{
|
399
|
-
"name": "change-default",
|
400
|
-
"description": "切换是否使用默认地址时触发"
|
401
|
-
}
|
402
|
-
],
|
403
|
-
"attributes": [
|
404
|
-
{
|
405
|
-
"name": "area-list",
|
406
|
-
"default": "-",
|
407
|
-
"description": "地区列表",
|
408
|
-
"value": {
|
409
|
-
"type": "object",
|
410
|
-
"kind": "expression"
|
411
|
-
}
|
412
|
-
},
|
413
|
-
{
|
414
|
-
"name": "area-columns-placeholder",
|
415
|
-
"default": "`[]`",
|
416
|
-
"description": "地区选择列占位提示文字",
|
417
|
-
"value": {
|
418
|
-
"type": "string[]",
|
419
|
-
"kind": "expression"
|
420
|
-
}
|
421
|
-
},
|
422
|
-
{
|
423
|
-
"name": "area-placeholder",
|
424
|
-
"default": "`选择省 / 市 / 区`",
|
425
|
-
"description": "地区输入框占位提示文字",
|
484
|
+
"name": "delete-button-text",
|
485
|
+
"default": "`删除`",
|
486
|
+
"description": "删除按钮文字",
|
426
487
|
"value": {
|
427
488
|
"type": "string",
|
428
489
|
"kind": "expression"
|
429
490
|
}
|
430
491
|
},
|
431
492
|
{
|
432
|
-
"name": "
|
433
|
-
"default": "`
|
434
|
-
"description": "
|
493
|
+
"name": "detail-rows",
|
494
|
+
"default": "`1`",
|
495
|
+
"description": "详细地址输入框行数",
|
435
496
|
"value": {
|
436
|
-
"type": "
|
497
|
+
"type": "number | string",
|
437
498
|
"kind": "expression"
|
438
499
|
}
|
439
500
|
},
|
440
501
|
{
|
441
|
-
"name": "
|
442
|
-
"default": "`
|
443
|
-
"description": "
|
502
|
+
"name": "detail-maxlength",
|
503
|
+
"default": "`200`",
|
504
|
+
"description": "详细地址最大长度",
|
444
505
|
"value": {
|
445
|
-
"type": "
|
506
|
+
"type": "number | string",
|
446
507
|
"kind": "expression"
|
447
508
|
}
|
448
509
|
},
|
449
510
|
{
|
450
|
-
"name": "
|
511
|
+
"name": "is-saving",
|
451
512
|
"default": "`false`",
|
452
|
-
"description": "
|
513
|
+
"description": "是否显示保存按钮加载动画",
|
453
514
|
"value": {
|
454
515
|
"type": "boolean",
|
455
516
|
"kind": "expression"
|
456
517
|
}
|
457
518
|
},
|
458
519
|
{
|
459
|
-
"name": "
|
520
|
+
"name": "is-deleting",
|
460
521
|
"default": "`false`",
|
461
|
-
"description": "
|
522
|
+
"description": "是否显示删除按钮加载动画",
|
462
523
|
"value": {
|
463
524
|
"type": "boolean",
|
464
525
|
"kind": "expression"
|
465
526
|
}
|
466
527
|
},
|
467
528
|
{
|
468
|
-
"name": "
|
469
|
-
"default": "
|
470
|
-
"description": "
|
529
|
+
"name": "tel-validator",
|
530
|
+
"default": "-",
|
531
|
+
"description": "手机号格式校验函数",
|
471
532
|
"value": {
|
472
|
-
"type": "boolean",
|
533
|
+
"type": "string => boolean",
|
473
534
|
"kind": "expression"
|
474
535
|
}
|
475
536
|
},
|
476
537
|
{
|
477
|
-
"name": "
|
478
|
-
"default": "
|
479
|
-
"description": "
|
538
|
+
"name": "tel-maxlength",
|
539
|
+
"default": "-",
|
540
|
+
"description": "手机号最大长度",
|
480
541
|
"value": {
|
481
|
-
"type": "
|
542
|
+
"type": "number | string",
|
482
543
|
"kind": "expression"
|
483
544
|
}
|
484
545
|
},
|
485
546
|
{
|
486
|
-
"name": "
|
487
|
-
"default": "
|
488
|
-
"description": "
|
547
|
+
"name": "postal-validator",
|
548
|
+
"default": "-",
|
549
|
+
"description": "邮政编码格式校验函数",
|
489
550
|
"value": {
|
490
|
-
"type": "boolean",
|
551
|
+
"type": "string => boolean",
|
491
552
|
"kind": "expression"
|
492
553
|
}
|
493
554
|
},
|
494
555
|
{
|
495
|
-
"name": "
|
496
|
-
"default": "
|
497
|
-
"description": "
|
556
|
+
"name": "validator",
|
557
|
+
"default": "-",
|
558
|
+
"description": "自定义校验函数",
|
498
559
|
"value": {
|
499
|
-
"type": "
|
560
|
+
"type": "(key, val) => string",
|
500
561
|
"kind": "expression"
|
501
562
|
}
|
563
|
+
}
|
564
|
+
]
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"name": "van-area",
|
568
|
+
"slots": [
|
569
|
+
{
|
570
|
+
"name": "title",
|
571
|
+
"description": "自定义标题内容"
|
502
572
|
},
|
503
573
|
{
|
504
|
-
"name": "
|
505
|
-
"
|
506
|
-
"description": "是否禁用地区选择",
|
507
|
-
"value": {
|
508
|
-
"type": "boolean",
|
509
|
-
"kind": "expression"
|
510
|
-
}
|
574
|
+
"name": "columns-top",
|
575
|
+
"description": "自定义选项上方内容"
|
511
576
|
},
|
512
577
|
{
|
513
|
-
"name": "
|
514
|
-
"
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
578
|
+
"name": "columns-bottom",
|
579
|
+
"description": "自定义选项下方内容"
|
580
|
+
}
|
581
|
+
],
|
582
|
+
"events": [
|
583
|
+
{
|
584
|
+
"name": "confirm",
|
585
|
+
"description": "点击右上方完成按钮"
|
520
586
|
},
|
521
587
|
{
|
522
|
-
"name": "
|
523
|
-
"
|
524
|
-
|
588
|
+
"name": "cancel",
|
589
|
+
"description": "点击取消按钮时"
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"name": "change",
|
593
|
+
"description": "选项改变时触发"
|
594
|
+
}
|
595
|
+
],
|
596
|
+
"attributes": [
|
597
|
+
{
|
598
|
+
"name": "value",
|
599
|
+
"default": "-",
|
600
|
+
"description": "当前选中的省市区`code`",
|
525
601
|
"value": {
|
526
602
|
"type": "string",
|
527
603
|
"kind": "expression"
|
528
604
|
}
|
529
605
|
},
|
530
606
|
{
|
531
|
-
"name": "
|
532
|
-
"default": "
|
533
|
-
"description": "
|
607
|
+
"name": "title",
|
608
|
+
"default": "-",
|
609
|
+
"description": "顶部栏标题",
|
534
610
|
"value": {
|
535
|
-
"type": "
|
611
|
+
"type": "string",
|
536
612
|
"kind": "expression"
|
537
613
|
}
|
538
614
|
},
|
539
615
|
{
|
540
|
-
"name": "
|
541
|
-
"default": "
|
542
|
-
"description": "
|
616
|
+
"name": "confirm-button-text",
|
617
|
+
"default": "`确认`",
|
618
|
+
"description": "确认按钮文字",
|
543
619
|
"value": {
|
544
|
-
"type": "
|
620
|
+
"type": "string",
|
545
621
|
"kind": "expression"
|
546
622
|
}
|
547
623
|
},
|
548
624
|
{
|
549
|
-
"name": "
|
550
|
-
"default": "
|
551
|
-
"description": "
|
625
|
+
"name": "cancel-button-text",
|
626
|
+
"default": "`取消`",
|
627
|
+
"description": "取消按钮文字",
|
552
628
|
"value": {
|
553
|
-
"type": "
|
629
|
+
"type": "string",
|
554
630
|
"kind": "expression"
|
555
631
|
}
|
556
632
|
},
|
557
633
|
{
|
558
|
-
"name": "
|
559
|
-
"default": "
|
560
|
-
"description": "
|
634
|
+
"name": "area-list",
|
635
|
+
"default": "-",
|
636
|
+
"description": "省市区数据,格式见下方",
|
561
637
|
"value": {
|
562
|
-
"type": "
|
638
|
+
"type": "object",
|
563
639
|
"kind": "expression"
|
564
640
|
}
|
565
641
|
},
|
566
642
|
{
|
567
|
-
"name": "
|
568
|
-
"default": "
|
569
|
-
"description": "
|
643
|
+
"name": "columns-placeholder",
|
644
|
+
"default": "`[]`",
|
645
|
+
"description": "列占位提示文字",
|
570
646
|
"value": {
|
571
|
-
"type": "string
|
647
|
+
"type": "string[]",
|
572
648
|
"kind": "expression"
|
573
649
|
}
|
574
650
|
},
|
575
651
|
{
|
576
|
-
"name": "
|
577
|
-
"default": "
|
578
|
-
"description": "
|
652
|
+
"name": "loading",
|
653
|
+
"default": "`false`",
|
654
|
+
"description": "是否显示加载状态",
|
579
655
|
"value": {
|
580
|
-
"type": "
|
656
|
+
"type": "boolean",
|
581
657
|
"kind": "expression"
|
582
658
|
}
|
583
659
|
},
|
584
660
|
{
|
585
|
-
"name": "
|
586
|
-
"default": "
|
587
|
-
"description": "
|
661
|
+
"name": "readonly",
|
662
|
+
"default": "`false`",
|
663
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
588
664
|
"value": {
|
589
|
-
"type": "
|
665
|
+
"type": "boolean",
|
590
666
|
"kind": "expression"
|
591
667
|
}
|
592
668
|
},
|
593
669
|
{
|
594
|
-
"name": "
|
595
|
-
"default": "
|
596
|
-
"description": "
|
670
|
+
"name": "item-height",
|
671
|
+
"default": "`44`",
|
672
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
597
673
|
"value": {
|
598
|
-
"type": "
|
674
|
+
"type": "number | string",
|
599
675
|
"kind": "expression"
|
600
676
|
}
|
601
|
-
}
|
602
|
-
]
|
603
|
-
},
|
604
|
-
{
|
605
|
-
"name": "van-badge",
|
606
|
-
"slots": [
|
607
|
-
{
|
608
|
-
"name": "default",
|
609
|
-
"description": "徽标包裹的子元素"
|
610
677
|
},
|
611
678
|
{
|
612
|
-
"name": "
|
613
|
-
"
|
614
|
-
|
615
|
-
],
|
616
|
-
"events": [],
|
617
|
-
"attributes": [
|
618
|
-
{
|
619
|
-
"name": "content",
|
620
|
-
"default": "-",
|
621
|
-
"description": "徽标内容",
|
679
|
+
"name": "columns-num",
|
680
|
+
"default": "`3`",
|
681
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
622
682
|
"value": {
|
623
683
|
"type": "number | string",
|
624
684
|
"kind": "expression"
|
625
685
|
}
|
626
686
|
},
|
627
687
|
{
|
628
|
-
"name": "
|
629
|
-
"default": "
|
630
|
-
"description": "
|
688
|
+
"name": "visible-item-count",
|
689
|
+
"default": "`6`",
|
690
|
+
"description": "可见的选项个数",
|
631
691
|
"value": {
|
632
|
-
"type": "string",
|
692
|
+
"type": "number | string",
|
633
693
|
"kind": "expression"
|
634
694
|
}
|
635
695
|
},
|
636
696
|
{
|
637
|
-
"name": "
|
638
|
-
"default": "`
|
639
|
-
"description": "
|
697
|
+
"name": "swipe-duration",
|
698
|
+
"default": "`1000`",
|
699
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
640
700
|
"value": {
|
641
|
-
"type": "
|
701
|
+
"type": "number | string",
|
642
702
|
"kind": "expression"
|
643
703
|
}
|
644
704
|
},
|
645
705
|
{
|
646
|
-
"name": "
|
706
|
+
"name": "is-oversea-code",
|
647
707
|
"default": "-",
|
648
|
-
"description": "
|
708
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
649
709
|
"value": {
|
650
|
-
"type": "
|
710
|
+
"type": "() => boolean",
|
651
711
|
"kind": "expression"
|
652
712
|
}
|
653
713
|
}
|
@@ -854,290 +914,81 @@
|
|
854
914
|
{
|
855
915
|
"name": "url",
|
856
916
|
"default": "-",
|
857
|
-
"description": "点击后跳转的链接地址",
|
858
|
-
"value": {
|
859
|
-
"type": "string",
|
860
|
-
"kind": "expression"
|
861
|
-
}
|
862
|
-
},
|
863
|
-
{
|
864
|
-
"name": "to",
|
865
|
-
"default": "-",
|
866
|
-
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
867
|
-
"value": {
|
868
|
-
"type": "string | object",
|
869
|
-
"kind": "expression"
|
870
|
-
}
|
871
|
-
},
|
872
|
-
{
|
873
|
-
"name": "replace",
|
874
|
-
"default": "`false`",
|
875
|
-
"description": "是否在跳转时替换当前页面历史",
|
876
|
-
"value": {
|
877
|
-
"type": "boolean",
|
878
|
-
"kind": "expression"
|
879
|
-
}
|
880
|
-
}
|
881
|
-
]
|
882
|
-
},
|
883
|
-
{
|
884
|
-
"name": "van-cascader",
|
885
|
-
"slots": [
|
886
|
-
{
|
887
|
-
"name": "title",
|
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": "全部选项选择完成后触发"
|
903
|
-
},
|
904
|
-
{
|
905
|
-
"name": "close",
|
906
|
-
"description": "点击关闭图标时触发"
|
907
|
-
}
|
908
|
-
],
|
909
|
-
"attributes": [
|
910
|
-
{
|
911
|
-
"name": "title",
|
912
|
-
"default": "-",
|
913
|
-
"description": "顶部标题",
|
914
|
-
"value": {
|
915
|
-
"type": "string",
|
916
|
-
"kind": "expression"
|
917
|
-
}
|
918
|
-
},
|
919
|
-
{
|
920
|
-
"name": "value",
|
921
|
-
"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": "未选中时的提示文案",
|
941
|
-
"value": {
|
942
|
-
"type": "string",
|
943
|
-
"kind": "expression"
|
944
|
-
}
|
945
|
-
},
|
946
|
-
{
|
947
|
-
"name": "active-color",
|
948
|
-
"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": "图片角标",
|
1074
|
-
"value": {
|
1075
|
-
"type": "string",
|
1076
|
-
"kind": "expression"
|
1077
|
-
}
|
1078
|
-
},
|
1079
|
-
{
|
1080
|
-
"name": "num",
|
1081
|
-
"default": "-",
|
1082
|
-
"description": "商品数量",
|
1083
|
-
"value": {
|
1084
|
-
"type": "number | string",
|
1085
|
-
"kind": "expression"
|
1086
|
-
}
|
1087
|
-
},
|
1088
|
-
{
|
1089
|
-
"name": "price",
|
1090
|
-
"default": "-",
|
1091
|
-
"description": "商品价格",
|
917
|
+
"description": "点击后跳转的链接地址",
|
1092
918
|
"value": {
|
1093
|
-
"type": "
|
919
|
+
"type": "string",
|
1094
920
|
"kind": "expression"
|
1095
921
|
}
|
1096
922
|
},
|
1097
923
|
{
|
1098
|
-
"name": "
|
924
|
+
"name": "to",
|
1099
925
|
"default": "-",
|
1100
|
-
"description": "
|
926
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
1101
927
|
"value": {
|
1102
|
-
"type": "
|
928
|
+
"type": "string | object",
|
1103
929
|
"kind": "expression"
|
1104
930
|
}
|
1105
931
|
},
|
1106
932
|
{
|
1107
|
-
"name": "
|
933
|
+
"name": "replace",
|
1108
934
|
"default": "`false`",
|
1109
|
-
"description": "
|
935
|
+
"description": "是否在跳转时替换当前页面历史",
|
1110
936
|
"value": {
|
1111
937
|
"type": "boolean",
|
1112
938
|
"kind": "expression"
|
1113
939
|
}
|
940
|
+
}
|
941
|
+
]
|
942
|
+
},
|
943
|
+
{
|
944
|
+
"name": "van-badge",
|
945
|
+
"slots": [
|
946
|
+
{
|
947
|
+
"name": "default",
|
948
|
+
"description": "徽标包裹的子元素"
|
1114
949
|
},
|
1115
950
|
{
|
1116
|
-
"name": "
|
1117
|
-
"
|
1118
|
-
|
951
|
+
"name": "content",
|
952
|
+
"description": "自定义徽标内容"
|
953
|
+
}
|
954
|
+
],
|
955
|
+
"events": [],
|
956
|
+
"attributes": [
|
957
|
+
{
|
958
|
+
"name": "content",
|
959
|
+
"default": "-",
|
960
|
+
"description": "徽标内容",
|
1119
961
|
"value": {
|
1120
|
-
"type": "string",
|
962
|
+
"type": "number | string",
|
1121
963
|
"kind": "expression"
|
1122
964
|
}
|
1123
965
|
},
|
1124
966
|
{
|
1125
|
-
"name": "
|
1126
|
-
"default": "
|
1127
|
-
"description": "
|
967
|
+
"name": "color",
|
968
|
+
"default": "`#ee0a24`",
|
969
|
+
"description": "徽标背景颜色",
|
1128
970
|
"value": {
|
1129
971
|
"type": "string",
|
1130
972
|
"kind": "expression"
|
1131
973
|
}
|
1132
974
|
},
|
1133
975
|
{
|
1134
|
-
"name": "
|
976
|
+
"name": "dot",
|
1135
977
|
"default": "`false`",
|
1136
|
-
"description": "
|
978
|
+
"description": "是否展示为小红点",
|
1137
979
|
"value": {
|
1138
980
|
"type": "boolean",
|
1139
981
|
"kind": "expression"
|
1140
982
|
}
|
983
|
+
},
|
984
|
+
{
|
985
|
+
"name": "max",
|
986
|
+
"default": "-",
|
987
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
988
|
+
"value": {
|
989
|
+
"type": "number | string",
|
990
|
+
"kind": "expression"
|
991
|
+
}
|
1141
992
|
}
|
1142
993
|
]
|
1143
994
|
},
|
@@ -1469,112 +1320,261 @@
|
|
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": "自定义数量"
|
1336
|
+
},
|
1337
|
+
{
|
1338
|
+
"name": "price",
|
1339
|
+
"description": "自定义价格"
|
1340
|
+
},
|
1341
|
+
{
|
1342
|
+
"name": "origin-price",
|
1343
|
+
"description": "自定义商品原价"
|
1344
|
+
},
|
1345
|
+
{
|
1346
|
+
"name": "price-top",
|
1347
|
+
"description": "自定义价格上方区域"
|
1348
|
+
},
|
1349
|
+
{
|
1350
|
+
"name": "bottom",
|
1351
|
+
"description": "自定义价格下方区域"
|
1352
|
+
},
|
1353
|
+
{
|
1354
|
+
"name": "thumb",
|
1355
|
+
"description": "自定义图片"
|
1485
1356
|
},
|
1486
1357
|
{
|
1487
1358
|
"name": "tag",
|
1488
|
-
"description": "
|
1359
|
+
"description": "自定义图片角标"
|
1360
|
+
},
|
1361
|
+
{
|
1362
|
+
"name": "tags",
|
1363
|
+
"description": "自定义描述下方标签区域"
|
1364
|
+
},
|
1365
|
+
{
|
1366
|
+
"name": "footer",
|
1367
|
+
"description": "自定义右下角内容"
|
1489
1368
|
}
|
1490
1369
|
],
|
1491
1370
|
"events": [
|
1492
1371
|
{
|
1493
|
-
"name": "
|
1494
|
-
"description": "
|
1372
|
+
"name": "click",
|
1373
|
+
"description": "点击时触发"
|
1495
1374
|
},
|
1496
1375
|
{
|
1497
|
-
"name": "
|
1498
|
-
"description": "
|
1376
|
+
"name": "click-thumb",
|
1377
|
+
"description": "点击自定义图片时触发"
|
1378
|
+
}
|
1379
|
+
],
|
1380
|
+
"attributes": [
|
1381
|
+
{
|
1382
|
+
"name": "thumb",
|
1383
|
+
"default": "-",
|
1384
|
+
"description": "左侧图片 URL",
|
1385
|
+
"value": {
|
1386
|
+
"type": "string",
|
1387
|
+
"kind": "expression"
|
1388
|
+
}
|
1499
1389
|
},
|
1500
1390
|
{
|
1501
|
-
"name": "
|
1502
|
-
"
|
1391
|
+
"name": "title",
|
1392
|
+
"default": "-",
|
1393
|
+
"description": "标题",
|
1394
|
+
"value": {
|
1395
|
+
"type": "string",
|
1396
|
+
"kind": "expression"
|
1397
|
+
}
|
1503
1398
|
},
|
1504
1399
|
{
|
1505
|
-
"name": "
|
1506
|
-
"
|
1400
|
+
"name": "desc",
|
1401
|
+
"default": "-",
|
1402
|
+
"description": "描述",
|
1403
|
+
"value": {
|
1404
|
+
"type": "string",
|
1405
|
+
"kind": "expression"
|
1406
|
+
}
|
1507
1407
|
},
|
1508
1408
|
{
|
1509
|
-
"name": "
|
1510
|
-
"
|
1409
|
+
"name": "tag",
|
1410
|
+
"default": "-",
|
1411
|
+
"description": "图片角标",
|
1412
|
+
"value": {
|
1413
|
+
"type": "string",
|
1414
|
+
"kind": "expression"
|
1415
|
+
}
|
1511
1416
|
},
|
1512
1417
|
{
|
1513
|
-
"name": "
|
1514
|
-
"
|
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": "内容是否垂直居中",
|
1448
|
+
"value": {
|
1449
|
+
"type": "boolean",
|
1450
|
+
"kind": "expression"
|
1451
|
+
}
|
1452
|
+
},
|
1453
|
+
{
|
1454
|
+
"name": "currency",
|
1455
|
+
"default": "`¥`",
|
1456
|
+
"description": "货币符号",
|
1457
|
+
"value": {
|
1458
|
+
"type": "string",
|
1459
|
+
"kind": "expression"
|
1460
|
+
}
|
1461
|
+
},
|
1462
|
+
{
|
1463
|
+
"name": "thumb-link",
|
1464
|
+
"default": "-",
|
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": "点击关闭图标时触发"
|
1515
1506
|
}
|
1516
1507
|
],
|
1517
1508
|
"attributes": [
|
1518
1509
|
{
|
1519
|
-
"name": "
|
1510
|
+
"name": "title",
|
1520
1511
|
"default": "-",
|
1521
|
-
"description": "
|
1512
|
+
"description": "顶部标题",
|
1522
1513
|
"value": {
|
1523
1514
|
"type": "string",
|
1524
1515
|
"kind": "expression"
|
1525
1516
|
}
|
1526
1517
|
},
|
1527
1518
|
{
|
1528
|
-
"name": "
|
1519
|
+
"name": "value",
|
1520
|
+
"default": "-",
|
1521
|
+
"description": "选中项的值",
|
1522
|
+
"value": {
|
1523
|
+
"type": "string | number",
|
1524
|
+
"kind": "expression"
|
1525
|
+
}
|
1526
|
+
},
|
1527
|
+
{
|
1528
|
+
"name": "options",
|
1529
1529
|
"default": "`[]`",
|
1530
|
-
"description": "
|
1530
|
+
"description": "可选项数据源",
|
1531
1531
|
"value": {
|
1532
|
-
"type": "
|
1532
|
+
"type": "Option[]",
|
1533
1533
|
"kind": "expression"
|
1534
1534
|
}
|
1535
1535
|
},
|
1536
1536
|
{
|
1537
|
-
"name": "
|
1538
|
-
"default": "
|
1539
|
-
"description": "
|
1537
|
+
"name": "placeholder",
|
1538
|
+
"default": "`请选择`",
|
1539
|
+
"description": "未选中时的提示文案",
|
1540
1540
|
"value": {
|
1541
|
-
"type": "
|
1541
|
+
"type": "string",
|
1542
1542
|
"kind": "expression"
|
1543
1543
|
}
|
1544
1544
|
},
|
1545
1545
|
{
|
1546
|
-
"name": "
|
1547
|
-
"default": "
|
1548
|
-
"description": "
|
1546
|
+
"name": "active-color",
|
1547
|
+
"default": "`#ee0a24`",
|
1548
|
+
"description": "选中状态的高亮颜色",
|
1549
1549
|
"value": {
|
1550
1550
|
"type": "string",
|
1551
1551
|
"kind": "expression"
|
1552
1552
|
}
|
1553
1553
|
},
|
1554
1554
|
{
|
1555
|
-
"name": "
|
1555
|
+
"name": "closeable",
|
1556
1556
|
"default": "`true`",
|
1557
|
-
"description": "
|
1557
|
+
"description": "是否显示关闭图标",
|
1558
1558
|
"value": {
|
1559
1559
|
"type": "boolean",
|
1560
1560
|
"kind": "expression"
|
1561
1561
|
}
|
1562
1562
|
},
|
1563
1563
|
{
|
1564
|
-
"name": "
|
1565
|
-
"default": "
|
1566
|
-
"description": "
|
1564
|
+
"name": "show-header",
|
1565
|
+
"default": "`true`",
|
1566
|
+
"description": "是否展示标题栏",
|
1567
1567
|
"value": {
|
1568
|
-
"type": "
|
1568
|
+
"type": "boolean",
|
1569
1569
|
"kind": "expression"
|
1570
1570
|
}
|
1571
1571
|
},
|
1572
1572
|
{
|
1573
|
-
"name": "
|
1574
|
-
"default": "
|
1575
|
-
"description": "
|
1573
|
+
"name": "field-names",
|
1574
|
+
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
1575
|
+
"description": "自定义 `options` 结构中的字段",
|
1576
1576
|
"value": {
|
1577
|
-
"type": "
|
1577
|
+
"type": "object",
|
1578
1578
|
"kind": "expression"
|
1579
1579
|
}
|
1580
1580
|
}
|
@@ -1814,6 +1814,117 @@
|
|
1814
1814
|
}
|
1815
1815
|
]
|
1816
1816
|
},
|
1817
|
+
{
|
1818
|
+
"name": "van-circle",
|
1819
|
+
"slots": [
|
1820
|
+
{
|
1821
|
+
"name": "default",
|
1822
|
+
"description": "自定义文字内容"
|
1823
|
+
}
|
1824
|
+
],
|
1825
|
+
"events": [],
|
1826
|
+
"attributes": [
|
1827
|
+
{
|
1828
|
+
"name": "v-model",
|
1829
|
+
"default": "-",
|
1830
|
+
"description": "当前进度",
|
1831
|
+
"value": {
|
1832
|
+
"type": "number",
|
1833
|
+
"kind": "expression"
|
1834
|
+
}
|
1835
|
+
},
|
1836
|
+
{
|
1837
|
+
"name": "rate",
|
1838
|
+
"default": "`100`",
|
1839
|
+
"description": "目标进度",
|
1840
|
+
"value": {
|
1841
|
+
"type": "number | string",
|
1842
|
+
"kind": "expression"
|
1843
|
+
}
|
1844
|
+
},
|
1845
|
+
{
|
1846
|
+
"name": "size",
|
1847
|
+
"default": "`100px`",
|
1848
|
+
"description": "圆环直径,默认单位为 `px`",
|
1849
|
+
"value": {
|
1850
|
+
"type": "number | string",
|
1851
|
+
"kind": "expression"
|
1852
|
+
}
|
1853
|
+
},
|
1854
|
+
{
|
1855
|
+
"name": "color",
|
1856
|
+
"default": "`#1989fa`",
|
1857
|
+
"description": "进度条颜色,传入对象格式可以定义渐变色",
|
1858
|
+
"value": {
|
1859
|
+
"type": "string | object",
|
1860
|
+
"kind": "expression"
|
1861
|
+
}
|
1862
|
+
},
|
1863
|
+
{
|
1864
|
+
"name": "layer-color",
|
1865
|
+
"default": "`white`",
|
1866
|
+
"description": "轨道颜色",
|
1867
|
+
"value": {
|
1868
|
+
"type": "string",
|
1869
|
+
"kind": "expression"
|
1870
|
+
}
|
1871
|
+
},
|
1872
|
+
{
|
1873
|
+
"name": "fill",
|
1874
|
+
"default": "`none`",
|
1875
|
+
"description": "填充颜色",
|
1876
|
+
"value": {
|
1877
|
+
"type": "string",
|
1878
|
+
"kind": "expression"
|
1879
|
+
}
|
1880
|
+
},
|
1881
|
+
{
|
1882
|
+
"name": "speed",
|
1883
|
+
"default": "`0`",
|
1884
|
+
"description": "动画速度(单位为 rate/s)",
|
1885
|
+
"value": {
|
1886
|
+
"type": "number | string",
|
1887
|
+
"kind": "expression"
|
1888
|
+
}
|
1889
|
+
},
|
1890
|
+
{
|
1891
|
+
"name": "text",
|
1892
|
+
"default": "-",
|
1893
|
+
"description": "文字",
|
1894
|
+
"value": {
|
1895
|
+
"type": "string",
|
1896
|
+
"kind": "expression"
|
1897
|
+
}
|
1898
|
+
},
|
1899
|
+
{
|
1900
|
+
"name": "stroke-width",
|
1901
|
+
"default": "`40`",
|
1902
|
+
"description": "进度条宽度",
|
1903
|
+
"value": {
|
1904
|
+
"type": "number | string",
|
1905
|
+
"kind": "expression"
|
1906
|
+
}
|
1907
|
+
},
|
1908
|
+
{
|
1909
|
+
"name": "stroke-linecap",
|
1910
|
+
"default": "`round`",
|
1911
|
+
"description": "进度条端点的形状,可选值为`square` `butt`",
|
1912
|
+
"value": {
|
1913
|
+
"type": "string",
|
1914
|
+
"kind": "expression"
|
1915
|
+
}
|
1916
|
+
},
|
1917
|
+
{
|
1918
|
+
"name": "clockwise",
|
1919
|
+
"default": "`true`",
|
1920
|
+
"description": "是否顺时针增加",
|
1921
|
+
"value": {
|
1922
|
+
"type": "boolean",
|
1923
|
+
"kind": "expression"
|
1924
|
+
}
|
1925
|
+
}
|
1926
|
+
]
|
1927
|
+
},
|
1817
1928
|
{
|
1818
1929
|
"name": "van-checkbox",
|
1819
1930
|
"slots": [
|
@@ -1954,136 +2065,25 @@
|
|
1954
2065
|
"default": "`vertical`",
|
1955
2066
|
"description": "排列方向,可选值为 `horizontal`",
|
1956
2067
|
"value": {
|
1957
|
-
"type": "string",
|
1958
|
-
"kind": "expression"
|
1959
|
-
}
|
1960
|
-
},
|
1961
|
-
{
|
1962
|
-
"name": "icon-size",
|
1963
|
-
"default": "`20px`",
|
1964
|
-
"description": "所有复选框的图标大小,默认单位为 `px`",
|
1965
|
-
"value": {
|
1966
|
-
"type": "number | string",
|
1967
|
-
"kind": "expression"
|
1968
|
-
}
|
1969
|
-
},
|
1970
|
-
{
|
1971
|
-
"name": "checked-color",
|
1972
|
-
"default": "`#1989fa`",
|
1973
|
-
"description": "所有复选框的选中状态颜色",
|
1974
|
-
"value": {
|
1975
|
-
"type": "string",
|
1976
|
-
"kind": "expression"
|
1977
|
-
}
|
1978
|
-
}
|
1979
|
-
]
|
1980
|
-
},
|
1981
|
-
{
|
1982
|
-
"name": "van-circle",
|
1983
|
-
"slots": [
|
1984
|
-
{
|
1985
|
-
"name": "default",
|
1986
|
-
"description": "自定义文字内容"
|
1987
|
-
}
|
1988
|
-
],
|
1989
|
-
"events": [],
|
1990
|
-
"attributes": [
|
1991
|
-
{
|
1992
|
-
"name": "v-model",
|
1993
|
-
"default": "-",
|
1994
|
-
"description": "当前进度",
|
1995
|
-
"value": {
|
1996
|
-
"type": "number",
|
1997
|
-
"kind": "expression"
|
1998
|
-
}
|
1999
|
-
},
|
2000
|
-
{
|
2001
|
-
"name": "rate",
|
2002
|
-
"default": "`100`",
|
2003
|
-
"description": "目标进度",
|
2004
|
-
"value": {
|
2005
|
-
"type": "number | string",
|
2006
|
-
"kind": "expression"
|
2007
|
-
}
|
2008
|
-
},
|
2009
|
-
{
|
2010
|
-
"name": "size",
|
2011
|
-
"default": "`100px`",
|
2012
|
-
"description": "圆环直径,默认单位为 `px`",
|
2013
|
-
"value": {
|
2014
|
-
"type": "number | string",
|
2015
|
-
"kind": "expression"
|
2016
|
-
}
|
2017
|
-
},
|
2018
|
-
{
|
2019
|
-
"name": "color",
|
2020
|
-
"default": "`#1989fa`",
|
2021
|
-
"description": "进度条颜色,传入对象格式可以定义渐变色",
|
2022
|
-
"value": {
|
2023
|
-
"type": "string | object",
|
2024
|
-
"kind": "expression"
|
2025
|
-
}
|
2026
|
-
},
|
2027
|
-
{
|
2028
|
-
"name": "layer-color",
|
2029
|
-
"default": "`white`",
|
2030
|
-
"description": "轨道颜色",
|
2031
|
-
"value": {
|
2032
|
-
"type": "string",
|
2033
|
-
"kind": "expression"
|
2034
|
-
}
|
2035
|
-
},
|
2036
|
-
{
|
2037
|
-
"name": "fill",
|
2038
|
-
"default": "`none`",
|
2039
|
-
"description": "填充颜色",
|
2040
|
-
"value": {
|
2041
|
-
"type": "string",
|
2042
|
-
"kind": "expression"
|
2043
|
-
}
|
2044
|
-
},
|
2045
|
-
{
|
2046
|
-
"name": "speed",
|
2047
|
-
"default": "`0`",
|
2048
|
-
"description": "动画速度(单位为 rate/s)",
|
2049
|
-
"value": {
|
2050
|
-
"type": "number | string",
|
2051
|
-
"kind": "expression"
|
2052
|
-
}
|
2053
|
-
},
|
2054
|
-
{
|
2055
|
-
"name": "text",
|
2056
|
-
"default": "-",
|
2057
|
-
"description": "文字",
|
2058
|
-
"value": {
|
2059
|
-
"type": "string",
|
2060
|
-
"kind": "expression"
|
2061
|
-
}
|
2062
|
-
},
|
2063
|
-
{
|
2064
|
-
"name": "stroke-width",
|
2065
|
-
"default": "`40`",
|
2066
|
-
"description": "进度条宽度",
|
2067
|
-
"value": {
|
2068
|
-
"type": "number | string",
|
2068
|
+
"type": "string",
|
2069
2069
|
"kind": "expression"
|
2070
2070
|
}
|
2071
2071
|
},
|
2072
2072
|
{
|
2073
|
-
"name": "
|
2074
|
-
"default": "`
|
2075
|
-
"description": "
|
2073
|
+
"name": "icon-size",
|
2074
|
+
"default": "`20px`",
|
2075
|
+
"description": "所有复选框的图标大小,默认单位为 `px`",
|
2076
2076
|
"value": {
|
2077
|
-
"type": "string",
|
2077
|
+
"type": "number | string",
|
2078
2078
|
"kind": "expression"
|
2079
2079
|
}
|
2080
2080
|
},
|
2081
2081
|
{
|
2082
|
-
"name": "
|
2083
|
-
"default": "`
|
2084
|
-
"description": "
|
2082
|
+
"name": "checked-color",
|
2083
|
+
"default": "`#1989fa`",
|
2084
|
+
"description": "所有复选框的选中状态颜色",
|
2085
2085
|
"value": {
|
2086
|
-
"type": "
|
2086
|
+
"type": "string",
|
2087
2087
|
"kind": "expression"
|
2088
2088
|
}
|
2089
2089
|
}
|
@@ -3055,6 +3055,45 @@
|
|
3055
3055
|
}
|
3056
3056
|
]
|
3057
3057
|
},
|
3058
|
+
{
|
3059
|
+
"name": "van-divider",
|
3060
|
+
"slots": [
|
3061
|
+
{
|
3062
|
+
"name": "default",
|
3063
|
+
"description": "内容"
|
3064
|
+
}
|
3065
|
+
],
|
3066
|
+
"events": [],
|
3067
|
+
"attributes": [
|
3068
|
+
{
|
3069
|
+
"name": "dashed",
|
3070
|
+
"default": "`false`",
|
3071
|
+
"description": "是否使用虚线",
|
3072
|
+
"value": {
|
3073
|
+
"type": "boolean",
|
3074
|
+
"kind": "expression"
|
3075
|
+
}
|
3076
|
+
},
|
3077
|
+
{
|
3078
|
+
"name": "hairline",
|
3079
|
+
"default": "`true`",
|
3080
|
+
"description": "是否使用 0.5px 线",
|
3081
|
+
"value": {
|
3082
|
+
"type": "boolean",
|
3083
|
+
"kind": "expression"
|
3084
|
+
}
|
3085
|
+
},
|
3086
|
+
{
|
3087
|
+
"name": "content-position",
|
3088
|
+
"default": "`center`",
|
3089
|
+
"description": "内容位置,可选值为`left` `right`",
|
3090
|
+
"value": {
|
3091
|
+
"type": "string",
|
3092
|
+
"kind": "expression"
|
3093
|
+
}
|
3094
|
+
}
|
3095
|
+
]
|
3096
|
+
},
|
3058
3097
|
{
|
3059
3098
|
"name": "van-dialog",
|
3060
3099
|
"slots": [
|
@@ -3303,45 +3342,6 @@
|
|
3303
3342
|
}
|
3304
3343
|
]
|
3305
3344
|
},
|
3306
|
-
{
|
3307
|
-
"name": "van-divider",
|
3308
|
-
"slots": [
|
3309
|
-
{
|
3310
|
-
"name": "default",
|
3311
|
-
"description": "内容"
|
3312
|
-
}
|
3313
|
-
],
|
3314
|
-
"events": [],
|
3315
|
-
"attributes": [
|
3316
|
-
{
|
3317
|
-
"name": "dashed",
|
3318
|
-
"default": "`false`",
|
3319
|
-
"description": "是否使用虚线",
|
3320
|
-
"value": {
|
3321
|
-
"type": "boolean",
|
3322
|
-
"kind": "expression"
|
3323
|
-
}
|
3324
|
-
},
|
3325
|
-
{
|
3326
|
-
"name": "hairline",
|
3327
|
-
"default": "`true`",
|
3328
|
-
"description": "是否使用 0.5px 线",
|
3329
|
-
"value": {
|
3330
|
-
"type": "boolean",
|
3331
|
-
"kind": "expression"
|
3332
|
-
}
|
3333
|
-
},
|
3334
|
-
{
|
3335
|
-
"name": "content-position",
|
3336
|
-
"default": "`center`",
|
3337
|
-
"description": "内容位置,可选值为`left` `right`",
|
3338
|
-
"value": {
|
3339
|
-
"type": "string",
|
3340
|
-
"kind": "expression"
|
3341
|
-
}
|
3342
|
-
}
|
3343
|
-
]
|
3344
|
-
},
|
3345
3345
|
{
|
3346
3346
|
"name": "van-dropdown-menu",
|
3347
3347
|
"slots": [
|
@@ -3553,453 +3553,473 @@
|
|
3553
3553
|
]
|
3554
3554
|
},
|
3555
3555
|
{
|
3556
|
-
"name": "van-
|
3556
|
+
"name": "van-form",
|
3557
3557
|
"slots": [
|
3558
3558
|
{
|
3559
|
-
"name": "
|
3560
|
-
"description": "
|
3561
|
-
},
|
3562
|
-
{
|
3563
|
-
"name": "input",
|
3564
|
-
"description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
|
3565
|
-
},
|
3566
|
-
{
|
3567
|
-
"name": "left-icon",
|
3568
|
-
"description": "自定义输入框头部图标"
|
3569
|
-
},
|
3570
|
-
{
|
3571
|
-
"name": "right-icon",
|
3572
|
-
"description": "自定义输入框尾部图标"
|
3573
|
-
},
|
3574
|
-
{
|
3575
|
-
"name": "button",
|
3576
|
-
"description": "自定义输入框尾部按钮"
|
3577
|
-
},
|
3578
|
-
{
|
3579
|
-
"name": "extra",
|
3580
|
-
"description": "自定义输入框最右侧的额外内容"
|
3559
|
+
"name": "default",
|
3560
|
+
"description": "表单内容"
|
3581
3561
|
}
|
3582
3562
|
],
|
3583
3563
|
"events": [
|
3584
3564
|
{
|
3585
|
-
"name": "
|
3586
|
-
"description": "
|
3587
|
-
},
|
3588
|
-
{
|
3589
|
-
"name": "focus",
|
3590
|
-
"description": "输入框获得焦点时触发"
|
3591
|
-
},
|
3592
|
-
{
|
3593
|
-
"name": "blur",
|
3594
|
-
"description": "输入框失去焦点时触发"
|
3595
|
-
},
|
3596
|
-
{
|
3597
|
-
"name": "clear",
|
3598
|
-
"description": "点击清除按钮时触发"
|
3599
|
-
},
|
3600
|
-
{
|
3601
|
-
"name": "click",
|
3602
|
-
"description": "点击 Field 时触发"
|
3603
|
-
},
|
3604
|
-
{
|
3605
|
-
"name": "click-input",
|
3606
|
-
"description": "点击输入区域时触发"
|
3607
|
-
},
|
3608
|
-
{
|
3609
|
-
"name": "click-left-icon",
|
3610
|
-
"description": "点击左侧图标时触发"
|
3565
|
+
"name": "submit",
|
3566
|
+
"description": "提交表单且验证通过后触发"
|
3611
3567
|
},
|
3612
3568
|
{
|
3613
|
-
"name": "
|
3614
|
-
"description": "
|
3569
|
+
"name": "failed",
|
3570
|
+
"description": "提交表单且验证不通过后触发"
|
3615
3571
|
}
|
3616
3572
|
],
|
3617
3573
|
"attributes": [
|
3618
3574
|
{
|
3619
|
-
"name": "
|
3620
|
-
"default": "
|
3621
|
-
"description": "
|
3575
|
+
"name": "label-width",
|
3576
|
+
"default": "`6.2em`",
|
3577
|
+
"description": "表单项 label 宽度,默认单位为`px`",
|
3622
3578
|
"value": {
|
3623
3579
|
"type": "number | string",
|
3624
3580
|
"kind": "expression"
|
3625
3581
|
}
|
3626
3582
|
},
|
3627
3583
|
{
|
3628
|
-
"name": "label",
|
3629
|
-
"default": "
|
3630
|
-
"description": "
|
3584
|
+
"name": "label-align",
|
3585
|
+
"default": "`left`",
|
3586
|
+
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
|
3631
3587
|
"value": {
|
3632
3588
|
"type": "string",
|
3633
3589
|
"kind": "expression"
|
3634
3590
|
}
|
3635
3591
|
},
|
3636
3592
|
{
|
3637
|
-
"name": "
|
3638
|
-
"default": "
|
3639
|
-
"description": "
|
3593
|
+
"name": "input-align",
|
3594
|
+
"default": "`left`",
|
3595
|
+
"description": "输入框对齐方式,可选值为 `center` `right`",
|
3640
3596
|
"value": {
|
3641
3597
|
"type": "string",
|
3642
3598
|
"kind": "expression"
|
3643
3599
|
}
|
3644
3600
|
},
|
3645
3601
|
{
|
3646
|
-
"name": "
|
3647
|
-
"default": "`
|
3648
|
-
"description": "
|
3602
|
+
"name": "error-message-align",
|
3603
|
+
"default": "`left`",
|
3604
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`",
|
3649
3605
|
"value": {
|
3650
3606
|
"type": "string",
|
3651
3607
|
"kind": "expression"
|
3652
3608
|
}
|
3653
3609
|
},
|
3654
3610
|
{
|
3655
|
-
"name": "
|
3656
|
-
"default": "
|
3657
|
-
"description": "
|
3611
|
+
"name": "validate-trigger",
|
3612
|
+
"default": "`onBlur`",
|
3613
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
|
3658
3614
|
"value": {
|
3659
3615
|
"type": "string",
|
3660
3616
|
"kind": "expression"
|
3661
3617
|
}
|
3662
3618
|
},
|
3663
3619
|
{
|
3664
|
-
"name": "
|
3665
|
-
"default": "
|
3666
|
-
"description": "
|
3620
|
+
"name": "colon",
|
3621
|
+
"default": "`false`",
|
3622
|
+
"description": "是否在 label 后面添加冒号",
|
3667
3623
|
"value": {
|
3668
|
-
"type": "
|
3624
|
+
"type": "boolean",
|
3669
3625
|
"kind": "expression"
|
3670
3626
|
}
|
3671
3627
|
},
|
3672
3628
|
{
|
3673
|
-
"name": "
|
3674
|
-
"default": "
|
3675
|
-
"description": "
|
3629
|
+
"name": "disabled",
|
3630
|
+
"default": "`false`",
|
3631
|
+
"description": "是否禁用表单中的所有输入框",
|
3676
3632
|
"value": {
|
3677
|
-
"type": "
|
3633
|
+
"type": "boolean",
|
3678
3634
|
"kind": "expression"
|
3679
3635
|
}
|
3680
3636
|
},
|
3681
3637
|
{
|
3682
|
-
"name": "
|
3683
|
-
"default": "`
|
3684
|
-
"description": "
|
3638
|
+
"name": "readonly",
|
3639
|
+
"default": "`false`",
|
3640
|
+
"description": "是否将表单中的所有输入框设置为只读",
|
3685
3641
|
"value": {
|
3686
3642
|
"type": "boolean",
|
3687
3643
|
"kind": "expression"
|
3688
3644
|
}
|
3689
3645
|
},
|
3690
3646
|
{
|
3691
|
-
"name": "
|
3647
|
+
"name": "validate-first",
|
3692
3648
|
"default": "`false`",
|
3693
|
-
"description": "
|
3649
|
+
"description": "是否在某一项校验不通过时停止校验",
|
3694
3650
|
"value": {
|
3695
3651
|
"type": "boolean",
|
3696
3652
|
"kind": "expression"
|
3697
3653
|
}
|
3698
3654
|
},
|
3699
3655
|
{
|
3700
|
-
"name": "
|
3656
|
+
"name": "scroll-to-error",
|
3701
3657
|
"default": "`false`",
|
3702
|
-
"description": "
|
3658
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项",
|
3703
3659
|
"value": {
|
3704
3660
|
"type": "boolean",
|
3705
3661
|
"kind": "expression"
|
3706
3662
|
}
|
3707
3663
|
},
|
3708
3664
|
{
|
3709
|
-
"name": "
|
3710
|
-
"default": "`
|
3711
|
-
"description": "
|
3665
|
+
"name": "show-error",
|
3666
|
+
"default": "`true`",
|
3667
|
+
"description": "是否在校验不通过时标红输入框",
|
3712
3668
|
"value": {
|
3713
3669
|
"type": "boolean",
|
3714
3670
|
"kind": "expression"
|
3715
3671
|
}
|
3716
3672
|
},
|
3717
3673
|
{
|
3718
|
-
"name": "
|
3719
|
-
"default": "`
|
3720
|
-
"description": "
|
3674
|
+
"name": "show-error-message",
|
3675
|
+
"default": "`true`",
|
3676
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示",
|
3721
3677
|
"value": {
|
3722
3678
|
"type": "boolean",
|
3723
3679
|
"kind": "expression"
|
3724
3680
|
}
|
3725
3681
|
},
|
3726
3682
|
{
|
3727
|
-
"name": "
|
3728
|
-
"default": "`
|
3729
|
-
"description": "
|
3683
|
+
"name": "submit-on-enter",
|
3684
|
+
"default": "`true`",
|
3685
|
+
"description": "是否在按下回车键时提交表单",
|
3730
3686
|
"value": {
|
3731
3687
|
"type": "boolean",
|
3732
3688
|
"kind": "expression"
|
3733
3689
|
}
|
3690
|
+
}
|
3691
|
+
]
|
3692
|
+
},
|
3693
|
+
{
|
3694
|
+
"name": "van-goods-action",
|
3695
|
+
"slots": [
|
3696
|
+
{
|
3697
|
+
"name": "default",
|
3698
|
+
"description": "文本内容"
|
3734
3699
|
},
|
3735
3700
|
{
|
3736
|
-
"name": "
|
3737
|
-
"
|
3738
|
-
|
3701
|
+
"name": "icon",
|
3702
|
+
"description": "自定义图标"
|
3703
|
+
},
|
3704
|
+
{
|
3705
|
+
"name": "default",
|
3706
|
+
"description": "按钮显示内容"
|
3707
|
+
}
|
3708
|
+
],
|
3709
|
+
"events": [],
|
3710
|
+
"attributes": [
|
3711
|
+
{
|
3712
|
+
"name": "safe-area-inset-bottom",
|
3713
|
+
"default": "`true`",
|
3714
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
3739
3715
|
"value": {
|
3740
3716
|
"type": "boolean",
|
3741
3717
|
"kind": "expression"
|
3742
3718
|
}
|
3743
3719
|
},
|
3744
3720
|
{
|
3745
|
-
"name": "
|
3746
|
-
"default": "
|
3747
|
-
"description": "
|
3721
|
+
"name": "text",
|
3722
|
+
"default": "-",
|
3723
|
+
"description": "按钮文字",
|
3748
3724
|
"value": {
|
3749
3725
|
"type": "string",
|
3750
3726
|
"kind": "expression"
|
3751
3727
|
}
|
3752
3728
|
},
|
3753
3729
|
{
|
3754
|
-
"name": "
|
3755
|
-
"default": "
|
3756
|
-
"description": "
|
3757
|
-
"value": {
|
3758
|
-
"type": "boolean",
|
3759
|
-
"kind": "expression"
|
3760
|
-
}
|
3761
|
-
},
|
3762
|
-
{
|
3763
|
-
"name": "is-link",
|
3764
|
-
"default": "`false`",
|
3765
|
-
"description": "是否展示右侧箭头并开启点击反馈",
|
3730
|
+
"name": "icon",
|
3731
|
+
"default": "-",
|
3732
|
+
"description": "图标",
|
3766
3733
|
"value": {
|
3767
|
-
"type": "
|
3734
|
+
"type": "string",
|
3768
3735
|
"kind": "expression"
|
3769
3736
|
}
|
3770
3737
|
},
|
3771
3738
|
{
|
3772
|
-
"name": "
|
3773
|
-
"default": "`
|
3774
|
-
"description": "
|
3739
|
+
"name": "color",
|
3740
|
+
"default": "`#323233`",
|
3741
|
+
"description": "图标颜色",
|
3775
3742
|
"value": {
|
3776
|
-
"type": "
|
3743
|
+
"type": "string",
|
3777
3744
|
"kind": "expression"
|
3778
3745
|
}
|
3779
3746
|
},
|
3780
3747
|
{
|
3781
|
-
"name": "
|
3782
|
-
"default": "
|
3783
|
-
"description": "
|
3748
|
+
"name": "icon-class",
|
3749
|
+
"default": "-",
|
3750
|
+
"description": "图标额外类名",
|
3784
3751
|
"value": {
|
3785
|
-
"type": "
|
3752
|
+
"type": "any",
|
3786
3753
|
"kind": "expression"
|
3787
3754
|
}
|
3788
3755
|
},
|
3789
3756
|
{
|
3790
|
-
"name": "
|
3757
|
+
"name": "dot",
|
3791
3758
|
"default": "`false`",
|
3792
|
-
"description": "
|
3759
|
+
"description": "是否显示图标右上角小红点",
|
3793
3760
|
"value": {
|
3794
3761
|
"type": "boolean",
|
3795
3762
|
"kind": "expression"
|
3796
3763
|
}
|
3797
3764
|
},
|
3798
3765
|
{
|
3799
|
-
"name": "
|
3766
|
+
"name": "badge",
|
3800
3767
|
"default": "-",
|
3801
|
-
"description": "
|
3768
|
+
"description": "图标右上角徽标的内容",
|
3802
3769
|
"value": {
|
3803
|
-
"type": "string",
|
3770
|
+
"type": "number | string",
|
3804
3771
|
"kind": "expression"
|
3805
3772
|
}
|
3806
3773
|
},
|
3807
3774
|
{
|
3808
|
-
"name": "
|
3775
|
+
"name": "info",
|
3809
3776
|
"default": "-",
|
3810
|
-
"description": "
|
3777
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
|
3811
3778
|
"value": {
|
3812
|
-
"type": "
|
3779
|
+
"type": "number | string",
|
3813
3780
|
"kind": "expression"
|
3814
3781
|
}
|
3815
3782
|
},
|
3816
3783
|
{
|
3817
|
-
"name": "
|
3818
|
-
"default": "
|
3819
|
-
"description": "
|
3784
|
+
"name": "url",
|
3785
|
+
"default": "-",
|
3786
|
+
"description": "点击后跳转的链接地址",
|
3820
3787
|
"value": {
|
3821
3788
|
"type": "string",
|
3822
3789
|
"kind": "expression"
|
3823
3790
|
}
|
3824
3791
|
},
|
3825
3792
|
{
|
3826
|
-
"name": "
|
3827
|
-
"default": "
|
3828
|
-
"description": "
|
3793
|
+
"name": "to",
|
3794
|
+
"default": "-",
|
3795
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
3829
3796
|
"value": {
|
3830
|
-
"type": "string",
|
3797
|
+
"type": "string | object",
|
3831
3798
|
"kind": "expression"
|
3832
3799
|
}
|
3833
3800
|
},
|
3834
3801
|
{
|
3835
|
-
"name": "
|
3836
|
-
"default": "
|
3837
|
-
"description": "
|
3802
|
+
"name": "replace",
|
3803
|
+
"default": "`false`",
|
3804
|
+
"description": "是否在跳转时替换当前页面历史",
|
3838
3805
|
"value": {
|
3839
|
-
"type": "
|
3806
|
+
"type": "boolean",
|
3840
3807
|
"kind": "expression"
|
3841
3808
|
}
|
3842
3809
|
},
|
3843
3810
|
{
|
3844
|
-
"name": "
|
3845
|
-
"default": "
|
3846
|
-
"description": "
|
3811
|
+
"name": "text",
|
3812
|
+
"default": "-",
|
3813
|
+
"description": "按钮文字",
|
3847
3814
|
"value": {
|
3848
|
-
"type": "
|
3815
|
+
"type": "string",
|
3849
3816
|
"kind": "expression"
|
3850
3817
|
}
|
3851
3818
|
},
|
3852
3819
|
{
|
3853
|
-
"name": "
|
3854
|
-
"default": "`
|
3855
|
-
"description": "
|
3820
|
+
"name": "type",
|
3821
|
+
"default": "`default`",
|
3822
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
|
3856
3823
|
"value": {
|
3857
3824
|
"type": "string",
|
3858
3825
|
"kind": "expression"
|
3859
3826
|
}
|
3860
3827
|
},
|
3861
3828
|
{
|
3862
|
-
"name": "
|
3863
|
-
"default": "
|
3864
|
-
"description": "
|
3829
|
+
"name": "color",
|
3830
|
+
"default": "-",
|
3831
|
+
"description": "按钮颜色,支持传入`linear-gradient`渐变色",
|
3865
3832
|
"value": {
|
3866
3833
|
"type": "string",
|
3867
3834
|
"kind": "expression"
|
3868
3835
|
}
|
3869
3836
|
},
|
3870
3837
|
{
|
3871
|
-
"name": "
|
3872
|
-
"default": "
|
3873
|
-
"description": "
|
3838
|
+
"name": "icon",
|
3839
|
+
"default": "-",
|
3840
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
3874
3841
|
"value": {
|
3875
3842
|
"type": "string",
|
3876
3843
|
"kind": "expression"
|
3877
3844
|
}
|
3878
3845
|
},
|
3879
3846
|
{
|
3880
|
-
"name": "
|
3847
|
+
"name": "disabled",
|
3881
3848
|
"default": "`false`",
|
3882
|
-
"description": "
|
3849
|
+
"description": "是否禁用按钮",
|
3883
3850
|
"value": {
|
3884
|
-
"type": "boolean
|
3851
|
+
"type": "boolean",
|
3885
3852
|
"kind": "expression"
|
3886
3853
|
}
|
3887
3854
|
},
|
3888
3855
|
{
|
3889
|
-
"name": "
|
3890
|
-
"default": "
|
3891
|
-
"description": "
|
3856
|
+
"name": "loading",
|
3857
|
+
"default": "`false`",
|
3858
|
+
"description": "是否显示为加载状态",
|
3892
3859
|
"value": {
|
3893
|
-
"type": "
|
3860
|
+
"type": "boolean",
|
3894
3861
|
"kind": "expression"
|
3895
3862
|
}
|
3896
3863
|
},
|
3897
3864
|
{
|
3898
|
-
"name": "
|
3865
|
+
"name": "url",
|
3899
3866
|
"default": "-",
|
3900
|
-
"description": "
|
3901
|
-
"value": {
|
3902
|
-
"type": "string",
|
3903
|
-
"kind": "expression"
|
3904
|
-
}
|
3905
|
-
},
|
3906
|
-
{
|
3907
|
-
"name": "icon-prefix",
|
3908
|
-
"default": "`van-icon`",
|
3909
|
-
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
3867
|
+
"description": "点击后跳转的链接地址",
|
3910
3868
|
"value": {
|
3911
3869
|
"type": "string",
|
3912
3870
|
"kind": "expression"
|
3913
3871
|
}
|
3914
3872
|
},
|
3915
3873
|
{
|
3916
|
-
"name": "
|
3874
|
+
"name": "to",
|
3917
3875
|
"default": "-",
|
3918
|
-
"description": "
|
3876
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
3919
3877
|
"value": {
|
3920
|
-
"type": "
|
3878
|
+
"type": "string | object",
|
3921
3879
|
"kind": "expression"
|
3922
3880
|
}
|
3923
3881
|
},
|
3924
3882
|
{
|
3925
|
-
"name": "
|
3926
|
-
"default": "
|
3927
|
-
"description": "
|
3883
|
+
"name": "replace",
|
3884
|
+
"default": "`false`",
|
3885
|
+
"description": "是否在跳转时替换当前页面历史",
|
3928
3886
|
"value": {
|
3929
|
-
"type": "
|
3887
|
+
"type": "boolean",
|
3930
3888
|
"kind": "expression"
|
3931
3889
|
}
|
3932
3890
|
}
|
3933
3891
|
]
|
3934
3892
|
},
|
3935
3893
|
{
|
3936
|
-
"name": "van-
|
3894
|
+
"name": "van-field",
|
3937
3895
|
"slots": [
|
3938
3896
|
{
|
3939
|
-
"name": "
|
3940
|
-
"description": "
|
3897
|
+
"name": "label",
|
3898
|
+
"description": "自定义输入框 label 标签"
|
3899
|
+
},
|
3900
|
+
{
|
3901
|
+
"name": "input",
|
3902
|
+
"description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
|
3903
|
+
},
|
3904
|
+
{
|
3905
|
+
"name": "left-icon",
|
3906
|
+
"description": "自定义输入框头部图标"
|
3907
|
+
},
|
3908
|
+
{
|
3909
|
+
"name": "right-icon",
|
3910
|
+
"description": "自定义输入框尾部图标"
|
3911
|
+
},
|
3912
|
+
{
|
3913
|
+
"name": "button",
|
3914
|
+
"description": "自定义输入框尾部按钮"
|
3915
|
+
},
|
3916
|
+
{
|
3917
|
+
"name": "extra",
|
3918
|
+
"description": "自定义输入框最右侧的额外内容"
|
3941
3919
|
}
|
3942
3920
|
],
|
3943
3921
|
"events": [
|
3944
3922
|
{
|
3945
|
-
"name": "
|
3946
|
-
"description": "
|
3923
|
+
"name": "input",
|
3924
|
+
"description": "输入框内容变化时触发"
|
3947
3925
|
},
|
3948
3926
|
{
|
3949
|
-
"name": "
|
3950
|
-
"description": "
|
3927
|
+
"name": "focus",
|
3928
|
+
"description": "输入框获得焦点时触发"
|
3929
|
+
},
|
3930
|
+
{
|
3931
|
+
"name": "blur",
|
3932
|
+
"description": "输入框失去焦点时触发"
|
3933
|
+
},
|
3934
|
+
{
|
3935
|
+
"name": "clear",
|
3936
|
+
"description": "点击清除按钮时触发"
|
3937
|
+
},
|
3938
|
+
{
|
3939
|
+
"name": "click",
|
3940
|
+
"description": "点击 Field 时触发"
|
3941
|
+
},
|
3942
|
+
{
|
3943
|
+
"name": "click-input",
|
3944
|
+
"description": "点击输入区域时触发"
|
3945
|
+
},
|
3946
|
+
{
|
3947
|
+
"name": "click-left-icon",
|
3948
|
+
"description": "点击左侧图标时触发"
|
3949
|
+
},
|
3950
|
+
{
|
3951
|
+
"name": "click-right-icon",
|
3952
|
+
"description": "点击右侧图标时触发"
|
3951
3953
|
}
|
3952
3954
|
],
|
3953
3955
|
"attributes": [
|
3954
3956
|
{
|
3955
|
-
"name": "
|
3956
|
-
"default": "
|
3957
|
-
"description": "
|
3957
|
+
"name": "v-model (value)",
|
3958
|
+
"default": "-",
|
3959
|
+
"description": "当前输入的值",
|
3958
3960
|
"value": {
|
3959
3961
|
"type": "number | string",
|
3960
3962
|
"kind": "expression"
|
3961
3963
|
}
|
3962
3964
|
},
|
3963
3965
|
{
|
3964
|
-
"name": "label
|
3965
|
-
"default": "
|
3966
|
-
"description": "
|
3966
|
+
"name": "label",
|
3967
|
+
"default": "-",
|
3968
|
+
"description": "输入框左侧文本",
|
3967
3969
|
"value": {
|
3968
3970
|
"type": "string",
|
3969
3971
|
"kind": "expression"
|
3970
3972
|
}
|
3971
3973
|
},
|
3972
3974
|
{
|
3973
|
-
"name": "
|
3974
|
-
"default": "
|
3975
|
-
"description": "
|
3975
|
+
"name": "name",
|
3976
|
+
"default": "-",
|
3977
|
+
"description": "名称,提交表单的标识符",
|
3976
3978
|
"value": {
|
3977
3979
|
"type": "string",
|
3978
3980
|
"kind": "expression"
|
3979
3981
|
}
|
3980
3982
|
},
|
3981
3983
|
{
|
3982
|
-
"name": "
|
3983
|
-
"default": "`
|
3984
|
-
"description": "
|
3984
|
+
"name": "type",
|
3985
|
+
"default": "`text`",
|
3986
|
+
"description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等",
|
3985
3987
|
"value": {
|
3986
3988
|
"type": "string",
|
3987
3989
|
"kind": "expression"
|
3988
3990
|
}
|
3989
3991
|
},
|
3990
3992
|
{
|
3991
|
-
"name": "
|
3992
|
-
"default": "
|
3993
|
-
"description": "
|
3993
|
+
"name": "size",
|
3994
|
+
"default": "-",
|
3995
|
+
"description": "大小,可选值为 `large`",
|
3994
3996
|
"value": {
|
3995
3997
|
"type": "string",
|
3996
3998
|
"kind": "expression"
|
3997
3999
|
}
|
3998
4000
|
},
|
3999
4001
|
{
|
4000
|
-
"name": "
|
4001
|
-
"default": "
|
4002
|
-
"description": "
|
4002
|
+
"name": "maxlength",
|
4003
|
+
"default": "-",
|
4004
|
+
"description": "输入的最大字符数",
|
4005
|
+
"value": {
|
4006
|
+
"type": "number | string",
|
4007
|
+
"kind": "expression"
|
4008
|
+
}
|
4009
|
+
},
|
4010
|
+
{
|
4011
|
+
"name": "placeholder",
|
4012
|
+
"default": "-",
|
4013
|
+
"description": "输入框占位提示文字",
|
4014
|
+
"value": {
|
4015
|
+
"type": "string",
|
4016
|
+
"kind": "expression"
|
4017
|
+
}
|
4018
|
+
},
|
4019
|
+
{
|
4020
|
+
"name": "border",
|
4021
|
+
"default": "`true`",
|
4022
|
+
"description": "是否显示内边框",
|
4003
4023
|
"value": {
|
4004
4024
|
"type": "boolean",
|
4005
4025
|
"kind": "expression"
|
@@ -4008,7 +4028,7 @@
|
|
4008
4028
|
{
|
4009
4029
|
"name": "disabled",
|
4010
4030
|
"default": "`false`",
|
4011
|
-
"description": "
|
4031
|
+
"description": "是否禁用输入框",
|
4012
4032
|
"value": {
|
4013
4033
|
"type": "boolean",
|
4014
4034
|
"kind": "expression"
|
@@ -4017,254 +4037,234 @@
|
|
4017
4037
|
{
|
4018
4038
|
"name": "readonly",
|
4019
4039
|
"default": "`false`",
|
4020
|
-
"description": "
|
4040
|
+
"description": "是否只读",
|
4021
4041
|
"value": {
|
4022
4042
|
"type": "boolean",
|
4023
4043
|
"kind": "expression"
|
4024
4044
|
}
|
4025
4045
|
},
|
4026
4046
|
{
|
4027
|
-
"name": "
|
4047
|
+
"name": "colon",
|
4028
4048
|
"default": "`false`",
|
4029
|
-
"description": "
|
4049
|
+
"description": "是否在 label 后面添加冒号",
|
4030
4050
|
"value": {
|
4031
4051
|
"type": "boolean",
|
4032
4052
|
"kind": "expression"
|
4033
4053
|
}
|
4034
4054
|
},
|
4035
4055
|
{
|
4036
|
-
"name": "
|
4056
|
+
"name": "required",
|
4037
4057
|
"default": "`false`",
|
4038
|
-
"description": "
|
4058
|
+
"description": "是否显示表单必填星号",
|
4039
4059
|
"value": {
|
4040
4060
|
"type": "boolean",
|
4041
4061
|
"kind": "expression"
|
4042
4062
|
}
|
4043
4063
|
},
|
4044
4064
|
{
|
4045
|
-
"name": "
|
4046
|
-
"default": "`
|
4047
|
-
"description": "
|
4065
|
+
"name": "center",
|
4066
|
+
"default": "`false`",
|
4067
|
+
"description": "是否使内容垂直居中",
|
4048
4068
|
"value": {
|
4049
4069
|
"type": "boolean",
|
4050
4070
|
"kind": "expression"
|
4051
4071
|
}
|
4052
4072
|
},
|
4053
4073
|
{
|
4054
|
-
"name": "
|
4055
|
-
"default": "`
|
4056
|
-
"description": "
|
4074
|
+
"name": "clearable",
|
4075
|
+
"default": "`false`",
|
4076
|
+
"description": "是否启用清除图标,点击清除图标后会清空输入框",
|
4057
4077
|
"value": {
|
4058
4078
|
"type": "boolean",
|
4059
4079
|
"kind": "expression"
|
4060
4080
|
}
|
4061
4081
|
},
|
4062
4082
|
{
|
4063
|
-
"name": "
|
4064
|
-
"default": "`
|
4065
|
-
"description": "
|
4083
|
+
"name": "clear-trigger",
|
4084
|
+
"default": "`focus`",
|
4085
|
+
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
|
4066
4086
|
"value": {
|
4067
|
-
"type": "
|
4087
|
+
"type": "string",
|
4068
4088
|
"kind": "expression"
|
4069
4089
|
}
|
4070
|
-
}
|
4071
|
-
]
|
4072
|
-
},
|
4073
|
-
{
|
4074
|
-
"name": "van-goods-action",
|
4075
|
-
"slots": [
|
4076
|
-
{
|
4077
|
-
"name": "default",
|
4078
|
-
"description": "文本内容"
|
4079
|
-
},
|
4080
|
-
{
|
4081
|
-
"name": "icon",
|
4082
|
-
"description": "自定义图标"
|
4083
4090
|
},
|
4084
4091
|
{
|
4085
|
-
"name": "
|
4086
|
-
"
|
4087
|
-
|
4088
|
-
],
|
4089
|
-
"events": [],
|
4090
|
-
"attributes": [
|
4091
|
-
{
|
4092
|
-
"name": "safe-area-inset-bottom",
|
4093
|
-
"default": "`true`",
|
4094
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
4092
|
+
"name": "clickable",
|
4093
|
+
"default": "`false`",
|
4094
|
+
"description": "是否开启点击反馈",
|
4095
4095
|
"value": {
|
4096
4096
|
"type": "boolean",
|
4097
4097
|
"kind": "expression"
|
4098
4098
|
}
|
4099
4099
|
},
|
4100
4100
|
{
|
4101
|
-
"name": "
|
4102
|
-
"default": "
|
4103
|
-
"description": "
|
4101
|
+
"name": "is-link",
|
4102
|
+
"default": "`false`",
|
4103
|
+
"description": "是否展示右侧箭头并开启点击反馈",
|
4104
4104
|
"value": {
|
4105
|
-
"type": "
|
4105
|
+
"type": "boolean",
|
4106
4106
|
"kind": "expression"
|
4107
4107
|
}
|
4108
4108
|
},
|
4109
4109
|
{
|
4110
|
-
"name": "
|
4111
|
-
"default": "
|
4112
|
-
"description": "
|
4110
|
+
"name": "autofocus",
|
4111
|
+
"default": "`false`",
|
4112
|
+
"description": "是否自动聚焦,iOS 系统不支持该属性",
|
4113
4113
|
"value": {
|
4114
|
-
"type": "
|
4114
|
+
"type": "boolean",
|
4115
4115
|
"kind": "expression"
|
4116
4116
|
}
|
4117
4117
|
},
|
4118
4118
|
{
|
4119
|
-
"name": "
|
4120
|
-
"default": "
|
4121
|
-
"description": "
|
4119
|
+
"name": "show-word-limit",
|
4120
|
+
"default": "`false`",
|
4121
|
+
"description": "是否显示字数统计,需要设置`maxlength`属性",
|
4122
4122
|
"value": {
|
4123
|
-
"type": "
|
4123
|
+
"type": "boolean",
|
4124
4124
|
"kind": "expression"
|
4125
4125
|
}
|
4126
4126
|
},
|
4127
4127
|
{
|
4128
|
-
"name": "
|
4129
|
-
"default": "
|
4130
|
-
"description": "
|
4128
|
+
"name": "error",
|
4129
|
+
"default": "`false`",
|
4130
|
+
"description": "是否将输入内容标红",
|
4131
4131
|
"value": {
|
4132
|
-
"type": "
|
4132
|
+
"type": "boolean",
|
4133
4133
|
"kind": "expression"
|
4134
4134
|
}
|
4135
4135
|
},
|
4136
4136
|
{
|
4137
|
-
"name": "
|
4138
|
-
"default": "
|
4139
|
-
"description": "
|
4137
|
+
"name": "error-message",
|
4138
|
+
"default": "-",
|
4139
|
+
"description": "底部错误提示文案,为空时不展示",
|
4140
4140
|
"value": {
|
4141
|
-
"type": "
|
4141
|
+
"type": "string",
|
4142
4142
|
"kind": "expression"
|
4143
4143
|
}
|
4144
4144
|
},
|
4145
4145
|
{
|
4146
|
-
"name": "
|
4146
|
+
"name": "formatter",
|
4147
4147
|
"default": "-",
|
4148
|
-
"description": "
|
4148
|
+
"description": "输入内容格式化函数",
|
4149
4149
|
"value": {
|
4150
|
-
"type": "
|
4150
|
+
"type": "Function",
|
4151
4151
|
"kind": "expression"
|
4152
4152
|
}
|
4153
4153
|
},
|
4154
4154
|
{
|
4155
|
-
"name": "
|
4156
|
-
"default": "
|
4157
|
-
"description": "
|
4155
|
+
"name": "format-trigger",
|
4156
|
+
"default": "`onChange`",
|
4157
|
+
"description": "格式化函数触发的时机,可选值为 `onBlur`",
|
4158
4158
|
"value": {
|
4159
|
-
"type": "
|
4159
|
+
"type": "string",
|
4160
4160
|
"kind": "expression"
|
4161
4161
|
}
|
4162
4162
|
},
|
4163
4163
|
{
|
4164
|
-
"name": "
|
4165
|
-
"default": "
|
4166
|
-
"description": "
|
4164
|
+
"name": "arrow-direction",
|
4165
|
+
"default": "`right`",
|
4166
|
+
"description": "箭头方向,可选值为 `left` `up` `down`",
|
4167
4167
|
"value": {
|
4168
4168
|
"type": "string",
|
4169
4169
|
"kind": "expression"
|
4170
4170
|
}
|
4171
4171
|
},
|
4172
4172
|
{
|
4173
|
-
"name": "
|
4173
|
+
"name": "label-class",
|
4174
4174
|
"default": "-",
|
4175
|
-
"description": "
|
4175
|
+
"description": "左侧文本额外类名",
|
4176
4176
|
"value": {
|
4177
|
-
"type": "
|
4177
|
+
"type": "any",
|
4178
4178
|
"kind": "expression"
|
4179
4179
|
}
|
4180
4180
|
},
|
4181
4181
|
{
|
4182
|
-
"name": "
|
4183
|
-
"default": "`
|
4184
|
-
"description": "
|
4182
|
+
"name": "label-width",
|
4183
|
+
"default": "`6.2em`",
|
4184
|
+
"description": "左侧文本宽度,默认单位为`px`",
|
4185
4185
|
"value": {
|
4186
|
-
"type": "
|
4186
|
+
"type": "number | string",
|
4187
4187
|
"kind": "expression"
|
4188
4188
|
}
|
4189
4189
|
},
|
4190
4190
|
{
|
4191
|
-
"name": "
|
4192
|
-
"default": "
|
4193
|
-
"description": "
|
4191
|
+
"name": "label-align",
|
4192
|
+
"default": "`left`",
|
4193
|
+
"description": "左侧文本对齐方式,可选值为 `center` `right`",
|
4194
4194
|
"value": {
|
4195
4195
|
"type": "string",
|
4196
4196
|
"kind": "expression"
|
4197
4197
|
}
|
4198
4198
|
},
|
4199
4199
|
{
|
4200
|
-
"name": "
|
4201
|
-
"default": "`
|
4202
|
-
"description": "
|
4200
|
+
"name": "input-align",
|
4201
|
+
"default": "`left`",
|
4202
|
+
"description": "输入框对齐方式,可选值为 `center` `right`",
|
4203
4203
|
"value": {
|
4204
4204
|
"type": "string",
|
4205
4205
|
"kind": "expression"
|
4206
4206
|
}
|
4207
4207
|
},
|
4208
4208
|
{
|
4209
|
-
"name": "
|
4210
|
-
"default": "
|
4211
|
-
"description": "
|
4209
|
+
"name": "error-message-align",
|
4210
|
+
"default": "`left`",
|
4211
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`",
|
4212
4212
|
"value": {
|
4213
4213
|
"type": "string",
|
4214
4214
|
"kind": "expression"
|
4215
4215
|
}
|
4216
4216
|
},
|
4217
4217
|
{
|
4218
|
-
"name": "
|
4219
|
-
"default": "
|
4220
|
-
"description": "
|
4218
|
+
"name": "autosize",
|
4219
|
+
"default": "`false`",
|
4220
|
+
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
|
4221
4221
|
"value": {
|
4222
|
-
"type": "
|
4222
|
+
"type": "boolean | object",
|
4223
4223
|
"kind": "expression"
|
4224
4224
|
}
|
4225
4225
|
},
|
4226
4226
|
{
|
4227
|
-
"name": "
|
4228
|
-
"default": "
|
4229
|
-
"description": "
|
4227
|
+
"name": "left-icon",
|
4228
|
+
"default": "-",
|
4229
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
4230
4230
|
"value": {
|
4231
|
-
"type": "
|
4231
|
+
"type": "string",
|
4232
4232
|
"kind": "expression"
|
4233
4233
|
}
|
4234
4234
|
},
|
4235
4235
|
{
|
4236
|
-
"name": "
|
4237
|
-
"default": "
|
4238
|
-
"description": "
|
4236
|
+
"name": "right-icon",
|
4237
|
+
"default": "-",
|
4238
|
+
"description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
|
4239
4239
|
"value": {
|
4240
|
-
"type": "
|
4240
|
+
"type": "string",
|
4241
4241
|
"kind": "expression"
|
4242
4242
|
}
|
4243
4243
|
},
|
4244
4244
|
{
|
4245
|
-
"name": "
|
4246
|
-
"default": "-",
|
4247
|
-
"description": "
|
4245
|
+
"name": "icon-prefix",
|
4246
|
+
"default": "`van-icon`",
|
4247
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
4248
4248
|
"value": {
|
4249
4249
|
"type": "string",
|
4250
4250
|
"kind": "expression"
|
4251
4251
|
}
|
4252
4252
|
},
|
4253
4253
|
{
|
4254
|
-
"name": "
|
4254
|
+
"name": "rules",
|
4255
4255
|
"default": "-",
|
4256
|
-
"description": "
|
4256
|
+
"description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
|
4257
4257
|
"value": {
|
4258
|
-
"type": "
|
4258
|
+
"type": "Rule[]",
|
4259
4259
|
"kind": "expression"
|
4260
4260
|
}
|
4261
4261
|
},
|
4262
4262
|
{
|
4263
|
-
"name": "
|
4264
|
-
"default": "
|
4265
|
-
"description": "
|
4263
|
+
"name": "autocomplete",
|
4264
|
+
"default": "-",
|
4265
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
|
4266
4266
|
"value": {
|
4267
|
-
"type": "
|
4267
|
+
"type": "string",
|
4268
4268
|
"kind": "expression"
|
4269
4269
|
}
|
4270
4270
|
}
|
@@ -5707,77 +5707,21 @@
|
|
5707
5707
|
"kind": "expression"
|
5708
5708
|
}
|
5709
5709
|
},
|
5710
|
-
{
|
5711
|
-
"name": "show-page-size",
|
5712
|
-
"default": "`5`",
|
5713
|
-
"description": "显示的页码个数",
|
5714
|
-
"value": {
|
5715
|
-
"type": "number | string",
|
5716
|
-
"kind": "expression"
|
5717
|
-
}
|
5718
|
-
},
|
5719
|
-
{
|
5720
|
-
"name": "force-ellipses",
|
5721
|
-
"default": "`false`",
|
5722
|
-
"description": "是否显示省略号",
|
5723
|
-
"value": {
|
5724
|
-
"type": "boolean",
|
5725
|
-
"kind": "expression"
|
5726
|
-
}
|
5727
|
-
}
|
5728
|
-
]
|
5729
|
-
},
|
5730
|
-
{
|
5731
|
-
"name": "van-panel",
|
5732
|
-
"slots": [
|
5733
|
-
{
|
5734
|
-
"name": "default",
|
5735
|
-
"description": "自定义内容"
|
5736
|
-
},
|
5737
|
-
{
|
5738
|
-
"name": "header",
|
5739
|
-
"description": "自定义 header"
|
5740
|
-
},
|
5741
|
-
{
|
5742
|
-
"name": "footer",
|
5743
|
-
"description": "自定义 footer"
|
5744
|
-
}
|
5745
|
-
],
|
5746
|
-
"events": [],
|
5747
|
-
"attributes": [
|
5748
|
-
{
|
5749
|
-
"name": "title",
|
5750
|
-
"default": "-",
|
5751
|
-
"description": "标题",
|
5752
|
-
"value": {
|
5753
|
-
"type": "string",
|
5754
|
-
"kind": "expression"
|
5755
|
-
}
|
5756
|
-
},
|
5757
|
-
{
|
5758
|
-
"name": "desc",
|
5759
|
-
"default": "-",
|
5760
|
-
"description": "描述",
|
5761
|
-
"value": {
|
5762
|
-
"type": "string",
|
5763
|
-
"kind": "expression"
|
5764
|
-
}
|
5765
|
-
},
|
5766
|
-
{
|
5767
|
-
"name": "status",
|
5768
|
-
"default": "-",
|
5769
|
-
"description": "状态",
|
5710
|
+
{
|
5711
|
+
"name": "show-page-size",
|
5712
|
+
"default": "`5`",
|
5713
|
+
"description": "显示的页码个数",
|
5770
5714
|
"value": {
|
5771
|
-
"type": "string",
|
5715
|
+
"type": "number | string",
|
5772
5716
|
"kind": "expression"
|
5773
5717
|
}
|
5774
5718
|
},
|
5775
5719
|
{
|
5776
|
-
"name": "
|
5777
|
-
"default": "
|
5778
|
-
"description": "
|
5720
|
+
"name": "force-ellipses",
|
5721
|
+
"default": "`false`",
|
5722
|
+
"description": "是否显示省略号",
|
5779
5723
|
"value": {
|
5780
|
-
"type": "
|
5724
|
+
"type": "boolean",
|
5781
5725
|
"kind": "expression"
|
5782
5726
|
}
|
5783
5727
|
}
|
@@ -6033,6 +5977,62 @@
|
|
6033
5977
|
}
|
6034
5978
|
]
|
6035
5979
|
},
|
5980
|
+
{
|
5981
|
+
"name": "van-panel",
|
5982
|
+
"slots": [
|
5983
|
+
{
|
5984
|
+
"name": "default",
|
5985
|
+
"description": "自定义内容"
|
5986
|
+
},
|
5987
|
+
{
|
5988
|
+
"name": "header",
|
5989
|
+
"description": "自定义 header"
|
5990
|
+
},
|
5991
|
+
{
|
5992
|
+
"name": "footer",
|
5993
|
+
"description": "自定义 footer"
|
5994
|
+
}
|
5995
|
+
],
|
5996
|
+
"events": [],
|
5997
|
+
"attributes": [
|
5998
|
+
{
|
5999
|
+
"name": "title",
|
6000
|
+
"default": "-",
|
6001
|
+
"description": "标题",
|
6002
|
+
"value": {
|
6003
|
+
"type": "string",
|
6004
|
+
"kind": "expression"
|
6005
|
+
}
|
6006
|
+
},
|
6007
|
+
{
|
6008
|
+
"name": "desc",
|
6009
|
+
"default": "-",
|
6010
|
+
"description": "描述",
|
6011
|
+
"value": {
|
6012
|
+
"type": "string",
|
6013
|
+
"kind": "expression"
|
6014
|
+
}
|
6015
|
+
},
|
6016
|
+
{
|
6017
|
+
"name": "status",
|
6018
|
+
"default": "-",
|
6019
|
+
"description": "状态",
|
6020
|
+
"value": {
|
6021
|
+
"type": "string",
|
6022
|
+
"kind": "expression"
|
6023
|
+
}
|
6024
|
+
},
|
6025
|
+
{
|
6026
|
+
"name": "icon",
|
6027
|
+
"default": "-",
|
6028
|
+
"description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接",
|
6029
|
+
"value": {
|
6030
|
+
"type": "string",
|
6031
|
+
"kind": "expression"
|
6032
|
+
}
|
6033
|
+
}
|
6034
|
+
]
|
6035
|
+
},
|
6036
6036
|
{
|
6037
6037
|
"name": "van-popover",
|
6038
6038
|
"slots": [
|
@@ -9342,99 +9342,6 @@
|
|
9342
9342
|
}
|
9343
9343
|
]
|
9344
9344
|
},
|
9345
|
-
{
|
9346
|
-
"name": "van-tag",
|
9347
|
-
"slots": [
|
9348
|
-
{
|
9349
|
-
"name": "default",
|
9350
|
-
"description": "标签显示内容"
|
9351
|
-
}
|
9352
|
-
],
|
9353
|
-
"events": [
|
9354
|
-
{
|
9355
|
-
"name": "click",
|
9356
|
-
"description": "点击时触发"
|
9357
|
-
},
|
9358
|
-
{
|
9359
|
-
"name": "close",
|
9360
|
-
"description": "关闭标签时触发"
|
9361
|
-
}
|
9362
|
-
],
|
9363
|
-
"attributes": [
|
9364
|
-
{
|
9365
|
-
"name": "type",
|
9366
|
-
"default": "`default`",
|
9367
|
-
"description": "类型,可选值为`primary` `success` `danger` `warning`",
|
9368
|
-
"value": {
|
9369
|
-
"type": "string",
|
9370
|
-
"kind": "expression"
|
9371
|
-
}
|
9372
|
-
},
|
9373
|
-
{
|
9374
|
-
"name": "size",
|
9375
|
-
"default": "-",
|
9376
|
-
"description": "大小, 可选值为`large` `medium`",
|
9377
|
-
"value": {
|
9378
|
-
"type": "string",
|
9379
|
-
"kind": "expression"
|
9380
|
-
}
|
9381
|
-
},
|
9382
|
-
{
|
9383
|
-
"name": "color",
|
9384
|
-
"default": "-",
|
9385
|
-
"description": "标签颜色",
|
9386
|
-
"value": {
|
9387
|
-
"type": "string",
|
9388
|
-
"kind": "expression"
|
9389
|
-
}
|
9390
|
-
},
|
9391
|
-
{
|
9392
|
-
"name": "plain",
|
9393
|
-
"default": "`false`",
|
9394
|
-
"description": "是否为空心样式",
|
9395
|
-
"value": {
|
9396
|
-
"type": "boolean",
|
9397
|
-
"kind": "expression"
|
9398
|
-
}
|
9399
|
-
},
|
9400
|
-
{
|
9401
|
-
"name": "round",
|
9402
|
-
"default": "`false`",
|
9403
|
-
"description": "是否为圆角样式",
|
9404
|
-
"value": {
|
9405
|
-
"type": "boolean",
|
9406
|
-
"kind": "expression"
|
9407
|
-
}
|
9408
|
-
},
|
9409
|
-
{
|
9410
|
-
"name": "mark",
|
9411
|
-
"default": "`false`",
|
9412
|
-
"description": "是否为标记样式",
|
9413
|
-
"value": {
|
9414
|
-
"type": "boolean",
|
9415
|
-
"kind": "expression"
|
9416
|
-
}
|
9417
|
-
},
|
9418
|
-
{
|
9419
|
-
"name": "text-color",
|
9420
|
-
"default": "`white`",
|
9421
|
-
"description": "文本颜色,优先级高于`color`属性",
|
9422
|
-
"value": {
|
9423
|
-
"type": "string",
|
9424
|
-
"kind": "expression"
|
9425
|
-
}
|
9426
|
-
},
|
9427
|
-
{
|
9428
|
-
"name": "closeable",
|
9429
|
-
"default": "`false`",
|
9430
|
-
"description": "是否为可关闭标签",
|
9431
|
-
"value": {
|
9432
|
-
"type": "boolean",
|
9433
|
-
"kind": "expression"
|
9434
|
-
}
|
9435
|
-
}
|
9436
|
-
]
|
9437
|
-
},
|
9438
9345
|
{
|
9439
9346
|
"name": "van-toast",
|
9440
9347
|
"slots": [],
|
@@ -9759,6 +9666,99 @@
|
|
9759
9666
|
}
|
9760
9667
|
}
|
9761
9668
|
]
|
9669
|
+
},
|
9670
|
+
{
|
9671
|
+
"name": "van-tag",
|
9672
|
+
"slots": [
|
9673
|
+
{
|
9674
|
+
"name": "default",
|
9675
|
+
"description": "标签显示内容"
|
9676
|
+
}
|
9677
|
+
],
|
9678
|
+
"events": [
|
9679
|
+
{
|
9680
|
+
"name": "click",
|
9681
|
+
"description": "点击时触发"
|
9682
|
+
},
|
9683
|
+
{
|
9684
|
+
"name": "close",
|
9685
|
+
"description": "关闭标签时触发"
|
9686
|
+
}
|
9687
|
+
],
|
9688
|
+
"attributes": [
|
9689
|
+
{
|
9690
|
+
"name": "type",
|
9691
|
+
"default": "`default`",
|
9692
|
+
"description": "类型,可选值为`primary` `success` `danger` `warning`",
|
9693
|
+
"value": {
|
9694
|
+
"type": "string",
|
9695
|
+
"kind": "expression"
|
9696
|
+
}
|
9697
|
+
},
|
9698
|
+
{
|
9699
|
+
"name": "size",
|
9700
|
+
"default": "-",
|
9701
|
+
"description": "大小, 可选值为`large` `medium`",
|
9702
|
+
"value": {
|
9703
|
+
"type": "string",
|
9704
|
+
"kind": "expression"
|
9705
|
+
}
|
9706
|
+
},
|
9707
|
+
{
|
9708
|
+
"name": "color",
|
9709
|
+
"default": "-",
|
9710
|
+
"description": "标签颜色",
|
9711
|
+
"value": {
|
9712
|
+
"type": "string",
|
9713
|
+
"kind": "expression"
|
9714
|
+
}
|
9715
|
+
},
|
9716
|
+
{
|
9717
|
+
"name": "plain",
|
9718
|
+
"default": "`false`",
|
9719
|
+
"description": "是否为空心样式",
|
9720
|
+
"value": {
|
9721
|
+
"type": "boolean",
|
9722
|
+
"kind": "expression"
|
9723
|
+
}
|
9724
|
+
},
|
9725
|
+
{
|
9726
|
+
"name": "round",
|
9727
|
+
"default": "`false`",
|
9728
|
+
"description": "是否为圆角样式",
|
9729
|
+
"value": {
|
9730
|
+
"type": "boolean",
|
9731
|
+
"kind": "expression"
|
9732
|
+
}
|
9733
|
+
},
|
9734
|
+
{
|
9735
|
+
"name": "mark",
|
9736
|
+
"default": "`false`",
|
9737
|
+
"description": "是否为标记样式",
|
9738
|
+
"value": {
|
9739
|
+
"type": "boolean",
|
9740
|
+
"kind": "expression"
|
9741
|
+
}
|
9742
|
+
},
|
9743
|
+
{
|
9744
|
+
"name": "text-color",
|
9745
|
+
"default": "`white`",
|
9746
|
+
"description": "文本颜色,优先级高于`color`属性",
|
9747
|
+
"value": {
|
9748
|
+
"type": "string",
|
9749
|
+
"kind": "expression"
|
9750
|
+
}
|
9751
|
+
},
|
9752
|
+
{
|
9753
|
+
"name": "closeable",
|
9754
|
+
"default": "`false`",
|
9755
|
+
"description": "是否为可关闭标签",
|
9756
|
+
"value": {
|
9757
|
+
"type": "boolean",
|
9758
|
+
"kind": "expression"
|
9759
|
+
}
|
9760
|
+
}
|
9761
|
+
]
|
9762
9762
|
}
|
9763
9763
|
],
|
9764
9764
|
"attributes": [],
|