mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 16:58:00 +08:00
38cf5e8a75
* docs: unify component export file as index.tsx * docs: compatible with old anchors * chore: clean * test: update snapshot * fix: window env --------- Co-authored-by: Peach <scdzwyxst@gmail.com>
27 lines
756 B
TypeScript
27 lines
756 B
TypeScript
import InternalLayout, { Content, Footer, Header } from './layout';
|
|
import Sider, { SiderContext } 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;
|
|
/** @private Internal Context. Do not use in your production. */
|
|
_InternalSiderContext: typeof SiderContext;
|
|
};
|
|
|
|
const Layout = InternalLayout as CompoundedComponent;
|
|
|
|
Layout.Header = Header;
|
|
Layout.Footer = Footer;
|
|
Layout.Content = Content;
|
|
Layout.Sider = Sider;
|
|
Layout._InternalSiderContext = SiderContext;
|
|
|
|
export default Layout;
|