index.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. export type PushAnimationType =
  2. | "auto"
  3. | "none"
  4. | "slide-in-right"
  5. | "slide-in-left"
  6. | "slide-in-top"
  7. | "slide-in-bottom"
  8. | "fade-in"
  9. | "zoom-out"
  10. | "zoom-fade-out"
  11. | "pop-in";
  12. export type BackAnimationType =
  13. | "auto"
  14. | "none"
  15. | "slide-out-right"
  16. | "slide-out-left"
  17. | "slide-out-top"
  18. | "slide-out-bottom"
  19. | "fade-out"
  20. | "zoom-in"
  21. | "zoom-fade-in"
  22. | "pop-out";
  23. export type PushMode = "navigateTo" | "redirectTo" | "reLaunch" | "switchTab";
  24. export type BackOptions = {
  25. delta?: number;
  26. animationType?: BackAnimationType;
  27. animationDuration?: number;
  28. success?: (result: any) => void;
  29. fail?: (result: any) => void;
  30. complete?: (result: any) => void;
  31. };
  32. export type PushOptions = {
  33. path: string;
  34. mode?: PushMode;
  35. events?: any;
  36. query?: any;
  37. params?: any;
  38. animationType?: PushAnimationType;
  39. animationDuration?: number;
  40. success?: (result: any) => void;
  41. fail?: (result: any) => void;
  42. complete?: (result: any) => void;
  43. };
  44. export type PageInstance = {
  45. path: string;
  46. vm: any;
  47. style?: UTSJSONObject;
  48. query: UTSJSONObject;
  49. exposed: any;
  50. isCustomNavbar: boolean;
  51. meta?: UTSJSONObject;
  52. };