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