ant-design/components/layout/index.tsx
Tom Xu 050185bce1
refactor(layout.sider): rewrite with hook (#27719)
* refactor(sider): rewrite with hook

* Update layout.tsx

* Update layout.tsx
2020-11-20 08:56:12 +08:00

22 lines
524 B
TypeScript

import InternalLayout, { BasicProps, Content, Footer, Header } from './layout';
import Sider 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: typeof Sider;
}
const Layout = InternalLayout as LayoutType;
Layout.Header = Header;
Layout.Footer = Footer;
Layout.Content = Content;
Layout.Sider = Sider;
export default Layout;