module.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import type modal from '@/plugins/modal';
  2. import type tab from '@/plugins/tab';
  3. import type download from '@/plugins/download';
  4. import type auth from '@/plugins/auth';
  5. import type cache from '@/plugins/cache';
  6. import type animate from '@/animate';
  7. import type { useDict } from '@/utils/dict';
  8. import type { addDateRange, handleTree, selectDictLabel, selectDictLabels, parseTime } from '@/utils/ruoyi';
  9. import type { getConfigKey, updateConfigByKey } from '@/api/system/config';
  10. import type { download as rd } from '@/utils/request';
  11. declare module '@vue/runtime-core' {
  12. interface ComponentCustomProperties {
  13. // 全局方法声明
  14. $modal: typeof modal;
  15. $tab: typeof tab;
  16. $download: typeof download;
  17. $auth: typeof auth;
  18. $cache: typeof cache;
  19. animate: typeof animate;
  20. useDict: typeof useDict;
  21. addDateRange: typeof addDateRange;
  22. download: typeof rd;
  23. handleTree: typeof handleTree;
  24. getConfigKey: typeof getConfigKey;
  25. updateConfigByKey: typeof updateConfigByKey;
  26. selectDictLabel: typeof selectDictLabel;
  27. selectDictLabels: typeof selectDictLabels;
  28. parseTime: typeof parseTime;
  29. }
  30. }