2021-10-18 10:37:03 +08:00
|
|
|
export const routerArrays: Array<RouteConfigs> = [
|
|
|
|
{
|
|
|
|
path: "/welcome",
|
|
|
|
parentPath: "/",
|
|
|
|
meta: {
|
|
|
|
title: "message.hshome",
|
2021-11-16 22:17:57 +08:00
|
|
|
i18n: true,
|
2021-10-18 10:37:03 +08:00
|
|
|
icon: "el-icon-s-home",
|
|
|
|
showLink: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2021-10-16 16:16:58 +08:00
|
|
|
export type RouteConfigs = {
|
|
|
|
path?: string;
|
|
|
|
parentPath?: string;
|
|
|
|
meta?: {
|
|
|
|
title?: string;
|
2021-11-16 22:17:57 +08:00
|
|
|
i18n?: boolean;
|
2021-10-16 16:16:58 +08:00
|
|
|
icon?: string;
|
|
|
|
showLink?: boolean;
|
|
|
|
savedPosition?: boolean;
|
|
|
|
};
|
2021-10-20 21:35:21 +08:00
|
|
|
name?: string;
|
2021-10-16 16:16:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export type relativeStorageType = {
|
|
|
|
routesInStorage: Array<RouteConfigs>;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type tagsViewsType = {
|
|
|
|
icon: string;
|
|
|
|
text: string;
|
|
|
|
divided: boolean;
|
|
|
|
disabled: boolean;
|
|
|
|
show: boolean;
|
|
|
|
};
|
|
|
|
|
|
|
|
export interface setType {
|
|
|
|
sidebar: {
|
|
|
|
opened: boolean;
|
|
|
|
withoutAnimation: boolean;
|
2021-11-25 12:37:56 +08:00
|
|
|
isClickHamburger: boolean;
|
2021-10-16 16:16:58 +08:00
|
|
|
};
|
|
|
|
device: string;
|
|
|
|
fixedHeader: boolean;
|
|
|
|
classes: {
|
|
|
|
hideSidebar: boolean;
|
|
|
|
openSidebar: boolean;
|
|
|
|
withoutAnimation: boolean;
|
|
|
|
mobile: boolean;
|
|
|
|
};
|
2021-11-10 22:12:47 +08:00
|
|
|
hideTabs: boolean;
|
2021-10-16 16:16:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export type childrenType = {
|
|
|
|
path?: string;
|
|
|
|
noShowingChildren?: boolean;
|
|
|
|
children?: childrenType[];
|
|
|
|
value: unknown;
|
|
|
|
meta?: {
|
|
|
|
icon?: string;
|
|
|
|
title?: string;
|
2021-11-16 22:17:57 +08:00
|
|
|
i18n?: boolean;
|
2021-10-16 16:16:58 +08:00
|
|
|
extraIcon?: {
|
|
|
|
svg?: boolean;
|
|
|
|
name?: string;
|
|
|
|
};
|
|
|
|
};
|
2021-11-10 22:12:47 +08:00
|
|
|
showTooltip?: boolean;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type themeColorsType = {
|
|
|
|
rgb: string;
|
|
|
|
themeColor: string;
|
2021-10-16 16:16:58 +08:00
|
|
|
};
|
2021-11-20 19:43:49 +08:00
|
|
|
|
|
|
|
export interface scrollbarDomType extends HTMLElement {
|
|
|
|
wrap?: {
|
|
|
|
offsetWidth: number;
|
|
|
|
};
|
|
|
|
}
|