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.
28 lines
728 B
28 lines
728 B
import type { App } from 'vue';
|
|
import Layout, { Header, Footer, Content } from './layout';
|
|
import Sider from './Sider';
|
|
|
|
export type { BasicProps as LayoutProps } from './layout';
|
|
export type { SiderProps } from './Sider';
|
|
|
|
/* istanbul ignore next */
|
|
export const LayoutHeader = Header;
|
|
export const LayoutFooter = Footer;
|
|
export const LayoutSider = Sider;
|
|
export const LayoutContent = Content;
|
|
|
|
export default Object.assign(Layout, {
|
|
Header,
|
|
Footer,
|
|
Content,
|
|
Sider,
|
|
install: (app: App) => {
|
|
app.component(Layout.name, Layout);
|
|
app.component(Header.name, Header);
|
|
app.component(Footer.name, Footer);
|
|
app.component(Sider.name, Sider);
|
|
app.component(Content.name, Content);
|
|
return app;
|
|
},
|
|
});
|