UNPKG

header-sider-layout

Version:

ant-design-pro layout, based on pro-layout, with header and sider layout.

36 lines (35 loc) 1.01 kB
import * as H from 'history'; import { RouteComponentProps as BasicRouteProps, match } from 'react-router-dom'; import React from 'react'; export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> { to: H.LocationDescriptor; replace?: boolean; innerRef?: React.Ref<HTMLAnchorElement>; } export interface MenuDataItem { authority?: string[] | string; children?: MenuDataItem[]; hideChildrenInMenu?: boolean; hideInMenu?: boolean; icon?: string; locale?: string; name?: string; path: string; [key: string]: any; } export interface Route extends MenuDataItem { routes?: Route[]; } export declare type WithFalse<T> = T | false; export interface RouterTypes<P> extends Omit<BasicRouteProps, 'location'> { computedMatch?: match<P>; route?: Route; location: BasicRouteProps['location'] | { pathname?: string; }; } export interface MessageDescriptor { id: any; description?: string; defaultMessage?: string; }