65 lines
1.1 KiB
TypeScript
65 lines
1.1 KiB
TypeScript
|
export type RouteConfigs = {
|
||
|
path?: string;
|
||
|
parentPath?: string;
|
||
|
meta?: {
|
||
|
title?: string;
|
||
|
icon?: string;
|
||
|
showLink?: boolean;
|
||
|
savedPosition?: boolean;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
device: string;
|
||
|
fixedHeader: boolean;
|
||
|
classes: {
|
||
|
hideSidebar: boolean;
|
||
|
openSidebar: boolean;
|
||
|
withoutAnimation: boolean;
|
||
|
mobile: boolean;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export const routerArrays: Array<RouteConfigs> = [
|
||
|
{
|
||
|
path: "/welcome",
|
||
|
parentPath: "/",
|
||
|
meta: {
|
||
|
title: "message.hshome",
|
||
|
icon: "el-icon-s-home",
|
||
|
showLink: true
|
||
|
}
|
||
|
}
|
||
|
];
|
||
|
|
||
|
export type childrenType = {
|
||
|
path?: string;
|
||
|
noShowingChildren?: boolean;
|
||
|
children?: childrenType[];
|
||
|
value: unknown;
|
||
|
meta?: {
|
||
|
icon?: string;
|
||
|
title?: string;
|
||
|
extraIcon?: {
|
||
|
svg?: boolean;
|
||
|
name?: string;
|
||
|
};
|
||
|
};
|
||
|
};
|