1 | import type { ReactNode } from 'react';
|
2 | import React from 'react';
|
3 | import type { TabsProps, AffixProps, PageHeaderProps, TabPaneProps, SpinProps, BreadcrumbProps } from 'antd';
|
4 | import './index.less';
|
5 | import type { WithFalse } from '../../typings';
|
6 | import type { WaterMarkProps } from '../WaterMark';
|
7 | export declare type PageHeaderTabConfig = {
|
8 |
|
9 | tabList?: (TabPaneProps & {
|
10 | key?: React.ReactText;
|
11 | })[];
|
12 |
|
13 | tabActiveKey?: TabsProps['activeKey'];
|
14 |
|
15 | onTabChange?: TabsProps['onChange'];
|
16 |
|
17 | tabBarExtraContent?: TabsProps['tabBarExtraContent'];
|
18 |
|
19 | tabProps?: TabsProps;
|
20 | |
21 |
|
22 |
|
23 |
|
24 | fixHeader?: boolean;
|
25 |
|
26 | fixedHeader?: boolean;
|
27 | };
|
28 | export declare type PageContainerProps = {
|
29 | title?: React.ReactNode | false;
|
30 | content?: React.ReactNode;
|
31 | extraContent?: React.ReactNode;
|
32 | prefixCls?: string;
|
33 | footer?: ReactNode[];
|
34 |
|
35 | ghost?: boolean;
|
36 | |
37 |
|
38 |
|
39 |
|
40 |
|
41 | header?: Partial<PageHeaderProps> & {
|
42 | children?: React.ReactNode;
|
43 | };
|
44 |
|
45 | pageHeaderRender?: WithFalse<(props: PageContainerProps) => React.ReactNode>;
|
46 | |
47 |
|
48 |
|
49 |
|
50 |
|
51 | affixProps?: Omit<AffixProps, 'children'>;
|
52 | |
53 |
|
54 |
|
55 |
|
56 |
|
57 | loading?: boolean | SpinProps | React.ReactNode;
|
58 |
|
59 | breadcrumbRender?: PageHeaderProps['breadcrumbRender'] | false;
|
60 |
|
61 | waterMarkProps?: WaterMarkProps;
|
62 |
|
63 | breadcrumb?: BreadcrumbProps;
|
64 | children?: React.ReactNode;
|
65 | } & PageHeaderTabConfig & Omit<PageHeaderProps, 'title' | 'footer' | 'breadcrumbRender' | 'breadcrumb'>;
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 | declare const ProBreadcrumb: React.FC<BreadcrumbProps>;
|
73 | declare const ProPageHeader: React.FC<PageContainerProps & {
|
74 | prefixedClassName: string;
|
75 | }>;
|
76 | declare const PageContainer: React.FC<PageContainerProps>;
|
77 | export { ProPageHeader, ProBreadcrumb };
|
78 | export default PageContainer;
|