index.ts 1.1 KB

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