vant 3.6.10 → 3.6.12

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,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": "3.6.10",
5
+ "version": "3.6.12",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -261,6 +261,280 @@
261
261
  }
262
262
  ]
263
263
  },
264
+ {
265
+ "name": "van-action-sheet",
266
+ "slots": [
267
+ {
268
+ "name": "default",
269
+ "description": "Custom content"
270
+ },
271
+ {
272
+ "name": "description",
273
+ "description": "Custom description above the options"
274
+ },
275
+ {
276
+ "name": "cancel",
277
+ "description": "Custom the content of cancel button"
278
+ },
279
+ {
280
+ "name": "action",
281
+ "description": "Custom the content of action"
282
+ }
283
+ ],
284
+ "events": [
285
+ {
286
+ "name": "select",
287
+ "description": "Emitted when an option is clicked",
288
+ "arguments": [
289
+ {
290
+ "name": "action",
291
+ "type": "ActionSheetAction"
292
+ },
293
+ {
294
+ "name": "index",
295
+ "type": "number"
296
+ }
297
+ ]
298
+ },
299
+ {
300
+ "name": "cancel",
301
+ "description": "Emitted when the cancel button is clicked",
302
+ "arguments": []
303
+ },
304
+ {
305
+ "name": "open",
306
+ "description": "Emitted when opening ActionSheet",
307
+ "arguments": []
308
+ },
309
+ {
310
+ "name": "close",
311
+ "description": "Emitted when closing ActionSheet",
312
+ "arguments": []
313
+ },
314
+ {
315
+ "name": "opened",
316
+ "description": "Emitted when ActionSheet is opened",
317
+ "arguments": []
318
+ },
319
+ {
320
+ "name": "closed",
321
+ "description": "Emitted when ActionSheet is closed",
322
+ "arguments": []
323
+ },
324
+ {
325
+ "name": "click-overlay",
326
+ "description": "Emitted when overlay is clicked",
327
+ "arguments": [
328
+ {
329
+ "name": "event",
330
+ "type": "MouseEvent"
331
+ }
332
+ ]
333
+ }
334
+ ],
335
+ "attributes": [
336
+ {
337
+ "name": "v-model:show",
338
+ "default": "`false`",
339
+ "description": "Whether to show ActionSheet",
340
+ "options": [],
341
+ "value": {
342
+ "type": "boolean",
343
+ "kind": "expression"
344
+ }
345
+ },
346
+ {
347
+ "name": "actions",
348
+ "default": "`[]`",
349
+ "description": "Options",
350
+ "options": [],
351
+ "value": {
352
+ "type": "ActionSheetAction[]",
353
+ "kind": "expression"
354
+ }
355
+ },
356
+ {
357
+ "name": "title",
358
+ "default": "-",
359
+ "description": "Title",
360
+ "options": [],
361
+ "value": {
362
+ "type": "string",
363
+ "kind": "expression"
364
+ }
365
+ },
366
+ {
367
+ "name": "cancel-text",
368
+ "default": "-",
369
+ "description": "Text of cancel button",
370
+ "options": [],
371
+ "value": {
372
+ "type": "string",
373
+ "kind": "expression"
374
+ }
375
+ },
376
+ {
377
+ "name": "description",
378
+ "default": "-",
379
+ "description": "Description above the options",
380
+ "options": [],
381
+ "value": {
382
+ "type": "string",
383
+ "kind": "expression"
384
+ }
385
+ },
386
+ {
387
+ "name": "closeable",
388
+ "default": "`true`",
389
+ "description": "Whether to show close icon",
390
+ "options": [],
391
+ "value": {
392
+ "type": "boolean",
393
+ "kind": "expression"
394
+ }
395
+ },
396
+ {
397
+ "name": "close-icon",
398
+ "default": "`cross`",
399
+ "description": "Close icon name",
400
+ "options": [],
401
+ "value": {
402
+ "type": "string",
403
+ "kind": "expression"
404
+ }
405
+ },
406
+ {
407
+ "name": "duration",
408
+ "default": "`0.3`",
409
+ "description": "Transition duration, unit second",
410
+ "options": [],
411
+ "value": {
412
+ "type": "number | string",
413
+ "kind": "expression"
414
+ }
415
+ },
416
+ {
417
+ "name": "round",
418
+ "default": "`true`",
419
+ "description": "Whether to show round corner",
420
+ "options": [],
421
+ "value": {
422
+ "type": "boolean",
423
+ "kind": "expression"
424
+ }
425
+ },
426
+ {
427
+ "name": "overlay",
428
+ "default": "`true`",
429
+ "description": "Whether to show overlay",
430
+ "options": [],
431
+ "value": {
432
+ "type": "boolean",
433
+ "kind": "expression"
434
+ }
435
+ },
436
+ {
437
+ "name": "overlay-class",
438
+ "default": "-",
439
+ "description": "Custom overlay class",
440
+ "options": [],
441
+ "value": {
442
+ "type": "string | Array | object",
443
+ "kind": "expression"
444
+ }
445
+ },
446
+ {
447
+ "name": "overlay-style",
448
+ "default": "-",
449
+ "description": "Custom overlay style",
450
+ "options": [],
451
+ "value": {
452
+ "type": "object",
453
+ "kind": "expression"
454
+ }
455
+ },
456
+ {
457
+ "name": "lock-scroll",
458
+ "default": "`true`",
459
+ "description": "Whether to lock background scroll",
460
+ "options": [],
461
+ "value": {
462
+ "type": "boolean",
463
+ "kind": "expression"
464
+ }
465
+ },
466
+ {
467
+ "name": "lazy-render",
468
+ "default": "`true`",
469
+ "description": "Whether to lazy render util appeared",
470
+ "options": [],
471
+ "value": {
472
+ "type": "boolean",
473
+ "kind": "expression"
474
+ }
475
+ },
476
+ {
477
+ "name": "close-on-popstate",
478
+ "default": "`true`",
479
+ "description": "Whether to close when popstate",
480
+ "options": [],
481
+ "value": {
482
+ "type": "boolean",
483
+ "kind": "expression"
484
+ }
485
+ },
486
+ {
487
+ "name": "close-on-click-action",
488
+ "default": "`false`",
489
+ "description": "Whether to close when an action is clicked",
490
+ "options": [],
491
+ "value": {
492
+ "type": "boolean",
493
+ "kind": "expression"
494
+ }
495
+ },
496
+ {
497
+ "name": "close-on-click-overlay",
498
+ "default": "`true`",
499
+ "description": "Whether to close when overlay is clicked",
500
+ "options": [],
501
+ "value": {
502
+ "type": "boolean",
503
+ "kind": "expression"
504
+ }
505
+ },
506
+ {
507
+ "name": "safe-area-inset-bottom",
508
+ "default": "`true`",
509
+ "description": "Whether to enable bottom safe area adaptation",
510
+ "options": [],
511
+ "value": {
512
+ "type": "boolean",
513
+ "kind": "expression"
514
+ }
515
+ },
516
+ {
517
+ "name": "teleport",
518
+ "default": "-",
519
+ "description": "Specifies a target element where ActionSheet will be mounted",
520
+ "options": [],
521
+ "value": {
522
+ "type": "string | Element",
523
+ "kind": "expression"
524
+ }
525
+ },
526
+ {
527
+ "name": "before-close",
528
+ "default": "-",
529
+ "description": "Callback function before close",
530
+ "options": [],
531
+ "value": {
532
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
533
+ "kind": "expression"
534
+ }
535
+ }
536
+ ]
537
+ },
264
538
  {
265
539
  "name": "van-address-edit",
266
540
  "slots": [
@@ -570,207 +844,41 @@
570
844
  ]
571
845
  },
572
846
  {
573
- "name": "van-address-list",
847
+ "name": "van-area",
574
848
  "slots": [
575
849
  {
576
- "name": "default",
577
- "description": "Custom content after list"
578
- },
579
- {
580
- "name": "top",
581
- "description": "Custom content before list"
582
- },
583
- {
584
- "name": "item-bottom",
585
- "description": "Custom content after list item"
586
- },
587
- {
588
- "name": "tag",
589
- "description": "Custom tag of list item"
590
- }
591
- ],
592
- "events": [
593
- {
594
- "name": "add",
595
- "description": "Emitted when the add button is clicked",
596
- "arguments": []
597
- },
598
- {
599
- "name": "edit",
600
- "description": "Emitted when the edit icon of address is clicked",
601
- "arguments": [
602
- {
603
- "name": "item",
604
- "type": "Address"
605
- },
606
- {
607
- "name": "index",
608
- "type": "number"
609
- }
610
- ]
611
- },
612
- {
613
- "name": "select",
614
- "description": "Emitted when an address is selected",
615
- "arguments": [
616
- {
617
- "name": "item",
618
- "type": "Address"
619
- },
620
- {
621
- "name": "index",
622
- "type": "number"
623
- }
624
- ]
625
- },
626
- {
627
- "name": "edit-disabled",
628
- "description": "Emitted when the edit icon of disabled address is clicked",
629
- "arguments": [
630
- {
631
- "name": "item",
632
- "type": "Address"
633
- },
634
- {
635
- "name": "index",
636
- "type": "number"
637
- }
638
- ]
639
- },
640
- {
641
- "name": "select-disabled",
642
- "description": "Emitted when a disabled address is selected",
643
- "arguments": [
644
- {
645
- "name": "item",
646
- "type": "Address"
647
- },
648
- {
649
- "name": "index",
650
- "type": "number"
651
- }
652
- ]
653
- },
654
- {
655
- "name": "click-item",
656
- "description": "Emitted when an address item is clicked",
657
- "arguments": [
658
- {
659
- "name": "item",
660
- "type": "Address"
661
- },
662
- {
663
- "name": "index",
664
- "type": "number"
665
- }
666
- ]
667
- }
668
- ],
669
- "attributes": [
670
- {
671
- "name": "v-model",
672
- "default": "-",
673
- "description": "Id of chosen address",
674
- "options": [],
675
- "value": {
676
- "type": "string",
677
- "kind": "expression"
678
- }
679
- },
680
- {
681
- "name": "list",
682
- "default": "`[]`",
683
- "description": "Address list",
684
- "options": [],
685
- "value": {
686
- "type": "Address[]",
687
- "kind": "expression"
688
- }
689
- },
690
- {
691
- "name": "disabled-list",
692
- "default": "`[]`",
693
- "description": "Disabled address list",
694
- "options": [],
695
- "value": {
696
- "type": "Address[]",
697
- "kind": "expression"
698
- }
699
- },
700
- {
701
- "name": "disabled-text",
702
- "default": "-",
703
- "description": "Disabled text",
704
- "options": [],
705
- "value": {
706
- "type": "string",
707
- "kind": "expression"
708
- }
709
- },
710
- {
711
- "name": "switchable",
712
- "default": "`true`",
713
- "description": "Whether to allow switch address",
714
- "options": [],
715
- "value": {
716
- "type": "boolean",
717
- "kind": "expression"
718
- }
850
+ "name": "toolbar",
851
+ "description": "Custom toolbar content"
719
852
  },
720
853
  {
721
- "name": "add-button-text",
722
- "default": "`Add new address`",
723
- "description": "Add button text",
724
- "options": [],
725
- "value": {
726
- "type": "string",
727
- "kind": "expression"
728
- }
854
+ "name": "title",
855
+ "description": "Custom title"
729
856
  },
730
857
  {
731
- "name": "default-tag-text",
732
- "default": "-",
733
- "description": "Default tag text",
734
- "options": [],
735
- "value": {
736
- "type": "string",
737
- "kind": "expression"
738
- }
739
- }
740
- ]
741
- },
742
- {
743
- "name": "van-action-sheet",
744
- "slots": [
745
- {
746
- "name": "default",
747
- "description": "Custom content"
858
+ "name": "confirm",
859
+ "description": "Custom confirm button text"
748
860
  },
749
861
  {
750
- "name": "description",
751
- "description": "Custom description above the options"
862
+ "name": "cancel",
863
+ "description": "Custom cancel button text"
752
864
  },
753
865
  {
754
- "name": "cancel",
755
- "description": "Custom the content of cancel button"
866
+ "name": "columns-top",
867
+ "description": "Custom content above columns"
756
868
  },
757
869
  {
758
- "name": "action",
759
- "description": "Custom the content of action"
870
+ "name": "columns-bottom",
871
+ "description": "Custom content below columns"
760
872
  }
761
873
  ],
762
874
  "events": [
763
875
  {
764
- "name": "select",
765
- "description": "Emitted when an option is clicked",
876
+ "name": "confirm",
877
+ "description": "Emitted when the confirm button is clicked",
766
878
  "arguments": [
767
879
  {
768
- "name": "action",
769
- "type": "ActionSheetAction"
770
- },
771
- {
772
- "name": "index",
773
- "type": "number"
880
+ "name": "result",
881
+ "type": "ConfirmResult"
774
882
  }
775
883
  ]
776
884
  },
@@ -780,61 +888,25 @@
780
888
  "arguments": []
781
889
  },
782
890
  {
783
- "name": "open",
784
- "description": "Emitted when opening ActionSheet",
785
- "arguments": []
786
- },
787
- {
788
- "name": "close",
789
- "description": "Emitted when closing ActionSheet",
790
- "arguments": []
791
- },
792
- {
793
- "name": "opened",
794
- "description": "Emitted when ActionSheet is opened",
795
- "arguments": []
796
- },
797
- {
798
- "name": "closed",
799
- "description": "Emitted when ActionSheet is closed",
800
- "arguments": []
801
- },
802
- {
803
- "name": "click-overlay",
804
- "description": "Emitted when overlay is clicked",
891
+ "name": "change",
892
+ "description": "Emitted when current option changed",
805
893
  "arguments": [
806
894
  {
807
- "name": "event",
808
- "type": "MouseEvent"
895
+ "name": "current",
896
+ "type": "values"
897
+ },
898
+ {
899
+ "name": "column",
900
+ "type": "index"
809
901
  }
810
902
  ]
811
903
  }
812
904
  ],
813
905
  "attributes": [
814
906
  {
815
- "name": "v-model:show",
816
- "default": "`false`",
817
- "description": "Whether to show ActionSheet",
818
- "options": [],
819
- "value": {
820
- "type": "boolean",
821
- "kind": "expression"
822
- }
823
- },
824
- {
825
- "name": "actions",
826
- "default": "`[]`",
827
- "description": "Options",
828
- "options": [],
829
- "value": {
830
- "type": "ActionSheetAction[]",
831
- "kind": "expression"
832
- }
833
- },
834
- {
835
- "name": "title",
907
+ "name": "value",
836
908
  "default": "-",
837
- "description": "Title",
909
+ "description": "the `code` of selected area",
838
910
  "options": [],
839
911
  "value": {
840
912
  "type": "string",
@@ -842,9 +914,9 @@
842
914
  }
843
915
  },
844
916
  {
845
- "name": "cancel-text",
917
+ "name": "title",
846
918
  "default": "-",
847
- "description": "Text of cancel button",
919
+ "description": "Toolbar title",
848
920
  "options": [],
849
921
  "value": {
850
922
  "type": "string",
@@ -852,9 +924,9 @@
852
924
  }
853
925
  },
854
926
  {
855
- "name": "description",
856
- "default": "-",
857
- "description": "Description above the options",
927
+ "name": "confirm-button-text",
928
+ "default": "`Confirm`",
929
+ "description": "Text of confirm button",
858
930
  "options": [],
859
931
  "value": {
860
932
  "type": "string",
@@ -862,19 +934,9 @@
862
934
  }
863
935
  },
864
936
  {
865
- "name": "closeable",
866
- "default": "`true`",
867
- "description": "Whether to show close icon",
868
- "options": [],
869
- "value": {
870
- "type": "boolean",
871
- "kind": "expression"
872
- }
873
- },
874
- {
875
- "name": "close-icon",
876
- "default": "`cross`",
877
- "description": "Close icon name",
937
+ "name": "cancel-button-text",
938
+ "default": "`Cancel`",
939
+ "description": "Text of cancel button",
878
940
  "options": [],
879
941
  "value": {
880
942
  "type": "string",
@@ -882,49 +944,9 @@
882
944
  }
883
945
  },
884
946
  {
885
- "name": "duration",
886
- "default": "`0.3`",
887
- "description": "Transition duration, unit second",
888
- "options": [],
889
- "value": {
890
- "type": "number | string",
891
- "kind": "expression"
892
- }
893
- },
894
- {
895
- "name": "round",
896
- "default": "`true`",
897
- "description": "Whether to show round corner",
898
- "options": [],
899
- "value": {
900
- "type": "boolean",
901
- "kind": "expression"
902
- }
903
- },
904
- {
905
- "name": "overlay",
906
- "default": "`true`",
907
- "description": "Whether to show overlay",
908
- "options": [],
909
- "value": {
910
- "type": "boolean",
911
- "kind": "expression"
912
- }
913
- },
914
- {
915
- "name": "overlay-class",
916
- "default": "-",
917
- "description": "Custom overlay class",
918
- "options": [],
919
- "value": {
920
- "type": "string | Array | object",
921
- "kind": "expression"
922
- }
923
- },
924
- {
925
- "name": "overlay-style",
947
+ "name": "area-list",
926
948
  "default": "-",
927
- "description": "Custom overlay style",
949
+ "description": "Area list data",
928
950
  "options": [],
929
951
  "value": {
930
952
  "type": "object",
@@ -932,19 +954,19 @@
932
954
  }
933
955
  },
934
956
  {
935
- "name": "lock-scroll",
936
- "default": "`true`",
937
- "description": "Whether to lock background scroll",
957
+ "name": "columns-placeholder",
958
+ "default": "`[]`",
959
+ "description": "Placeholder of columns",
938
960
  "options": [],
939
961
  "value": {
940
- "type": "boolean",
962
+ "type": "string[]",
941
963
  "kind": "expression"
942
964
  }
943
965
  },
944
966
  {
945
- "name": "lazy-render",
946
- "default": "`true`",
947
- "description": "Whether to lazy render util appeared",
967
+ "name": "loading",
968
+ "default": "`false`",
969
+ "description": "Whether to show loading prompt",
948
970
  "options": [],
949
971
  "value": {
950
972
  "type": "boolean",
@@ -952,9 +974,9 @@
952
974
  }
953
975
  },
954
976
  {
955
- "name": "close-on-popstate",
956
- "default": "`true`",
957
- "description": "Whether to close when popstate",
977
+ "name": "readonly",
978
+ "default": "`false`",
979
+ "description": "Whether to be readonly",
958
980
  "options": [],
959
981
  "value": {
960
982
  "type": "boolean",
@@ -962,52 +984,52 @@
962
984
  }
963
985
  },
964
986
  {
965
- "name": "close-on-click-action",
966
- "default": "`false`",
967
- "description": "Whether to close when an action is clicked",
987
+ "name": "item-height",
988
+ "default": "`44`",
989
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
968
990
  "options": [],
969
991
  "value": {
970
- "type": "boolean",
992
+ "type": "number | string",
971
993
  "kind": "expression"
972
994
  }
973
995
  },
974
996
  {
975
- "name": "close-on-click-overlay",
976
- "default": "`true`",
977
- "description": "Whether to close when overlay is clicked",
997
+ "name": "columns-num",
998
+ "default": "`3`",
999
+ "description": "Level of picker",
978
1000
  "options": [],
979
1001
  "value": {
980
- "type": "boolean",
1002
+ "type": "number | string",
981
1003
  "kind": "expression"
982
1004
  }
983
1005
  },
984
1006
  {
985
- "name": "safe-area-inset-bottom",
986
- "default": "`true`",
987
- "description": "Whether to enable bottom safe area adaptation",
1007
+ "name": "visible-item-count",
1008
+ "default": "`6`",
1009
+ "description": "Count of visible columns",
988
1010
  "options": [],
989
1011
  "value": {
990
- "type": "boolean",
1012
+ "type": "number | string",
991
1013
  "kind": "expression"
992
1014
  }
993
1015
  },
994
1016
  {
995
- "name": "teleport",
996
- "default": "-",
997
- "description": "Specifies a target element where ActionSheet will be mounted",
1017
+ "name": "swipe-duration",
1018
+ "default": "`1000`",
1019
+ "description": "Duration of the momentum animation, unit `ms`",
998
1020
  "options": [],
999
1021
  "value": {
1000
- "type": "string | Element",
1022
+ "type": "number | string",
1001
1023
  "kind": "expression"
1002
1024
  }
1003
1025
  },
1004
1026
  {
1005
- "name": "before-close",
1027
+ "name": "is-oversea-code",
1006
1028
  "default": "-",
1007
- "description": "Callback function before close",
1029
+ "description": "The method to validate oversea code",
1008
1030
  "options": [],
1009
1031
  "value": {
1010
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
1032
+ "type": "() => boolean",
1011
1033
  "kind": "expression"
1012
1034
  }
1013
1035
  }
@@ -1100,99 +1122,107 @@
1100
1122
  ]
1101
1123
  },
1102
1124
  {
1103
- "name": "van-area",
1125
+ "name": "van-address-list",
1104
1126
  "slots": [
1105
1127
  {
1106
- "name": "toolbar",
1107
- "description": "Custom toolbar content"
1128
+ "name": "default",
1129
+ "description": "Custom content after list"
1108
1130
  },
1109
1131
  {
1110
- "name": "title",
1111
- "description": "Custom title"
1132
+ "name": "top",
1133
+ "description": "Custom content before list"
1112
1134
  },
1113
1135
  {
1114
- "name": "confirm",
1115
- "description": "Custom confirm button text"
1136
+ "name": "item-bottom",
1137
+ "description": "Custom content after list item"
1116
1138
  },
1117
1139
  {
1118
- "name": "cancel",
1119
- "description": "Custom cancel button text"
1140
+ "name": "tag",
1141
+ "description": "Custom tag of list item"
1142
+ }
1143
+ ],
1144
+ "events": [
1145
+ {
1146
+ "name": "add",
1147
+ "description": "Emitted when the add button is clicked",
1148
+ "arguments": []
1120
1149
  },
1121
1150
  {
1122
- "name": "columns-top",
1123
- "description": "Custom content above columns"
1151
+ "name": "edit",
1152
+ "description": "Emitted when the edit icon of address is clicked",
1153
+ "arguments": [
1154
+ {
1155
+ "name": "item",
1156
+ "type": "Address"
1157
+ },
1158
+ {
1159
+ "name": "index",
1160
+ "type": "number"
1161
+ }
1162
+ ]
1124
1163
  },
1125
1164
  {
1126
- "name": "columns-bottom",
1127
- "description": "Custom content below columns"
1128
- }
1129
- ],
1130
- "events": [
1165
+ "name": "select",
1166
+ "description": "Emitted when an address is selected",
1167
+ "arguments": [
1168
+ {
1169
+ "name": "item",
1170
+ "type": "Address"
1171
+ },
1172
+ {
1173
+ "name": "index",
1174
+ "type": "number"
1175
+ }
1176
+ ]
1177
+ },
1131
1178
  {
1132
- "name": "confirm",
1133
- "description": "Emitted when the confirm button is clicked",
1179
+ "name": "edit-disabled",
1180
+ "description": "Emitted when the edit icon of disabled address is clicked",
1134
1181
  "arguments": [
1135
1182
  {
1136
- "name": "result",
1137
- "type": "ConfirmResult"
1183
+ "name": "item",
1184
+ "type": "Address"
1185
+ },
1186
+ {
1187
+ "name": "index",
1188
+ "type": "number"
1138
1189
  }
1139
1190
  ]
1140
1191
  },
1141
1192
  {
1142
- "name": "cancel",
1143
- "description": "Emitted when the cancel button is clicked",
1144
- "arguments": []
1193
+ "name": "select-disabled",
1194
+ "description": "Emitted when a disabled address is selected",
1195
+ "arguments": [
1196
+ {
1197
+ "name": "item",
1198
+ "type": "Address"
1199
+ },
1200
+ {
1201
+ "name": "index",
1202
+ "type": "number"
1203
+ }
1204
+ ]
1145
1205
  },
1146
1206
  {
1147
- "name": "change",
1148
- "description": "Emitted when current option changed",
1207
+ "name": "click-item",
1208
+ "description": "Emitted when an address item is clicked",
1149
1209
  "arguments": [
1150
1210
  {
1151
- "name": "current",
1152
- "type": "values"
1211
+ "name": "item",
1212
+ "type": "Address"
1153
1213
  },
1154
1214
  {
1155
- "name": "column",
1156
- "type": "index"
1215
+ "name": "index",
1216
+ "type": "number"
1157
1217
  }
1158
1218
  ]
1159
1219
  }
1160
1220
  ],
1161
1221
  "attributes": [
1162
1222
  {
1163
- "name": "value",
1164
- "default": "-",
1165
- "description": "the `code` of selected area",
1166
- "options": [],
1167
- "value": {
1168
- "type": "string",
1169
- "kind": "expression"
1170
- }
1171
- },
1172
- {
1173
- "name": "title",
1223
+ "name": "v-model",
1174
1224
  "default": "-",
1175
- "description": "Toolbar title",
1176
- "options": [],
1177
- "value": {
1178
- "type": "string",
1179
- "kind": "expression"
1180
- }
1181
- },
1182
- {
1183
- "name": "confirm-button-text",
1184
- "default": "`Confirm`",
1185
- "description": "Text of confirm button",
1186
- "options": [],
1187
- "value": {
1188
- "type": "string",
1189
- "kind": "expression"
1190
- }
1191
- },
1192
- {
1193
- "name": "cancel-button-text",
1194
- "default": "`Cancel`",
1195
- "description": "Text of cancel button",
1225
+ "description": "Id of chosen address",
1196
1226
  "options": [],
1197
1227
  "value": {
1198
1228
  "type": "string",
@@ -1200,39 +1230,39 @@
1200
1230
  }
1201
1231
  },
1202
1232
  {
1203
- "name": "area-list",
1204
- "default": "-",
1205
- "description": "Area list data",
1233
+ "name": "list",
1234
+ "default": "`[]`",
1235
+ "description": "Address list",
1206
1236
  "options": [],
1207
1237
  "value": {
1208
- "type": "object",
1238
+ "type": "Address[]",
1209
1239
  "kind": "expression"
1210
1240
  }
1211
1241
  },
1212
1242
  {
1213
- "name": "columns-placeholder",
1243
+ "name": "disabled-list",
1214
1244
  "default": "`[]`",
1215
- "description": "Placeholder of columns",
1245
+ "description": "Disabled address list",
1216
1246
  "options": [],
1217
1247
  "value": {
1218
- "type": "string[]",
1248
+ "type": "Address[]",
1219
1249
  "kind": "expression"
1220
1250
  }
1221
1251
  },
1222
1252
  {
1223
- "name": "loading",
1224
- "default": "`false`",
1225
- "description": "Whether to show loading prompt",
1253
+ "name": "disabled-text",
1254
+ "default": "-",
1255
+ "description": "Disabled text",
1226
1256
  "options": [],
1227
1257
  "value": {
1228
- "type": "boolean",
1258
+ "type": "string",
1229
1259
  "kind": "expression"
1230
1260
  }
1231
1261
  },
1232
1262
  {
1233
- "name": "readonly",
1234
- "default": "`false`",
1235
- "description": "Whether to be readonly",
1263
+ "name": "switchable",
1264
+ "default": "`true`",
1265
+ "description": "Whether to allow switch address",
1236
1266
  "options": [],
1237
1267
  "value": {
1238
1268
  "type": "boolean",
@@ -1240,52 +1270,22 @@
1240
1270
  }
1241
1271
  },
1242
1272
  {
1243
- "name": "item-height",
1244
- "default": "`44`",
1245
- "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
1246
- "options": [],
1247
- "value": {
1248
- "type": "number | string",
1249
- "kind": "expression"
1250
- }
1251
- },
1252
- {
1253
- "name": "columns-num",
1254
- "default": "`3`",
1255
- "description": "Level of picker",
1256
- "options": [],
1257
- "value": {
1258
- "type": "number | string",
1259
- "kind": "expression"
1260
- }
1261
- },
1262
- {
1263
- "name": "visible-item-count",
1264
- "default": "`6`",
1265
- "description": "Count of visible columns",
1266
- "options": [],
1267
- "value": {
1268
- "type": "number | string",
1269
- "kind": "expression"
1270
- }
1271
- },
1272
- {
1273
- "name": "swipe-duration",
1274
- "default": "`1000`",
1275
- "description": "Duration of the momentum animation, unit `ms`",
1273
+ "name": "add-button-text",
1274
+ "default": "`Add new address`",
1275
+ "description": "Add button text",
1276
1276
  "options": [],
1277
1277
  "value": {
1278
- "type": "number | string",
1278
+ "type": "string",
1279
1279
  "kind": "expression"
1280
1280
  }
1281
1281
  },
1282
1282
  {
1283
- "name": "is-oversea-code",
1283
+ "name": "default-tag-text",
1284
1284
  "default": "-",
1285
- "description": "The method to validate oversea code",
1285
+ "description": "Default tag text",
1286
1286
  "options": [],
1287
1287
  "value": {
1288
- "type": "() => boolean",
1288
+ "type": "string",
1289
1289
  "kind": "expression"
1290
1290
  }
1291
1291
  }
@@ -1994,225 +1994,63 @@
1994
1994
  "description": "Custom origin price"
1995
1995
  },
1996
1996
  {
1997
- "name": "price-top",
1998
- "description": "Custom price top"
1999
- },
2000
- {
2001
- "name": "bottom",
2002
- "description": "Custom price bottom"
2003
- },
2004
- {
2005
- "name": "thumb",
2006
- "description": "Custom thumb"
2007
- },
2008
- {
2009
- "name": "tag",
2010
- "description": "Custom thumb tag"
2011
- },
2012
- {
2013
- "name": "tags",
2014
- "description": "Custom tags"
2015
- },
2016
- {
2017
- "name": "footer",
2018
- "description": "Custom footer"
2019
- }
2020
- ],
2021
- "events": [
2022
- {
2023
- "name": "click",
2024
- "description": "Emitted when component is clicked",
2025
- "arguments": [
2026
- {
2027
- "name": "event",
2028
- "type": "MouseEvent"
2029
- }
2030
- ]
2031
- },
2032
- {
2033
- "name": "click-thumb",
2034
- "description": "Emitted when thumb is clicked",
2035
- "arguments": [
2036
- {
2037
- "name": "event",
2038
- "type": "MouseEvent"
2039
- }
2040
- ]
2041
- }
2042
- ],
2043
- "attributes": [
2044
- {
2045
- "name": "thumb",
2046
- "default": "-",
2047
- "description": "Left thumb image URL",
2048
- "options": [],
2049
- "value": {
2050
- "type": "string",
2051
- "kind": "expression"
2052
- }
2053
- },
2054
- {
2055
- "name": "title",
2056
- "default": "-",
2057
- "description": "Title",
2058
- "options": [],
2059
- "value": {
2060
- "type": "string",
2061
- "kind": "expression"
2062
- }
2063
- },
2064
- {
2065
- "name": "desc",
2066
- "default": "-",
2067
- "description": "Description",
2068
- "options": [],
2069
- "value": {
2070
- "type": "string",
2071
- "kind": "expression"
2072
- }
2073
- },
2074
- {
2075
- "name": "tag",
2076
- "default": "-",
2077
- "description": "Tag",
2078
- "options": [],
2079
- "value": {
2080
- "type": "string",
2081
- "kind": "expression"
2082
- }
2083
- },
2084
- {
2085
- "name": "num",
2086
- "default": "-",
2087
- "description": "number",
2088
- "options": [],
2089
- "value": {
2090
- "type": "number | string",
2091
- "kind": "expression"
2092
- }
2093
- },
2094
- {
2095
- "name": "price",
2096
- "default": "-",
2097
- "description": "Price",
2098
- "options": [],
2099
- "value": {
2100
- "type": "number | string",
2101
- "kind": "expression"
2102
- }
2103
- },
2104
- {
2105
- "name": "origin-price",
2106
- "default": "-",
2107
- "description": "Origin price",
2108
- "options": [],
2109
- "value": {
2110
- "type": "number | string",
2111
- "kind": "expression"
2112
- }
2113
- },
2114
- {
2115
- "name": "centered",
2116
- "default": "`false`",
2117
- "description": "Whether content vertical centered",
2118
- "options": [],
2119
- "value": {
2120
- "type": "boolean",
2121
- "kind": "expression"
2122
- }
2123
- },
2124
- {
2125
- "name": "currency",
2126
- "default": "`¥`",
2127
- "description": "Currency symbol",
2128
- "options": [],
2129
- "value": {
2130
- "type": "string",
2131
- "kind": "expression"
2132
- }
2133
- },
2134
- {
2135
- "name": "thumb-link",
2136
- "default": "-",
2137
- "description": "Thumb link URL",
2138
- "options": [],
2139
- "value": {
2140
- "type": "string",
2141
- "kind": "expression"
2142
- }
2143
- },
2144
- {
2145
- "name": "lazy-load",
2146
- "default": "`false`",
2147
- "description": "Whether to enable thumb lazy load, should register [Lazyload](#/en-US/lazyload) component",
2148
- "options": [],
2149
- "value": {
2150
- "type": "boolean",
2151
- "kind": "expression"
2152
- }
2153
- }
2154
- ]
2155
- },
2156
- {
2157
- "name": "van-cascader",
2158
- "slots": [
1997
+ "name": "price-top",
1998
+ "description": "Custom price top"
1999
+ },
2159
2000
  {
2160
- "name": "title",
2161
- "description": "Custom title"
2001
+ "name": "bottom",
2002
+ "description": "Custom price bottom"
2162
2003
  },
2163
2004
  {
2164
- "name": "option",
2165
- "description": "Custom option text"
2005
+ "name": "thumb",
2006
+ "description": "Custom thumb"
2166
2007
  },
2167
2008
  {
2168
- "name": "options-top",
2169
- "description": "Custom the content above the options"
2009
+ "name": "tag",
2010
+ "description": "Custom thumb tag"
2170
2011
  },
2171
2012
  {
2172
- "name": "options-bottom",
2173
- "description": "Custom the content below the options"
2013
+ "name": "tags",
2014
+ "description": "Custom tags"
2015
+ },
2016
+ {
2017
+ "name": "footer",
2018
+ "description": "Custom footer"
2174
2019
  }
2175
2020
  ],
2176
2021
  "events": [
2177
2022
  {
2178
- "name": "change",
2179
- "description": "Emitted when active option changed",
2180
- "arguments": [
2181
- {
2182
- "name": "{ value: string | number, selectedOptions: CascaderOption[], tabIndex: number }"
2183
- }
2184
- ]
2185
- },
2186
- {
2187
- "name": "finish",
2188
- "description": "Emitted when all options is selected",
2023
+ "name": "click",
2024
+ "description": "Emitted when component is clicked",
2189
2025
  "arguments": [
2190
2026
  {
2191
- "name": "{ value: string | number, selectedOptions: CascaderOption[], tabIndex: number }"
2027
+ "name": "event",
2028
+ "type": "MouseEvent"
2192
2029
  }
2193
2030
  ]
2194
2031
  },
2195
2032
  {
2196
- "name": "close",
2197
- "description": "Emitted when the close icon is clicked",
2198
- "arguments": []
2199
- },
2200
- {
2201
- "name": "click-tab",
2202
- "description": "Emitted when a tab is clicked",
2033
+ "name": "click-thumb",
2034
+ "description": "Emitted when thumb is clicked",
2203
2035
  "arguments": [
2204
2036
  {
2205
- "name": "activeTab",
2206
- "type": "number"
2207
- },
2208
- {
2209
- "name": "title",
2210
- "type": "string"
2037
+ "name": "event",
2038
+ "type": "MouseEvent"
2211
2039
  }
2212
2040
  ]
2213
2041
  }
2214
2042
  ],
2215
2043
  "attributes": [
2044
+ {
2045
+ "name": "thumb",
2046
+ "default": "-",
2047
+ "description": "Left thumb image URL",
2048
+ "options": [],
2049
+ "value": {
2050
+ "type": "string",
2051
+ "kind": "expression"
2052
+ }
2053
+ },
2216
2054
  {
2217
2055
  "name": "title",
2218
2056
  "default": "-",
@@ -2224,59 +2062,59 @@
2224
2062
  }
2225
2063
  },
2226
2064
  {
2227
- "name": "value",
2065
+ "name": "desc",
2228
2066
  "default": "-",
2229
- "description": "Value of selected option",
2067
+ "description": "Description",
2230
2068
  "options": [],
2231
2069
  "value": {
2232
- "type": "string | number",
2070
+ "type": "string",
2233
2071
  "kind": "expression"
2234
2072
  }
2235
2073
  },
2236
2074
  {
2237
- "name": "options",
2238
- "default": "`[]`",
2239
- "description": "Options",
2075
+ "name": "tag",
2076
+ "default": "-",
2077
+ "description": "Tag",
2240
2078
  "options": [],
2241
2079
  "value": {
2242
- "type": "CascaderOption[]",
2080
+ "type": "string",
2243
2081
  "kind": "expression"
2244
2082
  }
2245
2083
  },
2246
2084
  {
2247
- "name": "placeholder",
2248
- "default": "`Select`",
2249
- "description": "Placeholder of unselected tab",
2085
+ "name": "num",
2086
+ "default": "-",
2087
+ "description": "number",
2250
2088
  "options": [],
2251
2089
  "value": {
2252
- "type": "string",
2090
+ "type": "number | string",
2253
2091
  "kind": "expression"
2254
2092
  }
2255
2093
  },
2256
2094
  {
2257
- "name": "active-color",
2258
- "default": "`#ee0a24`",
2259
- "description": "Active color",
2095
+ "name": "price",
2096
+ "default": "-",
2097
+ "description": "Price",
2260
2098
  "options": [],
2261
2099
  "value": {
2262
- "type": "string",
2100
+ "type": "number | string",
2263
2101
  "kind": "expression"
2264
2102
  }
2265
2103
  },
2266
2104
  {
2267
- "name": "swipeable",
2268
- "default": "`false`",
2269
- "description": "Whether to enable gestures to slide left and right",
2105
+ "name": "origin-price",
2106
+ "default": "-",
2107
+ "description": "Origin price",
2270
2108
  "options": [],
2271
2109
  "value": {
2272
- "type": "boolean",
2110
+ "type": "number | string",
2273
2111
  "kind": "expression"
2274
2112
  }
2275
2113
  },
2276
2114
  {
2277
- "name": "closeable",
2278
- "default": "`true`",
2279
- "description": "Whether to show close icon",
2115
+ "name": "centered",
2116
+ "default": "`false`",
2117
+ "description": "Whether content vertical centered",
2280
2118
  "options": [],
2281
2119
  "value": {
2282
2120
  "type": "boolean",
@@ -2284,19 +2122,19 @@
2284
2122
  }
2285
2123
  },
2286
2124
  {
2287
- "name": "show-header",
2288
- "default": "`true`",
2289
- "description": "Whether to show header",
2125
+ "name": "currency",
2126
+ "default": "`¥`",
2127
+ "description": "Currency symbol",
2290
2128
  "options": [],
2291
2129
  "value": {
2292
- "type": "boolean",
2130
+ "type": "string",
2293
2131
  "kind": "expression"
2294
2132
  }
2295
2133
  },
2296
2134
  {
2297
- "name": "close-icon",
2298
- "default": "`cross`",
2299
- "description": "Close icon name",
2135
+ "name": "thumb-link",
2136
+ "default": "-",
2137
+ "description": "Thumb link URL",
2300
2138
  "options": [],
2301
2139
  "value": {
2302
2140
  "type": "string",
@@ -2304,12 +2142,12 @@
2304
2142
  }
2305
2143
  },
2306
2144
  {
2307
- "name": "field-names",
2308
- "default": "`{ text: 'text', value: 'value', children: 'children' }`",
2309
- "description": "Custom the fields of options",
2145
+ "name": "lazy-load",
2146
+ "default": "`false`",
2147
+ "description": "Whether to enable thumb lazy load, should register [Lazyload](#/en-US/lazyload) component",
2310
2148
  "options": [],
2311
2149
  "value": {
2312
- "type": "object",
2150
+ "type": "boolean",
2313
2151
  "kind": "expression"
2314
2152
  }
2315
2153
  }
@@ -2463,29 +2301,201 @@
2463
2301
  }
2464
2302
  },
2465
2303
  {
2466
- "name": "border",
2467
- "default": "`true`",
2468
- "description": "Whether to show inner border",
2304
+ "name": "border",
2305
+ "default": "`true`",
2306
+ "description": "Whether to show inner border",
2307
+ "options": [],
2308
+ "value": {
2309
+ "type": "boolean",
2310
+ "kind": "expression"
2311
+ }
2312
+ },
2313
+ {
2314
+ "name": "center",
2315
+ "default": "`false`",
2316
+ "description": "Whether to center content vertically",
2317
+ "options": [],
2318
+ "value": {
2319
+ "type": "boolean",
2320
+ "kind": "expression"
2321
+ }
2322
+ },
2323
+ {
2324
+ "name": "url",
2325
+ "default": "-",
2326
+ "description": "Link URL",
2327
+ "options": [],
2328
+ "value": {
2329
+ "type": "string",
2330
+ "kind": "expression"
2331
+ }
2332
+ },
2333
+ {
2334
+ "name": "to",
2335
+ "default": "-",
2336
+ "description": "Target route of the link, same as to of vue-router",
2337
+ "options": [],
2338
+ "value": {
2339
+ "type": "string | object",
2340
+ "kind": "expression"
2341
+ }
2342
+ },
2343
+ {
2344
+ "name": "replace",
2345
+ "default": "`false`",
2346
+ "description": "If true, the navigation will not leave a history record",
2347
+ "options": [],
2348
+ "value": {
2349
+ "type": "boolean",
2350
+ "kind": "expression"
2351
+ }
2352
+ },
2353
+ {
2354
+ "name": "clickable",
2355
+ "default": "`null`",
2356
+ "description": "Whether to show click feedback when clicked",
2357
+ "options": [],
2358
+ "value": {
2359
+ "type": "boolean",
2360
+ "kind": "expression"
2361
+ }
2362
+ },
2363
+ {
2364
+ "name": "is-link",
2365
+ "default": "`false`",
2366
+ "description": "Whether to show link icon",
2367
+ "options": [],
2368
+ "value": {
2369
+ "type": "boolean",
2370
+ "kind": "expression"
2371
+ }
2372
+ },
2373
+ {
2374
+ "name": "required",
2375
+ "default": "`false`",
2376
+ "description": "Whether to show required mark",
2377
+ "options": [],
2378
+ "value": {
2379
+ "type": "boolean",
2380
+ "kind": "expression"
2381
+ }
2382
+ },
2383
+ {
2384
+ "name": "arrow-direction",
2385
+ "default": "`right`",
2386
+ "description": "Can be set to `left` `up` `down`",
2387
+ "options": [],
2388
+ "value": {
2389
+ "type": "string",
2390
+ "kind": "expression"
2391
+ }
2392
+ },
2393
+ {
2394
+ "name": "title-style",
2395
+ "default": "-",
2396
+ "description": "Title style",
2397
+ "options": [],
2398
+ "value": {
2399
+ "type": "string | Array | object",
2400
+ "kind": "expression"
2401
+ }
2402
+ },
2403
+ {
2404
+ "name": "title-class",
2405
+ "default": "-",
2406
+ "description": "Title className",
2407
+ "options": [],
2408
+ "value": {
2409
+ "type": "string | Array | object",
2410
+ "kind": "expression"
2411
+ }
2412
+ },
2413
+ {
2414
+ "name": "value-class",
2415
+ "default": "-",
2416
+ "description": "Value className",
2469
2417
  "options": [],
2470
2418
  "value": {
2471
- "type": "boolean",
2419
+ "type": "string | Array | object",
2472
2420
  "kind": "expression"
2473
2421
  }
2474
2422
  },
2475
2423
  {
2476
- "name": "center",
2477
- "default": "`false`",
2478
- "description": "Whether to center content vertically",
2424
+ "name": "label-class",
2425
+ "default": "-",
2426
+ "description": "Label className",
2479
2427
  "options": [],
2480
2428
  "value": {
2481
- "type": "boolean",
2429
+ "type": "string | Array | object",
2482
2430
  "kind": "expression"
2483
2431
  }
2432
+ }
2433
+ ]
2434
+ },
2435
+ {
2436
+ "name": "van-cascader",
2437
+ "slots": [
2438
+ {
2439
+ "name": "title",
2440
+ "description": "Custom title"
2484
2441
  },
2485
2442
  {
2486
- "name": "url",
2443
+ "name": "option",
2444
+ "description": "Custom option text"
2445
+ },
2446
+ {
2447
+ "name": "options-top",
2448
+ "description": "Custom the content above the options"
2449
+ },
2450
+ {
2451
+ "name": "options-bottom",
2452
+ "description": "Custom the content below the options"
2453
+ }
2454
+ ],
2455
+ "events": [
2456
+ {
2457
+ "name": "change",
2458
+ "description": "Emitted when active option changed",
2459
+ "arguments": [
2460
+ {
2461
+ "name": "{ value: string | number, selectedOptions: CascaderOption[], tabIndex: number }"
2462
+ }
2463
+ ]
2464
+ },
2465
+ {
2466
+ "name": "finish",
2467
+ "description": "Emitted when all options is selected",
2468
+ "arguments": [
2469
+ {
2470
+ "name": "{ value: string | number, selectedOptions: CascaderOption[], tabIndex: number }"
2471
+ }
2472
+ ]
2473
+ },
2474
+ {
2475
+ "name": "close",
2476
+ "description": "Emitted when the close icon is clicked",
2477
+ "arguments": []
2478
+ },
2479
+ {
2480
+ "name": "click-tab",
2481
+ "description": "Emitted when a tab is clicked",
2482
+ "arguments": [
2483
+ {
2484
+ "name": "activeTab",
2485
+ "type": "number"
2486
+ },
2487
+ {
2488
+ "name": "title",
2489
+ "type": "string"
2490
+ }
2491
+ ]
2492
+ }
2493
+ ],
2494
+ "attributes": [
2495
+ {
2496
+ "name": "title",
2487
2497
  "default": "-",
2488
- "description": "Link URL",
2498
+ "description": "Title",
2489
2499
  "options": [],
2490
2500
  "value": {
2491
2501
  "type": "string",
@@ -2493,49 +2503,49 @@
2493
2503
  }
2494
2504
  },
2495
2505
  {
2496
- "name": "to",
2506
+ "name": "value",
2497
2507
  "default": "-",
2498
- "description": "Target route of the link, same as to of vue-router",
2508
+ "description": "Value of selected option",
2499
2509
  "options": [],
2500
2510
  "value": {
2501
- "type": "string | object",
2511
+ "type": "string | number",
2502
2512
  "kind": "expression"
2503
2513
  }
2504
2514
  },
2505
2515
  {
2506
- "name": "replace",
2507
- "default": "`false`",
2508
- "description": "If true, the navigation will not leave a history record",
2516
+ "name": "options",
2517
+ "default": "`[]`",
2518
+ "description": "Options",
2509
2519
  "options": [],
2510
2520
  "value": {
2511
- "type": "boolean",
2521
+ "type": "CascaderOption[]",
2512
2522
  "kind": "expression"
2513
2523
  }
2514
2524
  },
2515
2525
  {
2516
- "name": "clickable",
2517
- "default": "`null`",
2518
- "description": "Whether to show click feedback when clicked",
2526
+ "name": "placeholder",
2527
+ "default": "`Select`",
2528
+ "description": "Placeholder of unselected tab",
2519
2529
  "options": [],
2520
2530
  "value": {
2521
- "type": "boolean",
2531
+ "type": "string",
2522
2532
  "kind": "expression"
2523
2533
  }
2524
2534
  },
2525
2535
  {
2526
- "name": "is-link",
2527
- "default": "`false`",
2528
- "description": "Whether to show link icon",
2536
+ "name": "active-color",
2537
+ "default": "`#ee0a24`",
2538
+ "description": "Active color",
2529
2539
  "options": [],
2530
2540
  "value": {
2531
- "type": "boolean",
2541
+ "type": "string",
2532
2542
  "kind": "expression"
2533
2543
  }
2534
2544
  },
2535
2545
  {
2536
- "name": "required",
2546
+ "name": "swipeable",
2537
2547
  "default": "`false`",
2538
- "description": "Whether to show required mark",
2548
+ "description": "Whether to enable gestures to slide left and right",
2539
2549
  "options": [],
2540
2550
  "value": {
2541
2551
  "type": "boolean",
@@ -2543,52 +2553,42 @@
2543
2553
  }
2544
2554
  },
2545
2555
  {
2546
- "name": "arrow-direction",
2547
- "default": "`right`",
2548
- "description": "Can be set to `left` `up` `down`",
2549
- "options": [],
2550
- "value": {
2551
- "type": "string",
2552
- "kind": "expression"
2553
- }
2554
- },
2555
- {
2556
- "name": "title-style",
2557
- "default": "-",
2558
- "description": "Title style",
2556
+ "name": "closeable",
2557
+ "default": "`true`",
2558
+ "description": "Whether to show close icon",
2559
2559
  "options": [],
2560
2560
  "value": {
2561
- "type": "string | Array | object",
2561
+ "type": "boolean",
2562
2562
  "kind": "expression"
2563
2563
  }
2564
2564
  },
2565
2565
  {
2566
- "name": "title-class",
2567
- "default": "-",
2568
- "description": "Title className",
2566
+ "name": "show-header",
2567
+ "default": "`true`",
2568
+ "description": "Whether to show header",
2569
2569
  "options": [],
2570
2570
  "value": {
2571
- "type": "string | Array | object",
2571
+ "type": "boolean",
2572
2572
  "kind": "expression"
2573
2573
  }
2574
2574
  },
2575
2575
  {
2576
- "name": "value-class",
2577
- "default": "-",
2578
- "description": "Value className",
2576
+ "name": "close-icon",
2577
+ "default": "`cross`",
2578
+ "description": "Close icon name",
2579
2579
  "options": [],
2580
2580
  "value": {
2581
- "type": "string | Array | object",
2581
+ "type": "string",
2582
2582
  "kind": "expression"
2583
2583
  }
2584
2584
  },
2585
2585
  {
2586
- "name": "label-class",
2587
- "default": "-",
2588
- "description": "Label className",
2586
+ "name": "field-names",
2587
+ "default": "`{ text: 'text', value: 'value', children: 'children' }`",
2588
+ "description": "Custom the fields of options",
2589
2589
  "options": [],
2590
2590
  "value": {
2591
- "type": "string | Array | object",
2591
+ "type": "object",
2592
2592
  "kind": "expression"
2593
2593
  }
2594
2594
  }
@@ -3341,42 +3341,140 @@
3341
3341
  }
3342
3342
  },
3343
3343
  {
3344
- "name": "name",
3345
- "default": "-",
3346
- "description": "Name",
3344
+ "name": "name",
3345
+ "default": "-",
3346
+ "description": "Name",
3347
+ "options": [],
3348
+ "value": {
3349
+ "type": "string",
3350
+ "kind": "expression"
3351
+ }
3352
+ },
3353
+ {
3354
+ "name": "tel",
3355
+ "default": "-",
3356
+ "description": "Phone",
3357
+ "options": [],
3358
+ "value": {
3359
+ "type": "string",
3360
+ "kind": "expression"
3361
+ }
3362
+ },
3363
+ {
3364
+ "name": "add-text",
3365
+ "default": "`Add contact info`",
3366
+ "description": "Add card text",
3367
+ "options": [],
3368
+ "value": {
3369
+ "type": "string",
3370
+ "kind": "expression"
3371
+ }
3372
+ },
3373
+ {
3374
+ "name": "editable",
3375
+ "default": "`true`",
3376
+ "description": "Whether to allow editing of contacts",
3377
+ "options": [],
3378
+ "value": {
3379
+ "type": "boolean",
3380
+ "kind": "expression"
3381
+ }
3382
+ }
3383
+ ]
3384
+ },
3385
+ {
3386
+ "name": "van-contact-edit",
3387
+ "slots": [],
3388
+ "events": [
3389
+ {
3390
+ "name": "save",
3391
+ "description": "Emitted when the save button is clicked",
3392
+ "arguments": [
3393
+ {
3394
+ "name": "content",
3395
+ "type": "contact info"
3396
+ }
3397
+ ]
3398
+ },
3399
+ {
3400
+ "name": "delete",
3401
+ "description": "Emitted when the delete button is clicked",
3402
+ "arguments": [
3403
+ {
3404
+ "name": "content",
3405
+ "type": "contact info"
3406
+ }
3407
+ ]
3408
+ }
3409
+ ],
3410
+ "attributes": [
3411
+ {
3412
+ "name": "contact-info",
3413
+ "default": "`[]`",
3414
+ "description": "Contact Info",
3415
+ "options": [],
3416
+ "value": {
3417
+ "type": "Contact",
3418
+ "kind": "expression"
3419
+ }
3420
+ },
3421
+ {
3422
+ "name": "is-edit",
3423
+ "default": "`false`",
3424
+ "description": "Whether is editing",
3425
+ "options": [],
3426
+ "value": {
3427
+ "type": "boolean",
3428
+ "kind": "expression"
3429
+ }
3430
+ },
3431
+ {
3432
+ "name": "is-saving",
3433
+ "default": "`false`",
3434
+ "description": "Whether to show save button loading status",
3435
+ "options": [],
3436
+ "value": {
3437
+ "type": "boolean",
3438
+ "kind": "expression"
3439
+ }
3440
+ },
3441
+ {
3442
+ "name": "is-deleting",
3443
+ "default": "`false`",
3444
+ "description": "Whether to show delete button loading status",
3347
3445
  "options": [],
3348
3446
  "value": {
3349
- "type": "string",
3447
+ "type": "boolean",
3350
3448
  "kind": "expression"
3351
3449
  }
3352
3450
  },
3353
3451
  {
3354
- "name": "tel",
3452
+ "name": "tel-validator",
3355
3453
  "default": "-",
3356
- "description": "Phone",
3454
+ "description": "The method to validate tel",
3357
3455
  "options": [],
3358
3456
  "value": {
3359
- "type": "string",
3457
+ "type": "(tel: string) => boolean",
3360
3458
  "kind": "expression"
3361
3459
  }
3362
3460
  },
3363
3461
  {
3364
- "name": "add-text",
3365
- "default": "`Add contact info`",
3366
- "description": "Add card text",
3462
+ "name": "show-set-default",
3463
+ "default": "`false`",
3464
+ "description": "Whether to show default contact switch",
3367
3465
  "options": [],
3368
3466
  "value": {
3369
- "type": "string",
3467
+ "type": "boolean",
3370
3468
  "kind": "expression"
3371
3469
  }
3372
3470
  },
3373
3471
  {
3374
- "name": "editable",
3375
- "default": "`true`",
3376
- "description": "Whether to allow editing of contacts",
3472
+ "name": "set-default-label",
3473
+ "default": "-",
3474
+ "description": "default contact switch label",
3377
3475
  "options": [],
3378
3476
  "value": {
3379
- "type": "boolean",
3477
+ "type": "string",
3380
3478
  "kind": "expression"
3381
3479
  }
3382
3480
  }
@@ -3796,45 +3894,109 @@
3796
3894
  ]
3797
3895
  },
3798
3896
  {
3799
- "name": "van-contact-edit",
3800
- "slots": [],
3897
+ "name": "van-datetime-picker",
3898
+ "slots": [
3899
+ {
3900
+ "name": "default",
3901
+ "description": "Custom toolbar content"
3902
+ },
3903
+ {
3904
+ "name": "title",
3905
+ "description": "Custom title"
3906
+ },
3907
+ {
3908
+ "name": "confirm",
3909
+ "description": "Custom confirm button text"
3910
+ },
3911
+ {
3912
+ "name": "cancel",
3913
+ "description": "Custom cancel button text"
3914
+ },
3915
+ {
3916
+ "name": "option",
3917
+ "description": "Custom option content"
3918
+ },
3919
+ {
3920
+ "name": "columns-top",
3921
+ "description": "Custom content above columns"
3922
+ },
3923
+ {
3924
+ "name": "columns-bottom",
3925
+ "description": "Custom content below columns"
3926
+ }
3927
+ ],
3801
3928
  "events": [
3802
3929
  {
3803
- "name": "save",
3804
- "description": "Emitted when the save button is clicked",
3930
+ "name": "change",
3931
+ "description": "Emitted when value changed",
3805
3932
  "arguments": [
3806
3933
  {
3807
- "name": "content",
3808
- "type": "contact info"
3934
+ "name": "value",
3935
+ "type": "current value"
3809
3936
  }
3810
3937
  ]
3811
3938
  },
3812
3939
  {
3813
- "name": "delete",
3814
- "description": "Emitted when the delete button is clicked",
3940
+ "name": "confirm",
3941
+ "description": "Emitted when the confirm button is clicked",
3815
3942
  "arguments": [
3816
3943
  {
3817
- "name": "content",
3818
- "type": "contact info"
3944
+ "name": "value",
3945
+ "type": "current value"
3819
3946
  }
3820
3947
  ]
3948
+ },
3949
+ {
3950
+ "name": "cancel",
3951
+ "description": "Emitted when the cancel button is clicked",
3952
+ "arguments": []
3821
3953
  }
3822
3954
  ],
3823
3955
  "attributes": [
3824
3956
  {
3825
- "name": "contact-info",
3826
- "default": "`[]`",
3827
- "description": "Contact Info",
3957
+ "name": "type",
3958
+ "default": "`datetime`",
3959
+ "description": "Can be set to `date` `time`<br> `year-month` `month-day` `datehour`",
3828
3960
  "options": [],
3829
3961
  "value": {
3830
- "type": "Contact",
3962
+ "type": "string",
3831
3963
  "kind": "expression"
3832
3964
  }
3833
3965
  },
3834
3966
  {
3835
- "name": "is-edit",
3836
- "default": "`false`",
3837
- "description": "Whether is editing",
3967
+ "name": "title",
3968
+ "default": "`''`",
3969
+ "description": "Toolbar title",
3970
+ "options": [],
3971
+ "value": {
3972
+ "type": "string",
3973
+ "kind": "expression"
3974
+ }
3975
+ },
3976
+ {
3977
+ "name": "confirm-button-text",
3978
+ "default": "`Confirm`",
3979
+ "description": "Text of confirm button",
3980
+ "options": [],
3981
+ "value": {
3982
+ "type": "string",
3983
+ "kind": "expression"
3984
+ }
3985
+ },
3986
+ {
3987
+ "name": "cancel-button-text",
3988
+ "default": "`Cancel`",
3989
+ "description": "Text of cancel button",
3990
+ "options": [],
3991
+ "value": {
3992
+ "type": "string",
3993
+ "kind": "expression"
3994
+ }
3995
+ },
3996
+ {
3997
+ "name": "show-toolbar",
3998
+ "default": "`true`",
3999
+ "description": "Whether to show toolbar",
3838
4000
  "options": [],
3839
4001
  "value": {
3840
4002
  "type": "boolean",
@@ -3842,9 +4004,9 @@
3842
4004
  }
3843
4005
  },
3844
4006
  {
3845
- "name": "is-saving",
4007
+ "name": "loading",
3846
4008
  "default": "`false`",
3847
- "description": "Whether to show save button loading status",
4009
+ "description": "Whether to show loading prompt",
3848
4010
  "options": [],
3849
4011
  "value": {
3850
4012
  "type": "boolean",
@@ -3852,9 +4014,9 @@
3852
4014
  }
3853
4015
  },
3854
4016
  {
3855
- "name": "is-deleting",
4017
+ "name": "readonly",
3856
4018
  "default": "`false`",
3857
- "description": "Whether to show delete button loading status",
4019
+ "description": "Whether to be readonly",
3858
4020
  "options": [],
3859
4021
  "value": {
3860
4022
  "type": "boolean",
@@ -3862,32 +4024,136 @@
3862
4024
  }
3863
4025
  },
3864
4026
  {
3865
- "name": "tel-validator",
4027
+ "name": "filter",
3866
4028
  "default": "-",
3867
- "description": "The method to validate tel",
4029
+ "description": "Option filter",
3868
4030
  "options": [],
3869
4031
  "value": {
3870
- "type": "(tel: string) => boolean",
4032
+ "type": "(type: string, values: string[]) => string[]",
3871
4033
  "kind": "expression"
3872
4034
  }
3873
4035
  },
3874
4036
  {
3875
- "name": "show-set-default",
3876
- "default": "`false`",
3877
- "description": "Whether to show default contact switch",
4037
+ "name": "formatter",
4038
+ "default": "-",
4039
+ "description": "Option text formatter",
3878
4040
  "options": [],
3879
4041
  "value": {
3880
- "type": "boolean",
4042
+ "type": "(type: string, value: string) => string",
3881
4043
  "kind": "expression"
3882
4044
  }
3883
4045
  },
3884
4046
  {
3885
- "name": "set-default-label",
4047
+ "name": "columns-order",
3886
4048
  "default": "-",
3887
- "description": "default contact switch label",
4049
+ "description": "Array for ordering columns, where item can be set to<br> `year`, `month`, `day`, `hour` and `minute`",
4050
+ "options": [],
4051
+ "value": {
4052
+ "type": "string[]",
4053
+ "kind": "expression"
4054
+ }
4055
+ },
4056
+ {
4057
+ "name": "item-height",
4058
+ "default": "`44`",
4059
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
4060
+ "options": [],
4061
+ "value": {
4062
+ "type": "number | string",
4063
+ "kind": "expression"
4064
+ }
4065
+ },
4066
+ {
4067
+ "name": "visible-item-count",
4068
+ "default": "`6`",
4069
+ "description": "Count of visible columns",
4070
+ "options": [],
4071
+ "value": {
4072
+ "type": "number | string",
4073
+ "kind": "expression"
4074
+ }
4075
+ },
4076
+ {
4077
+ "name": "swipe-duration",
4078
+ "default": "`1000`",
4079
+ "description": "Duration of the momentum animation, unit `ms`",
4080
+ "options": [],
4081
+ "value": {
4082
+ "type": "number | string",
4083
+ "kind": "expression"
4084
+ }
4085
+ }
4086
+ ]
4087
+ },
4088
+ {
4089
+ "name": "van-date-picker",
4090
+ "slots": [],
4091
+ "events": [],
4092
+ "attributes": [
4093
+ {
4094
+ "name": "min-date",
4095
+ "default": "Ten years ago on January 1",
4096
+ "description": "Min date",
4097
+ "options": [],
4098
+ "value": {
4099
+ "type": "Date",
4100
+ "kind": "expression"
4101
+ }
4102
+ },
4103
+ {
4104
+ "name": "max-date",
4105
+ "default": "Ten years later on December 31",
4106
+ "description": "Max date",
4107
+ "options": [],
4108
+ "value": {
4109
+ "type": "Date",
4110
+ "kind": "expression"
4111
+ }
4112
+ }
4113
+ ]
4114
+ },
4115
+ {
4116
+ "name": "van-time-picker",
4117
+ "slots": [],
4118
+ "events": [],
4119
+ "attributes": [
4120
+ {
4121
+ "name": "min-hour",
4122
+ "default": "`0`",
4123
+ "description": "Min hour for `time` type",
4124
+ "options": [],
4125
+ "value": {
4126
+ "type": "number | string",
4127
+ "kind": "expression"
4128
+ }
4129
+ },
4130
+ {
4131
+ "name": "max-hour",
4132
+ "default": "`23`",
4133
+ "description": "Max hour for `time` type",
4134
+ "options": [],
4135
+ "value": {
4136
+ "type": "number | string",
4137
+ "kind": "expression"
4138
+ }
4139
+ },
4140
+ {
4141
+ "name": "min-minute",
4142
+ "default": "`0`",
4143
+ "description": "Max minute for `time` type",
4144
+ "options": [],
4145
+ "value": {
4146
+ "type": "number | string",
4147
+ "kind": "expression"
4148
+ }
4149
+ },
4150
+ {
4151
+ "name": "max-minute",
4152
+ "default": "`59`",
4153
+ "description": "Max minute for `time` type",
3888
4154
  "options": [],
3889
4155
  "value": {
3890
- "type": "string",
4156
+ "type": "number | string",
3891
4157
  "kind": "expression"
3892
4158
  }
3893
4159
  }
@@ -4095,366 +4361,100 @@
4095
4361
  {
4096
4362
  "name": "overlay-class",
4097
4363
  "default": "-",
4098
- "description": "Custom overlay class",
4099
- "options": [],
4100
- "value": {
4101
- "type": "string",
4102
- "kind": "expression"
4103
- }
4104
- },
4105
- {
4106
- "name": "overlay-style",
4107
- "default": "-",
4108
- "description": "Custom overlay style",
4109
- "options": [],
4110
- "value": {
4111
- "type": "object",
4112
- "kind": "expression"
4113
- }
4114
- },
4115
- {
4116
- "name": "close-on-popstate",
4117
- "default": "`true`",
4118
- "description": "Whether to close when popstate",
4119
- "options": [],
4120
- "value": {
4121
- "type": "boolean",
4122
- "kind": "expression"
4123
- }
4124
- },
4125
- {
4126
- "name": "close-on-click-overlay",
4127
- "default": "`false`",
4128
- "description": "Whether to close when overlay is clicked",
4129
- "options": [],
4130
- "value": {
4131
- "type": "boolean",
4132
- "kind": "expression"
4133
- }
4134
- },
4135
- {
4136
- "name": "lazy-render",
4137
- "default": "`true`",
4138
- "description": "Whether to lazy render util appeared",
4139
- "options": [],
4140
- "value": {
4141
- "type": "boolean",
4142
- "kind": "expression"
4143
- }
4144
- },
4145
- {
4146
- "name": "lock-scroll",
4147
- "default": "`true`",
4148
- "description": "Whether to lock background scroll",
4149
- "options": [],
4150
- "value": {
4151
- "type": "boolean",
4152
- "kind": "expression"
4153
- }
4154
- },
4155
- {
4156
- "name": "allow-html",
4157
- "default": "`false`",
4158
- "description": "Whether to allow HTML rendering in message",
4159
- "options": [],
4160
- "value": {
4161
- "type": "boolean",
4162
- "kind": "expression"
4163
- }
4164
- },
4165
- {
4166
- "name": "before-close",
4167
- "default": "-",
4168
- "description": "Callback function before close",
4169
- "options": [],
4170
- "value": {
4171
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
4172
- "kind": "expression"
4173
- }
4174
- },
4175
- {
4176
- "name": "transition",
4177
- "default": "-",
4178
- "description": "Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition)",
4179
- "options": [],
4180
- "value": {
4181
- "type": "string",
4182
- "kind": "expression"
4183
- }
4184
- },
4185
- {
4186
- "name": "teleport",
4187
- "default": "-",
4188
- "description": "Specifies a target element where Dialog will be mounted",
4189
- "options": [],
4190
- "value": {
4191
- "type": "string | Element",
4192
- "kind": "expression"
4193
- }
4194
- }
4195
- ]
4196
- },
4197
- {
4198
- "name": "van-datetime-picker",
4199
- "slots": [
4200
- {
4201
- "name": "default",
4202
- "description": "Custom toolbar content"
4203
- },
4204
- {
4205
- "name": "title",
4206
- "description": "Custom title"
4207
- },
4208
- {
4209
- "name": "confirm",
4210
- "description": "Custom confirm button text"
4211
- },
4212
- {
4213
- "name": "cancel",
4214
- "description": "Custom cancel button text"
4215
- },
4216
- {
4217
- "name": "option",
4218
- "description": "Custom option content"
4219
- },
4220
- {
4221
- "name": "columns-top",
4222
- "description": "Custom content above columns"
4223
- },
4224
- {
4225
- "name": "columns-bottom",
4226
- "description": "Custom content below columns"
4227
- }
4228
- ],
4229
- "events": [
4230
- {
4231
- "name": "change",
4232
- "description": "Emitted when value changed",
4233
- "arguments": [
4234
- {
4235
- "name": "value",
4236
- "type": "current value"
4237
- }
4238
- ]
4239
- },
4240
- {
4241
- "name": "confirm",
4242
- "description": "Emitted when the confirm button is clicked",
4243
- "arguments": [
4244
- {
4245
- "name": "value",
4246
- "type": "current value"
4247
- }
4248
- ]
4249
- },
4250
- {
4251
- "name": "cancel",
4252
- "description": "Emitted when the cancel button is clicked",
4253
- "arguments": []
4254
- }
4255
- ],
4256
- "attributes": [
4257
- {
4258
- "name": "type",
4259
- "default": "`datetime`",
4260
- "description": "Can be set to `date` `time`<br> `year-month` `month-day` `datehour`",
4261
- "options": [],
4262
- "value": {
4263
- "type": "string",
4264
- "kind": "expression"
4265
- }
4266
- },
4267
- {
4268
- "name": "title",
4269
- "default": "`''`",
4270
- "description": "Toolbar title",
4271
- "options": [],
4272
- "value": {
4273
- "type": "string",
4274
- "kind": "expression"
4275
- }
4276
- },
4277
- {
4278
- "name": "confirm-button-text",
4279
- "default": "`Confirm`",
4280
- "description": "Text of confirm button",
4281
- "options": [],
4282
- "value": {
4283
- "type": "string",
4284
- "kind": "expression"
4285
- }
4286
- },
4287
- {
4288
- "name": "cancel-button-text",
4289
- "default": "`Cancel`",
4290
- "description": "Text of cancel button",
4291
- "options": [],
4292
- "value": {
4293
- "type": "string",
4294
- "kind": "expression"
4295
- }
4296
- },
4297
- {
4298
- "name": "show-toolbar",
4299
- "default": "`true`",
4300
- "description": "Whether to show toolbar",
4301
- "options": [],
4302
- "value": {
4303
- "type": "boolean",
4304
- "kind": "expression"
4305
- }
4306
- },
4307
- {
4308
- "name": "loading",
4309
- "default": "`false`",
4310
- "description": "Whether to show loading prompt",
4311
- "options": [],
4312
- "value": {
4313
- "type": "boolean",
4314
- "kind": "expression"
4315
- }
4316
- },
4317
- {
4318
- "name": "readonly",
4319
- "default": "`false`",
4320
- "description": "Whether to be readonly",
4321
- "options": [],
4322
- "value": {
4323
- "type": "boolean",
4324
- "kind": "expression"
4325
- }
4326
- },
4327
- {
4328
- "name": "filter",
4329
- "default": "-",
4330
- "description": "Option filter",
4331
- "options": [],
4332
- "value": {
4333
- "type": "(type: string, values: string[]) => string[]",
4334
- "kind": "expression"
4335
- }
4336
- },
4337
- {
4338
- "name": "formatter",
4339
- "default": "-",
4340
- "description": "Option text formatter",
4341
- "options": [],
4342
- "value": {
4343
- "type": "(type: string, value: string) => string",
4344
- "kind": "expression"
4345
- }
4346
- },
4347
- {
4348
- "name": "columns-order",
4349
- "default": "-",
4350
- "description": "Array for ordering columns, where item can be set to<br> `year`, `month`, `day`, `hour` and `minute`",
4364
+ "description": "Custom overlay class",
4351
4365
  "options": [],
4352
4366
  "value": {
4353
- "type": "string[]",
4367
+ "type": "string",
4354
4368
  "kind": "expression"
4355
4369
  }
4356
4370
  },
4357
4371
  {
4358
- "name": "item-height",
4359
- "default": "`44`",
4360
- "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
4372
+ "name": "overlay-style",
4373
+ "default": "-",
4374
+ "description": "Custom overlay style",
4361
4375
  "options": [],
4362
4376
  "value": {
4363
- "type": "number | string",
4377
+ "type": "object",
4364
4378
  "kind": "expression"
4365
4379
  }
4366
4380
  },
4367
4381
  {
4368
- "name": "visible-item-count",
4369
- "default": "`6`",
4370
- "description": "Count of visible columns",
4382
+ "name": "close-on-popstate",
4383
+ "default": "`true`",
4384
+ "description": "Whether to close when popstate",
4371
4385
  "options": [],
4372
4386
  "value": {
4373
- "type": "number | string",
4387
+ "type": "boolean",
4374
4388
  "kind": "expression"
4375
4389
  }
4376
4390
  },
4377
4391
  {
4378
- "name": "swipe-duration",
4379
- "default": "`1000`",
4380
- "description": "Duration of the momentum animation, unit `ms`",
4392
+ "name": "close-on-click-overlay",
4393
+ "default": "`false`",
4394
+ "description": "Whether to close when overlay is clicked",
4381
4395
  "options": [],
4382
4396
  "value": {
4383
- "type": "number | string",
4397
+ "type": "boolean",
4384
4398
  "kind": "expression"
4385
4399
  }
4386
- }
4387
- ]
4388
- },
4389
- {
4390
- "name": "van-date-picker",
4391
- "slots": [],
4392
- "events": [],
4393
- "attributes": [
4400
+ },
4394
4401
  {
4395
- "name": "min-date",
4396
- "default": "Ten years ago on January 1",
4397
- "description": "Min date",
4402
+ "name": "lazy-render",
4403
+ "default": "`true`",
4404
+ "description": "Whether to lazy render util appeared",
4398
4405
  "options": [],
4399
4406
  "value": {
4400
- "type": "Date",
4407
+ "type": "boolean",
4401
4408
  "kind": "expression"
4402
4409
  }
4403
4410
  },
4404
4411
  {
4405
- "name": "max-date",
4406
- "default": "Ten years later on December 31",
4407
- "description": "Max date",
4412
+ "name": "lock-scroll",
4413
+ "default": "`true`",
4414
+ "description": "Whether to lock background scroll",
4408
4415
  "options": [],
4409
4416
  "value": {
4410
- "type": "Date",
4417
+ "type": "boolean",
4411
4418
  "kind": "expression"
4412
4419
  }
4413
- }
4414
- ]
4415
- },
4416
- {
4417
- "name": "van-time-picker",
4418
- "slots": [],
4419
- "events": [],
4420
- "attributes": [
4420
+ },
4421
4421
  {
4422
- "name": "min-hour",
4423
- "default": "`0`",
4424
- "description": "Min hour for `time` type",
4422
+ "name": "allow-html",
4423
+ "default": "`false`",
4424
+ "description": "Whether to allow HTML rendering in message",
4425
4425
  "options": [],
4426
4426
  "value": {
4427
- "type": "number | string",
4427
+ "type": "boolean",
4428
4428
  "kind": "expression"
4429
4429
  }
4430
4430
  },
4431
4431
  {
4432
- "name": "max-hour",
4433
- "default": "`23`",
4434
- "description": "Max hour for `time` type",
4432
+ "name": "before-close",
4433
+ "default": "-",
4434
+ "description": "Callback function before close",
4435
4435
  "options": [],
4436
4436
  "value": {
4437
- "type": "number | string",
4437
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
4438
4438
  "kind": "expression"
4439
4439
  }
4440
4440
  },
4441
4441
  {
4442
- "name": "min-minute",
4443
- "default": "`0`",
4444
- "description": "Max minute for `time` type",
4442
+ "name": "transition",
4443
+ "default": "-",
4444
+ "description": "Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition)",
4445
4445
  "options": [],
4446
4446
  "value": {
4447
- "type": "number | string",
4447
+ "type": "string",
4448
4448
  "kind": "expression"
4449
4449
  }
4450
4450
  },
4451
4451
  {
4452
- "name": "max-minute",
4453
- "default": "`59`",
4454
- "description": "Max minute for `time` type",
4452
+ "name": "teleport",
4453
+ "default": "-",
4454
+ "description": "Specifies a target element where Dialog will be mounted",
4455
4455
  "options": [],
4456
4456
  "value": {
4457
- "type": "number | string",
4457
+ "type": "string | Element",
4458
4458
  "kind": "expression"
4459
4459
  }
4460
4460
  }
@@ -5113,195 +5113,32 @@
5113
5113
  "value": {
5114
5114
  "type": "FieldTextAlign",
5115
5115
  "kind": "expression"
5116
- }
5117
- },
5118
- {
5119
- "name": "formatter",
5120
- "default": "-",
5121
- "description": "Input value formatter",
5122
- "options": [],
5123
- "value": {
5124
- "type": "(val: string) => string",
5125
- "kind": "expression"
5126
- }
5127
- },
5128
- {
5129
- "name": "format-trigger",
5130
- "default": "`onChange`",
5131
- "description": "When to format value, can be set to `onBlur`",
5132
- "options": [],
5133
- "value": {
5134
- "type": "FieldFormatTrigger",
5135
- "kind": "expression"
5136
- }
5137
- },
5138
- {
5139
- "name": "arrow-direction",
5140
- "default": "`right`",
5141
- "description": "Can be set to `left` `up` `down`",
5142
- "options": [],
5143
- "value": {
5144
- "type": "string",
5145
- "kind": "expression"
5146
- }
5147
- },
5148
- {
5149
- "name": "label-class",
5150
- "default": "-",
5151
- "description": "Label className",
5152
- "options": [],
5153
- "value": {
5154
- "type": "string | Array | object",
5155
- "kind": "expression"
5156
- }
5157
- },
5158
- {
5159
- "name": "label-width",
5160
- "default": "`6.2em`",
5161
- "description": "Label width",
5162
- "options": [],
5163
- "value": {
5164
- "type": "number | string",
5165
- "kind": "expression"
5166
- }
5167
- },
5168
- {
5169
- "name": "label-align",
5170
- "default": "`left`",
5171
- "description": "Label align, can be set to `center` `right`",
5172
- "options": [],
5173
- "value": {
5174
- "type": "FieldTextAlign",
5175
- "kind": "expression"
5176
- }
5177
- },
5178
- {
5179
- "name": "input-align",
5180
- "default": "`left`",
5181
- "description": "Input align, can be set to `center` `right`",
5182
- "options": [],
5183
- "value": {
5184
- "type": "FieldTextAlign",
5185
- "kind": "expression"
5186
- }
5187
- },
5188
- {
5189
- "name": "autosize",
5190
- "default": "`false`",
5191
- "description": "Textarea auto resize, can accept an object,<br>e.g. { maxHeight: 100, minHeight: 50 }",
5192
- "options": [],
5193
- "value": {
5194
- "type": "boolean | FieldAutosizeConfig",
5195
- "kind": "expression"
5196
- }
5197
- },
5198
- {
5199
- "name": "left-icon",
5200
- "default": "-",
5201
- "description": "Left side icon name",
5202
- "options": [],
5203
- "value": {
5204
- "type": "string",
5205
- "kind": "expression"
5206
- }
5207
- },
5208
- {
5209
- "name": "right-icon",
5210
- "default": "-",
5211
- "description": "Right side icon name",
5212
- "options": [],
5213
- "value": {
5214
- "type": "string",
5215
- "kind": "expression"
5216
- }
5217
- },
5218
- {
5219
- "name": "icon-prefix",
5220
- "default": "`van-icon`",
5221
- "description": "Icon className prefix",
5222
- "options": [],
5223
- "value": {
5224
- "type": "string",
5225
- "kind": "expression"
5226
- }
5227
- },
5228
- {
5229
- "name": "rules",
5230
- "default": "-",
5231
- "description": "Form validation rules",
5232
- "options": [],
5233
- "value": {
5234
- "type": "FieldRule[]",
5235
- "kind": "expression"
5236
- }
5237
- },
5238
- {
5239
- "name": "autocomplete",
5240
- "default": "-",
5241
- "description": "HTML native attribute, see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
5242
- "options": [],
5243
- "value": {
5244
- "type": "string",
5245
- "kind": "expression"
5246
- }
5247
- },
5248
- {
5249
- "name": "enterkeyhint",
5250
- "default": "-",
5251
- "description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>",
5252
- "options": [],
5253
- "value": {
5254
- "type": "string",
5255
- "kind": "expression"
5256
- }
5257
- }
5258
- ]
5259
- },
5260
- {
5261
- "name": "van-form",
5262
- "slots": [
5263
- {
5264
- "name": "default",
5265
- "description": "Form content"
5266
- }
5267
- ],
5268
- "events": [
5269
- {
5270
- "name": "submit",
5271
- "description": "Emitted after submitting the form and validation passed",
5272
- "arguments": [
5273
- {
5274
- "name": "values",
5275
- "type": "object"
5276
- }
5277
- ]
5116
+ }
5278
5117
  },
5279
5118
  {
5280
- "name": "failed",
5281
- "description": "Emitted after submitting the form and validation failed",
5282
- "arguments": [
5283
- {
5284
- "name": "errorInfo",
5285
- "type": "{ values: object, errors: object[] }"
5286
- }
5287
- ]
5288
- }
5289
- ],
5290
- "attributes": [
5119
+ "name": "formatter",
5120
+ "default": "-",
5121
+ "description": "Input value formatter",
5122
+ "options": [],
5123
+ "value": {
5124
+ "type": "(val: string) => string",
5125
+ "kind": "expression"
5126
+ }
5127
+ },
5291
5128
  {
5292
- "name": "label-width",
5293
- "default": "`6.2em`",
5294
- "description": "Field label width",
5129
+ "name": "format-trigger",
5130
+ "default": "`onChange`",
5131
+ "description": "When to format value, can be set to `onBlur`",
5295
5132
  "options": [],
5296
5133
  "value": {
5297
- "type": "number | string",
5134
+ "type": "FieldFormatTrigger",
5298
5135
  "kind": "expression"
5299
5136
  }
5300
5137
  },
5301
5138
  {
5302
- "name": "label-align",
5303
- "default": "`left`",
5304
- "description": "Field label align, can be set to `center` `right`",
5139
+ "name": "arrow-direction",
5140
+ "default": "`right`",
5141
+ "description": "Can be set to `left` `up` `down`",
5305
5142
  "options": [],
5306
5143
  "value": {
5307
5144
  "type": "string",
@@ -5309,112 +5146,112 @@
5309
5146
  }
5310
5147
  },
5311
5148
  {
5312
- "name": "input-align",
5313
- "default": "`left`",
5314
- "description": "Field input align, can be set to `center` `right`",
5149
+ "name": "label-class",
5150
+ "default": "-",
5151
+ "description": "Label className",
5315
5152
  "options": [],
5316
5153
  "value": {
5317
- "type": "string",
5154
+ "type": "string | Array | object",
5318
5155
  "kind": "expression"
5319
5156
  }
5320
5157
  },
5321
5158
  {
5322
- "name": "error-message-align",
5323
- "default": "`left`",
5324
- "description": "Error message align, can be set to `center` `right`",
5159
+ "name": "label-width",
5160
+ "default": "`6.2em`",
5161
+ "description": "Label width",
5325
5162
  "options": [],
5326
5163
  "value": {
5327
- "type": "string",
5164
+ "type": "number | string",
5328
5165
  "kind": "expression"
5329
5166
  }
5330
5167
  },
5331
5168
  {
5332
- "name": "validate-trigger",
5333
- "default": "`onBlur`",
5334
- "description": "When to validate the form, can be set to `onChange`、`onSubmit`, supports using array to set multiple values",
5169
+ "name": "label-align",
5170
+ "default": "`left`",
5171
+ "description": "Label align, can be set to `center` `right`",
5335
5172
  "options": [],
5336
5173
  "value": {
5337
- "type": "string | string[]",
5174
+ "type": "FieldTextAlign",
5338
5175
  "kind": "expression"
5339
5176
  }
5340
5177
  },
5341
5178
  {
5342
- "name": "colon",
5343
- "default": "`false`",
5344
- "description": "Whether to display colon after label",
5179
+ "name": "input-align",
5180
+ "default": "`left`",
5181
+ "description": "Input align, can be set to `center` `right`",
5345
5182
  "options": [],
5346
5183
  "value": {
5347
- "type": "boolean",
5184
+ "type": "FieldTextAlign",
5348
5185
  "kind": "expression"
5349
5186
  }
5350
5187
  },
5351
5188
  {
5352
- "name": "disabled",
5189
+ "name": "autosize",
5353
5190
  "default": "`false`",
5354
- "description": "Whether to disable form",
5191
+ "description": "Textarea auto resize, can accept an object,<br>e.g. { maxHeight: 100, minHeight: 50 }",
5355
5192
  "options": [],
5356
5193
  "value": {
5357
- "type": "boolean",
5194
+ "type": "boolean | FieldAutosizeConfig",
5358
5195
  "kind": "expression"
5359
5196
  }
5360
5197
  },
5361
5198
  {
5362
- "name": "readonly",
5363
- "default": "`false`",
5364
- "description": "Whether to be readonly",
5199
+ "name": "left-icon",
5200
+ "default": "-",
5201
+ "description": "Left side icon name",
5365
5202
  "options": [],
5366
5203
  "value": {
5367
- "type": "boolean",
5204
+ "type": "string",
5368
5205
  "kind": "expression"
5369
5206
  }
5370
5207
  },
5371
5208
  {
5372
- "name": "validate-first",
5373
- "default": "`false`",
5374
- "description": "Whether to stop the validation when a rule fails",
5209
+ "name": "right-icon",
5210
+ "default": "-",
5211
+ "description": "Right side icon name",
5375
5212
  "options": [],
5376
5213
  "value": {
5377
- "type": "boolean",
5214
+ "type": "string",
5378
5215
  "kind": "expression"
5379
5216
  }
5380
5217
  },
5381
5218
  {
5382
- "name": "scroll-to-error",
5383
- "default": "`false`",
5384
- "description": "Whether to scroll to the error field when validation failed",
5219
+ "name": "icon-prefix",
5220
+ "default": "`van-icon`",
5221
+ "description": "Icon className prefix",
5385
5222
  "options": [],
5386
5223
  "value": {
5387
- "type": "boolean",
5224
+ "type": "string",
5388
5225
  "kind": "expression"
5389
5226
  }
5390
5227
  },
5391
5228
  {
5392
- "name": "show-error",
5393
- "default": "`false`",
5394
- "description": "Whether to highlight input when validation failed",
5229
+ "name": "rules",
5230
+ "default": "-",
5231
+ "description": "Form validation rules",
5395
5232
  "options": [],
5396
5233
  "value": {
5397
- "type": "boolean",
5234
+ "type": "FieldRule[]",
5398
5235
  "kind": "expression"
5399
5236
  }
5400
5237
  },
5401
5238
  {
5402
- "name": "show-error-message",
5403
- "default": "`true`",
5404
- "description": "Whether to show error message when validation failed",
5239
+ "name": "autocomplete",
5240
+ "default": "-",
5241
+ "description": "HTML native attribute, see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
5405
5242
  "options": [],
5406
5243
  "value": {
5407
- "type": "boolean",
5244
+ "type": "string",
5408
5245
  "kind": "expression"
5409
5246
  }
5410
5247
  },
5411
5248
  {
5412
- "name": "submit-on-enter",
5413
- "default": "`true`",
5414
- "description": "Whether to submit form on enter",
5249
+ "name": "enterkeyhint",
5250
+ "default": "-",
5251
+ "description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>",
5415
5252
  "options": [],
5416
5253
  "value": {
5417
- "type": "boolean",
5254
+ "type": "string",
5418
5255
  "kind": "expression"
5419
5256
  }
5420
5257
  }
@@ -5547,9 +5384,152 @@
5547
5384
  ],
5548
5385
  "attributes": [
5549
5386
  {
5550
- "name": "text",
5551
- "default": "-",
5552
- "description": "Text",
5387
+ "name": "text",
5388
+ "default": "-",
5389
+ "description": "Text",
5390
+ "options": [],
5391
+ "value": {
5392
+ "type": "string",
5393
+ "kind": "expression"
5394
+ }
5395
+ },
5396
+ {
5397
+ "name": "icon",
5398
+ "default": "-",
5399
+ "description": "Icon name or URL",
5400
+ "options": [],
5401
+ "value": {
5402
+ "type": "string",
5403
+ "kind": "expression"
5404
+ }
5405
+ },
5406
+ {
5407
+ "name": "icon-prefix",
5408
+ "default": "`van-icon`",
5409
+ "description": "Icon className prefix",
5410
+ "options": [],
5411
+ "value": {
5412
+ "type": "string",
5413
+ "kind": "expression"
5414
+ }
5415
+ },
5416
+ {
5417
+ "name": "icon-color",
5418
+ "default": "-",
5419
+ "description": "Icon color",
5420
+ "options": [],
5421
+ "value": {
5422
+ "type": "string",
5423
+ "kind": "expression"
5424
+ }
5425
+ },
5426
+ {
5427
+ "name": "dot",
5428
+ "default": "`false`",
5429
+ "description": "Whether to show red dot",
5430
+ "options": [],
5431
+ "value": {
5432
+ "type": "boolean",
5433
+ "kind": "expression"
5434
+ }
5435
+ },
5436
+ {
5437
+ "name": "badge",
5438
+ "default": "-",
5439
+ "description": "Content of the badge",
5440
+ "options": [],
5441
+ "value": {
5442
+ "type": "number | string",
5443
+ "kind": "expression"
5444
+ }
5445
+ },
5446
+ {
5447
+ "name": "badge-props",
5448
+ "default": "-",
5449
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
5450
+ "options": [],
5451
+ "value": {
5452
+ "type": "BadgeProps",
5453
+ "kind": "expression"
5454
+ }
5455
+ },
5456
+ {
5457
+ "name": "url",
5458
+ "default": "-",
5459
+ "description": "Link URL",
5460
+ "options": [],
5461
+ "value": {
5462
+ "type": "string",
5463
+ "kind": "expression"
5464
+ }
5465
+ },
5466
+ {
5467
+ "name": "to",
5468
+ "default": "-",
5469
+ "description": "Target route of the link, same as to of vue-router",
5470
+ "options": [],
5471
+ "value": {
5472
+ "type": "string | object",
5473
+ "kind": "expression"
5474
+ }
5475
+ },
5476
+ {
5477
+ "name": "replace",
5478
+ "default": "`false`",
5479
+ "description": "If true, the navigation will not leave a history record",
5480
+ "options": [],
5481
+ "value": {
5482
+ "type": "boolean",
5483
+ "kind": "expression"
5484
+ }
5485
+ }
5486
+ ]
5487
+ },
5488
+ {
5489
+ "name": "van-form",
5490
+ "slots": [
5491
+ {
5492
+ "name": "default",
5493
+ "description": "Form content"
5494
+ }
5495
+ ],
5496
+ "events": [
5497
+ {
5498
+ "name": "submit",
5499
+ "description": "Emitted after submitting the form and validation passed",
5500
+ "arguments": [
5501
+ {
5502
+ "name": "values",
5503
+ "type": "object"
5504
+ }
5505
+ ]
5506
+ },
5507
+ {
5508
+ "name": "failed",
5509
+ "description": "Emitted after submitting the form and validation failed",
5510
+ "arguments": [
5511
+ {
5512
+ "name": "errorInfo",
5513
+ "type": "{ values: object, errors: object[] }"
5514
+ }
5515
+ ]
5516
+ }
5517
+ ],
5518
+ "attributes": [
5519
+ {
5520
+ "name": "label-width",
5521
+ "default": "`6.2em`",
5522
+ "description": "Field label width",
5523
+ "options": [],
5524
+ "value": {
5525
+ "type": "number | string",
5526
+ "kind": "expression"
5527
+ }
5528
+ },
5529
+ {
5530
+ "name": "label-align",
5531
+ "default": "`left`",
5532
+ "description": "Field label align, can be set to `center` `right`",
5553
5533
  "options": [],
5554
5534
  "value": {
5555
5535
  "type": "string",
@@ -5557,9 +5537,9 @@
5557
5537
  }
5558
5538
  },
5559
5539
  {
5560
- "name": "icon",
5561
- "default": "-",
5562
- "description": "Icon name or URL",
5540
+ "name": "input-align",
5541
+ "default": "`left`",
5542
+ "description": "Field input align, can be set to `center` `right`",
5563
5543
  "options": [],
5564
5544
  "value": {
5565
5545
  "type": "string",
@@ -5567,9 +5547,9 @@
5567
5547
  }
5568
5548
  },
5569
5549
  {
5570
- "name": "icon-prefix",
5571
- "default": "`van-icon`",
5572
- "description": "Icon className prefix",
5550
+ "name": "error-message-align",
5551
+ "default": "`left`",
5552
+ "description": "Error message align, can be set to `center` `right`",
5573
5553
  "options": [],
5574
5554
  "value": {
5575
5555
  "type": "string",
@@ -5577,19 +5557,19 @@
5577
5557
  }
5578
5558
  },
5579
5559
  {
5580
- "name": "icon-color",
5581
- "default": "-",
5582
- "description": "Icon color",
5560
+ "name": "validate-trigger",
5561
+ "default": "`onBlur`",
5562
+ "description": "When to validate the form, can be set to `onChange`、`onSubmit`, supports using array to set multiple values",
5583
5563
  "options": [],
5584
5564
  "value": {
5585
- "type": "string",
5565
+ "type": "string | string[]",
5586
5566
  "kind": "expression"
5587
5567
  }
5588
5568
  },
5589
5569
  {
5590
- "name": "dot",
5570
+ "name": "colon",
5591
5571
  "default": "`false`",
5592
- "description": "Whether to show red dot",
5572
+ "description": "Whether to display colon after label",
5593
5573
  "options": [],
5594
5574
  "value": {
5595
5575
  "type": "boolean",
@@ -5597,49 +5577,69 @@
5597
5577
  }
5598
5578
  },
5599
5579
  {
5600
- "name": "badge",
5601
- "default": "-",
5602
- "description": "Content of the badge",
5580
+ "name": "disabled",
5581
+ "default": "`false`",
5582
+ "description": "Whether to disable form",
5603
5583
  "options": [],
5604
5584
  "value": {
5605
- "type": "number | string",
5585
+ "type": "boolean",
5606
5586
  "kind": "expression"
5607
5587
  }
5608
5588
  },
5609
5589
  {
5610
- "name": "badge-props",
5611
- "default": "-",
5612
- "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
5590
+ "name": "readonly",
5591
+ "default": "`false`",
5592
+ "description": "Whether to be readonly",
5613
5593
  "options": [],
5614
5594
  "value": {
5615
- "type": "BadgeProps",
5595
+ "type": "boolean",
5616
5596
  "kind": "expression"
5617
5597
  }
5618
5598
  },
5619
5599
  {
5620
- "name": "url",
5621
- "default": "-",
5622
- "description": "Link URL",
5600
+ "name": "validate-first",
5601
+ "default": "`false`",
5602
+ "description": "Whether to stop the validation when a rule fails",
5623
5603
  "options": [],
5624
5604
  "value": {
5625
- "type": "string",
5605
+ "type": "boolean",
5626
5606
  "kind": "expression"
5627
5607
  }
5628
5608
  },
5629
5609
  {
5630
- "name": "to",
5631
- "default": "-",
5632
- "description": "Target route of the link, same as to of vue-router",
5610
+ "name": "scroll-to-error",
5611
+ "default": "`false`",
5612
+ "description": "Whether to scroll to the error field when validation failed",
5633
5613
  "options": [],
5634
5614
  "value": {
5635
- "type": "string | object",
5615
+ "type": "boolean",
5636
5616
  "kind": "expression"
5637
5617
  }
5638
5618
  },
5639
5619
  {
5640
- "name": "replace",
5620
+ "name": "show-error",
5641
5621
  "default": "`false`",
5642
- "description": "If true, the navigation will not leave a history record",
5622
+ "description": "Whether to highlight input when validation failed",
5623
+ "options": [],
5624
+ "value": {
5625
+ "type": "boolean",
5626
+ "kind": "expression"
5627
+ }
5628
+ },
5629
+ {
5630
+ "name": "show-error-message",
5631
+ "default": "`true`",
5632
+ "description": "Whether to show error message when validation failed",
5633
+ "options": [],
5634
+ "value": {
5635
+ "type": "boolean",
5636
+ "kind": "expression"
5637
+ }
5638
+ },
5639
+ {
5640
+ "name": "submit-on-enter",
5641
+ "default": "`true`",
5642
+ "description": "Whether to submit form on enter",
5643
5643
  "options": [],
5644
5644
  "value": {
5645
5645
  "type": "boolean",
@@ -6999,60 +6999,63 @@
6999
6999
  ]
7000
7000
  },
7001
7001
  {
7002
- "name": "van-overlay",
7002
+ "name": "van-pagination",
7003
7003
  "slots": [
7004
7004
  {
7005
- "name": "default",
7006
- "description": "Default slot"
7005
+ "name": "page",
7006
+ "description": "Custom pagination item"
7007
+ },
7008
+ {
7009
+ "name": "prev-text",
7010
+ "description": "Custom prev text"
7011
+ },
7012
+ {
7013
+ "name": "next-text",
7014
+ "description": "Custom next text"
7007
7015
  }
7008
7016
  ],
7009
7017
  "events": [
7010
7018
  {
7011
- "name": "click",
7012
- "description": "Emitted when component is clicked",
7013
- "arguments": [
7014
- {
7015
- "name": "event",
7016
- "type": "MouseEvent"
7017
- }
7018
- ]
7019
+ "name": "change",
7020
+ "description": "Emitted when current page changed",
7021
+ "arguments": []
7019
7022
  }
7020
7023
  ],
7021
7024
  "attributes": [
7022
7025
  {
7023
- "name": "show",
7024
- "default": "`false`",
7025
- "description": "Whether to show overlay",
7026
+ "name": "v-model",
7027
+ "default": "-",
7028
+ "description": "Current page number",
7026
7029
  "options": [],
7027
7030
  "value": {
7028
- "type": "boolean",
7031
+ "type": "number",
7029
7032
  "kind": "expression"
7030
7033
  }
7031
7034
  },
7032
7035
  {
7033
- "name": "z-index",
7034
- "default": "`1`",
7035
- "description": "z-index",
7036
+ "name": "mode",
7037
+ "default": "`multi`",
7038
+ "description": "Mode, can be set to `simple` `multi`",
7036
7039
  "options": [],
7037
7040
  "value": {
7038
- "type": "number | string",
7041
+ "type": "string",
7039
7042
  "kind": "expression"
7040
7043
  }
7041
7044
  },
7042
7045
  {
7043
- "name": "duration",
7044
- "default": "`0.3`",
7045
- "description": "Animation duration",
7046
+ "name": "prev-text",
7047
+ "default": "`Previous`",
7048
+ "description": "Previous text",
7046
7049
  "options": [],
7047
7050
  "value": {
7048
- "type": "number | string",
7051
+ "type": "string",
7049
7052
  "kind": "expression"
7050
7053
  }
7051
7054
  },
7052
7055
  {
7053
- "name": "class-name",
7054
- "default": "-",
7055
- "description": "ClassName",
7056
+ "name": "next-text",
7057
+ "default": "`Next`",
7058
+ "description": "Next text",
7056
7059
  "options": [],
7057
7060
  "value": {
7058
7061
  "type": "string",
@@ -7060,29 +7063,49 @@
7060
7063
  }
7061
7064
  },
7062
7065
  {
7063
- "name": "custom-class",
7064
- "default": "-",
7065
- "description": "Custom style",
7066
+ "name": "total-items",
7067
+ "default": "`0`",
7068
+ "description": "Total items",
7066
7069
  "options": [],
7067
7070
  "value": {
7068
- "type": "object",
7071
+ "type": "number | string",
7069
7072
  "kind": "expression"
7070
7073
  }
7071
7074
  },
7072
7075
  {
7073
- "name": "lock-scroll",
7074
- "default": "`true`",
7075
- "description": "Whether to lock background scroll",
7076
+ "name": "items-per-page",
7077
+ "default": "`10`",
7078
+ "description": "Item number per page",
7076
7079
  "options": [],
7077
7080
  "value": {
7078
- "type": "boolean",
7081
+ "type": "number | string",
7079
7082
  "kind": "expression"
7080
7083
  }
7081
7084
  },
7082
7085
  {
7083
- "name": "lazy-render",
7084
- "default": "`true`",
7085
- "description": "Whether to lazy render util appeared",
7086
+ "name": "page-count",
7087
+ "default": "`-`",
7088
+ "description": "The total number of pages, if not set, will be calculated based on `total-items` and `items-per-page`",
7089
+ "options": [],
7090
+ "value": {
7091
+ "type": "number | string",
7092
+ "kind": "expression"
7093
+ }
7094
+ },
7095
+ {
7096
+ "name": "show-page-size",
7097
+ "default": "`5`",
7098
+ "description": "Count of page size to show",
7099
+ "options": [],
7100
+ "value": {
7101
+ "type": "number | string",
7102
+ "kind": "expression"
7103
+ }
7104
+ },
7105
+ {
7106
+ "name": "force-ellipses",
7107
+ "default": "`false`",
7108
+ "description": "Whether to show ellipses",
7086
7109
  "options": [],
7087
7110
  "value": {
7088
7111
  "type": "boolean",
@@ -7092,73 +7115,50 @@
7092
7115
  ]
7093
7116
  },
7094
7117
  {
7095
- "name": "van-pagination",
7118
+ "name": "van-overlay",
7096
7119
  "slots": [
7097
7120
  {
7098
- "name": "page",
7099
- "description": "Custom pagination item"
7100
- },
7101
- {
7102
- "name": "prev-text",
7103
- "description": "Custom prev text"
7104
- },
7105
- {
7106
- "name": "next-text",
7107
- "description": "Custom next text"
7121
+ "name": "default",
7122
+ "description": "Default slot"
7108
7123
  }
7109
7124
  ],
7110
7125
  "events": [
7111
7126
  {
7112
- "name": "change",
7113
- "description": "Emitted when current page changed",
7114
- "arguments": []
7127
+ "name": "click",
7128
+ "description": "Emitted when component is clicked",
7129
+ "arguments": [
7130
+ {
7131
+ "name": "event",
7132
+ "type": "MouseEvent"
7133
+ }
7134
+ ]
7115
7135
  }
7116
7136
  ],
7117
7137
  "attributes": [
7118
7138
  {
7119
- "name": "v-model",
7120
- "default": "-",
7121
- "description": "Current page number",
7122
- "options": [],
7123
- "value": {
7124
- "type": "number",
7125
- "kind": "expression"
7126
- }
7127
- },
7128
- {
7129
- "name": "mode",
7130
- "default": "`multi`",
7131
- "description": "Mode, can be set to `simple` `multi`",
7132
- "options": [],
7133
- "value": {
7134
- "type": "string",
7135
- "kind": "expression"
7136
- }
7137
- },
7138
- {
7139
- "name": "prev-text",
7140
- "default": "`Previous`",
7141
- "description": "Previous text",
7139
+ "name": "show",
7140
+ "default": "`false`",
7141
+ "description": "Whether to show overlay",
7142
7142
  "options": [],
7143
7143
  "value": {
7144
- "type": "string",
7144
+ "type": "boolean",
7145
7145
  "kind": "expression"
7146
7146
  }
7147
7147
  },
7148
7148
  {
7149
- "name": "next-text",
7150
- "default": "`Next`",
7151
- "description": "Next text",
7149
+ "name": "z-index",
7150
+ "default": "`1`",
7151
+ "description": "z-index",
7152
7152
  "options": [],
7153
7153
  "value": {
7154
- "type": "string",
7154
+ "type": "number | string",
7155
7155
  "kind": "expression"
7156
7156
  }
7157
7157
  },
7158
- {
7159
- "name": "total-items",
7160
- "default": "`0`",
7161
- "description": "Total items",
7158
+ {
7159
+ "name": "duration",
7160
+ "default": "`0.3`",
7161
+ "description": "Animation duration",
7162
7162
  "options": [],
7163
7163
  "value": {
7164
7164
  "type": "number | string",
@@ -7166,39 +7166,39 @@
7166
7166
  }
7167
7167
  },
7168
7168
  {
7169
- "name": "items-per-page",
7170
- "default": "`10`",
7171
- "description": "Item number per page",
7169
+ "name": "class-name",
7170
+ "default": "-",
7171
+ "description": "ClassName",
7172
7172
  "options": [],
7173
7173
  "value": {
7174
- "type": "number | string",
7174
+ "type": "string",
7175
7175
  "kind": "expression"
7176
7176
  }
7177
7177
  },
7178
7178
  {
7179
- "name": "page-count",
7180
- "default": "`-`",
7181
- "description": "The total number of pages, if not set, will be calculated based on `total-items` and `items-per-page`",
7179
+ "name": "custom-class",
7180
+ "default": "-",
7181
+ "description": "Custom style",
7182
7182
  "options": [],
7183
7183
  "value": {
7184
- "type": "number | string",
7184
+ "type": "object",
7185
7185
  "kind": "expression"
7186
7186
  }
7187
7187
  },
7188
7188
  {
7189
- "name": "show-page-size",
7190
- "default": "`5`",
7191
- "description": "Count of page size to show",
7189
+ "name": "lock-scroll",
7190
+ "default": "`true`",
7191
+ "description": "Whether to lock background scroll",
7192
7192
  "options": [],
7193
7193
  "value": {
7194
- "type": "number | string",
7194
+ "type": "boolean",
7195
7195
  "kind": "expression"
7196
7196
  }
7197
7197
  },
7198
7198
  {
7199
- "name": "force-ellipses",
7200
- "default": "`false`",
7201
- "description": "Whether to show ellipses",
7199
+ "name": "lazy-render",
7200
+ "default": "`true`",
7201
+ "description": "Whether to lazy render util appeared",
7202
7202
  "options": [],
7203
7203
  "value": {
7204
7204
  "type": "boolean",
@@ -9400,68 +9400,6 @@
9400
9400
  }
9401
9401
  ]
9402
9402
  },
9403
- {
9404
- "name": "van-space",
9405
- "slots": [
9406
- {
9407
- "name": "default",
9408
- "description": "Default slot"
9409
- }
9410
- ],
9411
- "events": [],
9412
- "attributes": [
9413
- {
9414
- "name": "direction",
9415
- "default": "`horizontal`",
9416
- "description": "Spacing direction",
9417
- "options": [],
9418
- "value": {
9419
- "type": "vertical | horizontal",
9420
- "kind": "expression"
9421
- }
9422
- },
9423
- {
9424
- "name": "size",
9425
- "default": "`8px`",
9426
- "description": "Spacing size, such as `20px` `2em`. The default unit is px, supports using array to set horizontal and vertical spacing",
9427
- "options": [],
9428
- "value": {
9429
- "type": "number | string | number[] | string[]",
9430
- "kind": "expression"
9431
- }
9432
- },
9433
- {
9434
- "name": "align",
9435
- "default": "-",
9436
- "description": "Spacing alignment",
9437
- "options": [],
9438
- "value": {
9439
- "type": "start | end | center | baseline",
9440
- "kind": "expression"
9441
- }
9442
- },
9443
- {
9444
- "name": "wrap",
9445
- "default": "`false`",
9446
- "description": "Whether to wrap automatically, only for horizontal alignment",
9447
- "options": [],
9448
- "value": {
9449
- "type": "boolean",
9450
- "kind": "expression"
9451
- }
9452
- },
9453
- {
9454
- "name": "fill",
9455
- "default": "`false`",
9456
- "description": "Whether to render Space as a block element and fill the parent element",
9457
- "options": [],
9458
- "value": {
9459
- "type": "boolean",
9460
- "kind": "expression"
9461
- }
9462
- }
9463
- ]
9464
- },
9465
9403
  {
9466
9404
  "name": "van-slider",
9467
9405
  "slots": [
@@ -9652,6 +9590,189 @@
9652
9590
  }
9653
9591
  ]
9654
9592
  },
9593
+ {
9594
+ "name": "van-space",
9595
+ "slots": [
9596
+ {
9597
+ "name": "default",
9598
+ "description": "Default slot"
9599
+ }
9600
+ ],
9601
+ "events": [],
9602
+ "attributes": [
9603
+ {
9604
+ "name": "direction",
9605
+ "default": "`horizontal`",
9606
+ "description": "Spacing direction",
9607
+ "options": [],
9608
+ "value": {
9609
+ "type": "vertical | horizontal",
9610
+ "kind": "expression"
9611
+ }
9612
+ },
9613
+ {
9614
+ "name": "size",
9615
+ "default": "`8px`",
9616
+ "description": "Spacing size, such as `20px` `2em`. The default unit is px, supports using array to set horizontal and vertical spacing",
9617
+ "options": [],
9618
+ "value": {
9619
+ "type": "number | string | number[] | string[]",
9620
+ "kind": "expression"
9621
+ }
9622
+ },
9623
+ {
9624
+ "name": "align",
9625
+ "default": "-",
9626
+ "description": "Spacing alignment",
9627
+ "options": [],
9628
+ "value": {
9629
+ "type": "start | end | center | baseline",
9630
+ "kind": "expression"
9631
+ }
9632
+ },
9633
+ {
9634
+ "name": "wrap",
9635
+ "default": "`false`",
9636
+ "description": "Whether to wrap automatically, only for horizontal alignment",
9637
+ "options": [],
9638
+ "value": {
9639
+ "type": "boolean",
9640
+ "kind": "expression"
9641
+ }
9642
+ },
9643
+ {
9644
+ "name": "fill",
9645
+ "default": "`false`",
9646
+ "description": "Whether to render Space as a block element and fill the parent element",
9647
+ "options": [],
9648
+ "value": {
9649
+ "type": "boolean",
9650
+ "kind": "expression"
9651
+ }
9652
+ }
9653
+ ]
9654
+ },
9655
+ {
9656
+ "name": "van-steps",
9657
+ "slots": [],
9658
+ "events": [
9659
+ {
9660
+ "name": "click-step",
9661
+ "description": "Emitted when a step's title or icon is clicked",
9662
+ "arguments": [
9663
+ {
9664
+ "name": "index",
9665
+ "type": "number"
9666
+ }
9667
+ ]
9668
+ }
9669
+ ],
9670
+ "attributes": [
9671
+ {
9672
+ "name": "active",
9673
+ "default": "`0`",
9674
+ "description": "Active step",
9675
+ "options": [],
9676
+ "value": {
9677
+ "type": "number | string",
9678
+ "kind": "expression"
9679
+ }
9680
+ },
9681
+ {
9682
+ "name": "direction",
9683
+ "default": "`horizontal`",
9684
+ "description": "Can be set to `vertical`",
9685
+ "options": [],
9686
+ "value": {
9687
+ "type": "string",
9688
+ "kind": "expression"
9689
+ }
9690
+ },
9691
+ {
9692
+ "name": "active-color",
9693
+ "default": "`#07c160`",
9694
+ "description": "Active step color",
9695
+ "options": [],
9696
+ "value": {
9697
+ "type": "string",
9698
+ "kind": "expression"
9699
+ }
9700
+ },
9701
+ {
9702
+ "name": "inactive-color",
9703
+ "default": "`#969799`",
9704
+ "description": "Inactive step color",
9705
+ "options": [],
9706
+ "value": {
9707
+ "type": "string",
9708
+ "kind": "expression"
9709
+ }
9710
+ },
9711
+ {
9712
+ "name": "active-icon",
9713
+ "default": "`checked`",
9714
+ "description": "Active icon name",
9715
+ "options": [],
9716
+ "value": {
9717
+ "type": "string",
9718
+ "kind": "expression"
9719
+ }
9720
+ },
9721
+ {
9722
+ "name": "inactive-icon",
9723
+ "default": "-",
9724
+ "description": "Inactive icon name",
9725
+ "options": [],
9726
+ "value": {
9727
+ "type": "string",
9728
+ "kind": "expression"
9729
+ }
9730
+ },
9731
+ {
9732
+ "name": "finish-icon",
9733
+ "default": "-",
9734
+ "description": "Finish icon name",
9735
+ "options": [],
9736
+ "value": {
9737
+ "type": "string",
9738
+ "kind": "expression"
9739
+ }
9740
+ },
9741
+ {
9742
+ "name": "icon-prefix",
9743
+ "default": "`van-icon`",
9744
+ "description": "Icon className prefix",
9745
+ "options": [],
9746
+ "value": {
9747
+ "type": "string",
9748
+ "kind": "expression"
9749
+ }
9750
+ }
9751
+ ]
9752
+ },
9753
+ {
9754
+ "name": "van-step",
9755
+ "slots": [
9756
+ {
9757
+ "name": "default",
9758
+ "description": "Step content"
9759
+ },
9760
+ {
9761
+ "name": "active-icon",
9762
+ "description": "Custom active icon"
9763
+ },
9764
+ {
9765
+ "name": "inactive-icon",
9766
+ "description": "Custom inactive icon"
9767
+ },
9768
+ {
9769
+ "name": "finish-icon",
9770
+ "description": "Custom finish icon"
9771
+ }
9772
+ ],
9773
+ "events": [],
9774
+ "attributes": []
9775
+ },
9655
9776
  {
9656
9777
  "name": "van-stepper",
9657
9778
  "slots": [],
@@ -9929,127 +10050,6 @@
9929
10050
  }
9930
10051
  ]
9931
10052
  },
9932
- {
9933
- "name": "van-steps",
9934
- "slots": [],
9935
- "events": [
9936
- {
9937
- "name": "click-step",
9938
- "description": "Emitted when a step's title or icon is clicked",
9939
- "arguments": [
9940
- {
9941
- "name": "index",
9942
- "type": "number"
9943
- }
9944
- ]
9945
- }
9946
- ],
9947
- "attributes": [
9948
- {
9949
- "name": "active",
9950
- "default": "`0`",
9951
- "description": "Active step",
9952
- "options": [],
9953
- "value": {
9954
- "type": "number | string",
9955
- "kind": "expression"
9956
- }
9957
- },
9958
- {
9959
- "name": "direction",
9960
- "default": "`horizontal`",
9961
- "description": "Can be set to `vertical`",
9962
- "options": [],
9963
- "value": {
9964
- "type": "string",
9965
- "kind": "expression"
9966
- }
9967
- },
9968
- {
9969
- "name": "active-color",
9970
- "default": "`#07c160`",
9971
- "description": "Active step color",
9972
- "options": [],
9973
- "value": {
9974
- "type": "string",
9975
- "kind": "expression"
9976
- }
9977
- },
9978
- {
9979
- "name": "inactive-color",
9980
- "default": "`#969799`",
9981
- "description": "Inactive step color",
9982
- "options": [],
9983
- "value": {
9984
- "type": "string",
9985
- "kind": "expression"
9986
- }
9987
- },
9988
- {
9989
- "name": "active-icon",
9990
- "default": "`checked`",
9991
- "description": "Active icon name",
9992
- "options": [],
9993
- "value": {
9994
- "type": "string",
9995
- "kind": "expression"
9996
- }
9997
- },
9998
- {
9999
- "name": "inactive-icon",
10000
- "default": "-",
10001
- "description": "Inactive icon name",
10002
- "options": [],
10003
- "value": {
10004
- "type": "string",
10005
- "kind": "expression"
10006
- }
10007
- },
10008
- {
10009
- "name": "finish-icon",
10010
- "default": "-",
10011
- "description": "Finish icon name",
10012
- "options": [],
10013
- "value": {
10014
- "type": "string",
10015
- "kind": "expression"
10016
- }
10017
- },
10018
- {
10019
- "name": "icon-prefix",
10020
- "default": "`van-icon`",
10021
- "description": "Icon className prefix",
10022
- "options": [],
10023
- "value": {
10024
- "type": "string",
10025
- "kind": "expression"
10026
- }
10027
- }
10028
- ]
10029
- },
10030
- {
10031
- "name": "van-step",
10032
- "slots": [
10033
- {
10034
- "name": "default",
10035
- "description": "Step content"
10036
- },
10037
- {
10038
- "name": "active-icon",
10039
- "description": "Custom active icon"
10040
- },
10041
- {
10042
- "name": "inactive-icon",
10043
- "description": "Custom inactive icon"
10044
- },
10045
- {
10046
- "name": "finish-icon",
10047
- "description": "Custom finish icon"
10048
- }
10049
- ],
10050
- "events": [],
10051
- "attributes": []
10052
- },
10053
10053
  {
10054
10054
  "name": "van-sticky",
10055
10055
  "slots": [],
@@ -10248,158 +10248,47 @@
10248
10248
  {
10249
10249
  "name": "tip-icon",
10250
10250
  "default": "-",
10251
- "description": "Tip left icon",
10252
- "options": [],
10253
- "value": {
10254
- "type": "string",
10255
- "kind": "expression"
10256
- }
10257
- },
10258
- {
10259
- "name": "currency",
10260
- "default": "`¥`",
10261
- "description": "Currency symbol",
10262
- "options": [],
10263
- "value": {
10264
- "type": "string",
10265
- "kind": "expression"
10266
- }
10267
- },
10268
- {
10269
- "name": "disabled",
10270
- "default": "`false`",
10271
- "description": "Whether to disable button",
10272
- "options": [],
10273
- "value": {
10274
- "type": "boolean",
10275
- "kind": "expression"
10276
- }
10277
- },
10278
- {
10279
- "name": "loading",
10280
- "default": "`false`",
10281
- "description": "Whether to show loading icon",
10282
- "options": [],
10283
- "value": {
10284
- "type": "boolean",
10285
- "kind": "expression"
10286
- }
10287
- },
10288
- {
10289
- "name": "safe-area-inset-bottom",
10290
- "default": "`true`",
10291
- "description": "Whether to enable bottom safe area adaptation",
10292
- "options": [],
10293
- "value": {
10294
- "type": "boolean",
10295
- "kind": "expression"
10296
- }
10297
- },
10298
- {
10299
- "name": "placeholder",
10300
- "default": "`false`",
10301
- "description": "Whether to generate a placeholder element",
10302
- "options": [],
10303
- "value": {
10304
- "type": "boolean",
10305
- "kind": "expression"
10306
- }
10307
- }
10308
- ]
10309
- },
10310
- {
10311
- "name": "van-swipe-cell",
10312
- "slots": [
10313
- {
10314
- "name": "default",
10315
- "description": "custom content"
10316
- },
10317
- {
10318
- "name": "left",
10319
- "description": "content of left scrollable area"
10320
- },
10321
- {
10322
- "name": "right",
10323
- "description": "content of right scrollable area"
10324
- }
10325
- ],
10326
- "events": [
10327
- {
10328
- "name": "click",
10329
- "description": "Emitted when SwipeCell is clicked",
10330
- "arguments": [
10331
- {
10332
- "name": "position",
10333
- "type": "'left' | 'right' | 'cell' | 'outside'"
10334
- }
10335
- ]
10336
- },
10337
- {
10338
- "name": "open",
10339
- "description": "Emitted when SwipeCell is opened",
10340
- "arguments": [
10341
- {
10342
- "name": "value",
10343
- "type": "{ name: string | number, position: 'left' | 'right' }"
10344
- }
10345
- ]
10346
- },
10347
- {
10348
- "name": "close",
10349
- "description": "Emitted when SwipeCell is closed",
10350
- "arguments": [
10351
- {
10352
- "name": "value",
10353
- "type": "{ name: string | number, position: 'left' | 'right' | 'cell' | 'outside' }"
10354
- }
10355
- ]
10356
- }
10357
- ],
10358
- "attributes": [
10359
- {
10360
- "name": "name",
10361
- "default": "-",
10362
- "description": "Identifier of SwipeCell, usually a unique string or number",
10251
+ "description": "Tip left icon",
10363
10252
  "options": [],
10364
10253
  "value": {
10365
- "type": "number | string",
10254
+ "type": "string",
10366
10255
  "kind": "expression"
10367
10256
  }
10368
10257
  },
10369
10258
  {
10370
- "name": "left-width",
10371
- "default": "`auto`",
10372
- "description": "Width of the left swipe area",
10259
+ "name": "currency",
10260
+ "default": "`¥`",
10261
+ "description": "Currency symbol",
10373
10262
  "options": [],
10374
10263
  "value": {
10375
- "type": "number | string",
10264
+ "type": "string",
10376
10265
  "kind": "expression"
10377
10266
  }
10378
10267
  },
10379
10268
  {
10380
- "name": "right-width",
10381
- "default": "`auto`",
10382
- "description": "Width of the right swipe area",
10269
+ "name": "disabled",
10270
+ "default": "`false`",
10271
+ "description": "Whether to disable button",
10383
10272
  "options": [],
10384
10273
  "value": {
10385
- "type": "number | string",
10274
+ "type": "boolean",
10386
10275
  "kind": "expression"
10387
10276
  }
10388
10277
  },
10389
10278
  {
10390
- "name": "before-close",
10391
- "default": "-",
10392
- "description": "Callback function before close",
10279
+ "name": "loading",
10280
+ "default": "`false`",
10281
+ "description": "Whether to show loading icon",
10393
10282
  "options": [],
10394
10283
  "value": {
10395
- "type": "(args) => boolean | Promise\\<boolean\\>",
10284
+ "type": "boolean",
10396
10285
  "kind": "expression"
10397
10286
  }
10398
10287
  },
10399
10288
  {
10400
- "name": "disabled",
10401
- "default": "`false`",
10402
- "description": "Whether to disabled swipe",
10289
+ "name": "safe-area-inset-bottom",
10290
+ "default": "`true`",
10291
+ "description": "Whether to enable bottom safe area adaptation",
10403
10292
  "options": [],
10404
10293
  "value": {
10405
10294
  "type": "boolean",
@@ -10407,9 +10296,9 @@
10407
10296
  }
10408
10297
  },
10409
10298
  {
10410
- "name": "stop-propagation",
10299
+ "name": "placeholder",
10411
10300
  "default": "`false`",
10412
- "description": "Whether to stop touchmove event propagation",
10301
+ "description": "Whether to generate a placeholder element",
10413
10302
  "options": [],
10414
10303
  "value": {
10415
10304
  "type": "boolean",
@@ -10583,74 +10472,68 @@
10583
10472
  "attributes": []
10584
10473
  },
10585
10474
  {
10586
- "name": "van-switch",
10475
+ "name": "van-swipe-cell",
10587
10476
  "slots": [
10588
10477
  {
10589
- "name": "node",
10590
- "description": "Custom the content of node"
10478
+ "name": "default",
10479
+ "description": "custom content"
10591
10480
  },
10592
10481
  {
10593
- "name": "background",
10594
- "description": "Custom the background of switch"
10482
+ "name": "left",
10483
+ "description": "content of left scrollable area"
10484
+ },
10485
+ {
10486
+ "name": "right",
10487
+ "description": "content of right scrollable area"
10595
10488
  }
10596
10489
  ],
10597
10490
  "events": [
10598
10491
  {
10599
- "name": "change",
10600
- "description": "Emitted when check status changed",
10492
+ "name": "click",
10493
+ "description": "Emitted when SwipeCell is clicked",
10494
+ "arguments": [
10495
+ {
10496
+ "name": "position",
10497
+ "type": "'left' | 'right' | 'cell' | 'outside'"
10498
+ }
10499
+ ]
10500
+ },
10501
+ {
10502
+ "name": "open",
10503
+ "description": "Emitted when SwipeCell is opened",
10601
10504
  "arguments": [
10602
10505
  {
10603
10506
  "name": "value",
10604
- "type": "any"
10507
+ "type": "{ name: string | number, position: 'left' | 'right' }"
10605
10508
  }
10606
10509
  ]
10607
10510
  },
10608
10511
  {
10609
- "name": "click",
10610
- "description": "Emitted when component is clicked",
10512
+ "name": "close",
10513
+ "description": "Emitted when SwipeCell is closed",
10611
10514
  "arguments": [
10612
10515
  {
10613
- "name": "event",
10614
- "type": "MouseEvent"
10516
+ "name": "value",
10517
+ "type": "{ name: string | number, position: 'left' | 'right' | 'cell' | 'outside' }"
10615
10518
  }
10616
10519
  ]
10617
10520
  }
10618
10521
  ],
10619
10522
  "attributes": [
10620
10523
  {
10621
- "name": "v-model",
10622
- "default": "`false`",
10623
- "description": "Check status of Switch",
10624
- "options": [],
10625
- "value": {
10626
- "type": "ActiveValue | InactiveValue",
10627
- "kind": "expression"
10628
- }
10629
- },
10630
- {
10631
- "name": "loading",
10632
- "default": "`false`",
10633
- "description": "Whether to show loading icon",
10634
- "options": [],
10635
- "value": {
10636
- "type": "boolean",
10637
- "kind": "expression"
10638
- }
10639
- },
10640
- {
10641
- "name": "disabled",
10642
- "default": "`false`",
10643
- "description": "Whether to disable switch",
10524
+ "name": "name",
10525
+ "default": "-",
10526
+ "description": "Identifier of SwipeCell, usually a unique string or number",
10644
10527
  "options": [],
10645
10528
  "value": {
10646
- "type": "boolean",
10529
+ "type": "number | string",
10647
10530
  "kind": "expression"
10648
10531
  }
10649
10532
  },
10650
10533
  {
10651
- "name": "size",
10652
- "default": "`30px`",
10653
- "description": "Size of switch",
10534
+ "name": "left-width",
10535
+ "default": "`auto`",
10536
+ "description": "Width of the left swipe area",
10654
10537
  "options": [],
10655
10538
  "value": {
10656
10539
  "type": "number | string",
@@ -10658,42 +10541,42 @@
10658
10541
  }
10659
10542
  },
10660
10543
  {
10661
- "name": "active-color",
10662
- "default": "`#1989fa`",
10663
- "description": "Background color when active",
10544
+ "name": "right-width",
10545
+ "default": "`auto`",
10546
+ "description": "Width of the right swipe area",
10664
10547
  "options": [],
10665
10548
  "value": {
10666
- "type": "string",
10549
+ "type": "number | string",
10667
10550
  "kind": "expression"
10668
10551
  }
10669
10552
  },
10670
10553
  {
10671
- "name": "inactive-color",
10672
- "default": "`white`",
10673
- "description": "Background color when inactive",
10554
+ "name": "before-close",
10555
+ "default": "-",
10556
+ "description": "Callback function before close",
10674
10557
  "options": [],
10675
10558
  "value": {
10676
- "type": "string",
10559
+ "type": "(args) => boolean | Promise\\<boolean\\>",
10677
10560
  "kind": "expression"
10678
10561
  }
10679
10562
  },
10680
10563
  {
10681
- "name": "active-value",
10682
- "default": "`true`",
10683
- "description": "Value when active",
10564
+ "name": "disabled",
10565
+ "default": "`false`",
10566
+ "description": "Whether to disabled swipe",
10684
10567
  "options": [],
10685
10568
  "value": {
10686
- "type": "any",
10569
+ "type": "boolean",
10687
10570
  "kind": "expression"
10688
10571
  }
10689
10572
  },
10690
10573
  {
10691
- "name": "inactive-value",
10574
+ "name": "stop-propagation",
10692
10575
  "default": "`false`",
10693
- "description": "Value when inactive",
10576
+ "description": "Whether to stop touchmove event propagation",
10694
10577
  "options": [],
10695
10578
  "value": {
10696
- "type": "any",
10579
+ "type": "boolean",
10697
10580
  "kind": "expression"
10698
10581
  }
10699
10582
  }
@@ -11092,6 +10975,123 @@
11092
10975
  }
11093
10976
  ]
11094
10977
  },
10978
+ {
10979
+ "name": "van-switch",
10980
+ "slots": [
10981
+ {
10982
+ "name": "node",
10983
+ "description": "Custom the content of node"
10984
+ },
10985
+ {
10986
+ "name": "background",
10987
+ "description": "Custom the background of switch"
10988
+ }
10989
+ ],
10990
+ "events": [
10991
+ {
10992
+ "name": "change",
10993
+ "description": "Emitted when check status changed",
10994
+ "arguments": [
10995
+ {
10996
+ "name": "value",
10997
+ "type": "any"
10998
+ }
10999
+ ]
11000
+ },
11001
+ {
11002
+ "name": "click",
11003
+ "description": "Emitted when component is clicked",
11004
+ "arguments": [
11005
+ {
11006
+ "name": "event",
11007
+ "type": "MouseEvent"
11008
+ }
11009
+ ]
11010
+ }
11011
+ ],
11012
+ "attributes": [
11013
+ {
11014
+ "name": "v-model",
11015
+ "default": "`false`",
11016
+ "description": "Check status of Switch",
11017
+ "options": [],
11018
+ "value": {
11019
+ "type": "ActiveValue | InactiveValue",
11020
+ "kind": "expression"
11021
+ }
11022
+ },
11023
+ {
11024
+ "name": "loading",
11025
+ "default": "`false`",
11026
+ "description": "Whether to show loading icon",
11027
+ "options": [],
11028
+ "value": {
11029
+ "type": "boolean",
11030
+ "kind": "expression"
11031
+ }
11032
+ },
11033
+ {
11034
+ "name": "disabled",
11035
+ "default": "`false`",
11036
+ "description": "Whether to disable switch",
11037
+ "options": [],
11038
+ "value": {
11039
+ "type": "boolean",
11040
+ "kind": "expression"
11041
+ }
11042
+ },
11043
+ {
11044
+ "name": "size",
11045
+ "default": "`30px`",
11046
+ "description": "Size of switch",
11047
+ "options": [],
11048
+ "value": {
11049
+ "type": "number | string",
11050
+ "kind": "expression"
11051
+ }
11052
+ },
11053
+ {
11054
+ "name": "active-color",
11055
+ "default": "`#1989fa`",
11056
+ "description": "Background color when active",
11057
+ "options": [],
11058
+ "value": {
11059
+ "type": "string",
11060
+ "kind": "expression"
11061
+ }
11062
+ },
11063
+ {
11064
+ "name": "inactive-color",
11065
+ "default": "`white`",
11066
+ "description": "Background color when inactive",
11067
+ "options": [],
11068
+ "value": {
11069
+ "type": "string",
11070
+ "kind": "expression"
11071
+ }
11072
+ },
11073
+ {
11074
+ "name": "active-value",
11075
+ "default": "`true`",
11076
+ "description": "Value when active",
11077
+ "options": [],
11078
+ "value": {
11079
+ "type": "any",
11080
+ "kind": "expression"
11081
+ }
11082
+ },
11083
+ {
11084
+ "name": "inactive-value",
11085
+ "default": "`false`",
11086
+ "description": "Value when inactive",
11087
+ "options": [],
11088
+ "value": {
11089
+ "type": "any",
11090
+ "kind": "expression"
11091
+ }
11092
+ }
11093
+ ]
11094
+ },
11095
11095
  {
11096
11096
  "name": "van-tabbar",
11097
11097
  "slots": [],