2022-03-22 16:52:20 +08:00
|
|
|
import InternalLayout, { Content, Footer, Header } from './layout';
|
2023-11-17 10:44:56 +08:00
|
|
|
import Sider, { SiderContext } from './Sider';
|
2016-12-30 21:41:28 +08:00
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
export type { BasicProps as LayoutProps } from './layout';
|
|
|
|
export type { SiderProps } from './Sider';
|
2017-09-25 22:14:49 +08:00
|
|
|
|
2022-03-22 16:52:20 +08:00
|
|
|
type InternalLayoutType = typeof InternalLayout;
|
|
|
|
|
2022-11-19 16:56:23 +08:00
|
|
|
type CompoundedComponent = InternalLayoutType & {
|
2020-11-06 10:26:45 +08:00
|
|
|
Header: typeof Header;
|
|
|
|
Footer: typeof Footer;
|
|
|
|
Content: typeof Content;
|
2020-11-20 08:56:12 +08:00
|
|
|
Sider: typeof Sider;
|
2023-11-17 10:44:56 +08:00
|
|
|
/** @private Internal Context. Do not use in your production. */
|
|
|
|
_InternalSiderContext: typeof SiderContext;
|
2022-11-19 16:56:23 +08:00
|
|
|
};
|
2020-11-06 10:26:45 +08:00
|
|
|
|
2022-11-19 16:56:23 +08:00
|
|
|
const Layout = InternalLayout as CompoundedComponent;
|
2020-11-06 10:26:45 +08:00
|
|
|
|
|
|
|
Layout.Header = Header;
|
|
|
|
Layout.Footer = Footer;
|
|
|
|
Layout.Content = Content;
|
2016-12-30 21:41:28 +08:00
|
|
|
Layout.Sider = Sider;
|
2023-11-17 10:44:56 +08:00
|
|
|
Layout._InternalSiderContext = SiderContext;
|
2020-11-06 10:26:45 +08:00
|
|
|
|
2016-12-30 21:41:28 +08:00
|
|
|
export default Layout;
|