mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2026-01-20 16:53:37 +08:00
fix: [重构主题后的一些问题](https://github.com/xiaoxian521/vue-pure-admin/issues/319)
This commit is contained in:
3
types/global.d.ts
vendored
3
types/global.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user