20 lines
540 B
TypeScript
20 lines
540 B
TypeScript
import { App, Plugin } from 'vue';
|
|
import Layout from './layout';
|
|
import Sider 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 default Layout as typeof Layout &
|
|
Plugin & {
|
|
readonly Sider: typeof Sider;
|
|
};
|