mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
22 lines
560 B
TypeScript
22 lines
560 B
TypeScript
import InternalLayout, { BasicProps, Content, Footer, Header } from './layout';
|
|
import Sider, { SiderProps } from './Sider';
|
|
|
|
export { BasicProps as LayoutProps } from './layout';
|
|
export { SiderProps } from './Sider';
|
|
|
|
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;
|
|
Layout.Sider = Sider;
|
|
|
|
export default Layout;
|