mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-30 06:19:45 +08:00
🚨 添加 Echarts 模块声明以解决导入问题
This commit is contained in:
21
src/vite-env.d.ts
vendored
21
src/vite-env.d.ts
vendored
@@ -56,3 +56,24 @@ declare type TauriProcessEnv = NodeJS.ProcessEnv & {
|
||||
* ProcessEnv的转换
|
||||
*/
|
||||
declare const proEnv: TauriProcessEnv;
|
||||
|
||||
/**
|
||||
* 解决 Echarts 导入问题
|
||||
* @see https://github.com/apache/echarts/issues/19992
|
||||
* @since Beta v0.9.9
|
||||
*/
|
||||
declare module "echarts/core.js" {
|
||||
export * from "echarts/types/src/export/core.d.ts";
|
||||
}
|
||||
declare module "echarts/charts.js" {
|
||||
export * from "echarts/types/src/export/charts.d.ts";
|
||||
}
|
||||
declare module "echarts/components.js" {
|
||||
export * from "echarts/types/src/export/components.d.ts";
|
||||
}
|
||||
declare module "echarts/features.js" {
|
||||
export * from "echarts/types/src/export/features.d.ts";
|
||||
}
|
||||
declare module "echarts/renderers.js" {
|
||||
export * from "echarts/types/src/export/renderers.d.ts";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user