1 |
|
2 | import type { BreadcrumbProps } from 'antd';
|
3 | import type { WaterMarkProps } from './components/WaterMark';
|
4 | import type { PureSettings } from './defaultSettings';
|
5 | import type { MenuDataItem } from './typings';
|
6 | import type { BreadcrumbListReturn } from './utils/getBreadcrumbProps';
|
7 | export declare type RouteContextType = {
|
8 | breadcrumb?: BreadcrumbListReturn;
|
9 | menuData?: MenuDataItem[];
|
10 | isMobile?: boolean;
|
11 | prefixCls?: string;
|
12 | collapsed?: boolean;
|
13 | hasSiderMenu?: boolean;
|
14 | hasHeader?: boolean;
|
15 | siderWidth?: number;
|
16 | isChildrenLayout?: boolean;
|
17 | hasFooterToolbar?: boolean;
|
18 | hasFooter?: boolean;
|
19 | setHasFooterToolbar?: React.Dispatch<React.SetStateAction<boolean>>;
|
20 | pageTitleInfo?: {
|
21 | title: string;
|
22 | id: string;
|
23 | pageName: string;
|
24 | };
|
25 | matchMenus?: MenuDataItem[];
|
26 | matchMenuKeys?: string[];
|
27 | currentMenu?: PureSettings & MenuDataItem;
|
28 |
|
29 | breadcrumbProps?: BreadcrumbProps;
|
30 | waterMarkProps?: WaterMarkProps;
|
31 | } & Partial<PureSettings>;
|
32 | declare const routeContext: React.Context<RouteContextType>;
|
33 | export default routeContext;
|