123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- // 接口类型声明
- // 布局配置
- export interface ThemeConfigState {
- themeConfig: {
- isDrawer: boolean;
- primary: string;
- topBar: string;
- topBarColor: string;
- isTopBarColorGradual: boolean;
- menuBar: string;
- menuBarColor: string;
- isMenuBarColorGradual: boolean;
- columnsMenuBar: string;
- columnsMenuBarColor: string;
- isColumnsMenuBarColorGradual: boolean;
- isCollapse: boolean;
- isUniqueOpened: boolean;
- isFixedHeader: boolean;
- isFixedHeaderChange: boolean;
- isClassicSplitMenu: boolean;
- isLockScreen: boolean;
- lockScreenTime: number;
- isShowLogo: boolean;
- isShowLogoChange: boolean;
- isBreadcrumb: boolean;
- isTagsview: boolean;
- isBreadcrumbIcon: boolean;
- isTagsviewIcon: boolean;
- isCacheTagsView: boolean;
- isSortableTagsView: boolean;
- isShareTagsView: boolean;
- isFooter: boolean;
- isGrayscale: boolean;
- isInvert: boolean;
- isIsDark: boolean;
- isWartermark: boolean;
- wartermarkText: string;
- tagsStyle: string;
- animation: string;
- columnsAsideStyle: string;
- columnsAsideLayout: string;
- layout: string;
- isRequestRoutes: boolean;
- globalTitle: string;
- globalViceTitle: string;
- globalI18n: string;
- globalComponentSize: string;
- };
- }
- // 路由列表
- export interface RoutesListState {
- routesList: object[];
- isColumnsMenuHover: Boolean;
- isColumnsNavHover: Boolean;
- }
- // 路由缓存列表
- export interface KeepAliveNamesState {
- keepAliveNames: string[];
- }
- // TagsView 路由列表
- export interface TagsViewRoutesState {
- tagsViewRoutes: object[];
- isTagsViewCurrenFull: Boolean;
- }
- // 用户信息
- export interface UserInfosState {
- userInfos: {
- id:number;
- userName: string;
- userNickname:string;
- avatar: string;
- roles: string[];
- time: number;
- };
- permissions:string[]
- }
- // 后端返回原始路由(未处理时)
- export interface RequestOldRoutesState {
- requestOldRoutes: object[];
- }
- // 主接口(顶级类型声明)
- export interface RootStateTypes {
- themeConfig: ThemeConfigState;
- routesList: RoutesListState;
- keepAliveNames: KeepAliveNamesState;
- tagsViewRoutes: TagsViewRoutesState;
- userInfos: UserInfosState;
- requestOldRoutes: RequestOldRoutesState;
- }
- // global
- export interface GlobalState {
- resize: {
- innerHeight: number;
- innerWidth: number;
- };
- }
|