This commit is contained in:
xiaoxian521
2022-08-14 23:09:54 +08:00
parent bcbc110883
commit 3879b99176
18 changed files with 176 additions and 74 deletions

3
types/global.d.ts vendored
View File

@@ -6,6 +6,7 @@ import type {
PropType as VuePropType
} from "vue";
import type { ECharts } from "echarts";
import { type ResponsiveStorage } from "./index";
// GlobalComponents for Volar
declare module "vue" {
@@ -111,7 +112,7 @@ declare global {
declare interface GlobalPropertiesApi {
$echarts: ECharts;
$storage: ServerConfigs;
$storage: ResponsiveStorage;
}
function parseInt(s: string | number, radix?: number): number;

View File

@@ -26,3 +26,25 @@ export interface StorageConfigs {
};
username?: string;
}
export interface ResponsiveStorage {
locale: {
locale?: string;
};
layout: {
layout?: string;
theme?: string;
darkMode?: boolean;
sidebarStatus?: boolean;
epThemeColor?: string;
};
configure: {
grey?: boolean;
weak?: boolean;
hideTabs?: boolean;
showLogo?: boolean;
showModel?: string;
multiTagsCache?: boolean;
};
tags?: Array<any>;
}