2020-11-06 10:26:45 +08:00
|
|
|
import InternalLayout, { BasicProps, Content, Footer, Header } from './layout';
|
|
|
|
import Sider, { SiderProps } 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;
|
|
|
|
Sider: React.ComponentClass<SiderProps>;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|