perf: 无需安装 @vue/runtime-core,兼容 element-plus 的组件 volar 提示

This commit is contained in:
xiaoxian521
2022-11-27 10:00:30 +08:00
parent 24b33b5401
commit 2d56e471cb
6 changed files with 127 additions and 19 deletions

12
types/global.d.ts vendored
View File

@@ -265,15 +265,3 @@ declare global {
$config: ServerConfigs;
}
}
declare module "vue" {
/**
* 自定义全局组件获得 Volar 提示(自定义的全局组件需要在这里声明下才能获得 Volar 类型提示哦)
*/
export interface GlobalComponents {
IconifyIconOffline: typeof import("../src/components/ReIcon")["IconifyIconOffline"];
IconifyIconOnline: typeof import("../src/components/ReIcon")["IconifyIconOnline"];
FontIcon: typeof import("../src/components/ReIcon")["FontIcon"];
Auth: typeof import("../src/components/ReAuth")["Auth"];
}
}