vant 2.12.53 → 2.12.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,122 +2,10 @@
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.53",
5
+ "version": "2.12.54",
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
- },
121
9
  {
122
10
  "name": "van-action-sheet",
123
11
  "slots": [
@@ -317,361 +205,166 @@
317
205
  ]
318
206
  },
319
207
  {
320
- "name": "van-address-edit",
208
+ "name": "van-badge",
321
209
  "slots": [
322
210
  {
323
211
  "name": "default",
324
- "description": "在邮政编码下方插入内容"
212
+ "description": "徽标包裹的子元素"
213
+ },
214
+ {
215
+ "name": "content",
216
+ "description": "自定义徽标内容"
325
217
  }
326
218
  ],
327
- "events": [
219
+ "events": [],
220
+ "attributes": [
328
221
  {
329
- "name": "save",
330
- "description": "点击保存按钮时触发"
222
+ "name": "content",
223
+ "default": "-",
224
+ "description": "徽标内容",
225
+ "value": {
226
+ "type": "number | string",
227
+ "kind": "expression"
228
+ }
331
229
  },
332
230
  {
333
- "name": "focus",
334
- "description": "输入框聚焦时触发"
231
+ "name": "color",
232
+ "default": "`#ee0a24`",
233
+ "description": "徽标背景颜色",
234
+ "value": {
235
+ "type": "string",
236
+ "kind": "expression"
237
+ }
335
238
  },
336
239
  {
337
- "name": "delete",
338
- "description": "确认删除地址时触发"
240
+ "name": "dot",
241
+ "default": "`false`",
242
+ "description": "是否展示为小红点",
243
+ "value": {
244
+ "type": "boolean",
245
+ "kind": "expression"
246
+ }
339
247
  },
340
248
  {
341
- "name": "cancel-delete",
342
- "description": "取消删除地址时触发"
343
- },
249
+ "name": "max",
250
+ "default": "-",
251
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
252
+ "value": {
253
+ "type": "number | string",
254
+ "kind": "expression"
255
+ }
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ "name": "van-area",
261
+ "slots": [
344
262
  {
345
- "name": "select-search",
346
- "description": "选中搜索结果时触发"
263
+ "name": "title",
264
+ "description": "自定义标题内容"
347
265
  },
348
266
  {
349
- "name": "click-area",
350
- "description": "点击收件地区时触发"
267
+ "name": "columns-top",
268
+ "description": "自定义选项上方内容"
351
269
  },
352
270
  {
353
- "name": "change-area",
354
- "description": "修改收件地区时触发"
271
+ "name": "columns-bottom",
272
+ "description": "自定义选项下方内容"
273
+ }
274
+ ],
275
+ "events": [
276
+ {
277
+ "name": "confirm",
278
+ "description": "点击右上方完成按钮"
355
279
  },
356
280
  {
357
- "name": "change-detail",
358
- "description": "修改详细地址时触发"
281
+ "name": "cancel",
282
+ "description": "点击取消按钮时"
359
283
  },
360
284
  {
361
- "name": "change-default",
362
- "description": "切换是否使用默认地址时触发"
285
+ "name": "change",
286
+ "description": "选项改变时触发"
363
287
  }
364
288
  ],
365
289
  "attributes": [
366
290
  {
367
- "name": "area-list",
291
+ "name": "value",
368
292
  "default": "-",
369
- "description": "地区列表",
293
+ "description": "当前选中的省市区`code`",
370
294
  "value": {
371
- "type": "object",
295
+ "type": "string",
372
296
  "kind": "expression"
373
297
  }
374
298
  },
375
299
  {
376
- "name": "area-columns-placeholder",
377
- "default": "`[]`",
378
- "description": "地区选择列占位提示文字",
300
+ "name": "title",
301
+ "default": "-",
302
+ "description": "顶部栏标题",
379
303
  "value": {
380
- "type": "string[]",
304
+ "type": "string",
381
305
  "kind": "expression"
382
306
  }
383
307
  },
384
308
  {
385
- "name": "area-placeholder",
386
- "default": "`选择省 / 市 / 区`",
387
- "description": "地区输入框占位提示文字",
309
+ "name": "confirm-button-text",
310
+ "default": "`确认`",
311
+ "description": "确认按钮文字",
388
312
  "value": {
389
313
  "type": "string",
390
314
  "kind": "expression"
391
315
  }
392
316
  },
393
317
  {
394
- "name": "address-info",
395
- "default": "`{}`",
396
- "description": "收货人信息初始值",
318
+ "name": "cancel-button-text",
319
+ "default": "`取消`",
320
+ "description": "取消按钮文字",
397
321
  "value": {
398
- "type": "AddressInfo",
322
+ "type": "string",
399
323
  "kind": "expression"
400
324
  }
401
325
  },
402
326
  {
403
- "name": "search-result",
404
- "default": "`[]`",
405
- "description": "详细地址搜索结果",
327
+ "name": "area-list",
328
+ "default": "-",
329
+ "description": "省市区数据,格式见下方",
406
330
  "value": {
407
- "type": "SearchResult[]",
331
+ "type": "object",
408
332
  "kind": "expression"
409
333
  }
410
334
  },
411
335
  {
412
- "name": "show-postal",
413
- "default": "`false`",
414
- "description": "是否显示邮政编码",
336
+ "name": "columns-placeholder",
337
+ "default": "`[]`",
338
+ "description": "列占位提示文字",
415
339
  "value": {
416
- "type": "boolean",
340
+ "type": "string[]",
417
341
  "kind": "expression"
418
342
  }
419
343
  },
420
344
  {
421
- "name": "show-delete",
345
+ "name": "loading",
422
346
  "default": "`false`",
423
- "description": "是否显示删除按钮",
347
+ "description": "是否显示加载状态",
424
348
  "value": {
425
349
  "type": "boolean",
426
350
  "kind": "expression"
427
351
  }
428
352
  },
429
353
  {
430
- "name": "show-set-default",
354
+ "name": "readonly",
431
355
  "default": "`false`",
432
- "description": "是否显示默认地址栏",
356
+ "description": "是否为只读状态,只读状态下无法切换选项",
433
357
  "value": {
434
358
  "type": "boolean",
435
359
  "kind": "expression"
436
360
  }
437
361
  },
438
362
  {
439
- "name": "show-search-result",
440
- "default": "`false`",
441
- "description": "是否显示搜索结果",
363
+ "name": "item-height",
364
+ "default": "`44`",
365
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
442
366
  "value": {
443
- "type": "boolean",
444
- "kind": "expression"
445
- }
446
- },
447
- {
448
- "name": "show-area",
449
- "default": "`true`",
450
- "description": "是否显示地区",
451
- "value": {
452
- "type": "boolean",
453
- "kind": "expression"
454
- }
455
- },
456
- {
457
- "name": "show-detail",
458
- "default": "`true`",
459
- "description": "是否显示详细地址",
460
- "value": {
461
- "type": "boolean",
462
- "kind": "expression"
463
- }
464
- },
465
- {
466
- "name": "disable-area",
467
- "default": "`false`",
468
- "description": "是否禁用地区选择",
469
- "value": {
470
- "type": "boolean",
471
- "kind": "expression"
472
- }
473
- },
474
- {
475
- "name": "save-button-text",
476
- "default": "`保存`",
477
- "description": "保存按钮文字",
478
- "value": {
479
- "type": "string",
480
- "kind": "expression"
481
- }
482
- },
483
- {
484
- "name": "delete-button-text",
485
- "default": "`删除`",
486
- "description": "删除按钮文字",
487
- "value": {
488
- "type": "string",
489
- "kind": "expression"
490
- }
491
- },
492
- {
493
- "name": "detail-rows",
494
- "default": "`1`",
495
- "description": "详细地址输入框行数",
496
- "value": {
497
- "type": "number | string",
498
- "kind": "expression"
499
- }
500
- },
501
- {
502
- "name": "detail-maxlength",
503
- "default": "`200`",
504
- "description": "详细地址最大长度",
505
- "value": {
506
- "type": "number | string",
507
- "kind": "expression"
508
- }
509
- },
510
- {
511
- "name": "is-saving",
512
- "default": "`false`",
513
- "description": "是否显示保存按钮加载动画",
514
- "value": {
515
- "type": "boolean",
516
- "kind": "expression"
517
- }
518
- },
519
- {
520
- "name": "is-deleting",
521
- "default": "`false`",
522
- "description": "是否显示删除按钮加载动画",
523
- "value": {
524
- "type": "boolean",
525
- "kind": "expression"
526
- }
527
- },
528
- {
529
- "name": "tel-validator",
530
- "default": "-",
531
- "description": "手机号格式校验函数",
532
- "value": {
533
- "type": "string => boolean",
534
- "kind": "expression"
535
- }
536
- },
537
- {
538
- "name": "tel-maxlength",
539
- "default": "-",
540
- "description": "手机号最大长度",
541
- "value": {
542
- "type": "number | string",
543
- "kind": "expression"
544
- }
545
- },
546
- {
547
- "name": "postal-validator",
548
- "default": "-",
549
- "description": "邮政编码格式校验函数",
550
- "value": {
551
- "type": "string => boolean",
552
- "kind": "expression"
553
- }
554
- },
555
- {
556
- "name": "validator",
557
- "default": "-",
558
- "description": "自定义校验函数",
559
- "value": {
560
- "type": "(key, val) => string",
561
- "kind": "expression"
562
- }
563
- }
564
- ]
565
- },
566
- {
567
- "name": "van-area",
568
- "slots": [
569
- {
570
- "name": "title",
571
- "description": "自定义标题内容"
572
- },
573
- {
574
- "name": "columns-top",
575
- "description": "自定义选项上方内容"
576
- },
577
- {
578
- "name": "columns-bottom",
579
- "description": "自定义选项下方内容"
580
- }
581
- ],
582
- "events": [
583
- {
584
- "name": "confirm",
585
- "description": "点击右上方完成按钮"
586
- },
587
- {
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`",
601
- "value": {
602
- "type": "string",
603
- "kind": "expression"
604
- }
605
- },
606
- {
607
- "name": "title",
608
- "default": "-",
609
- "description": "顶部栏标题",
610
- "value": {
611
- "type": "string",
612
- "kind": "expression"
613
- }
614
- },
615
- {
616
- "name": "confirm-button-text",
617
- "default": "`确认`",
618
- "description": "确认按钮文字",
619
- "value": {
620
- "type": "string",
621
- "kind": "expression"
622
- }
623
- },
624
- {
625
- "name": "cancel-button-text",
626
- "default": "`取消`",
627
- "description": "取消按钮文字",
628
- "value": {
629
- "type": "string",
630
- "kind": "expression"
631
- }
632
- },
633
- {
634
- "name": "area-list",
635
- "default": "-",
636
- "description": "省市区数据,格式见下方",
637
- "value": {
638
- "type": "object",
639
- "kind": "expression"
640
- }
641
- },
642
- {
643
- "name": "columns-placeholder",
644
- "default": "`[]`",
645
- "description": "列占位提示文字",
646
- "value": {
647
- "type": "string[]",
648
- "kind": "expression"
649
- }
650
- },
651
- {
652
- "name": "loading",
653
- "default": "`false`",
654
- "description": "是否显示加载状态",
655
- "value": {
656
- "type": "boolean",
657
- "kind": "expression"
658
- }
659
- },
660
- {
661
- "name": "readonly",
662
- "default": "`false`",
663
- "description": "是否为只读状态,只读状态下无法切换选项",
664
- "value": {
665
- "type": "boolean",
666
- "kind": "expression"
667
- }
668
- },
669
- {
670
- "name": "item-height",
671
- "default": "`44`",
672
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
673
- "value": {
674
- "type": "number | string",
367
+ "type": "number | string",
675
368
  "kind": "expression"
676
369
  }
677
370
  },
@@ -941,54 +634,274 @@
941
634
  ]
942
635
  },
943
636
  {
944
- "name": "van-badge",
637
+ "name": "van-address-list",
945
638
  "slots": [
946
639
  {
947
640
  "name": "default",
948
- "description": "徽标包裹的子元素"
641
+ "description": "在列表下方插入内容"
949
642
  },
950
643
  {
951
- "name": "content",
952
- "description": "自定义徽标内容"
644
+ "name": "top",
645
+ "description": "在顶部插入内容"
646
+ },
647
+ {
648
+ "name": "item-bottom",
649
+ "description": "在列表项底部插入内容"
650
+ },
651
+ {
652
+ "name": "tag",
653
+ "description": "列表项标签内容自定义"
953
654
  }
954
655
  ],
955
- "events": [],
956
- "attributes": [
656
+ "events": [
957
657
  {
958
- "name": "content",
959
- "default": "-",
960
- "description": "徽标内容",
961
- "value": {
962
- "type": "number | string",
963
- "kind": "expression"
964
- }
658
+ "name": "add",
659
+ "description": "点击新增按钮时触发"
965
660
  },
966
661
  {
967
- "name": "color",
968
- "default": "`#ee0a24`",
969
- "description": "徽标背景颜色",
662
+ "name": "edit",
663
+ "description": "点击编辑按钮时触发"
664
+ },
665
+ {
666
+ "name": "select",
667
+ "description": "切换选中的地址时触发"
668
+ },
669
+ {
670
+ "name": "edit-disabled",
671
+ "description": "编辑不可配送的地址时触发"
672
+ },
673
+ {
674
+ "name": "select-disabled",
675
+ "description": "选中不可配送的地址时触发"
676
+ },
677
+ {
678
+ "name": "click-item",
679
+ "description": "点击任意地址时触发"
680
+ }
681
+ ],
682
+ "attributes": [
683
+ {
684
+ "name": "v-model",
685
+ "default": "-",
686
+ "description": "当前选中地址的 id",
970
687
  "value": {
971
688
  "type": "string",
972
689
  "kind": "expression"
973
690
  }
974
691
  },
975
692
  {
976
- "name": "dot",
977
- "default": "`false`",
978
- "description": "是否展示为小红点",
693
+ "name": "list",
694
+ "default": "`[]`",
695
+ "description": "地址列表",
696
+ "value": {
697
+ "type": "Address[]",
698
+ "kind": "expression"
699
+ }
700
+ },
701
+ {
702
+ "name": "disabled-list",
703
+ "default": "`[]`",
704
+ "description": "不可配送地址列表",
705
+ "value": {
706
+ "type": "Address[]",
707
+ "kind": "expression"
708
+ }
709
+ },
710
+ {
711
+ "name": "disabled-text",
712
+ "default": "-",
713
+ "description": "不可配送提示文案",
714
+ "value": {
715
+ "type": "string",
716
+ "kind": "expression"
717
+ }
718
+ },
719
+ {
720
+ "name": "switchable",
721
+ "default": "`true`",
722
+ "description": "是否允许切换地址",
979
723
  "value": {
980
724
  "type": "boolean",
981
725
  "kind": "expression"
982
726
  }
983
727
  },
984
728
  {
985
- "name": "max",
729
+ "name": "add-button-text",
730
+ "default": "`新增地址`",
731
+ "description": "底部按钮文字",
732
+ "value": {
733
+ "type": "string",
734
+ "kind": "expression"
735
+ }
736
+ },
737
+ {
738
+ "name": "default-tag-text",
986
739
  "default": "-",
987
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
740
+ "description": "默认地址标签文字",
741
+ "value": {
742
+ "type": "string",
743
+ "kind": "expression"
744
+ }
745
+ }
746
+ ]
747
+ },
748
+ {
749
+ "name": "van-card",
750
+ "slots": [
751
+ {
752
+ "name": "title",
753
+ "description": "自定义标题"
754
+ },
755
+ {
756
+ "name": "desc",
757
+ "description": "自定义描述"
758
+ },
759
+ {
760
+ "name": "num",
761
+ "description": "自定义数量"
762
+ },
763
+ {
764
+ "name": "price",
765
+ "description": "自定义价格"
766
+ },
767
+ {
768
+ "name": "origin-price",
769
+ "description": "自定义商品原价"
770
+ },
771
+ {
772
+ "name": "price-top",
773
+ "description": "自定义价格上方区域"
774
+ },
775
+ {
776
+ "name": "bottom",
777
+ "description": "自定义价格下方区域"
778
+ },
779
+ {
780
+ "name": "thumb",
781
+ "description": "自定义图片"
782
+ },
783
+ {
784
+ "name": "tag",
785
+ "description": "自定义图片角标"
786
+ },
787
+ {
788
+ "name": "tags",
789
+ "description": "自定义描述下方标签区域"
790
+ },
791
+ {
792
+ "name": "footer",
793
+ "description": "自定义右下角内容"
794
+ }
795
+ ],
796
+ "events": [
797
+ {
798
+ "name": "click",
799
+ "description": "点击时触发"
800
+ },
801
+ {
802
+ "name": "click-thumb",
803
+ "description": "点击自定义图片时触发"
804
+ }
805
+ ],
806
+ "attributes": [
807
+ {
808
+ "name": "thumb",
809
+ "default": "-",
810
+ "description": "左侧图片 URL",
811
+ "value": {
812
+ "type": "string",
813
+ "kind": "expression"
814
+ }
815
+ },
816
+ {
817
+ "name": "title",
818
+ "default": "-",
819
+ "description": "标题",
820
+ "value": {
821
+ "type": "string",
822
+ "kind": "expression"
823
+ }
824
+ },
825
+ {
826
+ "name": "desc",
827
+ "default": "-",
828
+ "description": "描述",
829
+ "value": {
830
+ "type": "string",
831
+ "kind": "expression"
832
+ }
833
+ },
834
+ {
835
+ "name": "tag",
836
+ "default": "-",
837
+ "description": "图片角标",
838
+ "value": {
839
+ "type": "string",
840
+ "kind": "expression"
841
+ }
842
+ },
843
+ {
844
+ "name": "num",
845
+ "default": "-",
846
+ "description": "商品数量",
847
+ "value": {
848
+ "type": "number | string",
849
+ "kind": "expression"
850
+ }
851
+ },
852
+ {
853
+ "name": "price",
854
+ "default": "-",
855
+ "description": "商品价格",
856
+ "value": {
857
+ "type": "number | string",
858
+ "kind": "expression"
859
+ }
860
+ },
861
+ {
862
+ "name": "origin-price",
863
+ "default": "-",
864
+ "description": "商品划线原价",
988
865
  "value": {
989
866
  "type": "number | string",
990
867
  "kind": "expression"
991
868
  }
869
+ },
870
+ {
871
+ "name": "centered",
872
+ "default": "`false`",
873
+ "description": "内容是否垂直居中",
874
+ "value": {
875
+ "type": "boolean",
876
+ "kind": "expression"
877
+ }
878
+ },
879
+ {
880
+ "name": "currency",
881
+ "default": "`¥`",
882
+ "description": "货币符号",
883
+ "value": {
884
+ "type": "string",
885
+ "kind": "expression"
886
+ }
887
+ },
888
+ {
889
+ "name": "thumb-link",
890
+ "default": "-",
891
+ "description": "点击左侧图片后跳转的链接地址",
892
+ "value": {
893
+ "type": "string",
894
+ "kind": "expression"
895
+ }
896
+ },
897
+ {
898
+ "name": "lazy-load",
899
+ "default": "`false`",
900
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
901
+ "value": {
902
+ "type": "boolean",
903
+ "kind": "expression"
904
+ }
992
905
  }
993
906
  ]
994
907
  },
@@ -1320,261 +1233,348 @@
1320
1233
  ]
1321
1234
  },
1322
1235
  {
1323
- "name": "van-card",
1236
+ "name": "van-cascader",
1324
1237
  "slots": [
1325
1238
  {
1326
1239
  "name": "title",
1327
- "description": "自定义标题"
1240
+ "description": "自定义顶部标题"
1328
1241
  },
1329
1242
  {
1330
- "name": "desc",
1331
- "description": "自定义描述"
1332
- },
1243
+ "name": "option",
1244
+ "description": "自定义选项文字"
1245
+ }
1246
+ ],
1247
+ "events": [
1333
1248
  {
1334
- "name": "num",
1335
- "description": "自定义数量"
1249
+ "name": "change",
1250
+ "description": "选中项变化时触发"
1336
1251
  },
1337
1252
  {
1338
- "name": "price",
1339
- "description": "自定义价格"
1253
+ "name": "finish",
1254
+ "description": "全部选项选择完成后触发"
1340
1255
  },
1341
1256
  {
1342
- "name": "origin-price",
1343
- "description": "自定义商品原价"
1344
- },
1257
+ "name": "close",
1258
+ "description": "点击关闭图标时触发"
1259
+ }
1260
+ ],
1261
+ "attributes": [
1345
1262
  {
1346
- "name": "price-top",
1347
- "description": "自定义价格上方区域"
1263
+ "name": "title",
1264
+ "default": "-",
1265
+ "description": "顶部标题",
1266
+ "value": {
1267
+ "type": "string",
1268
+ "kind": "expression"
1269
+ }
1348
1270
  },
1349
1271
  {
1350
- "name": "bottom",
1351
- "description": "自定义价格下方区域"
1272
+ "name": "value",
1273
+ "default": "-",
1274
+ "description": "选中项的值",
1275
+ "value": {
1276
+ "type": "string | number",
1277
+ "kind": "expression"
1278
+ }
1352
1279
  },
1353
1280
  {
1354
- "name": "thumb",
1355
- "description": "自定义图片"
1281
+ "name": "options",
1282
+ "default": "`[]`",
1283
+ "description": "可选项数据源",
1284
+ "value": {
1285
+ "type": "Option[]",
1286
+ "kind": "expression"
1287
+ }
1356
1288
  },
1357
1289
  {
1358
- "name": "tag",
1359
- "description": "自定义图片角标"
1290
+ "name": "placeholder",
1291
+ "default": "`请选择`",
1292
+ "description": "未选中时的提示文案",
1293
+ "value": {
1294
+ "type": "string",
1295
+ "kind": "expression"
1296
+ }
1360
1297
  },
1361
1298
  {
1362
- "name": "tags",
1363
- "description": "自定义描述下方标签区域"
1299
+ "name": "active-color",
1300
+ "default": "`#ee0a24`",
1301
+ "description": "选中状态的高亮颜色",
1302
+ "value": {
1303
+ "type": "string",
1304
+ "kind": "expression"
1305
+ }
1364
1306
  },
1365
1307
  {
1366
- "name": "footer",
1367
- "description": "自定义右下角内容"
1308
+ "name": "closeable",
1309
+ "default": "`true`",
1310
+ "description": "是否显示关闭图标",
1311
+ "value": {
1312
+ "type": "boolean",
1313
+ "kind": "expression"
1314
+ }
1315
+ },
1316
+ {
1317
+ "name": "show-header",
1318
+ "default": "`true`",
1319
+ "description": "是否展示标题栏",
1320
+ "value": {
1321
+ "type": "boolean",
1322
+ "kind": "expression"
1323
+ }
1324
+ },
1325
+ {
1326
+ "name": "field-names",
1327
+ "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1328
+ "description": "自定义 `options` 结构中的字段",
1329
+ "value": {
1330
+ "type": "object",
1331
+ "kind": "expression"
1332
+ }
1333
+ }
1334
+ ]
1335
+ },
1336
+ {
1337
+ "name": "van-address-edit",
1338
+ "slots": [
1339
+ {
1340
+ "name": "default",
1341
+ "description": "在邮政编码下方插入内容"
1368
1342
  }
1369
1343
  ],
1370
1344
  "events": [
1371
1345
  {
1372
- "name": "click",
1373
- "description": "点击时触发"
1346
+ "name": "save",
1347
+ "description": "点击保存按钮时触发"
1374
1348
  },
1375
1349
  {
1376
- "name": "click-thumb",
1377
- "description": "点击自定义图片时触发"
1350
+ "name": "focus",
1351
+ "description": "输入框聚焦时触发"
1352
+ },
1353
+ {
1354
+ "name": "delete",
1355
+ "description": "确认删除地址时触发"
1356
+ },
1357
+ {
1358
+ "name": "cancel-delete",
1359
+ "description": "取消删除地址时触发"
1360
+ },
1361
+ {
1362
+ "name": "select-search",
1363
+ "description": "选中搜索结果时触发"
1364
+ },
1365
+ {
1366
+ "name": "click-area",
1367
+ "description": "点击收件地区时触发"
1368
+ },
1369
+ {
1370
+ "name": "change-area",
1371
+ "description": "修改收件地区时触发"
1372
+ },
1373
+ {
1374
+ "name": "change-detail",
1375
+ "description": "修改详细地址时触发"
1376
+ },
1377
+ {
1378
+ "name": "change-default",
1379
+ "description": "切换是否使用默认地址时触发"
1378
1380
  }
1379
1381
  ],
1380
1382
  "attributes": [
1381
1383
  {
1382
- "name": "thumb",
1384
+ "name": "area-list",
1383
1385
  "default": "-",
1384
- "description": "左侧图片 URL",
1386
+ "description": "地区列表",
1385
1387
  "value": {
1386
- "type": "string",
1388
+ "type": "object",
1387
1389
  "kind": "expression"
1388
1390
  }
1389
1391
  },
1390
1392
  {
1391
- "name": "title",
1392
- "default": "-",
1393
- "description": "标题",
1393
+ "name": "area-columns-placeholder",
1394
+ "default": "`[]`",
1395
+ "description": "地区选择列占位提示文字",
1394
1396
  "value": {
1395
- "type": "string",
1397
+ "type": "string[]",
1396
1398
  "kind": "expression"
1397
1399
  }
1398
1400
  },
1399
1401
  {
1400
- "name": "desc",
1401
- "default": "-",
1402
- "description": "描述",
1402
+ "name": "area-placeholder",
1403
+ "default": "`选择省 / 市 / 区`",
1404
+ "description": "地区输入框占位提示文字",
1403
1405
  "value": {
1404
1406
  "type": "string",
1405
1407
  "kind": "expression"
1406
1408
  }
1407
1409
  },
1408
1410
  {
1409
- "name": "tag",
1410
- "default": "-",
1411
- "description": "图片角标",
1411
+ "name": "address-info",
1412
+ "default": "`{}`",
1413
+ "description": "收货人信息初始值",
1412
1414
  "value": {
1413
- "type": "string",
1415
+ "type": "AddressInfo",
1414
1416
  "kind": "expression"
1415
1417
  }
1416
1418
  },
1417
1419
  {
1418
- "name": "num",
1419
- "default": "-",
1420
- "description": "商品数量",
1420
+ "name": "search-result",
1421
+ "default": "`[]`",
1422
+ "description": "详细地址搜索结果",
1421
1423
  "value": {
1422
- "type": "number | string",
1424
+ "type": "SearchResult[]",
1423
1425
  "kind": "expression"
1424
1426
  }
1425
1427
  },
1426
1428
  {
1427
- "name": "price",
1428
- "default": "-",
1429
- "description": "商品价格",
1429
+ "name": "show-postal",
1430
+ "default": "`false`",
1431
+ "description": "是否显示邮政编码",
1430
1432
  "value": {
1431
- "type": "number | string",
1433
+ "type": "boolean",
1432
1434
  "kind": "expression"
1433
1435
  }
1434
1436
  },
1435
1437
  {
1436
- "name": "origin-price",
1437
- "default": "-",
1438
- "description": "商品划线原价",
1438
+ "name": "show-delete",
1439
+ "default": "`false`",
1440
+ "description": "是否显示删除按钮",
1439
1441
  "value": {
1440
- "type": "number | string",
1442
+ "type": "boolean",
1441
1443
  "kind": "expression"
1442
1444
  }
1443
1445
  },
1444
1446
  {
1445
- "name": "centered",
1447
+ "name": "show-set-default",
1446
1448
  "default": "`false`",
1447
- "description": "内容是否垂直居中",
1449
+ "description": "是否显示默认地址栏",
1448
1450
  "value": {
1449
1451
  "type": "boolean",
1450
1452
  "kind": "expression"
1451
1453
  }
1452
1454
  },
1453
1455
  {
1454
- "name": "currency",
1455
- "default": "`¥`",
1456
- "description": "货币符号",
1456
+ "name": "show-search-result",
1457
+ "default": "`false`",
1458
+ "description": "是否显示搜索结果",
1457
1459
  "value": {
1458
- "type": "string",
1460
+ "type": "boolean",
1459
1461
  "kind": "expression"
1460
1462
  }
1461
1463
  },
1462
1464
  {
1463
- "name": "thumb-link",
1464
- "default": "-",
1465
- "description": "点击左侧图片后跳转的链接地址",
1465
+ "name": "show-area",
1466
+ "default": "`true`",
1467
+ "description": "是否显示地区",
1466
1468
  "value": {
1467
- "type": "string",
1469
+ "type": "boolean",
1468
1470
  "kind": "expression"
1469
1471
  }
1470
1472
  },
1471
1473
  {
1472
- "name": "lazy-load",
1473
- "default": "`false`",
1474
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1474
+ "name": "show-detail",
1475
+ "default": "`true`",
1476
+ "description": "是否显示详细地址",
1475
1477
  "value": {
1476
1478
  "type": "boolean",
1477
1479
  "kind": "expression"
1478
1480
  }
1479
- }
1480
- ]
1481
- },
1482
- {
1483
- "name": "van-cascader",
1484
- "slots": [
1485
- {
1486
- "name": "title",
1487
- "description": "自定义顶部标题"
1488
1481
  },
1489
1482
  {
1490
- "name": "option",
1491
- "description": "自定义选项文字"
1492
- }
1493
- ],
1494
- "events": [
1495
- {
1496
- "name": "change",
1497
- "description": "选中项变化时触发"
1483
+ "name": "disable-area",
1484
+ "default": "`false`",
1485
+ "description": "是否禁用地区选择",
1486
+ "value": {
1487
+ "type": "boolean",
1488
+ "kind": "expression"
1489
+ }
1498
1490
  },
1499
1491
  {
1500
- "name": "finish",
1501
- "description": "全部选项选择完成后触发"
1492
+ "name": "save-button-text",
1493
+ "default": "`保存`",
1494
+ "description": "保存按钮文字",
1495
+ "value": {
1496
+ "type": "string",
1497
+ "kind": "expression"
1498
+ }
1502
1499
  },
1503
1500
  {
1504
- "name": "close",
1505
- "description": "点击关闭图标时触发"
1506
- }
1507
- ],
1508
- "attributes": [
1509
- {
1510
- "name": "title",
1511
- "default": "-",
1512
- "description": "顶部标题",
1501
+ "name": "delete-button-text",
1502
+ "default": "`删除`",
1503
+ "description": "删除按钮文字",
1513
1504
  "value": {
1514
1505
  "type": "string",
1515
1506
  "kind": "expression"
1516
1507
  }
1517
1508
  },
1518
1509
  {
1519
- "name": "value",
1520
- "default": "-",
1521
- "description": "选中项的值",
1510
+ "name": "detail-rows",
1511
+ "default": "`1`",
1512
+ "description": "详细地址输入框行数",
1522
1513
  "value": {
1523
- "type": "string | number",
1514
+ "type": "number | string",
1524
1515
  "kind": "expression"
1525
1516
  }
1526
1517
  },
1527
1518
  {
1528
- "name": "options",
1529
- "default": "`[]`",
1530
- "description": "可选项数据源",
1519
+ "name": "detail-maxlength",
1520
+ "default": "`200`",
1521
+ "description": "详细地址最大长度",
1531
1522
  "value": {
1532
- "type": "Option[]",
1523
+ "type": "number | string",
1533
1524
  "kind": "expression"
1534
1525
  }
1535
1526
  },
1536
1527
  {
1537
- "name": "placeholder",
1538
- "default": "`请选择`",
1539
- "description": "未选中时的提示文案",
1528
+ "name": "is-saving",
1529
+ "default": "`false`",
1530
+ "description": "是否显示保存按钮加载动画",
1531
+ "value": {
1532
+ "type": "boolean",
1533
+ "kind": "expression"
1534
+ }
1535
+ },
1536
+ {
1537
+ "name": "is-deleting",
1538
+ "default": "`false`",
1539
+ "description": "是否显示删除按钮加载动画",
1540
1540
  "value": {
1541
- "type": "string",
1541
+ "type": "boolean",
1542
1542
  "kind": "expression"
1543
1543
  }
1544
1544
  },
1545
1545
  {
1546
- "name": "active-color",
1547
- "default": "`#ee0a24`",
1548
- "description": "选中状态的高亮颜色",
1546
+ "name": "tel-validator",
1547
+ "default": "-",
1548
+ "description": "手机号格式校验函数",
1549
1549
  "value": {
1550
- "type": "string",
1550
+ "type": "string => boolean",
1551
1551
  "kind": "expression"
1552
1552
  }
1553
1553
  },
1554
1554
  {
1555
- "name": "closeable",
1556
- "default": "`true`",
1557
- "description": "是否显示关闭图标",
1555
+ "name": "tel-maxlength",
1556
+ "default": "-",
1557
+ "description": "手机号最大长度",
1558
1558
  "value": {
1559
- "type": "boolean",
1559
+ "type": "number | string",
1560
1560
  "kind": "expression"
1561
1561
  }
1562
1562
  },
1563
1563
  {
1564
- "name": "show-header",
1565
- "default": "`true`",
1566
- "description": "是否展示标题栏",
1564
+ "name": "postal-validator",
1565
+ "default": "-",
1566
+ "description": "邮政编码格式校验函数",
1567
1567
  "value": {
1568
- "type": "boolean",
1568
+ "type": "string => boolean",
1569
1569
  "kind": "expression"
1570
1570
  }
1571
1571
  },
1572
1572
  {
1573
- "name": "field-names",
1574
- "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1575
- "description": "自定义 `options` 结构中的字段",
1573
+ "name": "validator",
1574
+ "default": "-",
1575
+ "description": "自定义校验函数",
1576
1576
  "value": {
1577
- "type": "object",
1577
+ "type": "(key, val) => string",
1578
1578
  "kind": "expression"
1579
1579
  }
1580
1580
  }
@@ -1814,117 +1814,6 @@
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
- },
1928
1817
  {
1929
1818
  "name": "van-checkbox",
1930
1819
  "slots": [
@@ -2070,20 +1959,131 @@
2070
1959
  }
2071
1960
  },
2072
1961
  {
2073
- "name": "icon-size",
2074
- "default": "`20px`",
2075
- "description": "所有复选框的图标大小,默认单位为 `px`",
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",
2069
+ "kind": "expression"
2070
+ }
2071
+ },
2072
+ {
2073
+ "name": "stroke-linecap",
2074
+ "default": "`round`",
2075
+ "description": "进度条端点的形状,可选值为`square` `butt`",
2076
2076
  "value": {
2077
- "type": "number | string",
2077
+ "type": "string",
2078
2078
  "kind": "expression"
2079
2079
  }
2080
2080
  },
2081
2081
  {
2082
- "name": "checked-color",
2083
- "default": "`#1989fa`",
2084
- "description": "所有复选框的选中状态颜色",
2082
+ "name": "clockwise",
2083
+ "default": "`true`",
2084
+ "description": "是否顺时针增加",
2085
2085
  "value": {
2086
- "type": "string",
2086
+ "type": "boolean",
2087
2087
  "kind": "expression"
2088
2088
  }
2089
2089
  }
@@ -3055,45 +3055,6 @@
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
- },
3097
3058
  {
3098
3059
  "name": "van-dialog",
3099
3060
  "slots": [
@@ -3342,6 +3303,45 @@
3342
3303
  }
3343
3304
  ]
3344
3305
  },
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,473 +3553,453 @@
3553
3553
  ]
3554
3554
  },
3555
3555
  {
3556
- "name": "van-form",
3556
+ "name": "van-field",
3557
3557
  "slots": [
3558
3558
  {
3559
- "name": "default",
3560
- "description": "表单内容"
3559
+ "name": "label",
3560
+ "description": "自定义输入框 label 标签"
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": "自定义输入框最右侧的额外内容"
3561
3581
  }
3562
3582
  ],
3563
3583
  "events": [
3564
3584
  {
3565
- "name": "submit",
3566
- "description": "提交表单且验证通过后触发"
3585
+ "name": "input",
3586
+ "description": "输入框内容变化时触发"
3567
3587
  },
3568
3588
  {
3569
- "name": "failed",
3570
- "description": "提交表单且验证不通过后触发"
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": "点击左侧图标时触发"
3611
+ },
3612
+ {
3613
+ "name": "click-right-icon",
3614
+ "description": "点击右侧图标时触发"
3571
3615
  }
3572
3616
  ],
3573
3617
  "attributes": [
3574
3618
  {
3575
- "name": "label-width",
3576
- "default": "`6.2em`",
3577
- "description": "表单项 label 宽度,默认单位为`px`",
3619
+ "name": "v-model (value)",
3620
+ "default": "-",
3621
+ "description": "当前输入的值",
3578
3622
  "value": {
3579
3623
  "type": "number | string",
3580
3624
  "kind": "expression"
3581
3625
  }
3582
3626
  },
3583
3627
  {
3584
- "name": "label-align",
3585
- "default": "`left`",
3586
- "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
3628
+ "name": "label",
3629
+ "default": "-",
3630
+ "description": "输入框左侧文本",
3587
3631
  "value": {
3588
3632
  "type": "string",
3589
3633
  "kind": "expression"
3590
3634
  }
3591
3635
  },
3592
3636
  {
3593
- "name": "input-align",
3594
- "default": "`left`",
3595
- "description": "输入框对齐方式,可选值为 `center` `right`",
3637
+ "name": "name",
3638
+ "default": "-",
3639
+ "description": "名称,提交表单的标识符",
3596
3640
  "value": {
3597
3641
  "type": "string",
3598
3642
  "kind": "expression"
3599
3643
  }
3600
3644
  },
3601
3645
  {
3602
- "name": "error-message-align",
3603
- "default": "`left`",
3604
- "description": "错误提示文案对齐方式,可选值为 `center` `right`",
3646
+ "name": "type",
3647
+ "default": "`text`",
3648
+ "description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等",
3605
3649
  "value": {
3606
3650
  "type": "string",
3607
3651
  "kind": "expression"
3608
3652
  }
3609
3653
  },
3610
3654
  {
3611
- "name": "validate-trigger",
3612
- "default": "`onBlur`",
3613
- "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
3655
+ "name": "size",
3656
+ "default": "-",
3657
+ "description": "大小,可选值为 `large`",
3614
3658
  "value": {
3615
3659
  "type": "string",
3616
3660
  "kind": "expression"
3617
3661
  }
3618
3662
  },
3619
3663
  {
3620
- "name": "colon",
3621
- "default": "`false`",
3622
- "description": "是否在 label 后面添加冒号",
3664
+ "name": "maxlength",
3665
+ "default": "-",
3666
+ "description": "输入的最大字符数",
3623
3667
  "value": {
3624
- "type": "boolean",
3668
+ "type": "number | string",
3625
3669
  "kind": "expression"
3626
3670
  }
3627
3671
  },
3628
3672
  {
3629
- "name": "disabled",
3630
- "default": "`false`",
3631
- "description": "是否禁用表单中的所有输入框",
3673
+ "name": "placeholder",
3674
+ "default": "-",
3675
+ "description": "输入框占位提示文字",
3632
3676
  "value": {
3633
- "type": "boolean",
3677
+ "type": "string",
3634
3678
  "kind": "expression"
3635
3679
  }
3636
3680
  },
3637
3681
  {
3638
- "name": "readonly",
3639
- "default": "`false`",
3640
- "description": "是否将表单中的所有输入框设置为只读",
3682
+ "name": "border",
3683
+ "default": "`true`",
3684
+ "description": "是否显示内边框",
3641
3685
  "value": {
3642
3686
  "type": "boolean",
3643
3687
  "kind": "expression"
3644
3688
  }
3645
3689
  },
3646
3690
  {
3647
- "name": "validate-first",
3691
+ "name": "disabled",
3648
3692
  "default": "`false`",
3649
- "description": "是否在某一项校验不通过时停止校验",
3693
+ "description": "是否禁用输入框",
3650
3694
  "value": {
3651
3695
  "type": "boolean",
3652
3696
  "kind": "expression"
3653
3697
  }
3654
3698
  },
3655
3699
  {
3656
- "name": "scroll-to-error",
3700
+ "name": "readonly",
3657
3701
  "default": "`false`",
3658
- "description": "是否在提交表单且校验不通过时滚动至错误的表单项",
3659
- "value": {
3660
- "type": "boolean",
3661
- "kind": "expression"
3662
- }
3663
- },
3664
- {
3665
- "name": "show-error",
3666
- "default": "`true`",
3667
- "description": "是否在校验不通过时标红输入框",
3702
+ "description": "是否只读",
3668
3703
  "value": {
3669
3704
  "type": "boolean",
3670
3705
  "kind": "expression"
3671
3706
  }
3672
3707
  },
3673
3708
  {
3674
- "name": "show-error-message",
3675
- "default": "`true`",
3676
- "description": "是否在校验不通过时在输入框下方展示错误提示",
3709
+ "name": "colon",
3710
+ "default": "`false`",
3711
+ "description": "是否在 label 后面添加冒号",
3677
3712
  "value": {
3678
3713
  "type": "boolean",
3679
3714
  "kind": "expression"
3680
3715
  }
3681
3716
  },
3682
3717
  {
3683
- "name": "submit-on-enter",
3684
- "default": "`true`",
3685
- "description": "是否在按下回车键时提交表单",
3718
+ "name": "required",
3719
+ "default": "`false`",
3720
+ "description": "是否显示表单必填星号",
3686
3721
  "value": {
3687
3722
  "type": "boolean",
3688
3723
  "kind": "expression"
3689
3724
  }
3690
- }
3691
- ]
3692
- },
3693
- {
3694
- "name": "van-goods-action",
3695
- "slots": [
3696
- {
3697
- "name": "default",
3698
- "description": "文本内容"
3699
- },
3700
- {
3701
- "name": "icon",
3702
- "description": "自定义图标"
3703
3725
  },
3704
3726
  {
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)",
3727
+ "name": "center",
3728
+ "default": "`false`",
3729
+ "description": "是否使内容垂直居中",
3715
3730
  "value": {
3716
3731
  "type": "boolean",
3717
3732
  "kind": "expression"
3718
3733
  }
3719
3734
  },
3720
3735
  {
3721
- "name": "text",
3722
- "default": "-",
3723
- "description": "按钮文字",
3736
+ "name": "clearable",
3737
+ "default": "`false`",
3738
+ "description": "是否启用清除图标,点击清除图标后会清空输入框",
3724
3739
  "value": {
3725
- "type": "string",
3740
+ "type": "boolean",
3726
3741
  "kind": "expression"
3727
3742
  }
3728
3743
  },
3729
3744
  {
3730
- "name": "icon",
3731
- "default": "-",
3732
- "description": "图标",
3745
+ "name": "clear-trigger",
3746
+ "default": "`focus`",
3747
+ "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
3733
3748
  "value": {
3734
3749
  "type": "string",
3735
3750
  "kind": "expression"
3736
3751
  }
3737
3752
  },
3738
3753
  {
3739
- "name": "color",
3740
- "default": "`#323233`",
3741
- "description": "图标颜色",
3754
+ "name": "clickable",
3755
+ "default": "`false`",
3756
+ "description": "是否开启点击反馈",
3742
3757
  "value": {
3743
- "type": "string",
3758
+ "type": "boolean",
3744
3759
  "kind": "expression"
3745
3760
  }
3746
3761
  },
3747
3762
  {
3748
- "name": "icon-class",
3749
- "default": "-",
3750
- "description": "图标额外类名",
3763
+ "name": "is-link",
3764
+ "default": "`false`",
3765
+ "description": "是否展示右侧箭头并开启点击反馈",
3751
3766
  "value": {
3752
- "type": "any",
3767
+ "type": "boolean",
3753
3768
  "kind": "expression"
3754
3769
  }
3755
3770
  },
3756
3771
  {
3757
- "name": "dot",
3772
+ "name": "autofocus",
3758
3773
  "default": "`false`",
3759
- "description": "是否显示图标右上角小红点",
3774
+ "description": "是否自动聚焦,iOS 系统不支持该属性",
3760
3775
  "value": {
3761
3776
  "type": "boolean",
3762
3777
  "kind": "expression"
3763
3778
  }
3764
3779
  },
3765
3780
  {
3766
- "name": "badge",
3767
- "default": "-",
3768
- "description": "图标右上角徽标的内容",
3781
+ "name": "show-word-limit",
3782
+ "default": "`false`",
3783
+ "description": "是否显示字数统计,需要设置`maxlength`属性",
3769
3784
  "value": {
3770
- "type": "number | string",
3785
+ "type": "boolean",
3771
3786
  "kind": "expression"
3772
3787
  }
3773
3788
  },
3774
3789
  {
3775
- "name": "info",
3776
- "default": "-",
3777
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
3790
+ "name": "error",
3791
+ "default": "`false`",
3792
+ "description": "是否将输入内容标红",
3778
3793
  "value": {
3779
- "type": "number | string",
3794
+ "type": "boolean",
3780
3795
  "kind": "expression"
3781
3796
  }
3782
3797
  },
3783
3798
  {
3784
- "name": "url",
3799
+ "name": "error-message",
3785
3800
  "default": "-",
3786
- "description": "点击后跳转的链接地址",
3801
+ "description": "底部错误提示文案,为空时不展示",
3787
3802
  "value": {
3788
3803
  "type": "string",
3789
3804
  "kind": "expression"
3790
3805
  }
3791
3806
  },
3792
3807
  {
3793
- "name": "to",
3808
+ "name": "formatter",
3794
3809
  "default": "-",
3795
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
3810
+ "description": "输入内容格式化函数",
3796
3811
  "value": {
3797
- "type": "string | object",
3812
+ "type": "Function",
3798
3813
  "kind": "expression"
3799
3814
  }
3800
3815
  },
3801
3816
  {
3802
- "name": "replace",
3803
- "default": "`false`",
3804
- "description": "是否在跳转时替换当前页面历史",
3817
+ "name": "format-trigger",
3818
+ "default": "`onChange`",
3819
+ "description": "格式化函数触发的时机,可选值为 `onBlur`",
3805
3820
  "value": {
3806
- "type": "boolean",
3821
+ "type": "string",
3807
3822
  "kind": "expression"
3808
3823
  }
3809
3824
  },
3810
3825
  {
3811
- "name": "text",
3812
- "default": "-",
3813
- "description": "按钮文字",
3826
+ "name": "arrow-direction",
3827
+ "default": "`right`",
3828
+ "description": "箭头方向,可选值为 `left` `up` `down`",
3814
3829
  "value": {
3815
3830
  "type": "string",
3816
3831
  "kind": "expression"
3817
3832
  }
3818
3833
  },
3819
3834
  {
3820
- "name": "type",
3821
- "default": "`default`",
3822
- "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
3835
+ "name": "label-class",
3836
+ "default": "-",
3837
+ "description": "左侧文本额外类名",
3838
+ "value": {
3839
+ "type": "any",
3840
+ "kind": "expression"
3841
+ }
3842
+ },
3843
+ {
3844
+ "name": "label-width",
3845
+ "default": "`6.2em`",
3846
+ "description": "左侧文本宽度,默认单位为`px`",
3847
+ "value": {
3848
+ "type": "number | string",
3849
+ "kind": "expression"
3850
+ }
3851
+ },
3852
+ {
3853
+ "name": "label-align",
3854
+ "default": "`left`",
3855
+ "description": "左侧文本对齐方式,可选值为 `center` `right`",
3823
3856
  "value": {
3824
3857
  "type": "string",
3825
3858
  "kind": "expression"
3826
3859
  }
3827
3860
  },
3828
3861
  {
3829
- "name": "color",
3830
- "default": "-",
3831
- "description": "按钮颜色,支持传入`linear-gradient`渐变色",
3862
+ "name": "input-align",
3863
+ "default": "`left`",
3864
+ "description": "输入框对齐方式,可选值为 `center` `right`",
3832
3865
  "value": {
3833
3866
  "type": "string",
3834
3867
  "kind": "expression"
3835
3868
  }
3836
3869
  },
3837
3870
  {
3838
- "name": "icon",
3839
- "default": "-",
3840
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
3871
+ "name": "error-message-align",
3872
+ "default": "`left`",
3873
+ "description": "错误提示文案对齐方式,可选值为 `center` `right`",
3841
3874
  "value": {
3842
3875
  "type": "string",
3843
3876
  "kind": "expression"
3844
3877
  }
3845
3878
  },
3846
3879
  {
3847
- "name": "disabled",
3880
+ "name": "autosize",
3848
3881
  "default": "`false`",
3849
- "description": "是否禁用按钮",
3882
+ "description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
3850
3883
  "value": {
3851
- "type": "boolean",
3884
+ "type": "boolean | object",
3852
3885
  "kind": "expression"
3853
3886
  }
3854
3887
  },
3855
3888
  {
3856
- "name": "loading",
3857
- "default": "`false`",
3858
- "description": "是否显示为加载状态",
3889
+ "name": "left-icon",
3890
+ "default": "-",
3891
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
3859
3892
  "value": {
3860
- "type": "boolean",
3893
+ "type": "string",
3861
3894
  "kind": "expression"
3862
3895
  }
3863
3896
  },
3864
3897
  {
3865
- "name": "url",
3898
+ "name": "right-icon",
3866
3899
  "default": "-",
3867
- "description": "点击后跳转的链接地址",
3900
+ "description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
3868
3901
  "value": {
3869
3902
  "type": "string",
3870
3903
  "kind": "expression"
3871
3904
  }
3872
3905
  },
3873
3906
  {
3874
- "name": "to",
3907
+ "name": "icon-prefix",
3908
+ "default": "`van-icon`",
3909
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
3910
+ "value": {
3911
+ "type": "string",
3912
+ "kind": "expression"
3913
+ }
3914
+ },
3915
+ {
3916
+ "name": "rules",
3875
3917
  "default": "-",
3876
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
3918
+ "description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
3877
3919
  "value": {
3878
- "type": "string | object",
3920
+ "type": "Rule[]",
3879
3921
  "kind": "expression"
3880
3922
  }
3881
3923
  },
3882
3924
  {
3883
- "name": "replace",
3884
- "default": "`false`",
3885
- "description": "是否在跳转时替换当前页面历史",
3925
+ "name": "autocomplete",
3926
+ "default": "-",
3927
+ "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
3886
3928
  "value": {
3887
- "type": "boolean",
3929
+ "type": "string",
3888
3930
  "kind": "expression"
3889
3931
  }
3890
3932
  }
3891
3933
  ]
3892
3934
  },
3893
3935
  {
3894
- "name": "van-field",
3936
+ "name": "van-form",
3895
3937
  "slots": [
3896
3938
  {
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": "自定义输入框最右侧的额外内容"
3939
+ "name": "default",
3940
+ "description": "表单内容"
3919
3941
  }
3920
3942
  ],
3921
3943
  "events": [
3922
3944
  {
3923
- "name": "input",
3924
- "description": "输入框内容变化时触发"
3925
- },
3926
- {
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": "点击左侧图标时触发"
3945
+ "name": "submit",
3946
+ "description": "提交表单且验证通过后触发"
3949
3947
  },
3950
3948
  {
3951
- "name": "click-right-icon",
3952
- "description": "点击右侧图标时触发"
3949
+ "name": "failed",
3950
+ "description": "提交表单且验证不通过后触发"
3953
3951
  }
3954
3952
  ],
3955
3953
  "attributes": [
3956
3954
  {
3957
- "name": "v-model (value)",
3958
- "default": "-",
3959
- "description": "当前输入的值",
3955
+ "name": "label-width",
3956
+ "default": "`6.2em`",
3957
+ "description": "表单项 label 宽度,默认单位为`px`",
3960
3958
  "value": {
3961
3959
  "type": "number | string",
3962
3960
  "kind": "expression"
3963
3961
  }
3964
3962
  },
3965
3963
  {
3966
- "name": "label",
3967
- "default": "-",
3968
- "description": "输入框左侧文本",
3969
- "value": {
3970
- "type": "string",
3971
- "kind": "expression"
3972
- }
3973
- },
3974
- {
3975
- "name": "name",
3976
- "default": "-",
3977
- "description": "名称,提交表单的标识符",
3964
+ "name": "label-align",
3965
+ "default": "`left`",
3966
+ "description": "表单项 label 对齐方式,可选值为 `center` `right`",
3978
3967
  "value": {
3979
3968
  "type": "string",
3980
3969
  "kind": "expression"
3981
3970
  }
3982
3971
  },
3983
3972
  {
3984
- "name": "type",
3985
- "default": "`text`",
3986
- "description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等",
3973
+ "name": "input-align",
3974
+ "default": "`left`",
3975
+ "description": "输入框对齐方式,可选值为 `center` `right`",
3987
3976
  "value": {
3988
3977
  "type": "string",
3989
3978
  "kind": "expression"
3990
3979
  }
3991
3980
  },
3992
3981
  {
3993
- "name": "size",
3994
- "default": "-",
3995
- "description": "大小,可选值为 `large`",
3982
+ "name": "error-message-align",
3983
+ "default": "`left`",
3984
+ "description": "错误提示文案对齐方式,可选值为 `center` `right`",
3996
3985
  "value": {
3997
3986
  "type": "string",
3998
3987
  "kind": "expression"
3999
3988
  }
4000
3989
  },
4001
- {
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": "输入框占位提示文字",
3990
+ {
3991
+ "name": "validate-trigger",
3992
+ "default": "`onBlur`",
3993
+ "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
4014
3994
  "value": {
4015
3995
  "type": "string",
4016
3996
  "kind": "expression"
4017
3997
  }
4018
3998
  },
4019
3999
  {
4020
- "name": "border",
4021
- "default": "`true`",
4022
- "description": "是否显示内边框",
4000
+ "name": "colon",
4001
+ "default": "`false`",
4002
+ "description": "是否在 label 后面添加冒号",
4023
4003
  "value": {
4024
4004
  "type": "boolean",
4025
4005
  "kind": "expression"
@@ -4028,7 +4008,7 @@
4028
4008
  {
4029
4009
  "name": "disabled",
4030
4010
  "default": "`false`",
4031
- "description": "是否禁用输入框",
4011
+ "description": "是否禁用表单中的所有输入框",
4032
4012
  "value": {
4033
4013
  "type": "boolean",
4034
4014
  "kind": "expression"
@@ -4037,234 +4017,254 @@
4037
4017
  {
4038
4018
  "name": "readonly",
4039
4019
  "default": "`false`",
4040
- "description": "是否只读",
4020
+ "description": "是否将表单中的所有输入框设置为只读",
4041
4021
  "value": {
4042
4022
  "type": "boolean",
4043
4023
  "kind": "expression"
4044
4024
  }
4045
4025
  },
4046
4026
  {
4047
- "name": "colon",
4027
+ "name": "validate-first",
4048
4028
  "default": "`false`",
4049
- "description": "是否在 label 后面添加冒号",
4029
+ "description": "是否在某一项校验不通过时停止校验",
4050
4030
  "value": {
4051
4031
  "type": "boolean",
4052
4032
  "kind": "expression"
4053
4033
  }
4054
4034
  },
4055
4035
  {
4056
- "name": "required",
4036
+ "name": "scroll-to-error",
4057
4037
  "default": "`false`",
4058
- "description": "是否显示表单必填星号",
4038
+ "description": "是否在提交表单且校验不通过时滚动至错误的表单项",
4059
4039
  "value": {
4060
4040
  "type": "boolean",
4061
4041
  "kind": "expression"
4062
4042
  }
4063
4043
  },
4064
4044
  {
4065
- "name": "center",
4066
- "default": "`false`",
4067
- "description": "是否使内容垂直居中",
4045
+ "name": "show-error",
4046
+ "default": "`true`",
4047
+ "description": "是否在校验不通过时标红输入框",
4068
4048
  "value": {
4069
4049
  "type": "boolean",
4070
4050
  "kind": "expression"
4071
4051
  }
4072
4052
  },
4073
4053
  {
4074
- "name": "clearable",
4075
- "default": "`false`",
4076
- "description": "是否启用清除图标,点击清除图标后会清空输入框",
4054
+ "name": "show-error-message",
4055
+ "default": "`true`",
4056
+ "description": "是否在校验不通过时在输入框下方展示错误提示",
4077
4057
  "value": {
4078
4058
  "type": "boolean",
4079
4059
  "kind": "expression"
4080
4060
  }
4081
4061
  },
4082
4062
  {
4083
- "name": "clear-trigger",
4084
- "default": "`focus`",
4085
- "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
4063
+ "name": "submit-on-enter",
4064
+ "default": "`true`",
4065
+ "description": "是否在按下回车键时提交表单",
4086
4066
  "value": {
4087
- "type": "string",
4067
+ "type": "boolean",
4088
4068
  "kind": "expression"
4089
4069
  }
4070
+ }
4071
+ ]
4072
+ },
4073
+ {
4074
+ "name": "van-goods-action",
4075
+ "slots": [
4076
+ {
4077
+ "name": "default",
4078
+ "description": "文本内容"
4090
4079
  },
4091
4080
  {
4092
- "name": "clickable",
4093
- "default": "`false`",
4094
- "description": "是否开启点击反馈",
4081
+ "name": "icon",
4082
+ "description": "自定义图标"
4083
+ },
4084
+ {
4085
+ "name": "default",
4086
+ "description": "按钮显示内容"
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)",
4095
4095
  "value": {
4096
4096
  "type": "boolean",
4097
4097
  "kind": "expression"
4098
4098
  }
4099
4099
  },
4100
4100
  {
4101
- "name": "is-link",
4102
- "default": "`false`",
4103
- "description": "是否展示右侧箭头并开启点击反馈",
4101
+ "name": "text",
4102
+ "default": "-",
4103
+ "description": "按钮文字",
4104
4104
  "value": {
4105
- "type": "boolean",
4105
+ "type": "string",
4106
4106
  "kind": "expression"
4107
4107
  }
4108
4108
  },
4109
4109
  {
4110
- "name": "autofocus",
4111
- "default": "`false`",
4112
- "description": "是否自动聚焦,iOS 系统不支持该属性",
4110
+ "name": "icon",
4111
+ "default": "-",
4112
+ "description": "图标",
4113
4113
  "value": {
4114
- "type": "boolean",
4114
+ "type": "string",
4115
4115
  "kind": "expression"
4116
4116
  }
4117
4117
  },
4118
4118
  {
4119
- "name": "show-word-limit",
4120
- "default": "`false`",
4121
- "description": "是否显示字数统计,需要设置`maxlength`属性",
4119
+ "name": "color",
4120
+ "default": "`#323233`",
4121
+ "description": "图标颜色",
4122
4122
  "value": {
4123
- "type": "boolean",
4123
+ "type": "string",
4124
4124
  "kind": "expression"
4125
4125
  }
4126
4126
  },
4127
4127
  {
4128
- "name": "error",
4129
- "default": "`false`",
4130
- "description": "是否将输入内容标红",
4128
+ "name": "icon-class",
4129
+ "default": "-",
4130
+ "description": "图标额外类名",
4131
4131
  "value": {
4132
- "type": "boolean",
4132
+ "type": "any",
4133
4133
  "kind": "expression"
4134
4134
  }
4135
4135
  },
4136
4136
  {
4137
- "name": "error-message",
4138
- "default": "-",
4139
- "description": "底部错误提示文案,为空时不展示",
4137
+ "name": "dot",
4138
+ "default": "`false`",
4139
+ "description": "是否显示图标右上角小红点",
4140
4140
  "value": {
4141
- "type": "string",
4141
+ "type": "boolean",
4142
4142
  "kind": "expression"
4143
4143
  }
4144
4144
  },
4145
4145
  {
4146
- "name": "formatter",
4146
+ "name": "badge",
4147
4147
  "default": "-",
4148
- "description": "输入内容格式化函数",
4148
+ "description": "图标右上角徽标的内容",
4149
4149
  "value": {
4150
- "type": "Function",
4150
+ "type": "number | string",
4151
4151
  "kind": "expression"
4152
4152
  }
4153
4153
  },
4154
4154
  {
4155
- "name": "format-trigger",
4156
- "default": "`onChange`",
4157
- "description": "格式化函数触发的时机,可选值为 `onBlur`",
4155
+ "name": "info",
4156
+ "default": "-",
4157
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4158
4158
  "value": {
4159
- "type": "string",
4159
+ "type": "number | string",
4160
4160
  "kind": "expression"
4161
4161
  }
4162
4162
  },
4163
4163
  {
4164
- "name": "arrow-direction",
4165
- "default": "`right`",
4166
- "description": "箭头方向,可选值为 `left` `up` `down`",
4164
+ "name": "url",
4165
+ "default": "-",
4166
+ "description": "点击后跳转的链接地址",
4167
4167
  "value": {
4168
4168
  "type": "string",
4169
4169
  "kind": "expression"
4170
4170
  }
4171
4171
  },
4172
4172
  {
4173
- "name": "label-class",
4173
+ "name": "to",
4174
4174
  "default": "-",
4175
- "description": "左侧文本额外类名",
4175
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
4176
4176
  "value": {
4177
- "type": "any",
4177
+ "type": "string | object",
4178
4178
  "kind": "expression"
4179
4179
  }
4180
4180
  },
4181
4181
  {
4182
- "name": "label-width",
4183
- "default": "`6.2em`",
4184
- "description": "左侧文本宽度,默认单位为`px`",
4182
+ "name": "replace",
4183
+ "default": "`false`",
4184
+ "description": "是否在跳转时替换当前页面历史",
4185
4185
  "value": {
4186
- "type": "number | string",
4186
+ "type": "boolean",
4187
4187
  "kind": "expression"
4188
4188
  }
4189
4189
  },
4190
4190
  {
4191
- "name": "label-align",
4192
- "default": "`left`",
4193
- "description": "左侧文本对齐方式,可选值为 `center` `right`",
4191
+ "name": "text",
4192
+ "default": "-",
4193
+ "description": "按钮文字",
4194
4194
  "value": {
4195
4195
  "type": "string",
4196
4196
  "kind": "expression"
4197
4197
  }
4198
4198
  },
4199
4199
  {
4200
- "name": "input-align",
4201
- "default": "`left`",
4202
- "description": "输入框对齐方式,可选值为 `center` `right`",
4200
+ "name": "type",
4201
+ "default": "`default`",
4202
+ "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
4203
4203
  "value": {
4204
4204
  "type": "string",
4205
4205
  "kind": "expression"
4206
4206
  }
4207
4207
  },
4208
4208
  {
4209
- "name": "error-message-align",
4210
- "default": "`left`",
4211
- "description": "错误提示文案对齐方式,可选值为 `center` `right`",
4209
+ "name": "color",
4210
+ "default": "-",
4211
+ "description": "按钮颜色,支持传入`linear-gradient`渐变色",
4212
4212
  "value": {
4213
4213
  "type": "string",
4214
4214
  "kind": "expression"
4215
4215
  }
4216
4216
  },
4217
4217
  {
4218
- "name": "autosize",
4219
- "default": "`false`",
4220
- "description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
4218
+ "name": "icon",
4219
+ "default": "-",
4220
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
4221
4221
  "value": {
4222
- "type": "boolean | object",
4222
+ "type": "string",
4223
4223
  "kind": "expression"
4224
4224
  }
4225
4225
  },
4226
4226
  {
4227
- "name": "left-icon",
4228
- "default": "-",
4229
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
4227
+ "name": "disabled",
4228
+ "default": "`false`",
4229
+ "description": "是否禁用按钮",
4230
4230
  "value": {
4231
- "type": "string",
4231
+ "type": "boolean",
4232
4232
  "kind": "expression"
4233
4233
  }
4234
4234
  },
4235
4235
  {
4236
- "name": "right-icon",
4237
- "default": "-",
4238
- "description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
4236
+ "name": "loading",
4237
+ "default": "`false`",
4238
+ "description": "是否显示为加载状态",
4239
4239
  "value": {
4240
- "type": "string",
4240
+ "type": "boolean",
4241
4241
  "kind": "expression"
4242
4242
  }
4243
4243
  },
4244
4244
  {
4245
- "name": "icon-prefix",
4246
- "default": "`van-icon`",
4247
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4245
+ "name": "url",
4246
+ "default": "-",
4247
+ "description": "点击后跳转的链接地址",
4248
4248
  "value": {
4249
4249
  "type": "string",
4250
4250
  "kind": "expression"
4251
4251
  }
4252
4252
  },
4253
4253
  {
4254
- "name": "rules",
4254
+ "name": "to",
4255
4255
  "default": "-",
4256
- "description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
4256
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
4257
4257
  "value": {
4258
- "type": "Rule[]",
4258
+ "type": "string | object",
4259
4259
  "kind": "expression"
4260
4260
  }
4261
4261
  },
4262
4262
  {
4263
- "name": "autocomplete",
4264
- "default": "-",
4265
- "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
4263
+ "name": "replace",
4264
+ "default": "`false`",
4265
+ "description": "是否在跳转时替换当前页面历史",
4266
4266
  "value": {
4267
- "type": "string",
4267
+ "type": "boolean",
4268
4268
  "kind": "expression"
4269
4269
  }
4270
4270
  }
@@ -5712,16 +5712,72 @@
5712
5712
  "default": "`5`",
5713
5713
  "description": "显示的页码个数",
5714
5714
  "value": {
5715
- "type": "number | string",
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": "状态",
5770
+ "value": {
5771
+ "type": "string",
5716
5772
  "kind": "expression"
5717
5773
  }
5718
5774
  },
5719
5775
  {
5720
- "name": "force-ellipses",
5721
- "default": "`false`",
5722
- "description": "是否显示省略号",
5776
+ "name": "icon",
5777
+ "default": "-",
5778
+ "description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接",
5723
5779
  "value": {
5724
- "type": "boolean",
5780
+ "type": "string",
5725
5781
  "kind": "expression"
5726
5782
  }
5727
5783
  }
@@ -5977,62 +6033,6 @@
5977
6033
  }
5978
6034
  ]
5979
6035
  },
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": [
@@ -6817,7 +6817,7 @@
6817
6817
  {
6818
6818
  "name": "readonly",
6819
6819
  "default": "`false`",
6820
- "description": "是否为只读状态 \b",
6820
+ "description": "是否为只读状态",
6821
6821
  "value": {
6822
6822
  "type": "boolean",
6823
6823
  "kind": "expression"
@@ -9342,6 +9342,99 @@
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
+ },
9345
9438
  {
9346
9439
  "name": "van-toast",
9347
9440
  "slots": [],
@@ -9666,99 +9759,6 @@
9666
9759
  }
9667
9760
  }
9668
9761
  ]
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": [],