global.d.ts 355 B

123456789101112131415161718192021
  1. interface Window {
  2. $loading: any
  3. $message: any
  4. $dialog: any
  5. // 语言
  6. $t: any
  7. $vue: any
  8. // 键盘按键记录
  9. $KeyboardActive?: { [T: string]: boolean }
  10. // 编辑 JSON 的存储对象
  11. opener: any
  12. }
  13. declare interface MyResponseType {
  14. code: number;
  15. msg: string;
  16. data: any;
  17. }
  18. declare type Recordable<T = any> = Record<string, T>