import { RouteComponentProps as BasicRouteProps, RouteProps, match } from 'react-router-dom'; export interface MenuDataItem { // 权限 authority?: string[] | string; // 子菜单 children?: MenuDataItem[]; // 是否隐藏子菜单 hideChildrenInMenu?: boolean; // 是否隐藏当前菜单 hideInMenu?: boolean; // Icon icon?: React.ReactNode; // 标题多语言 locale?: string; name?: string; key?: string; path?: string; [key: string]: any; parentKeys?: string[]; } type IncludeRoute = 'component' | 'exact' | 'path'; type RouteType = Pick; export interface RouterTypes extends BasicRouteProps { computedMatch?: match

; route?: RouteType & T; } // 系统主题 dark: 暗黑;light:白色 export type SystemTheme = 'dark' | 'light'; export interface ConstantListItem { value: any; label: string; [key: string]: any; } // 所属区域 省市区 联动 export interface Region { province: string; city: string; area: string; } // 性别 export enum Gender { FEMALE = 2, MALE = 1 } // 头像/图片 export interface Image { url: string; id?: string | number; key?: string | number; }