vant 4.0.0-alpha.0 → 4.0.0-alpha.1

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.
Files changed (66) hide show
  1. package/changelog.generated.md +197 -0
  2. package/es/calendar/Calendar.d.ts +4 -0
  3. package/es/calendar/Calendar.js +2 -0
  4. package/es/calendar/index.css +1 -1
  5. package/es/calendar/index.d.ts +3 -0
  6. package/es/calendar/index.less +1 -0
  7. package/es/config-provider/ConfigProvider.js +2 -0
  8. package/es/date-picker/DatePicker.js +1 -1
  9. package/es/dialog/index.css +1 -1
  10. package/es/dialog/index.less +2 -0
  11. package/es/index-bar/IndexBar.js +25 -4
  12. package/es/index.d.ts +1 -1
  13. package/es/index.js +1 -1
  14. package/es/locale/lang/la-LA.d.ts +64 -0
  15. package/es/locale/lang/la-LA.js +66 -0
  16. package/es/nav-bar/NavBar.d.ts +1 -1
  17. package/es/nav-bar/NavBar.js +3 -3
  18. package/es/nav-bar/index.d.ts +1 -1
  19. package/es/picker/index.css +1 -1
  20. package/es/picker/index.less +1 -0
  21. package/es/popup/Popup.d.ts +4 -0
  22. package/es/popup/Popup.js +3 -0
  23. package/es/popup/index.d.ts +3 -0
  24. package/es/skeleton/Skeleton.js +6 -4
  25. package/es/style/base.css +1 -1
  26. package/es/style/base.less +5 -0
  27. package/es/swipe-cell/SwipeCell.js +1 -1
  28. package/es/toast/Toast.js +1 -0
  29. package/lib/calendar/Calendar.d.ts +4 -0
  30. package/lib/calendar/Calendar.js +2 -0
  31. package/lib/calendar/index.css +1 -1
  32. package/lib/calendar/index.d.ts +3 -0
  33. package/lib/calendar/index.less +1 -0
  34. package/lib/config-provider/ConfigProvider.js +2 -0
  35. package/lib/date-picker/DatePicker.js +1 -1
  36. package/lib/dialog/index.css +1 -1
  37. package/lib/dialog/index.less +2 -0
  38. package/lib/index-bar/IndexBar.js +25 -4
  39. package/lib/index.css +1 -1
  40. package/lib/index.d.ts +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/lang/la-LA.d.ts +64 -0
  43. package/lib/locale/lang/la-LA.js +90 -0
  44. package/lib/nav-bar/NavBar.d.ts +1 -1
  45. package/lib/nav-bar/NavBar.js +3 -3
  46. package/lib/nav-bar/index.d.ts +1 -1
  47. package/lib/picker/index.css +1 -1
  48. package/lib/picker/index.less +1 -0
  49. package/lib/popup/Popup.d.ts +4 -0
  50. package/lib/popup/Popup.js +3 -0
  51. package/lib/popup/index.d.ts +3 -0
  52. package/lib/skeleton/Skeleton.js +5 -3
  53. package/lib/style/base.css +1 -1
  54. package/lib/style/base.less +5 -0
  55. package/lib/swipe-cell/SwipeCell.js +1 -1
  56. package/lib/toast/Toast.js +1 -0
  57. package/lib/vant.cjs.js +44 -13
  58. package/lib/vant.cjs.min.js +1 -1
  59. package/lib/vant.es.js +44 -13
  60. package/lib/vant.es.min.js +44 -13
  61. package/lib/vant.js +44 -13
  62. package/lib/vant.min.js +1 -1
  63. package/package.json +2 -2
  64. package/vetur/attributes.json +203 -195
  65. package/vetur/tags.json +70 -68
  66. package/vetur/web-types.json +644 -624
@@ -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": "4.0.0-alpha.0",
5
+ "version": "4.0.0-alpha.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -253,261 +253,6 @@
253
253
  }
254
254
  ]
255
255
  },
256
- {
257
- "name": "van-action-sheet",
258
- "slots": [
259
- {
260
- "name": "default",
261
- "description": "Custom content"
262
- },
263
- {
264
- "name": "description",
265
- "description": "Custom description above the options"
266
- },
267
- {
268
- "name": "cancel",
269
- "description": "Custom the content of cancel button"
270
- },
271
- {
272
- "name": "action",
273
- "description": "Custom the content of action"
274
- }
275
- ],
276
- "events": [
277
- {
278
- "name": "select",
279
- "description": "Emitted when an option is clicked"
280
- },
281
- {
282
- "name": "cancel",
283
- "description": "Emitted when the cancel button is clicked"
284
- },
285
- {
286
- "name": "open",
287
- "description": "Emitted when opening ActionSheet"
288
- },
289
- {
290
- "name": "close",
291
- "description": "Emitted when closing ActionSheet"
292
- },
293
- {
294
- "name": "opened",
295
- "description": "Emitted when ActionSheet is opened"
296
- },
297
- {
298
- "name": "closed",
299
- "description": "Emitted when ActionSheet is closed"
300
- },
301
- {
302
- "name": "click-overlay",
303
- "description": "Emitted when overlay is clicked"
304
- }
305
- ],
306
- "attributes": [
307
- {
308
- "name": "v-model:show",
309
- "default": "`false`",
310
- "description": "Whether to show ActionSheet",
311
- "options": [],
312
- "value": {
313
- "type": "boolean",
314
- "kind": "expression"
315
- }
316
- },
317
- {
318
- "name": "actions",
319
- "default": "`[]`",
320
- "description": "Options",
321
- "options": [],
322
- "value": {
323
- "type": "ActionSheetAction[]",
324
- "kind": "expression"
325
- }
326
- },
327
- {
328
- "name": "title",
329
- "default": "-",
330
- "description": "Title",
331
- "options": [],
332
- "value": {
333
- "type": "string",
334
- "kind": "expression"
335
- }
336
- },
337
- {
338
- "name": "cancel-text",
339
- "default": "-",
340
- "description": "Text of cancel button",
341
- "options": [],
342
- "value": {
343
- "type": "string",
344
- "kind": "expression"
345
- }
346
- },
347
- {
348
- "name": "description",
349
- "default": "-",
350
- "description": "Description above the options",
351
- "options": [],
352
- "value": {
353
- "type": "string",
354
- "kind": "expression"
355
- }
356
- },
357
- {
358
- "name": "closeable",
359
- "default": "`true`",
360
- "description": "Whether to show close icon",
361
- "options": [],
362
- "value": {
363
- "type": "boolean",
364
- "kind": "expression"
365
- }
366
- },
367
- {
368
- "name": "close-icon",
369
- "default": "`cross`",
370
- "description": "Close icon name",
371
- "options": [],
372
- "value": {
373
- "type": "string",
374
- "kind": "expression"
375
- }
376
- },
377
- {
378
- "name": "duration",
379
- "default": "`0.3`",
380
- "description": "Transition duration, unit second",
381
- "options": [],
382
- "value": {
383
- "type": "number | string",
384
- "kind": "expression"
385
- }
386
- },
387
- {
388
- "name": "round",
389
- "default": "`true`",
390
- "description": "Whether to show round corner",
391
- "options": [],
392
- "value": {
393
- "type": "boolean",
394
- "kind": "expression"
395
- }
396
- },
397
- {
398
- "name": "overlay",
399
- "default": "`true`",
400
- "description": "Whether to show overlay",
401
- "options": [],
402
- "value": {
403
- "type": "boolean",
404
- "kind": "expression"
405
- }
406
- },
407
- {
408
- "name": "overlay-class",
409
- "default": "object_",
410
- "description": "Custom overlay class",
411
- "options": [
412
- "-"
413
- ],
414
- "value": {
415
- "type": "string | Array \\",
416
- "kind": "expression"
417
- }
418
- },
419
- {
420
- "name": "overlay-style",
421
- "default": "-",
422
- "description": "Custom overlay style",
423
- "options": [],
424
- "value": {
425
- "type": "object",
426
- "kind": "expression"
427
- }
428
- },
429
- {
430
- "name": "lock-scroll",
431
- "default": "`true`",
432
- "description": "Whether to lock background scroll",
433
- "options": [],
434
- "value": {
435
- "type": "boolean",
436
- "kind": "expression"
437
- }
438
- },
439
- {
440
- "name": "lazy-render",
441
- "default": "`true`",
442
- "description": "Whether to lazy render util appeared",
443
- "options": [],
444
- "value": {
445
- "type": "boolean",
446
- "kind": "expression"
447
- }
448
- },
449
- {
450
- "name": "close-on-popstate",
451
- "default": "`true`",
452
- "description": "Whether to close when popstate",
453
- "options": [],
454
- "value": {
455
- "type": "boolean",
456
- "kind": "expression"
457
- }
458
- },
459
- {
460
- "name": "close-on-click-action",
461
- "default": "`false`",
462
- "description": "Whether to close when an action is clicked",
463
- "options": [],
464
- "value": {
465
- "type": "boolean",
466
- "kind": "expression"
467
- }
468
- },
469
- {
470
- "name": "close-on-click-overlay",
471
- "default": "`true`",
472
- "description": "Whether to close when overlay is clicked",
473
- "options": [],
474
- "value": {
475
- "type": "boolean",
476
- "kind": "expression"
477
- }
478
- },
479
- {
480
- "name": "safe-area-inset-bottom",
481
- "default": "`true`",
482
- "description": "Whether to enable bottom safe area adaptation",
483
- "options": [],
484
- "value": {
485
- "type": "boolean",
486
- "kind": "expression"
487
- }
488
- },
489
- {
490
- "name": "teleport",
491
- "default": "-",
492
- "description": "Specifies a target element where ActionSheet will be mounted",
493
- "options": [],
494
- "value": {
495
- "type": "string | Element",
496
- "kind": "expression"
497
- }
498
- },
499
- {
500
- "name": "before-close",
501
- "default": "-",
502
- "description": "Callback function before close",
503
- "options": [],
504
- "value": {
505
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
506
- "kind": "expression"
507
- }
508
- }
509
- ]
510
- },
511
256
  {
512
257
  "name": "van-address-edit",
513
258
  "slots": [
@@ -941,44 +686,289 @@
941
686
  "description": "the `code` of selected area",
942
687
  "options": [],
943
688
  "value": {
944
- "type": "string",
689
+ "type": "string",
690
+ "kind": "expression"
691
+ }
692
+ },
693
+ {
694
+ "name": "title",
695
+ "default": "-",
696
+ "description": "Toolbar title",
697
+ "options": [],
698
+ "value": {
699
+ "type": "string",
700
+ "kind": "expression"
701
+ }
702
+ },
703
+ {
704
+ "name": "confirm-button-text",
705
+ "default": "`Confirm`",
706
+ "description": "Text of confirm button",
707
+ "options": [],
708
+ "value": {
709
+ "type": "string",
710
+ "kind": "expression"
711
+ }
712
+ },
713
+ {
714
+ "name": "cancel-button-text",
715
+ "default": "`Cancel`",
716
+ "description": "Text of cancel button",
717
+ "options": [],
718
+ "value": {
719
+ "type": "string",
720
+ "kind": "expression"
721
+ }
722
+ },
723
+ {
724
+ "name": "area-list",
725
+ "default": "-",
726
+ "description": "Area list data",
727
+ "options": [],
728
+ "value": {
729
+ "type": "object",
730
+ "kind": "expression"
731
+ }
732
+ },
733
+ {
734
+ "name": "columns-placeholder",
735
+ "default": "`[]`",
736
+ "description": "Placeholder of columns",
737
+ "options": [],
738
+ "value": {
739
+ "type": "string[]",
740
+ "kind": "expression"
741
+ }
742
+ },
743
+ {
744
+ "name": "loading",
745
+ "default": "`false`",
746
+ "description": "Whether to show loading prompt",
747
+ "options": [],
748
+ "value": {
749
+ "type": "boolean",
750
+ "kind": "expression"
751
+ }
752
+ },
753
+ {
754
+ "name": "readonly",
755
+ "default": "`false`",
756
+ "description": "Whether to be readonly",
757
+ "options": [],
758
+ "value": {
759
+ "type": "boolean",
760
+ "kind": "expression"
761
+ }
762
+ },
763
+ {
764
+ "name": "option-height",
765
+ "default": "`44`",
766
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
767
+ "options": [],
768
+ "value": {
769
+ "type": "number | string",
770
+ "kind": "expression"
771
+ }
772
+ },
773
+ {
774
+ "name": "columns-num",
775
+ "default": "`3`",
776
+ "description": "Level of picker",
777
+ "options": [],
778
+ "value": {
779
+ "type": "number | string",
780
+ "kind": "expression"
781
+ }
782
+ },
783
+ {
784
+ "name": "visible-option-num",
785
+ "default": "`6`",
786
+ "description": "Count of visible columns",
787
+ "options": [],
788
+ "value": {
789
+ "type": "number | string",
790
+ "kind": "expression"
791
+ }
792
+ },
793
+ {
794
+ "name": "swipe-duration",
795
+ "default": "`1000`",
796
+ "description": "Duration of the momentum animation,unit `ms`",
797
+ "options": [],
798
+ "value": {
799
+ "type": "number | string",
800
+ "kind": "expression"
801
+ }
802
+ }
803
+ ]
804
+ },
805
+ {
806
+ "name": "van-action-sheet",
807
+ "slots": [
808
+ {
809
+ "name": "default",
810
+ "description": "Custom content"
811
+ },
812
+ {
813
+ "name": "description",
814
+ "description": "Custom description above the options"
815
+ },
816
+ {
817
+ "name": "cancel",
818
+ "description": "Custom the content of cancel button"
819
+ },
820
+ {
821
+ "name": "action",
822
+ "description": "Custom the content of action"
823
+ }
824
+ ],
825
+ "events": [
826
+ {
827
+ "name": "select",
828
+ "description": "Emitted when an option is clicked"
829
+ },
830
+ {
831
+ "name": "cancel",
832
+ "description": "Emitted when the cancel button is clicked"
833
+ },
834
+ {
835
+ "name": "open",
836
+ "description": "Emitted when opening ActionSheet"
837
+ },
838
+ {
839
+ "name": "close",
840
+ "description": "Emitted when closing ActionSheet"
841
+ },
842
+ {
843
+ "name": "opened",
844
+ "description": "Emitted when ActionSheet is opened"
845
+ },
846
+ {
847
+ "name": "closed",
848
+ "description": "Emitted when ActionSheet is closed"
849
+ },
850
+ {
851
+ "name": "click-overlay",
852
+ "description": "Emitted when overlay is clicked"
853
+ }
854
+ ],
855
+ "attributes": [
856
+ {
857
+ "name": "v-model:show",
858
+ "default": "`false`",
859
+ "description": "Whether to show ActionSheet",
860
+ "options": [],
861
+ "value": {
862
+ "type": "boolean",
863
+ "kind": "expression"
864
+ }
865
+ },
866
+ {
867
+ "name": "actions",
868
+ "default": "`[]`",
869
+ "description": "Options",
870
+ "options": [],
871
+ "value": {
872
+ "type": "ActionSheetAction[]",
873
+ "kind": "expression"
874
+ }
875
+ },
876
+ {
877
+ "name": "title",
878
+ "default": "-",
879
+ "description": "Title",
880
+ "options": [],
881
+ "value": {
882
+ "type": "string",
883
+ "kind": "expression"
884
+ }
885
+ },
886
+ {
887
+ "name": "cancel-text",
888
+ "default": "-",
889
+ "description": "Text of cancel button",
890
+ "options": [],
891
+ "value": {
892
+ "type": "string",
893
+ "kind": "expression"
894
+ }
895
+ },
896
+ {
897
+ "name": "description",
898
+ "default": "-",
899
+ "description": "Description above the options",
900
+ "options": [],
901
+ "value": {
902
+ "type": "string",
903
+ "kind": "expression"
904
+ }
905
+ },
906
+ {
907
+ "name": "closeable",
908
+ "default": "`true`",
909
+ "description": "Whether to show close icon",
910
+ "options": [],
911
+ "value": {
912
+ "type": "boolean",
913
+ "kind": "expression"
914
+ }
915
+ },
916
+ {
917
+ "name": "close-icon",
918
+ "default": "`cross`",
919
+ "description": "Close icon name",
920
+ "options": [],
921
+ "value": {
922
+ "type": "string",
923
+ "kind": "expression"
924
+ }
925
+ },
926
+ {
927
+ "name": "duration",
928
+ "default": "`0.3`",
929
+ "description": "Transition duration, unit second",
930
+ "options": [],
931
+ "value": {
932
+ "type": "number | string",
945
933
  "kind": "expression"
946
934
  }
947
935
  },
948
936
  {
949
- "name": "title",
950
- "default": "-",
951
- "description": "Toolbar title",
937
+ "name": "round",
938
+ "default": "`true`",
939
+ "description": "Whether to show round corner",
952
940
  "options": [],
953
941
  "value": {
954
- "type": "string",
942
+ "type": "boolean",
955
943
  "kind": "expression"
956
944
  }
957
945
  },
958
946
  {
959
- "name": "confirm-button-text",
960
- "default": "`Confirm`",
961
- "description": "Text of confirm button",
947
+ "name": "overlay",
948
+ "default": "`true`",
949
+ "description": "Whether to show overlay",
962
950
  "options": [],
963
951
  "value": {
964
- "type": "string",
952
+ "type": "boolean",
965
953
  "kind": "expression"
966
954
  }
967
955
  },
968
956
  {
969
- "name": "cancel-button-text",
970
- "default": "`Cancel`",
971
- "description": "Text of cancel button",
972
- "options": [],
957
+ "name": "overlay-class",
958
+ "default": "object_",
959
+ "description": "Custom overlay class",
960
+ "options": [
961
+ "-"
962
+ ],
973
963
  "value": {
974
- "type": "string",
964
+ "type": "string | Array \\",
975
965
  "kind": "expression"
976
966
  }
977
967
  },
978
968
  {
979
- "name": "area-list",
969
+ "name": "overlay-style",
980
970
  "default": "-",
981
- "description": "Area list data",
971
+ "description": "Custom overlay style",
982
972
  "options": [],
983
973
  "value": {
984
974
  "type": "object",
@@ -986,19 +976,19 @@
986
976
  }
987
977
  },
988
978
  {
989
- "name": "columns-placeholder",
990
- "default": "`[]`",
991
- "description": "Placeholder of columns",
979
+ "name": "lock-scroll",
980
+ "default": "`true`",
981
+ "description": "Whether to lock background scroll",
992
982
  "options": [],
993
983
  "value": {
994
- "type": "string[]",
984
+ "type": "boolean",
995
985
  "kind": "expression"
996
986
  }
997
987
  },
998
988
  {
999
- "name": "loading",
1000
- "default": "`false`",
1001
- "description": "Whether to show loading prompt",
989
+ "name": "lazy-render",
990
+ "default": "`true`",
991
+ "description": "Whether to lazy render util appeared",
1002
992
  "options": [],
1003
993
  "value": {
1004
994
  "type": "boolean",
@@ -1006,9 +996,19 @@
1006
996
  }
1007
997
  },
1008
998
  {
1009
- "name": "readonly",
999
+ "name": "close-on-popstate",
1000
+ "default": "`true`",
1001
+ "description": "Whether to close when popstate",
1002
+ "options": [],
1003
+ "value": {
1004
+ "type": "boolean",
1005
+ "kind": "expression"
1006
+ }
1007
+ },
1008
+ {
1009
+ "name": "close-on-click-action",
1010
1010
  "default": "`false`",
1011
- "description": "Whether to be readonly",
1011
+ "description": "Whether to close when an action is clicked",
1012
1012
  "options": [],
1013
1013
  "value": {
1014
1014
  "type": "boolean",
@@ -1016,42 +1016,42 @@
1016
1016
  }
1017
1017
  },
1018
1018
  {
1019
- "name": "option-height",
1020
- "default": "`44`",
1021
- "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
1019
+ "name": "close-on-click-overlay",
1020
+ "default": "`true`",
1021
+ "description": "Whether to close when overlay is clicked",
1022
1022
  "options": [],
1023
1023
  "value": {
1024
- "type": "number | string",
1024
+ "type": "boolean",
1025
1025
  "kind": "expression"
1026
1026
  }
1027
1027
  },
1028
1028
  {
1029
- "name": "columns-num",
1030
- "default": "`3`",
1031
- "description": "Level of picker",
1029
+ "name": "safe-area-inset-bottom",
1030
+ "default": "`true`",
1031
+ "description": "Whether to enable bottom safe area adaptation",
1032
1032
  "options": [],
1033
1033
  "value": {
1034
- "type": "number | string",
1034
+ "type": "boolean",
1035
1035
  "kind": "expression"
1036
1036
  }
1037
1037
  },
1038
1038
  {
1039
- "name": "visible-option-num",
1040
- "default": "`6`",
1041
- "description": "Count of visible columns",
1039
+ "name": "teleport",
1040
+ "default": "-",
1041
+ "description": "Specifies a target element where ActionSheet will be mounted",
1042
1042
  "options": [],
1043
1043
  "value": {
1044
- "type": "number | string",
1044
+ "type": "string | Element",
1045
1045
  "kind": "expression"
1046
1046
  }
1047
1047
  },
1048
1048
  {
1049
- "name": "swipe-duration",
1050
- "default": "`1000`",
1051
- "description": "Duration of the momentum animation,unit `ms`",
1049
+ "name": "before-close",
1050
+ "default": "-",
1051
+ "description": "Callback function before close",
1052
1052
  "options": [],
1053
1053
  "value": {
1054
- "type": "number | string",
1054
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
1055
1055
  "kind": "expression"
1056
1056
  }
1057
1057
  }
@@ -1687,6 +1687,16 @@
1687
1687
  "kind": "expression"
1688
1688
  }
1689
1689
  },
1690
+ {
1691
+ "name": "safe-area-inset-top",
1692
+ "default": "`false`",
1693
+ "description": "Whether to enable top safe area adaptation",
1694
+ "options": [],
1695
+ "value": {
1696
+ "type": "boolean",
1697
+ "kind": "expression"
1698
+ }
1699
+ },
1690
1700
  {
1691
1701
  "name": "safe-area-inset-bottom",
1692
1702
  "default": "`true`",
@@ -3002,44 +3012,83 @@
3002
3012
  ]
3003
3013
  },
3004
3014
  {
3005
- "name": "van-config-provider",
3015
+ "name": "van-contact-edit",
3006
3016
  "slots": [],
3007
- "events": [],
3017
+ "events": [
3018
+ {
3019
+ "name": "save",
3020
+ "description": "Emitted when the save button is clicked"
3021
+ },
3022
+ {
3023
+ "name": "delete",
3024
+ "description": "Emitted when the delete button is clicked"
3025
+ }
3026
+ ],
3008
3027
  "attributes": [
3009
3028
  {
3010
- "name": "theme",
3011
- "default": "`light`",
3012
- "description": "Theme mode, can be set to `dark`",
3029
+ "name": "contact-info",
3030
+ "default": "`[]`",
3031
+ "description": "Contact Info",
3013
3032
  "options": [],
3014
3033
  "value": {
3015
- "type": "ConfigProviderTheme",
3034
+ "type": "Contact",
3016
3035
  "kind": "expression"
3017
3036
  }
3018
3037
  },
3019
3038
  {
3020
- "name": "theme-vars",
3039
+ "name": "is-edit",
3040
+ "default": "`false`",
3041
+ "description": "Whether is editing",
3042
+ "options": [],
3043
+ "value": {
3044
+ "type": "boolean",
3045
+ "kind": "expression"
3046
+ }
3047
+ },
3048
+ {
3049
+ "name": "is-saving",
3050
+ "default": "`false`",
3051
+ "description": "Whether to show save button loading status",
3052
+ "options": [],
3053
+ "value": {
3054
+ "type": "boolean",
3055
+ "kind": "expression"
3056
+ }
3057
+ },
3058
+ {
3059
+ "name": "is-deleting",
3060
+ "default": "`false`",
3061
+ "description": "Whether to show delete button loading status",
3062
+ "options": [],
3063
+ "value": {
3064
+ "type": "boolean",
3065
+ "kind": "expression"
3066
+ }
3067
+ },
3068
+ {
3069
+ "name": "tel-validator",
3021
3070
  "default": "-",
3022
- "description": "Theme variables",
3071
+ "description": "The method to validate tel",
3023
3072
  "options": [],
3024
3073
  "value": {
3025
- "type": "object",
3074
+ "type": "(tel: string) => boolean",
3026
3075
  "kind": "expression"
3027
3076
  }
3028
3077
  },
3029
3078
  {
3030
- "name": "tag",
3031
- "default": "`div`",
3032
- "description": "HTML Tag of root element",
3079
+ "name": "show-set-default",
3080
+ "default": "`false`",
3081
+ "description": "Whether to show default contact switch",
3033
3082
  "options": [],
3034
3083
  "value": {
3035
- "type": "string",
3084
+ "type": "boolean",
3036
3085
  "kind": "expression"
3037
3086
  }
3038
3087
  },
3039
3088
  {
3040
- "name": "icon-prefix",
3041
- "default": "`van-icon`",
3042
- "description": "Icon className prefix",
3089
+ "name": "set-default-label",
3090
+ "default": "-",
3091
+ "description": "default contact switch label",
3043
3092
  "options": [],
3044
3093
  "value": {
3045
3094
  "type": "string",
@@ -3101,83 +3150,44 @@
3101
3150
  ]
3102
3151
  },
3103
3152
  {
3104
- "name": "van-contact-edit",
3153
+ "name": "van-config-provider",
3105
3154
  "slots": [],
3106
- "events": [
3107
- {
3108
- "name": "save",
3109
- "description": "Emitted when the save button is clicked"
3110
- },
3111
- {
3112
- "name": "delete",
3113
- "description": "Emitted when the delete button is clicked"
3114
- }
3115
- ],
3155
+ "events": [],
3116
3156
  "attributes": [
3117
3157
  {
3118
- "name": "contact-info",
3119
- "default": "`[]`",
3120
- "description": "Contact Info",
3121
- "options": [],
3122
- "value": {
3123
- "type": "Contact",
3124
- "kind": "expression"
3125
- }
3126
- },
3127
- {
3128
- "name": "is-edit",
3129
- "default": "`false`",
3130
- "description": "Whether is editing",
3131
- "options": [],
3132
- "value": {
3133
- "type": "boolean",
3134
- "kind": "expression"
3135
- }
3136
- },
3137
- {
3138
- "name": "is-saving",
3139
- "default": "`false`",
3140
- "description": "Whether to show save button loading status",
3141
- "options": [],
3142
- "value": {
3143
- "type": "boolean",
3144
- "kind": "expression"
3145
- }
3146
- },
3147
- {
3148
- "name": "is-deleting",
3149
- "default": "`false`",
3150
- "description": "Whether to show delete button loading status",
3158
+ "name": "theme",
3159
+ "default": "`light`",
3160
+ "description": "Theme mode, can be set to `dark`",
3151
3161
  "options": [],
3152
3162
  "value": {
3153
- "type": "boolean",
3163
+ "type": "ConfigProviderTheme",
3154
3164
  "kind": "expression"
3155
3165
  }
3156
3166
  },
3157
3167
  {
3158
- "name": "tel-validator",
3168
+ "name": "theme-vars",
3159
3169
  "default": "-",
3160
- "description": "The method to validate tel",
3170
+ "description": "Theme variables",
3161
3171
  "options": [],
3162
3172
  "value": {
3163
- "type": "(tel: string) => boolean",
3173
+ "type": "object",
3164
3174
  "kind": "expression"
3165
3175
  }
3166
3176
  },
3167
3177
  {
3168
- "name": "show-set-default",
3169
- "default": "`false`",
3170
- "description": "Whether to show default contact switch",
3178
+ "name": "tag",
3179
+ "default": "`div`",
3180
+ "description": "HTML Tag of root element",
3171
3181
  "options": [],
3172
3182
  "value": {
3173
- "type": "boolean",
3183
+ "type": "string",
3174
3184
  "kind": "expression"
3175
3185
  }
3176
3186
  },
3177
3187
  {
3178
- "name": "set-default-label",
3179
- "default": "-",
3180
- "description": "default contact switch label",
3188
+ "name": "icon-prefix",
3189
+ "default": "`van-icon`",
3190
+ "description": "Icon className prefix",
3181
3191
  "options": [],
3182
3192
  "value": {
3183
3193
  "type": "string",
@@ -7259,12 +7269,22 @@
7259
7269
  }
7260
7270
  },
7261
7271
  {
7262
- "name": "teleport",
7263
- "default": "-",
7264
- "description": "Specifies a target element where Popup will be mounted",
7272
+ "name": "teleport",
7273
+ "default": "-",
7274
+ "description": "Specifies a target element where Popup will be mounted",
7275
+ "options": [],
7276
+ "value": {
7277
+ "type": "string | Element",
7278
+ "kind": "expression"
7279
+ }
7280
+ },
7281
+ {
7282
+ "name": "safe-area-inset-top",
7283
+ "default": "`false`",
7284
+ "description": "Whether to enable top safe area adaptation",
7265
7285
  "options": [],
7266
7286
  "value": {
7267
- "type": "string | Element",
7287
+ "type": "boolean",
7268
7288
  "kind": "expression"
7269
7289
  }
7270
7290
  },
@@ -9343,158 +9363,6 @@
9343
9363
  }
9344
9364
  ]
9345
9365
  },
9346
- {
9347
- "name": "van-swipe",
9348
- "slots": [
9349
- {
9350
- "name": "default",
9351
- "description": "Content"
9352
- },
9353
- {
9354
- "name": "indicator",
9355
- "description": "Custom indicator"
9356
- }
9357
- ],
9358
- "events": [
9359
- {
9360
- "name": "change",
9361
- "description": "Emitted when current swipe changed"
9362
- }
9363
- ],
9364
- "attributes": [
9365
- {
9366
- "name": "autoplay",
9367
- "default": "-",
9368
- "description": "Autoplay interval (ms)",
9369
- "options": [],
9370
- "value": {
9371
- "type": "number | string",
9372
- "kind": "expression"
9373
- }
9374
- },
9375
- {
9376
- "name": "duration",
9377
- "default": "`500`",
9378
- "description": "Animation duration (ms)",
9379
- "options": [],
9380
- "value": {
9381
- "type": "number | string",
9382
- "kind": "expression"
9383
- }
9384
- },
9385
- {
9386
- "name": "initial-swipe",
9387
- "default": "`0`",
9388
- "description": "Index of initial swipe, start from 0",
9389
- "options": [],
9390
- "value": {
9391
- "type": "number | string",
9392
- "kind": "expression"
9393
- }
9394
- },
9395
- {
9396
- "name": "width",
9397
- "default": "`0`",
9398
- "description": "Width of swipe item",
9399
- "options": [],
9400
- "value": {
9401
- "type": "number | string",
9402
- "kind": "expression"
9403
- }
9404
- },
9405
- {
9406
- "name": "height",
9407
- "default": "`0`",
9408
- "description": "Height of swipe item",
9409
- "options": [],
9410
- "value": {
9411
- "type": "number | string",
9412
- "kind": "expression"
9413
- }
9414
- },
9415
- {
9416
- "name": "loop",
9417
- "default": "`true`",
9418
- "description": "Whether to enable loop",
9419
- "options": [],
9420
- "value": {
9421
- "type": "boolean",
9422
- "kind": "expression"
9423
- }
9424
- },
9425
- {
9426
- "name": "show-indicators",
9427
- "default": "`true`",
9428
- "description": "Whether to show indicators",
9429
- "options": [],
9430
- "value": {
9431
- "type": "boolean",
9432
- "kind": "expression"
9433
- }
9434
- },
9435
- {
9436
- "name": "vertical",
9437
- "default": "`false`",
9438
- "description": "Whether to be vertical Scrolling",
9439
- "options": [],
9440
- "value": {
9441
- "type": "boolean",
9442
- "kind": "expression"
9443
- }
9444
- },
9445
- {
9446
- "name": "touchable",
9447
- "default": "`true`",
9448
- "description": "Whether to allow swipe by touch gesture",
9449
- "options": [],
9450
- "value": {
9451
- "type": "boolean",
9452
- "kind": "expression"
9453
- }
9454
- },
9455
- {
9456
- "name": "stop-propagation",
9457
- "default": "`false`",
9458
- "description": "Whether to stop touchmove event propagation",
9459
- "options": [],
9460
- "value": {
9461
- "type": "boolean",
9462
- "kind": "expression"
9463
- }
9464
- },
9465
- {
9466
- "name": "lazy-render",
9467
- "default": "`false`",
9468
- "description": "Whether to enable lazy render",
9469
- "options": [],
9470
- "value": {
9471
- "type": "boolean",
9472
- "kind": "expression"
9473
- }
9474
- },
9475
- {
9476
- "name": "indicator-color",
9477
- "default": "`#1989fa`",
9478
- "description": "Indicator color",
9479
- "options": [],
9480
- "value": {
9481
- "type": "string",
9482
- "kind": "expression"
9483
- }
9484
- }
9485
- ]
9486
- },
9487
- {
9488
- "name": "van-swipe-item",
9489
- "slots": [],
9490
- "events": [
9491
- {
9492
- "name": "click",
9493
- "description": "Emitted when component is clicked"
9494
- }
9495
- ],
9496
- "attributes": []
9497
- },
9498
9366
  {
9499
9367
  "name": "van-swipe-cell",
9500
9368
  "slots": [
@@ -9572,113 +9440,17 @@
9572
9440
  "description": "Whether to disabled swipe",
9573
9441
  "options": [],
9574
9442
  "value": {
9575
- "type": "boolean",
9576
- "kind": "expression"
9577
- }
9578
- },
9579
- {
9580
- "name": "stop-propagation",
9581
- "default": "`false`",
9582
- "description": "Whether to stop touchmove event propagation",
9583
- "options": [],
9584
- "value": {
9585
- "type": "boolean",
9586
- "kind": "expression"
9587
- }
9588
- }
9589
- ]
9590
- },
9591
- {
9592
- "name": "van-switch",
9593
- "slots": [],
9594
- "events": [
9595
- {
9596
- "name": "change",
9597
- "description": "Emitted when check status changed"
9598
- },
9599
- {
9600
- "name": "click",
9601
- "description": "Emitted when component is clicked"
9602
- }
9603
- ],
9604
- "attributes": [
9605
- {
9606
- "name": "v-model",
9607
- "default": "`false`",
9608
- "description": "Check status of Switch",
9609
- "options": [],
9610
- "value": {
9611
- "type": "ActiveValue | InactiveValue",
9612
- "kind": "expression"
9613
- }
9614
- },
9615
- {
9616
- "name": "loading",
9617
- "default": "`false`",
9618
- "description": "Whether to show loading icon",
9619
- "options": [],
9620
- "value": {
9621
- "type": "boolean",
9622
- "kind": "expression"
9623
- }
9624
- },
9625
- {
9626
- "name": "disabled",
9627
- "default": "`false`",
9628
- "description": "Whether to disable switch",
9629
- "options": [],
9630
- "value": {
9631
- "type": "boolean",
9632
- "kind": "expression"
9633
- }
9634
- },
9635
- {
9636
- "name": "size",
9637
- "default": "`26px`",
9638
- "description": "Size of switch button",
9639
- "options": [],
9640
- "value": {
9641
- "type": "number | string",
9642
- "kind": "expression"
9643
- }
9644
- },
9645
- {
9646
- "name": "active-color",
9647
- "default": "`#1989fa`",
9648
- "description": "Background color when active",
9649
- "options": [],
9650
- "value": {
9651
- "type": "string",
9652
- "kind": "expression"
9653
- }
9654
- },
9655
- {
9656
- "name": "inactive-color",
9657
- "default": "`rgba(120, 120, 128, 0.16)`",
9658
- "description": "Background color when inactive",
9659
- "options": [],
9660
- "value": {
9661
- "type": "string",
9662
- "kind": "expression"
9663
- }
9664
- },
9665
- {
9666
- "name": "active-value",
9667
- "default": "`true`",
9668
- "description": "Value when active",
9669
- "options": [],
9670
- "value": {
9671
- "type": "any",
9443
+ "type": "boolean",
9672
9444
  "kind": "expression"
9673
9445
  }
9674
9446
  },
9675
9447
  {
9676
- "name": "inactive-value",
9448
+ "name": "stop-propagation",
9677
9449
  "default": "`false`",
9678
- "description": "Value when inactive",
9450
+ "description": "Whether to stop touchmove event propagation",
9679
9451
  "options": [],
9680
9452
  "value": {
9681
- "type": "any",
9453
+ "type": "boolean",
9682
9454
  "kind": "expression"
9683
9455
  }
9684
9456
  }
@@ -10053,6 +9825,102 @@
10053
9825
  }
10054
9826
  ]
10055
9827
  },
9828
+ {
9829
+ "name": "van-switch",
9830
+ "slots": [],
9831
+ "events": [
9832
+ {
9833
+ "name": "change",
9834
+ "description": "Emitted when check status changed"
9835
+ },
9836
+ {
9837
+ "name": "click",
9838
+ "description": "Emitted when component is clicked"
9839
+ }
9840
+ ],
9841
+ "attributes": [
9842
+ {
9843
+ "name": "v-model",
9844
+ "default": "`false`",
9845
+ "description": "Check status of Switch",
9846
+ "options": [],
9847
+ "value": {
9848
+ "type": "ActiveValue | InactiveValue",
9849
+ "kind": "expression"
9850
+ }
9851
+ },
9852
+ {
9853
+ "name": "loading",
9854
+ "default": "`false`",
9855
+ "description": "Whether to show loading icon",
9856
+ "options": [],
9857
+ "value": {
9858
+ "type": "boolean",
9859
+ "kind": "expression"
9860
+ }
9861
+ },
9862
+ {
9863
+ "name": "disabled",
9864
+ "default": "`false`",
9865
+ "description": "Whether to disable switch",
9866
+ "options": [],
9867
+ "value": {
9868
+ "type": "boolean",
9869
+ "kind": "expression"
9870
+ }
9871
+ },
9872
+ {
9873
+ "name": "size",
9874
+ "default": "`26px`",
9875
+ "description": "Size of switch button",
9876
+ "options": [],
9877
+ "value": {
9878
+ "type": "number | string",
9879
+ "kind": "expression"
9880
+ }
9881
+ },
9882
+ {
9883
+ "name": "active-color",
9884
+ "default": "`#1989fa`",
9885
+ "description": "Background color when active",
9886
+ "options": [],
9887
+ "value": {
9888
+ "type": "string",
9889
+ "kind": "expression"
9890
+ }
9891
+ },
9892
+ {
9893
+ "name": "inactive-color",
9894
+ "default": "`rgba(120, 120, 128, 0.16)`",
9895
+ "description": "Background color when inactive",
9896
+ "options": [],
9897
+ "value": {
9898
+ "type": "string",
9899
+ "kind": "expression"
9900
+ }
9901
+ },
9902
+ {
9903
+ "name": "active-value",
9904
+ "default": "`true`",
9905
+ "description": "Value when active",
9906
+ "options": [],
9907
+ "value": {
9908
+ "type": "any",
9909
+ "kind": "expression"
9910
+ }
9911
+ },
9912
+ {
9913
+ "name": "inactive-value",
9914
+ "default": "`false`",
9915
+ "description": "Value when inactive",
9916
+ "options": [],
9917
+ "value": {
9918
+ "type": "any",
9919
+ "kind": "expression"
9920
+ }
9921
+ }
9922
+ ]
9923
+ },
10056
9924
  {
10057
9925
  "name": "van-tabbar",
10058
9926
  "slots": [],
@@ -10269,6 +10137,158 @@
10269
10137
  }
10270
10138
  ]
10271
10139
  },
10140
+ {
10141
+ "name": "van-swipe",
10142
+ "slots": [
10143
+ {
10144
+ "name": "default",
10145
+ "description": "Content"
10146
+ },
10147
+ {
10148
+ "name": "indicator",
10149
+ "description": "Custom indicator"
10150
+ }
10151
+ ],
10152
+ "events": [
10153
+ {
10154
+ "name": "change",
10155
+ "description": "Emitted when current swipe changed"
10156
+ }
10157
+ ],
10158
+ "attributes": [
10159
+ {
10160
+ "name": "autoplay",
10161
+ "default": "-",
10162
+ "description": "Autoplay interval (ms)",
10163
+ "options": [],
10164
+ "value": {
10165
+ "type": "number | string",
10166
+ "kind": "expression"
10167
+ }
10168
+ },
10169
+ {
10170
+ "name": "duration",
10171
+ "default": "`500`",
10172
+ "description": "Animation duration (ms)",
10173
+ "options": [],
10174
+ "value": {
10175
+ "type": "number | string",
10176
+ "kind": "expression"
10177
+ }
10178
+ },
10179
+ {
10180
+ "name": "initial-swipe",
10181
+ "default": "`0`",
10182
+ "description": "Index of initial swipe, start from 0",
10183
+ "options": [],
10184
+ "value": {
10185
+ "type": "number | string",
10186
+ "kind": "expression"
10187
+ }
10188
+ },
10189
+ {
10190
+ "name": "width",
10191
+ "default": "`0`",
10192
+ "description": "Width of swipe item",
10193
+ "options": [],
10194
+ "value": {
10195
+ "type": "number | string",
10196
+ "kind": "expression"
10197
+ }
10198
+ },
10199
+ {
10200
+ "name": "height",
10201
+ "default": "`0`",
10202
+ "description": "Height of swipe item",
10203
+ "options": [],
10204
+ "value": {
10205
+ "type": "number | string",
10206
+ "kind": "expression"
10207
+ }
10208
+ },
10209
+ {
10210
+ "name": "loop",
10211
+ "default": "`true`",
10212
+ "description": "Whether to enable loop",
10213
+ "options": [],
10214
+ "value": {
10215
+ "type": "boolean",
10216
+ "kind": "expression"
10217
+ }
10218
+ },
10219
+ {
10220
+ "name": "show-indicators",
10221
+ "default": "`true`",
10222
+ "description": "Whether to show indicators",
10223
+ "options": [],
10224
+ "value": {
10225
+ "type": "boolean",
10226
+ "kind": "expression"
10227
+ }
10228
+ },
10229
+ {
10230
+ "name": "vertical",
10231
+ "default": "`false`",
10232
+ "description": "Whether to be vertical Scrolling",
10233
+ "options": [],
10234
+ "value": {
10235
+ "type": "boolean",
10236
+ "kind": "expression"
10237
+ }
10238
+ },
10239
+ {
10240
+ "name": "touchable",
10241
+ "default": "`true`",
10242
+ "description": "Whether to allow swipe by touch gesture",
10243
+ "options": [],
10244
+ "value": {
10245
+ "type": "boolean",
10246
+ "kind": "expression"
10247
+ }
10248
+ },
10249
+ {
10250
+ "name": "stop-propagation",
10251
+ "default": "`false`",
10252
+ "description": "Whether to stop touchmove event propagation",
10253
+ "options": [],
10254
+ "value": {
10255
+ "type": "boolean",
10256
+ "kind": "expression"
10257
+ }
10258
+ },
10259
+ {
10260
+ "name": "lazy-render",
10261
+ "default": "`false`",
10262
+ "description": "Whether to enable lazy render",
10263
+ "options": [],
10264
+ "value": {
10265
+ "type": "boolean",
10266
+ "kind": "expression"
10267
+ }
10268
+ },
10269
+ {
10270
+ "name": "indicator-color",
10271
+ "default": "`#1989fa`",
10272
+ "description": "Indicator color",
10273
+ "options": [],
10274
+ "value": {
10275
+ "type": "string",
10276
+ "kind": "expression"
10277
+ }
10278
+ }
10279
+ ]
10280
+ },
10281
+ {
10282
+ "name": "van-swipe-item",
10283
+ "slots": [],
10284
+ "events": [
10285
+ {
10286
+ "name": "click",
10287
+ "description": "Emitted when component is clicked"
10288
+ }
10289
+ ],
10290
+ "attributes": []
10291
+ },
10272
10292
  {
10273
10293
  "name": "van-tag",
10274
10294
  "slots": [