module.d.ts 1.1 KB

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