代码拉取完成,页面将自动刷新
import { FC } from 'react';
import { RouteComponentProps } from 'react-router-dom';
import { IState } from './redux/data';
declare global {
// declare module '*.css';
// declare module '*.less';
// declare module '*.scss';
// declare module '*.sass';
// declare module '*.svg';
// declare module '*.png';
// declare module '*.jpg';
// declare module '*.jpeg';
// declare module '*.gif';
// declare module '*.bmp';
// declare module '*.tiff';
interface Window {
ssrData?: IState;
}
interface RouteProps {
/** 页面标题 */
title: string;
/** name, 页面key */
name: string;
/** icon */
icon?: React.ReactNode;
/** 路由 */
path: string;
relativePath?: string;
/** 是否严格匹配 */
exact?: boolean;
/** 如果是跳转,此处配置跳转的路由 */
redirect?: string;
/** 页面组件 */
component?: FC<RoutePageProps>;
/** 子路由 */
routes?: RouteProps[];
/** 是否在菜单中隐藏 */
hideInMenu?: boolean;
/** 权限控制 */
roles?: string[];
/** 是否ssr */
isSSR?: boolean;
/** ssr初始数据 */
getInitialProps?: () => Promise<any>;
}
interface RoutePageProps extends RouteComponentProps {
routes?: RouteProps[];
}
interface ServerListData<T = any> {
total: number;
rows: T[];
}
interface SelectData {
value: string;
label: string;
}
interface CasSelectData extends SelectData {
children: CasSelectData[];
}
interface TreeItem {
key: string;
title: string;
children: TreeItem[];
}
interface TreeSelectItem extends TreeItem {
value: string;
children: TreeSelectItem[];
}
interface BaseModel {
_id: string;
createdAt?: string;
updatedAt?: string;
isDeleted?: boolean;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。