2022-03-22 16:52:20 +08:00
|
|
|
import InternalLayout, { Content, Footer, Header } from './layout';
|
2020-11-20 08:56:12 +08:00
|
|
|
import Sider from './Sider';
|
2016-12-30 21:41:28 +08:00
|
|
|
|
2017-09-25 22:14:49 +08:00
|
|
|
export { BasicProps as LayoutProps } from './layout';
|
|
|
|
export { SiderProps } from './Sider';
|
|
|
|
|
2022-03-22 16:52:20 +08:00
|
|
|
type InternalLayoutType = typeof InternalLayout;
|
|
|
|
|
2023-01-03 11:46:48 +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-01-03 11:46:48 +08:00
|
|
|
};
|
2020-11-06 10:26:45 +08:00
|
|
|
|
2023-01-03 11:46:48 +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;
|
2020-11-06 10:26:45 +08:00
|
|
|
|
2016-12-30 21:41:28 +08:00
|
|
|
export default Layout;
|