mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
d32a1fe274
* fix(types): external module type error (CompoundedComponent) * refactor(types): rename and replace internal CompoundedComponent type
24 lines
580 B
TypeScript
24 lines
580 B
TypeScript
import InternalLayout, { Content, Footer, Header } from './layout';
|
|
import Sider from './Sider';
|
|
|
|
export type { BasicProps as LayoutProps } from './layout';
|
|
export type { SiderProps } from './Sider';
|
|
|
|
type InternalLayoutType = typeof InternalLayout;
|
|
|
|
type CompoundedComponent = InternalLayoutType & {
|
|
Header: typeof Header;
|
|
Footer: typeof Footer;
|
|
Content: typeof Content;
|
|
Sider: typeof Sider;
|
|
};
|
|
|
|
const Layout = InternalLayout as CompoundedComponent;
|
|
|
|
Layout.Header = Header;
|
|
Layout.Footer = Footer;
|
|
Layout.Content = Content;
|
|
Layout.Sider = Sider;
|
|
|
|
export default Layout;
|