zhitong.yu
8 天以前 378d781e6f35f89652aa36e079a8b7fc44cea77e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
export type LayoutType = "vertical" | "classic" | "transverse" | "columns";
export type ScreenStyleType = "light" | "dark" | "blue";
 
export type AssemblySizeType = "large" | "default" | "small";
 
export type LanguageType = "zh" | "en" | null;
 
/* GlobalState */
export interface GlobalState {
  layout: LayoutType;
  assemblySize: AssemblySizeType;
  language: LanguageType;
  maximize: boolean;
  primary: string;
  isDark: boolean;
  isGrey: boolean;
  isWeak: boolean;
  asideInverted: boolean;
  headerInverted: boolean;
  isCollapse: boolean;
  accordion: boolean;
  watermark: boolean;
  breadcrumb: boolean;
  breadcrumbIcon: boolean;
  tabs: boolean;
  tabsIcon: boolean;
  footer: boolean;
  screenStyle: ScreenStyleType;
}
 
/* UserState */
export interface UserState {
  token: string;
  userInfo: { name: string };
}
 
/* tabsMenuProps */
export interface TabsMenuProps {
  icon: string;
  title: string;
  path: string;
  name: string;
  close: boolean;
  isKeepAlive: boolean;
}
 
/* TabsState */
export interface TabsState {
  tabsMenuList: TabsMenuProps[];
}
 
/* AuthState */
export interface AuthState {
  routeName: string;
  authButtonList: {
    [key: string]: string[];
  };
  authMenuList: Menu.MenuOptions[];
}
 
/* KeepAliveState */
export interface KeepAliveState {
  keepAliveName: string[];
}