You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
580 B
24 lines
580 B
3 years ago
|
import InternalLayout, { Content, Footer, Header } from './layout';
|
||
4 years ago
|
import Sider from './Sider';
|
||
8 years ago
|
|
||
2 years ago
|
export type { BasicProps as LayoutProps } from './layout';
|
||
|
export type { SiderProps } from './Sider';
|
||
7 years ago
|
|
||
3 years ago
|
type InternalLayoutType = typeof InternalLayout;
|
||
|
|
||
2 years ago
|
type CompoundedComponent = InternalLayoutType & {
|
||
4 years ago
|
Header: typeof Header;
|
||
|
Footer: typeof Footer;
|
||
|
Content: typeof Content;
|
||
4 years ago
|
Sider: typeof Sider;
|
||
2 years ago
|
};
|
||
4 years ago
|
|
||
2 years ago
|
const Layout = InternalLayout as CompoundedComponent;
|
||
4 years ago
|
|
||
|
Layout.Header = Header;
|
||
|
Layout.Footer = Footer;
|
||
|
Layout.Content = Content;
|
||
8 years ago
|
Layout.Sider = Sider;
|
||
4 years ago
|
|
||
8 years ago
|
export default Layout;
|