31 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-06-06 20:55:23 +08:00
import type modal from '@/plugins/modal';
import type tab from '@/plugins/tab';
import type download from '@/plugins/download';
2023-06-23 20:45:50 +08:00
import type auth from '@/plugins/auth';
2023-06-06 20:55:23 +08:00
import type animate from '@/animate';
import type { useDict } from '@/utils/dict';
import type { addDateRange, handleTree, selectDictLabel, selectDictLabels, parseTime } from '@/utils/ruoyi';
import type { getConfigKey, updateConfigByKey } from '@/api/system/config';
import type { download as rd } from '@/utils/request';
2023-04-02 01:01:56 +08:00
2023-06-06 20:55:23 +08:00
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
2023-04-03 00:05:09 +08:00
// 全局方法声明
$modal: typeof modal;
$tab: typeof tab;
$download: typeof download;
2023-06-23 20:45:50 +08:00
$auth: typeof auth;
2023-04-03 00:05:09 +08:00
animate: typeof animate;
2023-04-02 01:01:56 +08:00
2023-04-03 00:05:09 +08:00
useDict: typeof useDict;
addDateRange: typeof addDateRange;
2023-06-06 20:55:23 +08:00
download: typeof rd;
2023-04-03 00:05:09 +08:00
handleTree: typeof handleTree;
getConfigKey: typeof getConfigKey;
updateConfigByKey: typeof updateConfigByKey;
selectDictLabel: typeof selectDictLabel;
selectDictLabels: typeof selectDictLabels;
parseTime: typeof parseTime;
}
2023-04-02 01:01:56 +08:00
}