// 接口类型声明 // 布局配置 export interface ThemeConfigState { themeConfig: { isDrawer: boolean; primary: string; success: string; info: string; warning: string; danger: string; topBar: string; menuBar: string; topBarColor: string; menuBarColor: string; isTopBarColorGradual: boolean; isMenuBarColorGradual: boolean; isMenuBarColorHighlight: boolean; isCollapse: boolean; isUniqueOpened: boolean; isFixedHeader: boolean; isFixedHeaderChange: boolean; isClassicSplitMenu: boolean; isLockScreen: boolean; lockScreenTime: number; isBreadcrumb: boolean; isTagsview: boolean; isBreadcrumbIcon: boolean; isTagsviewIcon: boolean; isCacheTagsView: boolean; isSortableTagsView: boolean; isShareTagsView: boolean; isFooter: boolean; isGrayscale: boolean; isInvert: boolean; isIsDark: boolean; tagsStyle: string; animation: string; layout: string; isRequestRoutes: boolean; globalComponentSize: string; }; } // 路由列表 export interface RoutesListState { routesList: Array; } // 路由缓存列表 export interface KeepAliveNamesState { keepAliveNames: Array; } // TagsView 路由列表 export interface TagsViewRoutesState { tagsViewRoutes: Array; isTagsViewCurrenFull: Boolean; } // 用户信息 export interface empInfotate { empInfo: object; } // 后端返回原始路由(未处理时) export interface RequestOldRoutesState { requestOldRoutes: Array; } // loading加载 export interface loadingCountState { loadingCount: number; } // 主接口(顶级类型声明) export interface RootStateTypes { themeConfig: ThemeConfigState; routesList: RoutesListState; keepAliveNames: KeepAliveNamesState; tagsViewRoutes: TagsViewRoutesState; empInfo: empInfotate; requestOldRoutes: RequestOldRoutesState; loadingCount: loadingCountState; }