2020-11-01 07:03:33 +00:00
|
|
|
import { App, Plugin } from 'vue';
|
2019-01-12 03:33:27 +00:00
|
|
|
import Layout from './layout';
|
|
|
|
import Sider from './Sider';
|
2018-04-20 04:52:31 +00:00
|
|
|
|
2021-05-26 06:47:50 +00:00
|
|
|
export { BasicProps as LayoutProps } from './layout';
|
|
|
|
export { SiderProps } from './Sider';
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
Layout.Sider = Sider;
|
2018-09-19 05:21:57 +00:00
|
|
|
|
|
|
|
/* istanbul ignore next */
|
2020-10-15 07:54:52 +00:00
|
|
|
Layout.install = function(app: App) {
|
2020-06-22 15:07:54 +00:00
|
|
|
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);
|
2020-10-13 11:14:56 +00:00
|
|
|
return app;
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2020-11-01 07:03:33 +00:00
|
|
|
export default Layout as typeof Layout &
|
|
|
|
Plugin & {
|
|
|
|
readonly Sider: typeof Sider;
|
|
|
|
};
|