index.d.ts 746 B

12345678910111213141516171819202122232425
  1. import type { CommonRoot } from "./dialog/CommonRoot.vue";
  2. declare module 'vue' {
  3. interface ComponentCustomProperties {
  4. $toast(msg: string): void;
  5. $alert(ption: {
  6. title?: string;
  7. content?: string;
  8. }): void;
  9. confirm(option: {
  10. title?: string;
  11. content?: string;
  12. cancelText?: string;
  13. confirmText?: string;
  14. }): Promise<boolean>;
  15. $p: {
  16. back: () => void;
  17. backReturnData: (data: Record<string, unknown>) => void;
  18. backAndCallOnPageBack: (name: string, data: Record<string, unknown>) => void;
  19. callPrevOnPageBack: (name: string, data: Record<string, unknown>) => void;
  20. navTo: (url: string, data?: Record<string, unknown>) => void;
  21. };
  22. $na: CommonRoot;
  23. }
  24. }