vant 2.12.43 → 2.12.46
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/README.md +1 -0
- package/README.zh-CN.md +3 -2
- package/changelog.generated.md +12 -0
- package/es/dialog/Dialog.js +41 -8
- package/es/index.js +1 -1
- package/es/sku/utils/sku-helper.js +2 -2
- package/es/tabbar/index.js +1 -1
- package/es/tabbar-item/index.js +10 -8
- package/es/utils/validate/email.js +2 -2
- package/lib/dialog/Dialog.js +40 -7
- package/lib/index.js +1 -1
- package/lib/sku/utils/sku-helper.js +2 -2
- package/lib/tabbar/index.js +1 -1
- package/lib/tabbar-item/index.js +10 -8
- package/lib/utils/validate/email.js +2 -2
- package/lib/vant.js +56 -21
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +341 -341
- package/vetur/tags.json +97 -97
- package/vetur/web-types.json +1093 -1093
package/vetur/web-types.json
CHANGED
@@ -2,7 +2,7 @@
|
|
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.46",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -205,418 +205,269 @@
|
|
205
205
|
]
|
206
206
|
},
|
207
207
|
{
|
208
|
-
"name": "van-
|
208
|
+
"name": "van-area",
|
209
209
|
"slots": [
|
210
210
|
{
|
211
|
-
"name": "
|
212
|
-
"description": "
|
213
|
-
}
|
214
|
-
],
|
215
|
-
"events": [
|
216
|
-
{
|
217
|
-
"name": "save",
|
218
|
-
"description": "点击保存按钮时触发"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"name": "focus",
|
222
|
-
"description": "输入框聚焦时触发"
|
223
|
-
},
|
224
|
-
{
|
225
|
-
"name": "delete",
|
226
|
-
"description": "确认删除地址时触发"
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"name": "cancel-delete",
|
230
|
-
"description": "取消删除地址时触发"
|
211
|
+
"name": "title",
|
212
|
+
"description": "自定义标题内容"
|
231
213
|
},
|
232
214
|
{
|
233
|
-
"name": "
|
234
|
-
"description": "
|
215
|
+
"name": "columns-top",
|
216
|
+
"description": "自定义选项上方内容"
|
235
217
|
},
|
236
218
|
{
|
237
|
-
"name": "
|
238
|
-
"description": "
|
239
|
-
}
|
219
|
+
"name": "columns-bottom",
|
220
|
+
"description": "自定义选项下方内容"
|
221
|
+
}
|
222
|
+
],
|
223
|
+
"events": [
|
240
224
|
{
|
241
|
-
"name": "
|
242
|
-
"description": "
|
225
|
+
"name": "confirm",
|
226
|
+
"description": "点击右上方完成按钮"
|
243
227
|
},
|
244
228
|
{
|
245
|
-
"name": "
|
246
|
-
"description": "
|
229
|
+
"name": "cancel",
|
230
|
+
"description": "点击取消按钮时"
|
247
231
|
},
|
248
232
|
{
|
249
|
-
"name": "change
|
250
|
-
"description": "
|
233
|
+
"name": "change",
|
234
|
+
"description": "选项改变时触发"
|
251
235
|
}
|
252
236
|
],
|
253
237
|
"attributes": [
|
254
238
|
{
|
255
|
-
"name": "
|
239
|
+
"name": "value",
|
256
240
|
"default": "-",
|
257
|
-
"description": "
|
241
|
+
"description": "当前选中的省市区`code`",
|
258
242
|
"value": {
|
259
|
-
"type": "
|
243
|
+
"type": "string",
|
260
244
|
"kind": "expression"
|
261
245
|
}
|
262
246
|
},
|
263
247
|
{
|
264
|
-
"name": "
|
265
|
-
"default": "
|
266
|
-
"description": "
|
248
|
+
"name": "title",
|
249
|
+
"default": "-",
|
250
|
+
"description": "顶部栏标题",
|
267
251
|
"value": {
|
268
|
-
"type": "string
|
252
|
+
"type": "string",
|
269
253
|
"kind": "expression"
|
270
254
|
}
|
271
255
|
},
|
272
256
|
{
|
273
|
-
"name": "
|
274
|
-
"default": "
|
275
|
-
"description": "
|
257
|
+
"name": "confirm-button-text",
|
258
|
+
"default": "`确认`",
|
259
|
+
"description": "确认按钮文字",
|
276
260
|
"value": {
|
277
261
|
"type": "string",
|
278
262
|
"kind": "expression"
|
279
263
|
}
|
280
264
|
},
|
281
265
|
{
|
282
|
-
"name": "
|
283
|
-
"default": "
|
284
|
-
"description": "
|
266
|
+
"name": "cancel-button-text",
|
267
|
+
"default": "`取消`",
|
268
|
+
"description": "取消按钮文字",
|
285
269
|
"value": {
|
286
|
-
"type": "
|
270
|
+
"type": "string",
|
287
271
|
"kind": "expression"
|
288
272
|
}
|
289
273
|
},
|
290
274
|
{
|
291
|
-
"name": "
|
275
|
+
"name": "area-list",
|
276
|
+
"default": "-",
|
277
|
+
"description": "省市区数据,格式见下方",
|
278
|
+
"value": {
|
279
|
+
"type": "object",
|
280
|
+
"kind": "expression"
|
281
|
+
}
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"name": "columns-placeholder",
|
292
285
|
"default": "`[]`",
|
293
|
-
"description": "
|
286
|
+
"description": "列占位提示文字",
|
294
287
|
"value": {
|
295
|
-
"type": "
|
288
|
+
"type": "string[]",
|
296
289
|
"kind": "expression"
|
297
290
|
}
|
298
291
|
},
|
299
292
|
{
|
300
|
-
"name": "
|
293
|
+
"name": "loading",
|
301
294
|
"default": "`false`",
|
302
|
-
"description": "
|
295
|
+
"description": "是否显示加载状态",
|
303
296
|
"value": {
|
304
297
|
"type": "boolean",
|
305
298
|
"kind": "expression"
|
306
299
|
}
|
307
300
|
},
|
308
301
|
{
|
309
|
-
"name": "
|
302
|
+
"name": "readonly",
|
310
303
|
"default": "`false`",
|
311
|
-
"description": "
|
304
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
312
305
|
"value": {
|
313
306
|
"type": "boolean",
|
314
307
|
"kind": "expression"
|
315
308
|
}
|
316
309
|
},
|
317
310
|
{
|
318
|
-
"name": "
|
319
|
-
"default": "`
|
320
|
-
"description": "
|
311
|
+
"name": "item-height",
|
312
|
+
"default": "`44`",
|
313
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
321
314
|
"value": {
|
322
|
-
"type": "
|
315
|
+
"type": "number | string",
|
323
316
|
"kind": "expression"
|
324
317
|
}
|
325
318
|
},
|
326
319
|
{
|
327
|
-
"name": "
|
328
|
-
"default": "`
|
329
|
-
"description": "
|
320
|
+
"name": "columns-num",
|
321
|
+
"default": "`3`",
|
322
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
330
323
|
"value": {
|
331
|
-
"type": "
|
324
|
+
"type": "number | string",
|
332
325
|
"kind": "expression"
|
333
326
|
}
|
334
327
|
},
|
335
328
|
{
|
336
|
-
"name": "
|
337
|
-
"default": "`
|
338
|
-
"description": "
|
329
|
+
"name": "visible-item-count",
|
330
|
+
"default": "`6`",
|
331
|
+
"description": "可见的选项个数",
|
339
332
|
"value": {
|
340
|
-
"type": "
|
333
|
+
"type": "number | string",
|
341
334
|
"kind": "expression"
|
342
335
|
}
|
343
336
|
},
|
344
337
|
{
|
345
|
-
"name": "
|
346
|
-
"default": "`
|
347
|
-
"description": "
|
338
|
+
"name": "swipe-duration",
|
339
|
+
"default": "`1000`",
|
340
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
348
341
|
"value": {
|
349
|
-
"type": "
|
342
|
+
"type": "number | string",
|
350
343
|
"kind": "expression"
|
351
344
|
}
|
352
345
|
},
|
353
346
|
{
|
354
|
-
"name": "
|
355
|
-
"default": "
|
356
|
-
"description": "
|
347
|
+
"name": "is-oversea-code",
|
348
|
+
"default": "-",
|
349
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
357
350
|
"value": {
|
358
|
-
"type": "boolean",
|
351
|
+
"type": "() => boolean",
|
359
352
|
"kind": "expression"
|
360
353
|
}
|
354
|
+
}
|
355
|
+
]
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"name": "van-button",
|
359
|
+
"slots": [
|
360
|
+
{
|
361
|
+
"name": "default",
|
362
|
+
"description": "按钮内容"
|
361
363
|
},
|
362
364
|
{
|
363
|
-
"name": "
|
364
|
-
"
|
365
|
-
|
365
|
+
"name": "icon",
|
366
|
+
"description": "自定义图标"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"name": "loading",
|
370
|
+
"description": "自定义加载图标"
|
371
|
+
}
|
372
|
+
],
|
373
|
+
"events": [
|
374
|
+
{
|
375
|
+
"name": "click",
|
376
|
+
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"name": "touchstart",
|
380
|
+
"description": "开始触摸按钮时触发"
|
381
|
+
}
|
382
|
+
],
|
383
|
+
"attributes": [
|
384
|
+
{
|
385
|
+
"name": "type",
|
386
|
+
"default": "`default`",
|
387
|
+
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
366
388
|
"value": {
|
367
389
|
"type": "string",
|
368
390
|
"kind": "expression"
|
369
391
|
}
|
370
392
|
},
|
371
393
|
{
|
372
|
-
"name": "
|
373
|
-
"default": "
|
374
|
-
"description": "
|
394
|
+
"name": "size",
|
395
|
+
"default": "`normal`",
|
396
|
+
"description": "尺寸,可选值为 `large` `small` `mini`",
|
375
397
|
"value": {
|
376
398
|
"type": "string",
|
377
399
|
"kind": "expression"
|
378
400
|
}
|
379
401
|
},
|
380
402
|
{
|
381
|
-
"name": "
|
382
|
-
"default": "
|
383
|
-
"description": "
|
403
|
+
"name": "text",
|
404
|
+
"default": "-",
|
405
|
+
"description": "按钮文字",
|
384
406
|
"value": {
|
385
|
-
"type": "
|
407
|
+
"type": "string",
|
386
408
|
"kind": "expression"
|
387
409
|
}
|
388
410
|
},
|
389
411
|
{
|
390
|
-
"name": "
|
391
|
-
"default": "
|
392
|
-
"description": "
|
412
|
+
"name": "color",
|
413
|
+
"default": "-",
|
414
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
393
415
|
"value": {
|
394
|
-
"type": "
|
416
|
+
"type": "string",
|
395
417
|
"kind": "expression"
|
396
418
|
}
|
397
419
|
},
|
398
420
|
{
|
399
|
-
"name": "
|
400
|
-
"default": "
|
401
|
-
"description": "
|
421
|
+
"name": "icon",
|
422
|
+
"default": "-",
|
423
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
402
424
|
"value": {
|
403
|
-
"type": "
|
425
|
+
"type": "string",
|
404
426
|
"kind": "expression"
|
405
427
|
}
|
406
428
|
},
|
407
429
|
{
|
408
|
-
"name": "
|
409
|
-
"default": "`
|
410
|
-
"description": "
|
430
|
+
"name": "icon-prefix",
|
431
|
+
"default": "`van-icon`",
|
432
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
411
433
|
"value": {
|
412
|
-
"type": "
|
434
|
+
"type": "string",
|
413
435
|
"kind": "expression"
|
414
436
|
}
|
415
437
|
},
|
416
438
|
{
|
417
|
-
"name": "
|
418
|
-
"default": "
|
419
|
-
"description": "
|
439
|
+
"name": "icon-position",
|
440
|
+
"default": "`left`",
|
441
|
+
"description": "图标展示位置,可选值为 `right`",
|
420
442
|
"value": {
|
421
|
-
"type": "string
|
443
|
+
"type": "string",
|
422
444
|
"kind": "expression"
|
423
445
|
}
|
424
446
|
},
|
425
447
|
{
|
426
|
-
"name": "
|
427
|
-
"default": "
|
428
|
-
"description": "
|
448
|
+
"name": "tag",
|
449
|
+
"default": "`button`",
|
450
|
+
"description": "按钮根节点的 HTML 标签",
|
429
451
|
"value": {
|
430
|
-
"type": "
|
452
|
+
"type": "string",
|
431
453
|
"kind": "expression"
|
432
454
|
}
|
433
455
|
},
|
434
456
|
{
|
435
|
-
"name": "
|
457
|
+
"name": "native-type",
|
436
458
|
"default": "-",
|
437
|
-
"description": "
|
459
|
+
"description": "原生 button 标签的 type 属性",
|
438
460
|
"value": {
|
439
|
-
"type": "string
|
461
|
+
"type": "string",
|
440
462
|
"kind": "expression"
|
441
463
|
}
|
442
464
|
},
|
443
465
|
{
|
444
|
-
"name": "
|
445
|
-
"default": "
|
446
|
-
"description": "
|
466
|
+
"name": "block",
|
467
|
+
"default": "`false`",
|
468
|
+
"description": "是否为块级元素",
|
447
469
|
"value": {
|
448
|
-
"type": "
|
449
|
-
"kind": "expression"
|
450
|
-
}
|
451
|
-
}
|
452
|
-
]
|
453
|
-
},
|
454
|
-
{
|
455
|
-
"name": "van-badge",
|
456
|
-
"slots": [
|
457
|
-
{
|
458
|
-
"name": "default",
|
459
|
-
"description": "徽标包裹的子元素"
|
460
|
-
},
|
461
|
-
{
|
462
|
-
"name": "content",
|
463
|
-
"description": "自定义徽标内容"
|
464
|
-
}
|
465
|
-
],
|
466
|
-
"events": [],
|
467
|
-
"attributes": [
|
468
|
-
{
|
469
|
-
"name": "content",
|
470
|
-
"default": "-",
|
471
|
-
"description": "徽标内容",
|
472
|
-
"value": {
|
473
|
-
"type": "number | string",
|
474
|
-
"kind": "expression"
|
475
|
-
}
|
476
|
-
},
|
477
|
-
{
|
478
|
-
"name": "color",
|
479
|
-
"default": "`#ee0a24`",
|
480
|
-
"description": "徽标背景颜色",
|
481
|
-
"value": {
|
482
|
-
"type": "string",
|
483
|
-
"kind": "expression"
|
484
|
-
}
|
485
|
-
},
|
486
|
-
{
|
487
|
-
"name": "dot",
|
488
|
-
"default": "`false`",
|
489
|
-
"description": "是否展示为小红点",
|
490
|
-
"value": {
|
491
|
-
"type": "boolean",
|
492
|
-
"kind": "expression"
|
493
|
-
}
|
494
|
-
},
|
495
|
-
{
|
496
|
-
"name": "max",
|
497
|
-
"default": "-",
|
498
|
-
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
499
|
-
"value": {
|
500
|
-
"type": "number | string",
|
501
|
-
"kind": "expression"
|
502
|
-
}
|
503
|
-
}
|
504
|
-
]
|
505
|
-
},
|
506
|
-
{
|
507
|
-
"name": "van-button",
|
508
|
-
"slots": [
|
509
|
-
{
|
510
|
-
"name": "default",
|
511
|
-
"description": "按钮内容"
|
512
|
-
},
|
513
|
-
{
|
514
|
-
"name": "icon",
|
515
|
-
"description": "自定义图标"
|
516
|
-
},
|
517
|
-
{
|
518
|
-
"name": "loading",
|
519
|
-
"description": "自定义加载图标"
|
520
|
-
}
|
521
|
-
],
|
522
|
-
"events": [
|
523
|
-
{
|
524
|
-
"name": "click",
|
525
|
-
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
526
|
-
},
|
527
|
-
{
|
528
|
-
"name": "touchstart",
|
529
|
-
"description": "开始触摸按钮时触发"
|
530
|
-
}
|
531
|
-
],
|
532
|
-
"attributes": [
|
533
|
-
{
|
534
|
-
"name": "type",
|
535
|
-
"default": "`default`",
|
536
|
-
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
537
|
-
"value": {
|
538
|
-
"type": "string",
|
539
|
-
"kind": "expression"
|
540
|
-
}
|
541
|
-
},
|
542
|
-
{
|
543
|
-
"name": "size",
|
544
|
-
"default": "`normal`",
|
545
|
-
"description": "尺寸,可选值为 `large` `small` `mini`",
|
546
|
-
"value": {
|
547
|
-
"type": "string",
|
548
|
-
"kind": "expression"
|
549
|
-
}
|
550
|
-
},
|
551
|
-
{
|
552
|
-
"name": "text",
|
553
|
-
"default": "-",
|
554
|
-
"description": "按钮文字",
|
555
|
-
"value": {
|
556
|
-
"type": "string",
|
557
|
-
"kind": "expression"
|
558
|
-
}
|
559
|
-
},
|
560
|
-
{
|
561
|
-
"name": "color",
|
562
|
-
"default": "-",
|
563
|
-
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
564
|
-
"value": {
|
565
|
-
"type": "string",
|
566
|
-
"kind": "expression"
|
567
|
-
}
|
568
|
-
},
|
569
|
-
{
|
570
|
-
"name": "icon",
|
571
|
-
"default": "-",
|
572
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
573
|
-
"value": {
|
574
|
-
"type": "string",
|
575
|
-
"kind": "expression"
|
576
|
-
}
|
577
|
-
},
|
578
|
-
{
|
579
|
-
"name": "icon-prefix",
|
580
|
-
"default": "`van-icon`",
|
581
|
-
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
582
|
-
"value": {
|
583
|
-
"type": "string",
|
584
|
-
"kind": "expression"
|
585
|
-
}
|
586
|
-
},
|
587
|
-
{
|
588
|
-
"name": "icon-position",
|
589
|
-
"default": "`left`",
|
590
|
-
"description": "图标展示位置,可选值为 `right`",
|
591
|
-
"value": {
|
592
|
-
"type": "string",
|
593
|
-
"kind": "expression"
|
594
|
-
}
|
595
|
-
},
|
596
|
-
{
|
597
|
-
"name": "tag",
|
598
|
-
"default": "`button`",
|
599
|
-
"description": "按钮根节点的 HTML 标签",
|
600
|
-
"value": {
|
601
|
-
"type": "string",
|
602
|
-
"kind": "expression"
|
603
|
-
}
|
604
|
-
},
|
605
|
-
{
|
606
|
-
"name": "native-type",
|
607
|
-
"default": "-",
|
608
|
-
"description": "原生 button 标签的 type 属性",
|
609
|
-
"value": {
|
610
|
-
"type": "string",
|
611
|
-
"kind": "expression"
|
612
|
-
}
|
613
|
-
},
|
614
|
-
{
|
615
|
-
"name": "block",
|
616
|
-
"default": "`false`",
|
617
|
-
"description": "是否为块级元素",
|
618
|
-
"value": {
|
619
|
-
"type": "boolean",
|
470
|
+
"type": "boolean",
|
620
471
|
"kind": "expression"
|
621
472
|
}
|
622
473
|
},
|
@@ -731,40 +582,64 @@
|
|
731
582
|
]
|
732
583
|
},
|
733
584
|
{
|
734
|
-
"name": "van-
|
585
|
+
"name": "van-calendar",
|
735
586
|
"slots": [
|
736
587
|
{
|
737
588
|
"name": "title",
|
738
|
-
"description": "
|
589
|
+
"description": "自定义标题"
|
739
590
|
},
|
740
591
|
{
|
741
|
-
"name": "
|
742
|
-
"description": "
|
592
|
+
"name": "footer",
|
593
|
+
"description": "自定义底部区域内容"
|
743
594
|
},
|
744
595
|
{
|
745
|
-
"name": "
|
746
|
-
"description": "
|
596
|
+
"name": "top-info",
|
597
|
+
"description": "自定义日期上方的提示信息"
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"name": "bottom-info",
|
601
|
+
"description": "自定义日期下方的提示信息"
|
747
602
|
}
|
748
603
|
],
|
749
604
|
"events": [
|
605
|
+
{
|
606
|
+
"name": "select",
|
607
|
+
"description": "点击并选中任意日期时触发"
|
608
|
+
},
|
750
609
|
{
|
751
610
|
"name": "confirm",
|
752
|
-
"description": "
|
611
|
+
"description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
|
753
612
|
},
|
754
613
|
{
|
755
|
-
"name": "
|
756
|
-
"description": "
|
614
|
+
"name": "open",
|
615
|
+
"description": "打开弹出层时触发"
|
757
616
|
},
|
758
617
|
{
|
759
|
-
"name": "
|
760
|
-
"description": "
|
618
|
+
"name": "close",
|
619
|
+
"description": "关闭弹出层时触发"
|
620
|
+
},
|
621
|
+
{
|
622
|
+
"name": "opened",
|
623
|
+
"description": "打开弹出层且动画结束后触发"
|
624
|
+
},
|
625
|
+
{
|
626
|
+
"name": "closed",
|
627
|
+
"description": "关闭弹出层且动画结束后触发"
|
628
|
+
},
|
629
|
+
{
|
630
|
+
"name": "unselect",
|
631
|
+
"description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
|
632
|
+
},
|
633
|
+
{
|
634
|
+
"name": "month-show",
|
635
|
+
"description": "当某个月份进入可视区域时触发"
|
761
636
|
}
|
762
637
|
],
|
763
638
|
"attributes": [
|
764
639
|
{
|
765
|
-
"name": "
|
766
|
-
"default": "
|
767
|
-
"description": "
|
640
|
+
"name": "type",
|
641
|
+
"default": "`single`",
|
642
|
+
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
|
768
643
|
"value": {
|
769
644
|
"type": "string",
|
770
645
|
"kind": "expression"
|
@@ -772,229 +647,55 @@
|
|
772
647
|
},
|
773
648
|
{
|
774
649
|
"name": "title",
|
775
|
-
"default": "
|
776
|
-
"description": "
|
650
|
+
"default": "`日期选择`",
|
651
|
+
"description": "日历标题",
|
777
652
|
"value": {
|
778
653
|
"type": "string",
|
779
654
|
"kind": "expression"
|
780
655
|
}
|
781
656
|
},
|
782
657
|
{
|
783
|
-
"name": "
|
784
|
-
"default": "
|
785
|
-
"description": "
|
658
|
+
"name": "color",
|
659
|
+
"default": "`#ee0a24`",
|
660
|
+
"description": "主题色,对底部按钮和选中日期生效",
|
786
661
|
"value": {
|
787
662
|
"type": "string",
|
788
663
|
"kind": "expression"
|
789
664
|
}
|
790
665
|
},
|
791
666
|
{
|
792
|
-
"name": "
|
793
|
-
"default": "
|
794
|
-
"description": "
|
667
|
+
"name": "min-date",
|
668
|
+
"default": "当前日期",
|
669
|
+
"description": "可选择的最小日期",
|
795
670
|
"value": {
|
796
|
-
"type": "
|
671
|
+
"type": "Date",
|
797
672
|
"kind": "expression"
|
798
673
|
}
|
799
674
|
},
|
800
675
|
{
|
801
|
-
"name": "
|
802
|
-
"default": "
|
803
|
-
"description": "
|
676
|
+
"name": "max-date",
|
677
|
+
"default": "当前日期的六个月后",
|
678
|
+
"description": "可选择的最大日期",
|
804
679
|
"value": {
|
805
|
-
"type": "
|
680
|
+
"type": "Date",
|
806
681
|
"kind": "expression"
|
807
682
|
}
|
808
683
|
},
|
809
684
|
{
|
810
|
-
"name": "
|
811
|
-
"default": "
|
812
|
-
"description": "
|
685
|
+
"name": "default-date",
|
686
|
+
"default": "null_",
|
687
|
+
"description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
|
813
688
|
"value": {
|
814
|
-
"type": "
|
689
|
+
"type": "Date | Date[] \\",
|
815
690
|
"kind": "expression"
|
816
691
|
}
|
817
692
|
},
|
818
693
|
{
|
819
|
-
"name": "
|
820
|
-
"default": "`
|
821
|
-
"description": "
|
694
|
+
"name": "row-height",
|
695
|
+
"default": "`64`",
|
696
|
+
"description": "日期行高",
|
822
697
|
"value": {
|
823
|
-
"type": "
|
824
|
-
"kind": "expression"
|
825
|
-
}
|
826
|
-
},
|
827
|
-
{
|
828
|
-
"name": "readonly",
|
829
|
-
"default": "`false`",
|
830
|
-
"description": "是否为只读状态,只读状态下无法切换选项",
|
831
|
-
"value": {
|
832
|
-
"type": "boolean",
|
833
|
-
"kind": "expression"
|
834
|
-
}
|
835
|
-
},
|
836
|
-
{
|
837
|
-
"name": "item-height",
|
838
|
-
"default": "`44`",
|
839
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
840
|
-
"value": {
|
841
|
-
"type": "number | string",
|
842
|
-
"kind": "expression"
|
843
|
-
}
|
844
|
-
},
|
845
|
-
{
|
846
|
-
"name": "columns-num",
|
847
|
-
"default": "`3`",
|
848
|
-
"description": "显示列数,3-省市区,2-省市,1-省",
|
849
|
-
"value": {
|
850
|
-
"type": "number | string",
|
851
|
-
"kind": "expression"
|
852
|
-
}
|
853
|
-
},
|
854
|
-
{
|
855
|
-
"name": "visible-item-count",
|
856
|
-
"default": "`6`",
|
857
|
-
"description": "可见的选项个数",
|
858
|
-
"value": {
|
859
|
-
"type": "number | string",
|
860
|
-
"kind": "expression"
|
861
|
-
}
|
862
|
-
},
|
863
|
-
{
|
864
|
-
"name": "swipe-duration",
|
865
|
-
"default": "`1000`",
|
866
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
867
|
-
"value": {
|
868
|
-
"type": "number | string",
|
869
|
-
"kind": "expression"
|
870
|
-
}
|
871
|
-
},
|
872
|
-
{
|
873
|
-
"name": "is-oversea-code",
|
874
|
-
"default": "-",
|
875
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
876
|
-
"value": {
|
877
|
-
"type": "() => boolean",
|
878
|
-
"kind": "expression"
|
879
|
-
}
|
880
|
-
}
|
881
|
-
]
|
882
|
-
},
|
883
|
-
{
|
884
|
-
"name": "van-calendar",
|
885
|
-
"slots": [
|
886
|
-
{
|
887
|
-
"name": "title",
|
888
|
-
"description": "自定义标题"
|
889
|
-
},
|
890
|
-
{
|
891
|
-
"name": "footer",
|
892
|
-
"description": "自定义底部区域内容"
|
893
|
-
},
|
894
|
-
{
|
895
|
-
"name": "top-info",
|
896
|
-
"description": "自定义日期上方的提示信息"
|
897
|
-
},
|
898
|
-
{
|
899
|
-
"name": "bottom-info",
|
900
|
-
"description": "自定义日期下方的提示信息"
|
901
|
-
}
|
902
|
-
],
|
903
|
-
"events": [
|
904
|
-
{
|
905
|
-
"name": "select",
|
906
|
-
"description": "点击并选中任意日期时触发"
|
907
|
-
},
|
908
|
-
{
|
909
|
-
"name": "confirm",
|
910
|
-
"description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
|
911
|
-
},
|
912
|
-
{
|
913
|
-
"name": "open",
|
914
|
-
"description": "打开弹出层时触发"
|
915
|
-
},
|
916
|
-
{
|
917
|
-
"name": "close",
|
918
|
-
"description": "关闭弹出层时触发"
|
919
|
-
},
|
920
|
-
{
|
921
|
-
"name": "opened",
|
922
|
-
"description": "打开弹出层且动画结束后触发"
|
923
|
-
},
|
924
|
-
{
|
925
|
-
"name": "closed",
|
926
|
-
"description": "关闭弹出层且动画结束后触发"
|
927
|
-
},
|
928
|
-
{
|
929
|
-
"name": "unselect",
|
930
|
-
"description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
|
931
|
-
},
|
932
|
-
{
|
933
|
-
"name": "month-show",
|
934
|
-
"description": "当某个月份进入可视区域时触发"
|
935
|
-
}
|
936
|
-
],
|
937
|
-
"attributes": [
|
938
|
-
{
|
939
|
-
"name": "type",
|
940
|
-
"default": "`single`",
|
941
|
-
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
|
942
|
-
"value": {
|
943
|
-
"type": "string",
|
944
|
-
"kind": "expression"
|
945
|
-
}
|
946
|
-
},
|
947
|
-
{
|
948
|
-
"name": "title",
|
949
|
-
"default": "`日期选择`",
|
950
|
-
"description": "日历标题",
|
951
|
-
"value": {
|
952
|
-
"type": "string",
|
953
|
-
"kind": "expression"
|
954
|
-
}
|
955
|
-
},
|
956
|
-
{
|
957
|
-
"name": "color",
|
958
|
-
"default": "`#ee0a24`",
|
959
|
-
"description": "主题色,对底部按钮和选中日期生效",
|
960
|
-
"value": {
|
961
|
-
"type": "string",
|
962
|
-
"kind": "expression"
|
963
|
-
}
|
964
|
-
},
|
965
|
-
{
|
966
|
-
"name": "min-date",
|
967
|
-
"default": "当前日期",
|
968
|
-
"description": "可选择的最小日期",
|
969
|
-
"value": {
|
970
|
-
"type": "Date",
|
971
|
-
"kind": "expression"
|
972
|
-
}
|
973
|
-
},
|
974
|
-
{
|
975
|
-
"name": "max-date",
|
976
|
-
"default": "当前日期的六个月后",
|
977
|
-
"description": "可选择的最大日期",
|
978
|
-
"value": {
|
979
|
-
"type": "Date",
|
980
|
-
"kind": "expression"
|
981
|
-
}
|
982
|
-
},
|
983
|
-
{
|
984
|
-
"name": "default-date",
|
985
|
-
"default": "null_",
|
986
|
-
"description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
|
987
|
-
"value": {
|
988
|
-
"type": "Date | Date[] \\",
|
989
|
-
"kind": "expression"
|
990
|
-
}
|
991
|
-
},
|
992
|
-
{
|
993
|
-
"name": "row-height",
|
994
|
-
"default": "`64`",
|
995
|
-
"description": "日期行高",
|
996
|
-
"value": {
|
997
|
-
"type": "number | string",
|
698
|
+
"type": "number | string",
|
998
699
|
"kind": "expression"
|
999
700
|
}
|
1000
701
|
},
|
@@ -1389,371 +1090,428 @@
|
|
1389
1090
|
]
|
1390
1091
|
},
|
1391
1092
|
{
|
1392
|
-
"name": "van-
|
1093
|
+
"name": "van-address-edit",
|
1393
1094
|
"slots": [
|
1394
1095
|
{
|
1395
|
-
"name": "
|
1396
|
-
"description": "
|
1397
|
-
},
|
1398
|
-
{
|
1399
|
-
"name": "option",
|
1400
|
-
"description": "自定义选项文字"
|
1096
|
+
"name": "default",
|
1097
|
+
"description": "在邮政编码下方插入内容"
|
1401
1098
|
}
|
1402
1099
|
],
|
1403
1100
|
"events": [
|
1404
1101
|
{
|
1405
|
-
"name": "
|
1406
|
-
"description": "
|
1102
|
+
"name": "save",
|
1103
|
+
"description": "点击保存按钮时触发"
|
1407
1104
|
},
|
1408
1105
|
{
|
1409
|
-
"name": "
|
1410
|
-
"description": "
|
1106
|
+
"name": "focus",
|
1107
|
+
"description": "输入框聚焦时触发"
|
1411
1108
|
},
|
1412
1109
|
{
|
1413
|
-
"name": "
|
1414
|
-
"description": "
|
1110
|
+
"name": "delete",
|
1111
|
+
"description": "确认删除地址时触发"
|
1112
|
+
},
|
1113
|
+
{
|
1114
|
+
"name": "cancel-delete",
|
1115
|
+
"description": "取消删除地址时触发"
|
1116
|
+
},
|
1117
|
+
{
|
1118
|
+
"name": "select-search",
|
1119
|
+
"description": "选中搜索结果时触发"
|
1120
|
+
},
|
1121
|
+
{
|
1122
|
+
"name": "click-area",
|
1123
|
+
"description": "点击收件地区时触发"
|
1124
|
+
},
|
1125
|
+
{
|
1126
|
+
"name": "change-area",
|
1127
|
+
"description": "修改收件地区时触发"
|
1128
|
+
},
|
1129
|
+
{
|
1130
|
+
"name": "change-detail",
|
1131
|
+
"description": "修改详细地址时触发"
|
1132
|
+
},
|
1133
|
+
{
|
1134
|
+
"name": "change-default",
|
1135
|
+
"description": "切换是否使用默认地址时触发"
|
1415
1136
|
}
|
1416
1137
|
],
|
1417
1138
|
"attributes": [
|
1418
1139
|
{
|
1419
|
-
"name": "
|
1140
|
+
"name": "area-list",
|
1420
1141
|
"default": "-",
|
1421
|
-
"description": "
|
1142
|
+
"description": "地区列表",
|
1422
1143
|
"value": {
|
1423
|
-
"type": "
|
1144
|
+
"type": "object",
|
1424
1145
|
"kind": "expression"
|
1425
1146
|
}
|
1426
1147
|
},
|
1427
1148
|
{
|
1428
|
-
"name": "
|
1429
|
-
"default": "
|
1430
|
-
"description": "
|
1149
|
+
"name": "area-columns-placeholder",
|
1150
|
+
"default": "`[]`",
|
1151
|
+
"description": "地区选择列占位提示文字",
|
1431
1152
|
"value": {
|
1432
|
-
"type": "string
|
1153
|
+
"type": "string[]",
|
1433
1154
|
"kind": "expression"
|
1434
1155
|
}
|
1435
1156
|
},
|
1436
1157
|
{
|
1437
|
-
"name": "
|
1438
|
-
"default": "
|
1439
|
-
"description": "
|
1158
|
+
"name": "area-placeholder",
|
1159
|
+
"default": "`选择省 / 市 / 区`",
|
1160
|
+
"description": "地区输入框占位提示文字",
|
1440
1161
|
"value": {
|
1441
|
-
"type": "
|
1162
|
+
"type": "string",
|
1442
1163
|
"kind": "expression"
|
1443
1164
|
}
|
1444
1165
|
},
|
1445
1166
|
{
|
1446
|
-
"name": "
|
1447
|
-
"default": "
|
1448
|
-
"description": "
|
1167
|
+
"name": "address-info",
|
1168
|
+
"default": "`{}`",
|
1169
|
+
"description": "收货人信息初始值",
|
1449
1170
|
"value": {
|
1450
|
-
"type": "
|
1171
|
+
"type": "AddressInfo",
|
1451
1172
|
"kind": "expression"
|
1452
1173
|
}
|
1453
1174
|
},
|
1454
1175
|
{
|
1455
|
-
"name": "
|
1456
|
-
"default": "
|
1457
|
-
"description": "
|
1176
|
+
"name": "search-result",
|
1177
|
+
"default": "`[]`",
|
1178
|
+
"description": "详细地址搜索结果",
|
1458
1179
|
"value": {
|
1459
|
-
"type": "
|
1180
|
+
"type": "SearchResult[]",
|
1460
1181
|
"kind": "expression"
|
1461
1182
|
}
|
1462
1183
|
},
|
1463
1184
|
{
|
1464
|
-
"name": "
|
1465
|
-
"default": "`
|
1466
|
-
"description": "
|
1185
|
+
"name": "show-postal",
|
1186
|
+
"default": "`false`",
|
1187
|
+
"description": "是否显示邮政编码",
|
1467
1188
|
"value": {
|
1468
1189
|
"type": "boolean",
|
1469
1190
|
"kind": "expression"
|
1470
1191
|
}
|
1471
1192
|
},
|
1472
1193
|
{
|
1473
|
-
"name": "show-
|
1474
|
-
"default": "`
|
1475
|
-
"description": "
|
1194
|
+
"name": "show-delete",
|
1195
|
+
"default": "`false`",
|
1196
|
+
"description": "是否显示删除按钮",
|
1476
1197
|
"value": {
|
1477
1198
|
"type": "boolean",
|
1478
1199
|
"kind": "expression"
|
1479
1200
|
}
|
1480
1201
|
},
|
1481
1202
|
{
|
1482
|
-
"name": "
|
1483
|
-
"default": "`
|
1484
|
-
"description": "
|
1203
|
+
"name": "show-set-default",
|
1204
|
+
"default": "`false`",
|
1205
|
+
"description": "是否显示默认地址栏",
|
1485
1206
|
"value": {
|
1486
|
-
"type": "
|
1207
|
+
"type": "boolean",
|
1487
1208
|
"kind": "expression"
|
1488
1209
|
}
|
1489
|
-
}
|
1490
|
-
]
|
1491
|
-
},
|
1492
|
-
{
|
1493
|
-
"name": "van-cell-group",
|
1494
|
-
"slots": [
|
1495
|
-
{
|
1496
|
-
"name": "default",
|
1497
|
-
"description": "默认插槽"
|
1498
1210
|
},
|
1499
1211
|
{
|
1500
|
-
"name": "
|
1501
|
-
"
|
1502
|
-
|
1503
|
-
],
|
1504
|
-
"events": [],
|
1505
|
-
"attributes": [
|
1506
|
-
{
|
1507
|
-
"name": "title",
|
1508
|
-
"default": "`-`",
|
1509
|
-
"description": "分组标题",
|
1212
|
+
"name": "show-search-result",
|
1213
|
+
"default": "`false`",
|
1214
|
+
"description": "是否显示搜索结果",
|
1510
1215
|
"value": {
|
1511
|
-
"type": "
|
1216
|
+
"type": "boolean",
|
1512
1217
|
"kind": "expression"
|
1513
1218
|
}
|
1514
1219
|
},
|
1515
1220
|
{
|
1516
|
-
"name": "
|
1221
|
+
"name": "show-area",
|
1517
1222
|
"default": "`true`",
|
1518
|
-
"description": "
|
1223
|
+
"description": "是否显示地区",
|
1519
1224
|
"value": {
|
1520
1225
|
"type": "boolean",
|
1521
1226
|
"kind": "expression"
|
1522
1227
|
}
|
1523
|
-
}
|
1524
|
-
]
|
1525
|
-
},
|
1526
|
-
{
|
1527
|
-
"name": "van-cell",
|
1528
|
-
"slots": [
|
1529
|
-
{
|
1530
|
-
"name": "default",
|
1531
|
-
"description": "自定义右侧 value 的内容"
|
1532
|
-
},
|
1533
|
-
{
|
1534
|
-
"name": "title",
|
1535
|
-
"description": "自定义左侧 title 的内容"
|
1536
|
-
},
|
1537
|
-
{
|
1538
|
-
"name": "label",
|
1539
|
-
"description": "自定义标题下方 label 的内容"
|
1540
|
-
},
|
1541
|
-
{
|
1542
|
-
"name": "icon",
|
1543
|
-
"description": "自定义左侧图标"
|
1544
|
-
},
|
1545
|
-
{
|
1546
|
-
"name": "right-icon",
|
1547
|
-
"description": "自定义右侧按钮,默认为`arrow`"
|
1548
|
-
},
|
1549
|
-
{
|
1550
|
-
"name": "extra",
|
1551
|
-
"description": "自定义单元格最右侧的额外内容"
|
1552
|
-
}
|
1553
|
-
],
|
1554
|
-
"events": [
|
1555
|
-
{
|
1556
|
-
"name": "click",
|
1557
|
-
"description": "点击单元格时触发"
|
1558
|
-
}
|
1559
|
-
],
|
1560
|
-
"attributes": [
|
1561
|
-
{
|
1562
|
-
"name": "title",
|
1563
|
-
"default": "-",
|
1564
|
-
"description": "左侧标题",
|
1565
|
-
"value": {
|
1566
|
-
"type": "number | string",
|
1567
|
-
"kind": "expression"
|
1568
|
-
}
|
1569
|
-
},
|
1570
|
-
{
|
1571
|
-
"name": "value",
|
1572
|
-
"default": "-",
|
1573
|
-
"description": "右侧内容",
|
1574
|
-
"value": {
|
1575
|
-
"type": "number | string",
|
1576
|
-
"kind": "expression"
|
1577
|
-
}
|
1578
1228
|
},
|
1579
1229
|
{
|
1580
|
-
"name": "
|
1581
|
-
"default": "
|
1582
|
-
"description": "
|
1230
|
+
"name": "show-detail",
|
1231
|
+
"default": "`true`",
|
1232
|
+
"description": "是否显示详细地址",
|
1583
1233
|
"value": {
|
1584
|
-
"type": "
|
1234
|
+
"type": "boolean",
|
1585
1235
|
"kind": "expression"
|
1586
1236
|
}
|
1587
1237
|
},
|
1588
1238
|
{
|
1589
|
-
"name": "
|
1590
|
-
"default": "
|
1591
|
-
"description": "
|
1239
|
+
"name": "disable-area",
|
1240
|
+
"default": "`false`",
|
1241
|
+
"description": "是否禁用地区选择",
|
1592
1242
|
"value": {
|
1593
|
-
"type": "
|
1243
|
+
"type": "boolean",
|
1594
1244
|
"kind": "expression"
|
1595
1245
|
}
|
1596
1246
|
},
|
1597
1247
|
{
|
1598
|
-
"name": "
|
1599
|
-
"default": "
|
1600
|
-
"description": "
|
1248
|
+
"name": "save-button-text",
|
1249
|
+
"default": "`保存`",
|
1250
|
+
"description": "保存按钮文字",
|
1601
1251
|
"value": {
|
1602
1252
|
"type": "string",
|
1603
1253
|
"kind": "expression"
|
1604
1254
|
}
|
1605
1255
|
},
|
1606
1256
|
{
|
1607
|
-
"name": "
|
1608
|
-
"default": "
|
1609
|
-
"description": "
|
1257
|
+
"name": "delete-button-text",
|
1258
|
+
"default": "`删除`",
|
1259
|
+
"description": "删除按钮文字",
|
1610
1260
|
"value": {
|
1611
1261
|
"type": "string",
|
1612
1262
|
"kind": "expression"
|
1613
1263
|
}
|
1614
1264
|
},
|
1615
1265
|
{
|
1616
|
-
"name": "
|
1617
|
-
"default": "
|
1618
|
-
"description": "
|
1266
|
+
"name": "detail-rows",
|
1267
|
+
"default": "`1`",
|
1268
|
+
"description": "详细地址输入框行数",
|
1619
1269
|
"value": {
|
1620
|
-
"type": "string",
|
1270
|
+
"type": "number | string",
|
1621
1271
|
"kind": "expression"
|
1622
1272
|
}
|
1623
1273
|
},
|
1624
1274
|
{
|
1625
|
-
"name": "
|
1626
|
-
"default": "
|
1627
|
-
"description": "
|
1275
|
+
"name": "detail-maxlength",
|
1276
|
+
"default": "`200`",
|
1277
|
+
"description": "详细地址最大长度",
|
1628
1278
|
"value": {
|
1629
|
-
"type": "
|
1279
|
+
"type": "number | string",
|
1630
1280
|
"kind": "expression"
|
1631
1281
|
}
|
1632
1282
|
},
|
1633
1283
|
{
|
1634
|
-
"name": "
|
1635
|
-
"default": "`
|
1636
|
-
"description": "
|
1284
|
+
"name": "is-saving",
|
1285
|
+
"default": "`false`",
|
1286
|
+
"description": "是否显示保存按钮加载动画",
|
1637
1287
|
"value": {
|
1638
1288
|
"type": "boolean",
|
1639
1289
|
"kind": "expression"
|
1640
1290
|
}
|
1641
1291
|
},
|
1642
1292
|
{
|
1643
|
-
"name": "
|
1293
|
+
"name": "is-deleting",
|
1644
1294
|
"default": "`false`",
|
1645
|
-
"description": "
|
1295
|
+
"description": "是否显示删除按钮加载动画",
|
1646
1296
|
"value": {
|
1647
1297
|
"type": "boolean",
|
1648
1298
|
"kind": "expression"
|
1649
1299
|
}
|
1650
1300
|
},
|
1651
1301
|
{
|
1652
|
-
"name": "
|
1653
|
-
"default": "
|
1654
|
-
"description": "
|
1302
|
+
"name": "tel-validator",
|
1303
|
+
"default": "-",
|
1304
|
+
"description": "手机号格式校验函数",
|
1655
1305
|
"value": {
|
1656
|
-
"type": "boolean",
|
1306
|
+
"type": "string => boolean",
|
1657
1307
|
"kind": "expression"
|
1658
1308
|
}
|
1659
1309
|
},
|
1660
1310
|
{
|
1661
|
-
"name": "
|
1662
|
-
"default": "
|
1663
|
-
"description": "
|
1311
|
+
"name": "tel-maxlength",
|
1312
|
+
"default": "-",
|
1313
|
+
"description": "手机号最大长度",
|
1664
1314
|
"value": {
|
1665
|
-
"type": "
|
1315
|
+
"type": "number | string",
|
1666
1316
|
"kind": "expression"
|
1667
1317
|
}
|
1668
1318
|
},
|
1669
1319
|
{
|
1670
|
-
"name": "
|
1671
|
-
"default": "
|
1672
|
-
"description": "
|
1320
|
+
"name": "postal-validator",
|
1321
|
+
"default": "-",
|
1322
|
+
"description": "邮政编码格式校验函数",
|
1673
1323
|
"value": {
|
1674
|
-
"type": "boolean",
|
1324
|
+
"type": "string => boolean",
|
1675
1325
|
"kind": "expression"
|
1676
1326
|
}
|
1677
1327
|
},
|
1678
1328
|
{
|
1679
|
-
"name": "
|
1680
|
-
"default": "
|
1681
|
-
"description": "
|
1329
|
+
"name": "validator",
|
1330
|
+
"default": "-",
|
1331
|
+
"description": "自定义校验函数",
|
1682
1332
|
"value": {
|
1683
|
-
"type": "
|
1333
|
+
"type": "(key, val) => string",
|
1684
1334
|
"kind": "expression"
|
1685
1335
|
}
|
1686
|
-
}
|
1336
|
+
}
|
1337
|
+
]
|
1338
|
+
},
|
1339
|
+
{
|
1340
|
+
"name": "van-badge",
|
1341
|
+
"slots": [
|
1687
1342
|
{
|
1688
|
-
"name": "
|
1689
|
-
"
|
1690
|
-
"description": "箭头方向,可选值为 `left` `up` `down`",
|
1691
|
-
"value": {
|
1692
|
-
"type": "string",
|
1693
|
-
"kind": "expression"
|
1694
|
-
}
|
1343
|
+
"name": "default",
|
1344
|
+
"description": "徽标包裹的子元素"
|
1695
1345
|
},
|
1696
1346
|
{
|
1697
|
-
"name": "
|
1347
|
+
"name": "content",
|
1348
|
+
"description": "自定义徽标内容"
|
1349
|
+
}
|
1350
|
+
],
|
1351
|
+
"events": [],
|
1352
|
+
"attributes": [
|
1353
|
+
{
|
1354
|
+
"name": "content",
|
1698
1355
|
"default": "-",
|
1699
|
-
"description": "
|
1356
|
+
"description": "徽标内容",
|
1700
1357
|
"value": {
|
1701
|
-
"type": "
|
1358
|
+
"type": "number | string",
|
1702
1359
|
"kind": "expression"
|
1703
1360
|
}
|
1704
1361
|
},
|
1705
1362
|
{
|
1706
|
-
"name": "
|
1707
|
-
"default": "
|
1708
|
-
"description": "
|
1363
|
+
"name": "color",
|
1364
|
+
"default": "`#ee0a24`",
|
1365
|
+
"description": "徽标背景颜色",
|
1709
1366
|
"value": {
|
1710
|
-
"type": "
|
1367
|
+
"type": "string",
|
1711
1368
|
"kind": "expression"
|
1712
1369
|
}
|
1713
1370
|
},
|
1714
1371
|
{
|
1715
|
-
"name": "
|
1716
|
-
"default": "
|
1717
|
-
"description": "
|
1372
|
+
"name": "dot",
|
1373
|
+
"default": "`false`",
|
1374
|
+
"description": "是否展示为小红点",
|
1718
1375
|
"value": {
|
1719
|
-
"type": "
|
1376
|
+
"type": "boolean",
|
1720
1377
|
"kind": "expression"
|
1721
1378
|
}
|
1722
1379
|
},
|
1723
1380
|
{
|
1724
|
-
"name": "
|
1381
|
+
"name": "max",
|
1725
1382
|
"default": "-",
|
1726
|
-
"description": "
|
1383
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
1727
1384
|
"value": {
|
1728
|
-
"type": "
|
1385
|
+
"type": "number | string",
|
1729
1386
|
"kind": "expression"
|
1730
1387
|
}
|
1731
1388
|
}
|
1732
1389
|
]
|
1733
1390
|
},
|
1734
1391
|
{
|
1735
|
-
"name": "van-
|
1392
|
+
"name": "van-cascader",
|
1736
1393
|
"slots": [
|
1737
1394
|
{
|
1738
|
-
"name": "
|
1739
|
-
"description": "
|
1740
|
-
},
|
1741
|
-
{
|
1742
|
-
"name": "top",
|
1743
|
-
"description": "在顶部插入内容"
|
1744
|
-
},
|
1745
|
-
{
|
1746
|
-
"name": "item-bottom",
|
1747
|
-
"description": "在列表项底部插入内容"
|
1395
|
+
"name": "title",
|
1396
|
+
"description": "自定义顶部标题"
|
1748
1397
|
},
|
1749
1398
|
{
|
1750
|
-
"name": "
|
1751
|
-
"description": "
|
1399
|
+
"name": "option",
|
1400
|
+
"description": "自定义选项文字"
|
1752
1401
|
}
|
1753
1402
|
],
|
1754
1403
|
"events": [
|
1755
1404
|
{
|
1756
|
-
"name": "
|
1405
|
+
"name": "change",
|
1406
|
+
"description": "选中项变化时触发"
|
1407
|
+
},
|
1408
|
+
{
|
1409
|
+
"name": "finish",
|
1410
|
+
"description": "全部选项选择完成后触发"
|
1411
|
+
},
|
1412
|
+
{
|
1413
|
+
"name": "close",
|
1414
|
+
"description": "点击关闭图标时触发"
|
1415
|
+
}
|
1416
|
+
],
|
1417
|
+
"attributes": [
|
1418
|
+
{
|
1419
|
+
"name": "title",
|
1420
|
+
"default": "-",
|
1421
|
+
"description": "顶部标题",
|
1422
|
+
"value": {
|
1423
|
+
"type": "string",
|
1424
|
+
"kind": "expression"
|
1425
|
+
}
|
1426
|
+
},
|
1427
|
+
{
|
1428
|
+
"name": "value",
|
1429
|
+
"default": "-",
|
1430
|
+
"description": "选中项的值",
|
1431
|
+
"value": {
|
1432
|
+
"type": "string | number",
|
1433
|
+
"kind": "expression"
|
1434
|
+
}
|
1435
|
+
},
|
1436
|
+
{
|
1437
|
+
"name": "options",
|
1438
|
+
"default": "`[]`",
|
1439
|
+
"description": "可选项数据源",
|
1440
|
+
"value": {
|
1441
|
+
"type": "Option[]",
|
1442
|
+
"kind": "expression"
|
1443
|
+
}
|
1444
|
+
},
|
1445
|
+
{
|
1446
|
+
"name": "placeholder",
|
1447
|
+
"default": "`请选择`",
|
1448
|
+
"description": "未选中时的提示文案",
|
1449
|
+
"value": {
|
1450
|
+
"type": "string",
|
1451
|
+
"kind": "expression"
|
1452
|
+
}
|
1453
|
+
},
|
1454
|
+
{
|
1455
|
+
"name": "active-color",
|
1456
|
+
"default": "`#ee0a24`",
|
1457
|
+
"description": "选中状态的高亮颜色",
|
1458
|
+
"value": {
|
1459
|
+
"type": "string",
|
1460
|
+
"kind": "expression"
|
1461
|
+
}
|
1462
|
+
},
|
1463
|
+
{
|
1464
|
+
"name": "closeable",
|
1465
|
+
"default": "`true`",
|
1466
|
+
"description": "是否显示关闭图标",
|
1467
|
+
"value": {
|
1468
|
+
"type": "boolean",
|
1469
|
+
"kind": "expression"
|
1470
|
+
}
|
1471
|
+
},
|
1472
|
+
{
|
1473
|
+
"name": "show-header",
|
1474
|
+
"default": "`true`",
|
1475
|
+
"description": "是否展示标题栏",
|
1476
|
+
"value": {
|
1477
|
+
"type": "boolean",
|
1478
|
+
"kind": "expression"
|
1479
|
+
}
|
1480
|
+
},
|
1481
|
+
{
|
1482
|
+
"name": "field-names",
|
1483
|
+
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
1484
|
+
"description": "自定义 `options` 结构中的字段",
|
1485
|
+
"value": {
|
1486
|
+
"type": "object",
|
1487
|
+
"kind": "expression"
|
1488
|
+
}
|
1489
|
+
}
|
1490
|
+
]
|
1491
|
+
},
|
1492
|
+
{
|
1493
|
+
"name": "van-address-list",
|
1494
|
+
"slots": [
|
1495
|
+
{
|
1496
|
+
"name": "default",
|
1497
|
+
"description": "在列表下方插入内容"
|
1498
|
+
},
|
1499
|
+
{
|
1500
|
+
"name": "top",
|
1501
|
+
"description": "在顶部插入内容"
|
1502
|
+
},
|
1503
|
+
{
|
1504
|
+
"name": "item-bottom",
|
1505
|
+
"description": "在列表项底部插入内容"
|
1506
|
+
},
|
1507
|
+
{
|
1508
|
+
"name": "tag",
|
1509
|
+
"description": "列表项标签内容自定义"
|
1510
|
+
}
|
1511
|
+
],
|
1512
|
+
"events": [
|
1513
|
+
{
|
1514
|
+
"name": "add",
|
1757
1515
|
"description": "点击新增按钮时触发"
|
1758
1516
|
},
|
1759
1517
|
{
|
@@ -1844,127 +1602,369 @@
|
|
1844
1602
|
]
|
1845
1603
|
},
|
1846
1604
|
{
|
1847
|
-
"name": "van-
|
1605
|
+
"name": "van-cell-group",
|
1848
1606
|
"slots": [
|
1849
1607
|
{
|
1850
1608
|
"name": "default",
|
1851
|
-
"description": "
|
1609
|
+
"description": "默认插槽"
|
1852
1610
|
},
|
1853
1611
|
{
|
1854
|
-
"name": "
|
1855
|
-
"description": "
|
1612
|
+
"name": "title",
|
1613
|
+
"description": "自定义分组标题"
|
1856
1614
|
}
|
1857
1615
|
],
|
1858
|
-
"events": [
|
1616
|
+
"events": [],
|
1617
|
+
"attributes": [
|
1859
1618
|
{
|
1860
|
-
"name": "
|
1861
|
-
"
|
1619
|
+
"name": "title",
|
1620
|
+
"default": "`-`",
|
1621
|
+
"description": "分组标题",
|
1622
|
+
"value": {
|
1623
|
+
"type": "string",
|
1624
|
+
"kind": "expression"
|
1625
|
+
}
|
1626
|
+
},
|
1627
|
+
{
|
1628
|
+
"name": "border",
|
1629
|
+
"default": "`true`",
|
1630
|
+
"description": "是否显示外边框",
|
1631
|
+
"value": {
|
1632
|
+
"type": "boolean",
|
1633
|
+
"kind": "expression"
|
1634
|
+
}
|
1635
|
+
}
|
1636
|
+
]
|
1637
|
+
},
|
1638
|
+
{
|
1639
|
+
"name": "van-cell",
|
1640
|
+
"slots": [
|
1641
|
+
{
|
1642
|
+
"name": "default",
|
1643
|
+
"description": "自定义右侧 value 的内容"
|
1644
|
+
},
|
1645
|
+
{
|
1646
|
+
"name": "title",
|
1647
|
+
"description": "自定义左侧 title 的内容"
|
1648
|
+
},
|
1649
|
+
{
|
1650
|
+
"name": "label",
|
1651
|
+
"description": "自定义标题下方 label 的内容"
|
1652
|
+
},
|
1653
|
+
{
|
1654
|
+
"name": "icon",
|
1655
|
+
"description": "自定义左侧图标"
|
1862
1656
|
},
|
1657
|
+
{
|
1658
|
+
"name": "right-icon",
|
1659
|
+
"description": "自定义右侧按钮,默认为`arrow`"
|
1660
|
+
},
|
1661
|
+
{
|
1662
|
+
"name": "extra",
|
1663
|
+
"description": "自定义单元格最右侧的额外内容"
|
1664
|
+
}
|
1665
|
+
],
|
1666
|
+
"events": [
|
1863
1667
|
{
|
1864
1668
|
"name": "click",
|
1865
|
-
"description": "
|
1669
|
+
"description": "点击单元格时触发"
|
1866
1670
|
}
|
1867
1671
|
],
|
1868
1672
|
"attributes": [
|
1869
1673
|
{
|
1870
|
-
"name": "
|
1871
|
-
"default": "
|
1872
|
-
"description": "
|
1674
|
+
"name": "title",
|
1675
|
+
"default": "-",
|
1676
|
+
"description": "左侧标题",
|
1873
1677
|
"value": {
|
1874
|
-
"type": "
|
1678
|
+
"type": "number | string",
|
1875
1679
|
"kind": "expression"
|
1876
1680
|
}
|
1877
1681
|
},
|
1878
1682
|
{
|
1879
|
-
"name": "
|
1683
|
+
"name": "value",
|
1880
1684
|
"default": "-",
|
1881
|
-
"description": "
|
1685
|
+
"description": "右侧内容",
|
1882
1686
|
"value": {
|
1883
|
-
"type": "
|
1687
|
+
"type": "number | string",
|
1884
1688
|
"kind": "expression"
|
1885
1689
|
}
|
1886
1690
|
},
|
1887
1691
|
{
|
1888
|
-
"name": "
|
1889
|
-
"default": "
|
1890
|
-
"description": "
|
1692
|
+
"name": "label",
|
1693
|
+
"default": "-",
|
1694
|
+
"description": "标题下方的描述信息",
|
1891
1695
|
"value": {
|
1892
1696
|
"type": "string",
|
1893
1697
|
"kind": "expression"
|
1894
1698
|
}
|
1895
1699
|
},
|
1896
1700
|
{
|
1897
|
-
"name": "
|
1898
|
-
"default": "
|
1899
|
-
"description": "
|
1701
|
+
"name": "size",
|
1702
|
+
"default": "-",
|
1703
|
+
"description": "单元格大小,可选值为 `large`",
|
1900
1704
|
"value": {
|
1901
|
-
"type": "
|
1705
|
+
"type": "string",
|
1902
1706
|
"kind": "expression"
|
1903
1707
|
}
|
1904
1708
|
},
|
1905
1709
|
{
|
1906
|
-
"name": "
|
1907
|
-
"default": "
|
1908
|
-
"description": "
|
1710
|
+
"name": "icon",
|
1711
|
+
"default": "-",
|
1712
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
1909
1713
|
"value": {
|
1910
|
-
"type": "
|
1714
|
+
"type": "string",
|
1911
1715
|
"kind": "expression"
|
1912
1716
|
}
|
1913
1717
|
},
|
1914
1718
|
{
|
1915
|
-
"name": "
|
1916
|
-
"default": "`
|
1917
|
-
"description": "
|
1719
|
+
"name": "icon-prefix",
|
1720
|
+
"default": "`van-icon`",
|
1721
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
1918
1722
|
"value": {
|
1919
1723
|
"type": "string",
|
1920
1724
|
"kind": "expression"
|
1921
1725
|
}
|
1922
1726
|
},
|
1923
1727
|
{
|
1924
|
-
"name": "
|
1925
|
-
"default": "
|
1926
|
-
"description": "
|
1728
|
+
"name": "url",
|
1729
|
+
"default": "-",
|
1730
|
+
"description": "点击后跳转的链接地址",
|
1927
1731
|
"value": {
|
1928
|
-
"type": "
|
1732
|
+
"type": "string",
|
1929
1733
|
"kind": "expression"
|
1930
1734
|
}
|
1931
1735
|
},
|
1932
1736
|
{
|
1933
|
-
"name": "
|
1934
|
-
"default": "
|
1935
|
-
"description": "
|
1737
|
+
"name": "to",
|
1738
|
+
"default": "-",
|
1739
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
1936
1740
|
"value": {
|
1937
|
-
"type": "string",
|
1741
|
+
"type": "string | object",
|
1938
1742
|
"kind": "expression"
|
1939
1743
|
}
|
1940
1744
|
},
|
1941
1745
|
{
|
1942
|
-
"name": "
|
1746
|
+
"name": "border",
|
1943
1747
|
"default": "`true`",
|
1944
|
-
"description": "
|
1748
|
+
"description": "是否显示内边框",
|
1945
1749
|
"value": {
|
1946
1750
|
"type": "boolean",
|
1947
1751
|
"kind": "expression"
|
1948
1752
|
}
|
1949
|
-
}
|
1950
|
-
]
|
1951
|
-
},
|
1952
|
-
{
|
1953
|
-
"name": "van-checkbox-group",
|
1954
|
-
"slots": [],
|
1955
|
-
"events": [
|
1956
|
-
{
|
1957
|
-
"name": "change",
|
1958
|
-
"description": "当绑定值变化时触发的事件"
|
1959
|
-
}
|
1960
|
-
],
|
1961
|
-
"attributes": [
|
1753
|
+
},
|
1962
1754
|
{
|
1963
|
-
"name": "
|
1964
|
-
"default": "
|
1965
|
-
"description": "
|
1755
|
+
"name": "replace",
|
1756
|
+
"default": "`false`",
|
1757
|
+
"description": "是否在跳转时替换当前页面历史",
|
1966
1758
|
"value": {
|
1967
|
-
"type": "
|
1759
|
+
"type": "boolean",
|
1760
|
+
"kind": "expression"
|
1761
|
+
}
|
1762
|
+
},
|
1763
|
+
{
|
1764
|
+
"name": "clickable",
|
1765
|
+
"default": "`null`",
|
1766
|
+
"description": "是否开启点击反馈",
|
1767
|
+
"value": {
|
1768
|
+
"type": "boolean",
|
1769
|
+
"kind": "expression"
|
1770
|
+
}
|
1771
|
+
},
|
1772
|
+
{
|
1773
|
+
"name": "is-link",
|
1774
|
+
"default": "`false`",
|
1775
|
+
"description": "是否展示右侧箭头并开启点击反馈",
|
1776
|
+
"value": {
|
1777
|
+
"type": "boolean",
|
1778
|
+
"kind": "expression"
|
1779
|
+
}
|
1780
|
+
},
|
1781
|
+
{
|
1782
|
+
"name": "required",
|
1783
|
+
"default": "`false`",
|
1784
|
+
"description": "是否显示表单必填星号",
|
1785
|
+
"value": {
|
1786
|
+
"type": "boolean",
|
1787
|
+
"kind": "expression"
|
1788
|
+
}
|
1789
|
+
},
|
1790
|
+
{
|
1791
|
+
"name": "center",
|
1792
|
+
"default": "`false`",
|
1793
|
+
"description": "是否使内容垂直居中",
|
1794
|
+
"value": {
|
1795
|
+
"type": "boolean",
|
1796
|
+
"kind": "expression"
|
1797
|
+
}
|
1798
|
+
},
|
1799
|
+
{
|
1800
|
+
"name": "arrow-direction",
|
1801
|
+
"default": "`right`",
|
1802
|
+
"description": "箭头方向,可选值为 `left` `up` `down`",
|
1803
|
+
"value": {
|
1804
|
+
"type": "string",
|
1805
|
+
"kind": "expression"
|
1806
|
+
}
|
1807
|
+
},
|
1808
|
+
{
|
1809
|
+
"name": "title-style",
|
1810
|
+
"default": "-",
|
1811
|
+
"description": "左侧标题额外样式",
|
1812
|
+
"value": {
|
1813
|
+
"type": "any",
|
1814
|
+
"kind": "expression"
|
1815
|
+
}
|
1816
|
+
},
|
1817
|
+
{
|
1818
|
+
"name": "title-class",
|
1819
|
+
"default": "-",
|
1820
|
+
"description": "左侧标题额外类名",
|
1821
|
+
"value": {
|
1822
|
+
"type": "any",
|
1823
|
+
"kind": "expression"
|
1824
|
+
}
|
1825
|
+
},
|
1826
|
+
{
|
1827
|
+
"name": "value-class",
|
1828
|
+
"default": "-",
|
1829
|
+
"description": "右侧内容额外类名",
|
1830
|
+
"value": {
|
1831
|
+
"type": "any",
|
1832
|
+
"kind": "expression"
|
1833
|
+
}
|
1834
|
+
},
|
1835
|
+
{
|
1836
|
+
"name": "label-class",
|
1837
|
+
"default": "-",
|
1838
|
+
"description": "描述信息额外类名",
|
1839
|
+
"value": {
|
1840
|
+
"type": "any",
|
1841
|
+
"kind": "expression"
|
1842
|
+
}
|
1843
|
+
}
|
1844
|
+
]
|
1845
|
+
},
|
1846
|
+
{
|
1847
|
+
"name": "van-checkbox",
|
1848
|
+
"slots": [
|
1849
|
+
{
|
1850
|
+
"name": "default",
|
1851
|
+
"description": "自定义文本"
|
1852
|
+
},
|
1853
|
+
{
|
1854
|
+
"name": "icon",
|
1855
|
+
"description": "自定义图标"
|
1856
|
+
}
|
1857
|
+
],
|
1858
|
+
"events": [
|
1859
|
+
{
|
1860
|
+
"name": "change",
|
1861
|
+
"description": "当绑定值变化时触发的事件"
|
1862
|
+
},
|
1863
|
+
{
|
1864
|
+
"name": "click",
|
1865
|
+
"description": "点击复选框时触发"
|
1866
|
+
}
|
1867
|
+
],
|
1868
|
+
"attributes": [
|
1869
|
+
{
|
1870
|
+
"name": "v-model (value)",
|
1871
|
+
"default": "`false`",
|
1872
|
+
"description": "是否为选中状态",
|
1873
|
+
"value": {
|
1874
|
+
"type": "boolean",
|
1875
|
+
"kind": "expression"
|
1876
|
+
}
|
1877
|
+
},
|
1878
|
+
{
|
1879
|
+
"name": "name",
|
1880
|
+
"default": "-",
|
1881
|
+
"description": "标识符",
|
1882
|
+
"value": {
|
1883
|
+
"type": "any",
|
1884
|
+
"kind": "expression"
|
1885
|
+
}
|
1886
|
+
},
|
1887
|
+
{
|
1888
|
+
"name": "shape",
|
1889
|
+
"default": "`round`",
|
1890
|
+
"description": "形状,可选值为 `square`",
|
1891
|
+
"value": {
|
1892
|
+
"type": "string",
|
1893
|
+
"kind": "expression"
|
1894
|
+
}
|
1895
|
+
},
|
1896
|
+
{
|
1897
|
+
"name": "disabled",
|
1898
|
+
"default": "`false`",
|
1899
|
+
"description": "是否禁用复选框",
|
1900
|
+
"value": {
|
1901
|
+
"type": "boolean",
|
1902
|
+
"kind": "expression"
|
1903
|
+
}
|
1904
|
+
},
|
1905
|
+
{
|
1906
|
+
"name": "label-disabled",
|
1907
|
+
"default": "`false`",
|
1908
|
+
"description": "是否禁用复选框文本点击",
|
1909
|
+
"value": {
|
1910
|
+
"type": "boolean",
|
1911
|
+
"kind": "expression"
|
1912
|
+
}
|
1913
|
+
},
|
1914
|
+
{
|
1915
|
+
"name": "label-position",
|
1916
|
+
"default": "`right`",
|
1917
|
+
"description": "文本位置,可选值为 `left`",
|
1918
|
+
"value": {
|
1919
|
+
"type": "string",
|
1920
|
+
"kind": "expression"
|
1921
|
+
}
|
1922
|
+
},
|
1923
|
+
{
|
1924
|
+
"name": "icon-size",
|
1925
|
+
"default": "`20px`",
|
1926
|
+
"description": "图标大小,默认单位为 `px`",
|
1927
|
+
"value": {
|
1928
|
+
"type": "number | string",
|
1929
|
+
"kind": "expression"
|
1930
|
+
}
|
1931
|
+
},
|
1932
|
+
{
|
1933
|
+
"name": "checked-color",
|
1934
|
+
"default": "`#1989fa`",
|
1935
|
+
"description": "选中状态颜色",
|
1936
|
+
"value": {
|
1937
|
+
"type": "string",
|
1938
|
+
"kind": "expression"
|
1939
|
+
}
|
1940
|
+
},
|
1941
|
+
{
|
1942
|
+
"name": "bind-group",
|
1943
|
+
"default": "`true`",
|
1944
|
+
"description": "是否与复选框组绑定",
|
1945
|
+
"value": {
|
1946
|
+
"type": "boolean",
|
1947
|
+
"kind": "expression"
|
1948
|
+
}
|
1949
|
+
}
|
1950
|
+
]
|
1951
|
+
},
|
1952
|
+
{
|
1953
|
+
"name": "van-checkbox-group",
|
1954
|
+
"slots": [],
|
1955
|
+
"events": [
|
1956
|
+
{
|
1957
|
+
"name": "change",
|
1958
|
+
"description": "当绑定值变化时触发的事件"
|
1959
|
+
}
|
1960
|
+
],
|
1961
|
+
"attributes": [
|
1962
|
+
{
|
1963
|
+
"name": "v-model (value)",
|
1964
|
+
"default": "-",
|
1965
|
+
"description": "所有选中项的标识符",
|
1966
|
+
"value": {
|
1967
|
+
"type": "any[]",
|
1968
1968
|
"kind": "expression"
|
1969
1969
|
}
|
1970
1970
|
},
|
@@ -3633,488 +3633,453 @@
|
|
3633
3633
|
]
|
3634
3634
|
},
|
3635
3635
|
{
|
3636
|
-
"name": "van-
|
3636
|
+
"name": "van-field",
|
3637
3637
|
"slots": [
|
3638
3638
|
{
|
3639
|
-
"name": "
|
3640
|
-
"description": "
|
3641
|
-
}
|
3642
|
-
],
|
3643
|
-
"events": [
|
3644
|
-
{
|
3645
|
-
"name": "submit",
|
3646
|
-
"description": "提交表单且验证通过后触发"
|
3639
|
+
"name": "label",
|
3640
|
+
"description": "自定义输入框 label 标签"
|
3647
3641
|
},
|
3648
3642
|
{
|
3649
|
-
"name": "
|
3650
|
-
"description": "
|
3651
|
-
}
|
3652
|
-
],
|
3653
|
-
"attributes": [
|
3643
|
+
"name": "input",
|
3644
|
+
"description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
|
3645
|
+
},
|
3654
3646
|
{
|
3655
|
-
"name": "
|
3656
|
-
"
|
3657
|
-
"description": "表单项 label 宽度,默认单位为`px`",
|
3658
|
-
"value": {
|
3659
|
-
"type": "number | string",
|
3660
|
-
"kind": "expression"
|
3661
|
-
}
|
3647
|
+
"name": "left-icon",
|
3648
|
+
"description": "自定义输入框头部图标"
|
3662
3649
|
},
|
3663
3650
|
{
|
3664
|
-
"name": "
|
3665
|
-
"
|
3666
|
-
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
|
3667
|
-
"value": {
|
3668
|
-
"type": "string",
|
3669
|
-
"kind": "expression"
|
3670
|
-
}
|
3651
|
+
"name": "right-icon",
|
3652
|
+
"description": "自定义输入框尾部图标"
|
3671
3653
|
},
|
3672
3654
|
{
|
3673
|
-
"name": "
|
3674
|
-
"
|
3675
|
-
"description": "输入框对齐方式,可选值为 `center` `right`",
|
3676
|
-
"value": {
|
3677
|
-
"type": "string",
|
3678
|
-
"kind": "expression"
|
3679
|
-
}
|
3655
|
+
"name": "button",
|
3656
|
+
"description": "自定义输入框尾部按钮"
|
3680
3657
|
},
|
3681
3658
|
{
|
3682
|
-
"name": "
|
3683
|
-
"
|
3684
|
-
|
3659
|
+
"name": "extra",
|
3660
|
+
"description": "自定义输入框最右侧的额外内容"
|
3661
|
+
}
|
3662
|
+
],
|
3663
|
+
"events": [
|
3664
|
+
{
|
3665
|
+
"name": "input",
|
3666
|
+
"description": "输入框内容变化时触发"
|
3667
|
+
},
|
3668
|
+
{
|
3669
|
+
"name": "focus",
|
3670
|
+
"description": "输入框获得焦点时触发"
|
3671
|
+
},
|
3672
|
+
{
|
3673
|
+
"name": "blur",
|
3674
|
+
"description": "输入框失去焦点时触发"
|
3675
|
+
},
|
3676
|
+
{
|
3677
|
+
"name": "clear",
|
3678
|
+
"description": "点击清除按钮时触发"
|
3679
|
+
},
|
3680
|
+
{
|
3681
|
+
"name": "click",
|
3682
|
+
"description": "点击 Field 时触发"
|
3683
|
+
},
|
3684
|
+
{
|
3685
|
+
"name": "click-input",
|
3686
|
+
"description": "点击输入区域时触发"
|
3687
|
+
},
|
3688
|
+
{
|
3689
|
+
"name": "click-left-icon",
|
3690
|
+
"description": "点击左侧图标时触发"
|
3691
|
+
},
|
3692
|
+
{
|
3693
|
+
"name": "click-right-icon",
|
3694
|
+
"description": "点击右侧图标时触发"
|
3695
|
+
}
|
3696
|
+
],
|
3697
|
+
"attributes": [
|
3698
|
+
{
|
3699
|
+
"name": "v-model (value)",
|
3700
|
+
"default": "-",
|
3701
|
+
"description": "当前输入的值",
|
3702
|
+
"value": {
|
3703
|
+
"type": "number | string",
|
3704
|
+
"kind": "expression"
|
3705
|
+
}
|
3706
|
+
},
|
3707
|
+
{
|
3708
|
+
"name": "label",
|
3709
|
+
"default": "-",
|
3710
|
+
"description": "输入框左侧文本",
|
3685
3711
|
"value": {
|
3686
3712
|
"type": "string",
|
3687
3713
|
"kind": "expression"
|
3688
3714
|
}
|
3689
3715
|
},
|
3690
3716
|
{
|
3691
|
-
"name": "
|
3692
|
-
"default": "
|
3693
|
-
"description": "
|
3717
|
+
"name": "name",
|
3718
|
+
"default": "-",
|
3719
|
+
"description": "名称,提交表单的标识符",
|
3694
3720
|
"value": {
|
3695
3721
|
"type": "string",
|
3696
3722
|
"kind": "expression"
|
3697
3723
|
}
|
3698
3724
|
},
|
3699
3725
|
{
|
3700
|
-
"name": "
|
3701
|
-
"default": "`
|
3702
|
-
"description": "
|
3726
|
+
"name": "type",
|
3727
|
+
"default": "`text`",
|
3728
|
+
"description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等",
|
3703
3729
|
"value": {
|
3704
|
-
"type": "
|
3730
|
+
"type": "string",
|
3705
3731
|
"kind": "expression"
|
3706
3732
|
}
|
3707
3733
|
},
|
3708
3734
|
{
|
3709
|
-
"name": "
|
3710
|
-
"default": "
|
3711
|
-
"description": "
|
3735
|
+
"name": "size",
|
3736
|
+
"default": "-",
|
3737
|
+
"description": "大小,可选值为 `large`",
|
3712
3738
|
"value": {
|
3713
|
-
"type": "
|
3739
|
+
"type": "string",
|
3714
3740
|
"kind": "expression"
|
3715
3741
|
}
|
3716
3742
|
},
|
3717
3743
|
{
|
3718
|
-
"name": "
|
3719
|
-
"default": "
|
3720
|
-
"description": "
|
3744
|
+
"name": "maxlength",
|
3745
|
+
"default": "-",
|
3746
|
+
"description": "输入的最大字符数",
|
3721
3747
|
"value": {
|
3722
|
-
"type": "
|
3748
|
+
"type": "number | string",
|
3723
3749
|
"kind": "expression"
|
3724
3750
|
}
|
3725
3751
|
},
|
3726
3752
|
{
|
3727
|
-
"name": "
|
3728
|
-
"default": "
|
3729
|
-
"description": "
|
3753
|
+
"name": "placeholder",
|
3754
|
+
"default": "-",
|
3755
|
+
"description": "输入框占位提示文字",
|
3756
|
+
"value": {
|
3757
|
+
"type": "string",
|
3758
|
+
"kind": "expression"
|
3759
|
+
}
|
3760
|
+
},
|
3761
|
+
{
|
3762
|
+
"name": "border",
|
3763
|
+
"default": "`true`",
|
3764
|
+
"description": "是否显示内边框",
|
3730
3765
|
"value": {
|
3731
3766
|
"type": "boolean",
|
3732
3767
|
"kind": "expression"
|
3733
3768
|
}
|
3734
3769
|
},
|
3735
3770
|
{
|
3736
|
-
"name": "
|
3771
|
+
"name": "disabled",
|
3737
3772
|
"default": "`false`",
|
3738
|
-
"description": "
|
3773
|
+
"description": "是否禁用输入框",
|
3739
3774
|
"value": {
|
3740
3775
|
"type": "boolean",
|
3741
3776
|
"kind": "expression"
|
3742
3777
|
}
|
3743
3778
|
},
|
3744
3779
|
{
|
3745
|
-
"name": "
|
3746
|
-
"default": "`
|
3747
|
-
"description": "
|
3780
|
+
"name": "readonly",
|
3781
|
+
"default": "`false`",
|
3782
|
+
"description": "是否只读",
|
3748
3783
|
"value": {
|
3749
3784
|
"type": "boolean",
|
3750
3785
|
"kind": "expression"
|
3751
3786
|
}
|
3752
3787
|
},
|
3753
3788
|
{
|
3754
|
-
"name": "
|
3755
|
-
"default": "`
|
3756
|
-
"description": "
|
3789
|
+
"name": "colon",
|
3790
|
+
"default": "`false`",
|
3791
|
+
"description": "是否在 label 后面添加冒号",
|
3757
3792
|
"value": {
|
3758
3793
|
"type": "boolean",
|
3759
3794
|
"kind": "expression"
|
3760
3795
|
}
|
3761
3796
|
},
|
3762
3797
|
{
|
3763
|
-
"name": "
|
3764
|
-
"default": "`
|
3765
|
-
"description": "
|
3798
|
+
"name": "required",
|
3799
|
+
"default": "`false`",
|
3800
|
+
"description": "是否显示表单必填星号",
|
3766
3801
|
"value": {
|
3767
3802
|
"type": "boolean",
|
3768
3803
|
"kind": "expression"
|
3769
3804
|
}
|
3770
|
-
}
|
3771
|
-
]
|
3772
|
-
},
|
3773
|
-
{
|
3774
|
-
"name": "van-goods-action",
|
3775
|
-
"slots": [],
|
3776
|
-
"events": [],
|
3777
|
-
"attributes": [
|
3805
|
+
},
|
3778
3806
|
{
|
3779
|
-
"name": "
|
3780
|
-
"default": "`
|
3781
|
-
"description": "
|
3807
|
+
"name": "center",
|
3808
|
+
"default": "`false`",
|
3809
|
+
"description": "是否使内容垂直居中",
|
3782
3810
|
"value": {
|
3783
3811
|
"type": "boolean",
|
3784
3812
|
"kind": "expression"
|
3785
3813
|
}
|
3786
|
-
}
|
3787
|
-
]
|
3788
|
-
},
|
3789
|
-
{
|
3790
|
-
"name": "van-goods-action-icon",
|
3791
|
-
"slots": [
|
3792
|
-
{
|
3793
|
-
"name": "default",
|
3794
|
-
"description": "文本内容"
|
3795
3814
|
},
|
3796
3815
|
{
|
3797
|
-
"name": "
|
3798
|
-
"
|
3799
|
-
|
3800
|
-
],
|
3801
|
-
"events": [],
|
3802
|
-
"attributes": [
|
3803
|
-
{
|
3804
|
-
"name": "text",
|
3805
|
-
"default": "-",
|
3806
|
-
"description": "按钮文字",
|
3816
|
+
"name": "clearable",
|
3817
|
+
"default": "`false`",
|
3818
|
+
"description": "是否启用清除图标,点击清除图标后会清空输入框",
|
3807
3819
|
"value": {
|
3808
|
-
"type": "
|
3820
|
+
"type": "boolean",
|
3809
3821
|
"kind": "expression"
|
3810
3822
|
}
|
3811
3823
|
},
|
3812
3824
|
{
|
3813
|
-
"name": "
|
3814
|
-
"default": "
|
3815
|
-
"description": "
|
3825
|
+
"name": "clear-trigger",
|
3826
|
+
"default": "`focus`",
|
3827
|
+
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
|
3816
3828
|
"value": {
|
3817
3829
|
"type": "string",
|
3818
3830
|
"kind": "expression"
|
3819
3831
|
}
|
3820
3832
|
},
|
3821
3833
|
{
|
3822
|
-
"name": "
|
3823
|
-
"default": "
|
3824
|
-
"description": "
|
3834
|
+
"name": "clickable",
|
3835
|
+
"default": "`false`",
|
3836
|
+
"description": "是否开启点击反馈",
|
3825
3837
|
"value": {
|
3826
|
-
"type": "
|
3838
|
+
"type": "boolean",
|
3827
3839
|
"kind": "expression"
|
3828
3840
|
}
|
3829
3841
|
},
|
3830
3842
|
{
|
3831
|
-
"name": "
|
3832
|
-
"default": "
|
3833
|
-
"description": "
|
3843
|
+
"name": "is-link",
|
3844
|
+
"default": "`false`",
|
3845
|
+
"description": "是否展示右侧箭头并开启点击反馈",
|
3834
3846
|
"value": {
|
3835
|
-
"type": "
|
3847
|
+
"type": "boolean",
|
3836
3848
|
"kind": "expression"
|
3837
3849
|
}
|
3838
3850
|
},
|
3839
3851
|
{
|
3840
|
-
"name": "
|
3852
|
+
"name": "autofocus",
|
3841
3853
|
"default": "`false`",
|
3842
|
-
"description": "
|
3854
|
+
"description": "是否自动聚焦,iOS 系统不支持该属性",
|
3843
3855
|
"value": {
|
3844
3856
|
"type": "boolean",
|
3845
3857
|
"kind": "expression"
|
3846
3858
|
}
|
3847
3859
|
},
|
3848
3860
|
{
|
3849
|
-
"name": "
|
3850
|
-
"default": "
|
3851
|
-
"description": "
|
3861
|
+
"name": "show-word-limit",
|
3862
|
+
"default": "`false`",
|
3863
|
+
"description": "是否显示字数统计,需要设置`maxlength`属性",
|
3852
3864
|
"value": {
|
3853
|
-
"type": "
|
3865
|
+
"type": "boolean",
|
3854
3866
|
"kind": "expression"
|
3855
3867
|
}
|
3856
3868
|
},
|
3857
3869
|
{
|
3858
|
-
"name": "
|
3859
|
-
"default": "
|
3860
|
-
"description": "
|
3870
|
+
"name": "error",
|
3871
|
+
"default": "`false`",
|
3872
|
+
"description": "是否将输入内容标红",
|
3861
3873
|
"value": {
|
3862
|
-
"type": "
|
3874
|
+
"type": "boolean",
|
3863
3875
|
"kind": "expression"
|
3864
3876
|
}
|
3865
3877
|
},
|
3866
3878
|
{
|
3867
|
-
"name": "
|
3879
|
+
"name": "error-message",
|
3868
3880
|
"default": "-",
|
3869
|
-
"description": "
|
3881
|
+
"description": "底部错误提示文案,为空时不展示",
|
3870
3882
|
"value": {
|
3871
3883
|
"type": "string",
|
3872
3884
|
"kind": "expression"
|
3873
3885
|
}
|
3874
3886
|
},
|
3875
3887
|
{
|
3876
|
-
"name": "
|
3888
|
+
"name": "formatter",
|
3877
3889
|
"default": "-",
|
3878
|
-
"description": "
|
3890
|
+
"description": "输入内容格式化函数",
|
3879
3891
|
"value": {
|
3880
|
-
"type": "
|
3892
|
+
"type": "Function",
|
3881
3893
|
"kind": "expression"
|
3882
3894
|
}
|
3883
3895
|
},
|
3884
3896
|
{
|
3885
|
-
"name": "
|
3886
|
-
"default": "`
|
3887
|
-
"description": "
|
3897
|
+
"name": "format-trigger",
|
3898
|
+
"default": "`onChange`",
|
3899
|
+
"description": "格式化函数触发的时机,可选值为 `onBlur`",
|
3888
3900
|
"value": {
|
3889
|
-
"type": "
|
3901
|
+
"type": "string",
|
3890
3902
|
"kind": "expression"
|
3891
3903
|
}
|
3892
|
-
}
|
3893
|
-
]
|
3894
|
-
},
|
3895
|
-
{
|
3896
|
-
"name": "van-goods-action-button",
|
3897
|
-
"slots": [
|
3904
|
+
},
|
3898
3905
|
{
|
3899
|
-
"name": "
|
3900
|
-
"
|
3901
|
-
|
3902
|
-
|
3903
|
-
|
3904
|
-
|
3906
|
+
"name": "arrow-direction",
|
3907
|
+
"default": "`right`",
|
3908
|
+
"description": "箭头方向,可选值为 `left` `up` `down`",
|
3909
|
+
"value": {
|
3910
|
+
"type": "string",
|
3911
|
+
"kind": "expression"
|
3912
|
+
}
|
3913
|
+
},
|
3905
3914
|
{
|
3906
|
-
"name": "
|
3915
|
+
"name": "label-class",
|
3907
3916
|
"default": "-",
|
3908
|
-
"description": "
|
3917
|
+
"description": "左侧文本额外类名",
|
3909
3918
|
"value": {
|
3910
|
-
"type": "
|
3919
|
+
"type": "any",
|
3911
3920
|
"kind": "expression"
|
3912
3921
|
}
|
3913
3922
|
},
|
3914
3923
|
{
|
3915
|
-
"name": "
|
3916
|
-
"default": "`
|
3917
|
-
"description": "
|
3924
|
+
"name": "label-width",
|
3925
|
+
"default": "`6.2em`",
|
3926
|
+
"description": "左侧文本宽度,默认单位为`px`",
|
3918
3927
|
"value": {
|
3919
|
-
"type": "string",
|
3928
|
+
"type": "number | string",
|
3920
3929
|
"kind": "expression"
|
3921
3930
|
}
|
3922
3931
|
},
|
3923
3932
|
{
|
3924
|
-
"name": "
|
3925
|
-
"default": "
|
3926
|
-
"description": "
|
3933
|
+
"name": "label-align",
|
3934
|
+
"default": "`left`",
|
3935
|
+
"description": "左侧文本对齐方式,可选值为 `center` `right`",
|
3927
3936
|
"value": {
|
3928
3937
|
"type": "string",
|
3929
3938
|
"kind": "expression"
|
3930
3939
|
}
|
3931
3940
|
},
|
3932
3941
|
{
|
3933
|
-
"name": "
|
3934
|
-
"default": "
|
3935
|
-
"description": "
|
3942
|
+
"name": "input-align",
|
3943
|
+
"default": "`left`",
|
3944
|
+
"description": "输入框对齐方式,可选值为 `center` `right`",
|
3936
3945
|
"value": {
|
3937
3946
|
"type": "string",
|
3938
3947
|
"kind": "expression"
|
3939
3948
|
}
|
3940
3949
|
},
|
3941
3950
|
{
|
3942
|
-
"name": "
|
3943
|
-
"default": "`
|
3944
|
-
"description": "
|
3951
|
+
"name": "error-message-align",
|
3952
|
+
"default": "`left`",
|
3953
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`",
|
3945
3954
|
"value": {
|
3946
|
-
"type": "
|
3955
|
+
"type": "string",
|
3947
3956
|
"kind": "expression"
|
3948
3957
|
}
|
3949
3958
|
},
|
3950
3959
|
{
|
3951
|
-
"name": "
|
3960
|
+
"name": "autosize",
|
3952
3961
|
"default": "`false`",
|
3953
|
-
"description": "
|
3962
|
+
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
|
3954
3963
|
"value": {
|
3955
|
-
"type": "boolean",
|
3964
|
+
"type": "boolean | object",
|
3956
3965
|
"kind": "expression"
|
3957
3966
|
}
|
3958
3967
|
},
|
3959
3968
|
{
|
3960
|
-
"name": "
|
3969
|
+
"name": "left-icon",
|
3961
3970
|
"default": "-",
|
3962
|
-
"description": "
|
3971
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
3963
3972
|
"value": {
|
3964
3973
|
"type": "string",
|
3965
3974
|
"kind": "expression"
|
3966
3975
|
}
|
3967
3976
|
},
|
3968
3977
|
{
|
3969
|
-
"name": "
|
3978
|
+
"name": "right-icon",
|
3970
3979
|
"default": "-",
|
3971
|
-
"description": "
|
3980
|
+
"description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
|
3972
3981
|
"value": {
|
3973
|
-
"type": "string
|
3982
|
+
"type": "string",
|
3974
3983
|
"kind": "expression"
|
3975
3984
|
}
|
3976
3985
|
},
|
3977
3986
|
{
|
3978
|
-
"name": "
|
3979
|
-
"default": "`
|
3980
|
-
"description": "
|
3987
|
+
"name": "icon-prefix",
|
3988
|
+
"default": "`van-icon`",
|
3989
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
3981
3990
|
"value": {
|
3982
|
-
"type": "
|
3991
|
+
"type": "string",
|
3983
3992
|
"kind": "expression"
|
3984
3993
|
}
|
3985
|
-
}
|
3986
|
-
]
|
3987
|
-
},
|
3988
|
-
{
|
3989
|
-
"name": "van-field",
|
3990
|
-
"slots": [
|
3991
|
-
{
|
3992
|
-
"name": "label",
|
3993
|
-
"description": "自定义输入框 label 标签"
|
3994
|
-
},
|
3995
|
-
{
|
3996
|
-
"name": "input",
|
3997
|
-
"description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
|
3998
|
-
},
|
3999
|
-
{
|
4000
|
-
"name": "left-icon",
|
4001
|
-
"description": "自定义输入框头部图标"
|
4002
|
-
},
|
4003
|
-
{
|
4004
|
-
"name": "right-icon",
|
4005
|
-
"description": "自定义输入框尾部图标"
|
4006
|
-
},
|
4007
|
-
{
|
4008
|
-
"name": "button",
|
4009
|
-
"description": "自定义输入框尾部按钮"
|
4010
|
-
},
|
4011
|
-
{
|
4012
|
-
"name": "extra",
|
4013
|
-
"description": "自定义输入框最右侧的额外内容"
|
4014
|
-
}
|
4015
|
-
],
|
4016
|
-
"events": [
|
4017
|
-
{
|
4018
|
-
"name": "input",
|
4019
|
-
"description": "输入框内容变化时触发"
|
4020
|
-
},
|
4021
|
-
{
|
4022
|
-
"name": "focus",
|
4023
|
-
"description": "输入框获得焦点时触发"
|
4024
|
-
},
|
4025
|
-
{
|
4026
|
-
"name": "blur",
|
4027
|
-
"description": "输入框失去焦点时触发"
|
4028
|
-
},
|
4029
|
-
{
|
4030
|
-
"name": "clear",
|
4031
|
-
"description": "点击清除按钮时触发"
|
4032
|
-
},
|
4033
|
-
{
|
4034
|
-
"name": "click",
|
4035
|
-
"description": "点击 Field 时触发"
|
4036
3994
|
},
|
4037
3995
|
{
|
4038
|
-
"name": "
|
4039
|
-
"description": "点击输入区域时触发"
|
4040
|
-
},
|
4041
|
-
{
|
4042
|
-
"name": "click-left-icon",
|
4043
|
-
"description": "点击左侧图标时触发"
|
4044
|
-
},
|
4045
|
-
{
|
4046
|
-
"name": "click-right-icon",
|
4047
|
-
"description": "点击右侧图标时触发"
|
4048
|
-
}
|
4049
|
-
],
|
4050
|
-
"attributes": [
|
4051
|
-
{
|
4052
|
-
"name": "v-model (value)",
|
3996
|
+
"name": "rules",
|
4053
3997
|
"default": "-",
|
4054
|
-
"description": "
|
3998
|
+
"description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
|
4055
3999
|
"value": {
|
4056
|
-
"type": "
|
4000
|
+
"type": "Rule[]",
|
4057
4001
|
"kind": "expression"
|
4058
4002
|
}
|
4059
4003
|
},
|
4060
4004
|
{
|
4061
|
-
"name": "
|
4005
|
+
"name": "autocomplete",
|
4062
4006
|
"default": "-",
|
4063
|
-
"description": "
|
4007
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
|
4064
4008
|
"value": {
|
4065
4009
|
"type": "string",
|
4066
4010
|
"kind": "expression"
|
4067
4011
|
}
|
4012
|
+
}
|
4013
|
+
]
|
4014
|
+
},
|
4015
|
+
{
|
4016
|
+
"name": "van-form",
|
4017
|
+
"slots": [
|
4018
|
+
{
|
4019
|
+
"name": "default",
|
4020
|
+
"description": "表单内容"
|
4021
|
+
}
|
4022
|
+
],
|
4023
|
+
"events": [
|
4024
|
+
{
|
4025
|
+
"name": "submit",
|
4026
|
+
"description": "提交表单且验证通过后触发"
|
4068
4027
|
},
|
4069
4028
|
{
|
4070
|
-
"name": "
|
4071
|
-
"
|
4072
|
-
|
4029
|
+
"name": "failed",
|
4030
|
+
"description": "提交表单且验证不通过后触发"
|
4031
|
+
}
|
4032
|
+
],
|
4033
|
+
"attributes": [
|
4034
|
+
{
|
4035
|
+
"name": "label-width",
|
4036
|
+
"default": "`6.2em`",
|
4037
|
+
"description": "表单项 label 宽度,默认单位为`px`",
|
4073
4038
|
"value": {
|
4074
|
-
"type": "string",
|
4039
|
+
"type": "number | string",
|
4075
4040
|
"kind": "expression"
|
4076
4041
|
}
|
4077
4042
|
},
|
4078
4043
|
{
|
4079
|
-
"name": "
|
4080
|
-
"default": "`
|
4081
|
-
"description": "
|
4044
|
+
"name": "label-align",
|
4045
|
+
"default": "`left`",
|
4046
|
+
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
|
4082
4047
|
"value": {
|
4083
4048
|
"type": "string",
|
4084
4049
|
"kind": "expression"
|
4085
4050
|
}
|
4086
4051
|
},
|
4087
4052
|
{
|
4088
|
-
"name": "
|
4089
|
-
"default": "
|
4090
|
-
"description": "
|
4053
|
+
"name": "input-align",
|
4054
|
+
"default": "`left`",
|
4055
|
+
"description": "输入框对齐方式,可选值为 `center` `right`",
|
4091
4056
|
"value": {
|
4092
4057
|
"type": "string",
|
4093
4058
|
"kind": "expression"
|
4094
4059
|
}
|
4095
4060
|
},
|
4096
4061
|
{
|
4097
|
-
"name": "
|
4098
|
-
"default": "
|
4099
|
-
"description": "
|
4062
|
+
"name": "error-message-align",
|
4063
|
+
"default": "`left`",
|
4064
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`",
|
4100
4065
|
"value": {
|
4101
|
-
"type": "
|
4066
|
+
"type": "string",
|
4102
4067
|
"kind": "expression"
|
4103
4068
|
}
|
4104
4069
|
},
|
4105
4070
|
{
|
4106
|
-
"name": "
|
4107
|
-
"default": "
|
4108
|
-
"description": "
|
4071
|
+
"name": "validate-trigger",
|
4072
|
+
"default": "`onBlur`",
|
4073
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
|
4109
4074
|
"value": {
|
4110
4075
|
"type": "string",
|
4111
4076
|
"kind": "expression"
|
4112
4077
|
}
|
4113
4078
|
},
|
4114
4079
|
{
|
4115
|
-
"name": "
|
4116
|
-
"default": "`
|
4117
|
-
"description": "
|
4080
|
+
"name": "colon",
|
4081
|
+
"default": "`false`",
|
4082
|
+
"description": "是否在 label 后面添加冒号",
|
4118
4083
|
"value": {
|
4119
4084
|
"type": "boolean",
|
4120
4085
|
"kind": "expression"
|
@@ -4123,7 +4088,7 @@
|
|
4123
4088
|
{
|
4124
4089
|
"name": "disabled",
|
4125
4090
|
"default": "`false`",
|
4126
|
-
"description": "
|
4091
|
+
"description": "是否禁用表单中的所有输入框",
|
4127
4092
|
"value": {
|
4128
4093
|
"type": "boolean",
|
4129
4094
|
"kind": "expression"
|
@@ -4132,234 +4097,269 @@
|
|
4132
4097
|
{
|
4133
4098
|
"name": "readonly",
|
4134
4099
|
"default": "`false`",
|
4135
|
-
"description": "
|
4100
|
+
"description": "是否将表单中的所有输入框设置为只读",
|
4136
4101
|
"value": {
|
4137
4102
|
"type": "boolean",
|
4138
4103
|
"kind": "expression"
|
4139
4104
|
}
|
4140
4105
|
},
|
4141
4106
|
{
|
4142
|
-
"name": "
|
4107
|
+
"name": "validate-first",
|
4143
4108
|
"default": "`false`",
|
4144
|
-
"description": "
|
4109
|
+
"description": "是否在某一项校验不通过时停止校验",
|
4145
4110
|
"value": {
|
4146
4111
|
"type": "boolean",
|
4147
4112
|
"kind": "expression"
|
4148
4113
|
}
|
4149
4114
|
},
|
4150
4115
|
{
|
4151
|
-
"name": "
|
4116
|
+
"name": "scroll-to-error",
|
4152
4117
|
"default": "`false`",
|
4153
|
-
"description": "
|
4118
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项",
|
4154
4119
|
"value": {
|
4155
4120
|
"type": "boolean",
|
4156
4121
|
"kind": "expression"
|
4157
4122
|
}
|
4158
4123
|
},
|
4159
4124
|
{
|
4160
|
-
"name": "
|
4161
|
-
"default": "`
|
4162
|
-
"description": "
|
4125
|
+
"name": "show-error",
|
4126
|
+
"default": "`true`",
|
4127
|
+
"description": "是否在校验不通过时标红输入框",
|
4163
4128
|
"value": {
|
4164
4129
|
"type": "boolean",
|
4165
4130
|
"kind": "expression"
|
4166
4131
|
}
|
4167
4132
|
},
|
4168
4133
|
{
|
4169
|
-
"name": "
|
4170
|
-
"default": "`
|
4171
|
-
"description": "
|
4134
|
+
"name": "show-error-message",
|
4135
|
+
"default": "`true`",
|
4136
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示",
|
4172
4137
|
"value": {
|
4173
4138
|
"type": "boolean",
|
4174
4139
|
"kind": "expression"
|
4175
4140
|
}
|
4176
4141
|
},
|
4177
4142
|
{
|
4178
|
-
"name": "
|
4179
|
-
"default": "`
|
4180
|
-
"description": "
|
4143
|
+
"name": "submit-on-enter",
|
4144
|
+
"default": "`true`",
|
4145
|
+
"description": "是否在按下回车键时提交表单",
|
4181
4146
|
"value": {
|
4182
|
-
"type": "
|
4147
|
+
"type": "boolean",
|
4183
4148
|
"kind": "expression"
|
4184
4149
|
}
|
4185
|
-
}
|
4150
|
+
}
|
4151
|
+
]
|
4152
|
+
},
|
4153
|
+
{
|
4154
|
+
"name": "van-goods-action",
|
4155
|
+
"slots": [],
|
4156
|
+
"events": [],
|
4157
|
+
"attributes": [
|
4186
4158
|
{
|
4187
|
-
"name": "
|
4188
|
-
"default": "`
|
4189
|
-
"description": "
|
4159
|
+
"name": "safe-area-inset-bottom",
|
4160
|
+
"default": "`true`",
|
4161
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
4190
4162
|
"value": {
|
4191
4163
|
"type": "boolean",
|
4192
4164
|
"kind": "expression"
|
4193
4165
|
}
|
4166
|
+
}
|
4167
|
+
]
|
4168
|
+
},
|
4169
|
+
{
|
4170
|
+
"name": "van-goods-action-icon",
|
4171
|
+
"slots": [
|
4172
|
+
{
|
4173
|
+
"name": "default",
|
4174
|
+
"description": "文本内容"
|
4194
4175
|
},
|
4195
4176
|
{
|
4196
|
-
"name": "
|
4197
|
-
"
|
4198
|
-
|
4177
|
+
"name": "icon",
|
4178
|
+
"description": "自定义图标"
|
4179
|
+
}
|
4180
|
+
],
|
4181
|
+
"events": [],
|
4182
|
+
"attributes": [
|
4183
|
+
{
|
4184
|
+
"name": "text",
|
4185
|
+
"default": "-",
|
4186
|
+
"description": "按钮文字",
|
4199
4187
|
"value": {
|
4200
|
-
"type": "
|
4188
|
+
"type": "string",
|
4201
4189
|
"kind": "expression"
|
4202
4190
|
}
|
4203
4191
|
},
|
4204
4192
|
{
|
4205
|
-
"name": "
|
4206
|
-
"default": "
|
4207
|
-
"description": "
|
4193
|
+
"name": "icon",
|
4194
|
+
"default": "-",
|
4195
|
+
"description": "图标",
|
4208
4196
|
"value": {
|
4209
|
-
"type": "
|
4197
|
+
"type": "string",
|
4210
4198
|
"kind": "expression"
|
4211
4199
|
}
|
4212
4200
|
},
|
4213
4201
|
{
|
4214
|
-
"name": "
|
4215
|
-
"default": "`
|
4216
|
-
"description": "
|
4202
|
+
"name": "color",
|
4203
|
+
"default": "`#323233`",
|
4204
|
+
"description": "图标颜色",
|
4217
4205
|
"value": {
|
4218
|
-
"type": "
|
4206
|
+
"type": "string",
|
4219
4207
|
"kind": "expression"
|
4220
4208
|
}
|
4221
4209
|
},
|
4222
4210
|
{
|
4223
|
-
"name": "
|
4224
|
-
"default": "
|
4225
|
-
"description": "
|
4211
|
+
"name": "icon-class",
|
4212
|
+
"default": "-",
|
4213
|
+
"description": "图标额外类名",
|
4226
4214
|
"value": {
|
4227
|
-
"type": "
|
4215
|
+
"type": "any",
|
4228
4216
|
"kind": "expression"
|
4229
4217
|
}
|
4230
4218
|
},
|
4231
4219
|
{
|
4232
|
-
"name": "
|
4233
|
-
"default": "
|
4234
|
-
"description": "
|
4220
|
+
"name": "dot",
|
4221
|
+
"default": "`false`",
|
4222
|
+
"description": "是否显示图标右上角小红点",
|
4235
4223
|
"value": {
|
4236
|
-
"type": "
|
4224
|
+
"type": "boolean",
|
4237
4225
|
"kind": "expression"
|
4238
4226
|
}
|
4239
4227
|
},
|
4240
4228
|
{
|
4241
|
-
"name": "
|
4229
|
+
"name": "badge",
|
4242
4230
|
"default": "-",
|
4243
|
-
"description": "
|
4231
|
+
"description": "图标右上角徽标的内容",
|
4244
4232
|
"value": {
|
4245
|
-
"type": "
|
4233
|
+
"type": "number | string",
|
4246
4234
|
"kind": "expression"
|
4247
4235
|
}
|
4248
4236
|
},
|
4249
4237
|
{
|
4250
|
-
"name": "
|
4251
|
-
"default": "
|
4252
|
-
"description": "
|
4238
|
+
"name": "info",
|
4239
|
+
"default": "-",
|
4240
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
|
4253
4241
|
"value": {
|
4254
|
-
"type": "string",
|
4242
|
+
"type": "number | string",
|
4255
4243
|
"kind": "expression"
|
4256
4244
|
}
|
4257
4245
|
},
|
4258
4246
|
{
|
4259
|
-
"name": "
|
4260
|
-
"default": "
|
4261
|
-
"description": "
|
4247
|
+
"name": "url",
|
4248
|
+
"default": "-",
|
4249
|
+
"description": "点击后跳转的链接地址",
|
4262
4250
|
"value": {
|
4263
4251
|
"type": "string",
|
4264
4252
|
"kind": "expression"
|
4265
4253
|
}
|
4266
4254
|
},
|
4267
4255
|
{
|
4268
|
-
"name": "
|
4256
|
+
"name": "to",
|
4269
4257
|
"default": "-",
|
4270
|
-
"description": "
|
4258
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
4271
4259
|
"value": {
|
4272
|
-
"type": "
|
4260
|
+
"type": "string | object",
|
4273
4261
|
"kind": "expression"
|
4274
4262
|
}
|
4275
4263
|
},
|
4276
4264
|
{
|
4277
|
-
"name": "
|
4278
|
-
"default": "`
|
4279
|
-
"description": "
|
4265
|
+
"name": "replace",
|
4266
|
+
"default": "`false`",
|
4267
|
+
"description": "是否在跳转时替换当前页面历史",
|
4280
4268
|
"value": {
|
4281
|
-
"type": "
|
4269
|
+
"type": "boolean",
|
4282
4270
|
"kind": "expression"
|
4283
4271
|
}
|
4284
|
-
}
|
4272
|
+
}
|
4273
|
+
]
|
4274
|
+
},
|
4275
|
+
{
|
4276
|
+
"name": "van-goods-action-button",
|
4277
|
+
"slots": [
|
4285
4278
|
{
|
4286
|
-
"name": "
|
4287
|
-
"
|
4288
|
-
|
4279
|
+
"name": "default",
|
4280
|
+
"description": "按钮显示内容"
|
4281
|
+
}
|
4282
|
+
],
|
4283
|
+
"events": [],
|
4284
|
+
"attributes": [
|
4285
|
+
{
|
4286
|
+
"name": "text",
|
4287
|
+
"default": "-",
|
4288
|
+
"description": "按钮文字",
|
4289
4289
|
"value": {
|
4290
4290
|
"type": "string",
|
4291
4291
|
"kind": "expression"
|
4292
4292
|
}
|
4293
4293
|
},
|
4294
4294
|
{
|
4295
|
-
"name": "
|
4296
|
-
"default": "`
|
4297
|
-
"description": "
|
4295
|
+
"name": "type",
|
4296
|
+
"default": "`default`",
|
4297
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
|
4298
4298
|
"value": {
|
4299
4299
|
"type": "string",
|
4300
4300
|
"kind": "expression"
|
4301
4301
|
}
|
4302
4302
|
},
|
4303
4303
|
{
|
4304
|
-
"name": "
|
4305
|
-
"default": "
|
4306
|
-
"description": "
|
4304
|
+
"name": "color",
|
4305
|
+
"default": "-",
|
4306
|
+
"description": "按钮颜色,支持传入`linear-gradient`渐变色",
|
4307
4307
|
"value": {
|
4308
4308
|
"type": "string",
|
4309
4309
|
"kind": "expression"
|
4310
4310
|
}
|
4311
4311
|
},
|
4312
4312
|
{
|
4313
|
-
"name": "
|
4314
|
-
"default": "
|
4315
|
-
"description": "
|
4313
|
+
"name": "icon",
|
4314
|
+
"default": "-",
|
4315
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
4316
4316
|
"value": {
|
4317
|
-
"type": "
|
4317
|
+
"type": "string",
|
4318
4318
|
"kind": "expression"
|
4319
4319
|
}
|
4320
4320
|
},
|
4321
4321
|
{
|
4322
|
-
"name": "
|
4323
|
-
"default": "
|
4324
|
-
"description": "
|
4322
|
+
"name": "disabled",
|
4323
|
+
"default": "`false`",
|
4324
|
+
"description": "是否禁用按钮",
|
4325
4325
|
"value": {
|
4326
|
-
"type": "
|
4326
|
+
"type": "boolean",
|
4327
4327
|
"kind": "expression"
|
4328
4328
|
}
|
4329
4329
|
},
|
4330
4330
|
{
|
4331
|
-
"name": "
|
4332
|
-
"default": "
|
4333
|
-
"description": "
|
4331
|
+
"name": "loading",
|
4332
|
+
"default": "`false`",
|
4333
|
+
"description": "是否显示为加载状态",
|
4334
4334
|
"value": {
|
4335
|
-
"type": "
|
4335
|
+
"type": "boolean",
|
4336
4336
|
"kind": "expression"
|
4337
4337
|
}
|
4338
4338
|
},
|
4339
4339
|
{
|
4340
|
-
"name": "
|
4341
|
-
"default": "
|
4342
|
-
"description": "
|
4340
|
+
"name": "url",
|
4341
|
+
"default": "-",
|
4342
|
+
"description": "点击后跳转的链接地址",
|
4343
4343
|
"value": {
|
4344
4344
|
"type": "string",
|
4345
4345
|
"kind": "expression"
|
4346
4346
|
}
|
4347
4347
|
},
|
4348
4348
|
{
|
4349
|
-
"name": "
|
4349
|
+
"name": "to",
|
4350
4350
|
"default": "-",
|
4351
|
-
"description": "
|
4351
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
4352
4352
|
"value": {
|
4353
|
-
"type": "
|
4353
|
+
"type": "string | object",
|
4354
4354
|
"kind": "expression"
|
4355
4355
|
}
|
4356
4356
|
},
|
4357
4357
|
{
|
4358
|
-
"name": "
|
4359
|
-
"default": "
|
4360
|
-
"description": "
|
4358
|
+
"name": "replace",
|
4359
|
+
"default": "`false`",
|
4360
|
+
"description": "是否在跳转时替换当前页面历史",
|
4361
4361
|
"value": {
|
4362
|
-
"type": "
|
4362
|
+
"type": "boolean",
|
4363
4363
|
"kind": "expression"
|
4364
4364
|
}
|
4365
4365
|
}
|