library.d.ts 922 B

1234567891011121314151617181920212223242526272829303132333435
  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(
  11. content: string | VNode,
  12. title: string,
  13. callback: (() => unknown) | undefined
  14. ): any
  15. $baseConfirm(
  16. content: string | VNode,
  17. title: string,
  18. callback1: any,
  19. callback2: any,
  20. confirmButtonText: string,
  21. cancelButtonText: string
  22. ): any
  23. $baseNotify(
  24. message: string,
  25. title: string,
  26. type?: 'success' | 'warning' | 'info' | 'error',
  27. position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left',
  28. duration?: number
  29. ): any
  30. $baseTableHeight(formType: number | unknown): number
  31. $pub(...args: any[]): void
  32. $sub(): void
  33. $unsub(): void
  34. }