module.d.ts 1012 B

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