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 '../typing';
|
6 | import type { BreadcrumbListReturn } from '../utils/getBreadcrumbProps';
|
7 | export 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 | hasPageContainer?: number;
|
20 | setHasFooterToolbar?: React.Dispatch<React.SetStateAction<boolean>>;
|
21 | setHasPageContainer?: React.Dispatch<React.SetStateAction<number>>;
|
22 | pageTitleInfo?: {
|
23 | title: string;
|
24 | id: string;
|
25 | pageName: string;
|
26 | };
|
27 | matchMenus?: MenuDataItem[];
|
28 | matchMenuKeys?: string[];
|
29 | currentMenu?: PureSettings & MenuDataItem;
|
30 |
|
31 | breadcrumbProps?: BreadcrumbProps;
|
32 | waterMarkProps?: WaterMarkProps;
|
33 | } & Partial<PureSettings>;
|
34 | export declare const RouteContext: React.Context<RouteContextType>;
|