1 | import type { GenerateStyle } from '@ant-design/pro-provider';
|
2 | import type { AffixProps, BreadcrumbProps, SpinProps, TabPaneProps, TabsProps } from 'antd';
|
3 | import type { ReactNode } from 'react';
|
4 | import React from 'react';
|
5 | import type { WithFalse } from '../../typing';
|
6 | import type { FooterToolbarProps } from '../FooterToolbar';
|
7 | import type { PageHeaderProps } from '../PageHeader';
|
8 | import type { WaterMarkProps } from '../WaterMark';
|
9 | import type { PageContainerToken, pageContainerToken } from './style';
|
10 | import 'antd/es/breadcrumb/style';
|
11 | export type PageHeaderTabConfig = {
|
12 |
|
13 | tabList?: (TabPaneProps & {
|
14 | key?: React.Key;
|
15 | })[];
|
16 |
|
17 | tabActiveKey?: TabsProps['activeKey'];
|
18 |
|
19 | onTabChange?: TabsProps['onChange'];
|
20 |
|
21 | tabBarExtraContent?: TabsProps['tabBarExtraContent'];
|
22 |
|
23 | tabProps?: TabsProps;
|
24 | |
25 |
|
26 |
|
27 |
|
28 | fixHeader?: boolean;
|
29 |
|
30 | fixedHeader?: boolean;
|
31 | };
|
32 | export type PageContainerProps = {
|
33 | title?: React.ReactNode | false;
|
34 | content?: React.ReactNode;
|
35 | extraContent?: React.ReactNode;
|
36 | prefixCls?: string;
|
37 | footer?: ReactNode[];
|
38 | |
39 |
|
40 |
|
41 | token?: pageContainerToken;
|
42 | |
43 |
|
44 |
|
45 |
|
46 |
|
47 | header?: Partial<PageHeaderProps> & {
|
48 | children?: React.ReactNode;
|
49 | };
|
50 |
|
51 | pageHeaderRender?: WithFalse<(props: PageContainerProps) => React.ReactNode>;
|
52 | |
53 |
|
54 |
|
55 |
|
56 |
|
57 | affixProps?: Omit<AffixProps, 'children'>;
|
58 | |
59 |
|
60 |
|
61 |
|
62 |
|
63 | loading?: boolean | SpinProps | React.ReactNode;
|
64 | |
65 |
|
66 |
|
67 |
|
68 | breadcrumbRender?: PageHeaderProps['breadcrumbRender'] | false;
|
69 |
|
70 | waterMarkProps?: WaterMarkProps;
|
71 |
|
72 | breadcrumb?: BreadcrumbProps;
|
73 | children?: React.ReactNode;
|
74 | stylish?: GenerateStyle<PageContainerToken>;
|
75 | footerStylish?: GenerateStyle<PageContainerToken>;
|
76 | footerToolBarProps?: FooterToolbarProps;
|
77 | } & PageHeaderTabConfig & Omit<PageHeaderProps, 'title' | 'footer' | 'breadcrumbRender' | 'breadcrumb'>;
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 | declare const ProBreadcrumb: React.FC<BreadcrumbProps>;
|
85 | declare const PageContainer: React.FC<PageContainerProps>;
|
86 | declare const ProPageHeader: (props: PageContainerProps & {
|
87 | prefixedClassName: string;
|
88 | }) => JSX.Element | null;
|
89 | export { ProPageHeader, PageContainer, ProBreadcrumb };
|