module.d.ts 1.2 KB

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