library.d.ts 858 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { VNode } from 'vue'
  2. declare interface globalPropertiesType {
  3. $baseLoading(index?: string | undefined, text?: string): any
  4. $baseMessage(
  5. message: string | VNode,
  6. type?: 'success' | 'warning' | 'info' | 'error',
  7. customClass?: string,
  8. dangerouslyUseHTMLString?: boolean
  9. ): any
  10. $baseAlert(content: string | VNode, title: string, callback: (() => unknown) | undefined): any
  11. $baseConfirm(
  12. content: string | VNode,
  13. title: string,
  14. callback1: any,
  15. callback2: any,
  16. confirmButtonText: string,
  17. cancelButtonText: string
  18. ): any
  19. $baseNotify(
  20. message: string,
  21. title: string,
  22. type?: 'success' | 'warning' | 'info' | 'error',
  23. position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left',
  24. duration?: number
  25. ): any
  26. $pub(...args: any[]): void
  27. $sub(): void
  28. $unsub(): void
  29. }