mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 14:59:35 +08:00
8cab1883af
* feat: support layout components given refs * test: add ensure given ref test case * fix: update test Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>
24 lines
560 B
TypeScript
24 lines
560 B
TypeScript
import InternalLayout, { Content, Footer, Header } from './layout';
|
|
import Sider from './Sider';
|
|
|
|
export { BasicProps as LayoutProps } from './layout';
|
|
export { SiderProps } from './Sider';
|
|
|
|
type InternalLayoutType = typeof InternalLayout;
|
|
|
|
interface LayoutType extends InternalLayoutType {
|
|
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;
|