2020-11-06 10:26:45 +08:00
|
|
|
import InternalLayout, { BasicProps, 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';
|
|
|
|
|
2020-11-06 10:26:45 +08:00
|
|
|
interface LayoutType extends React.FC<BasicProps> {
|
|
|
|
Header: typeof Header;
|
|
|
|
Footer: typeof Footer;
|
|
|
|
Content: typeof Content;
|
2020-11-20 08:56:12 +08:00
|
|
|
Sider: typeof Sider;
|
2020-11-06 10:26:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const Layout = InternalLayout as LayoutType;
|
|
|
|
|
|
|
|
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;
|