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