vben
2020-10-18 7101587b9676c91e9079044a096df08848f1f602
提交 | 用户 | age
2f6253 1 import { defineComponent } from 'vue';
2 import { Layout } from 'ant-design-vue';
3 // hooks
4
5 import { ContentEnum } from '/@/enums/appEnum';
6 import { appStore } from '/@/store/modules/app';
7 // import { RouterView } from 'vue-router';
8 import PageLayout from '/@/layouts/page/index';
9 export default defineComponent({
10   name: 'DefaultLayoutContent',
11   setup() {
12     return () => {
13       const { getProjectConfig } = appStore;
14       const { contentMode } = getProjectConfig;
15       const wrapClass = contentMode === ContentEnum.FULL ? 'full' : 'fixed';
16       return (
17         <Layout.Content class={`layout-content ${wrapClass} `}>
18           {{
765361 19             default: () => <PageLayout />,
2f6253 20           }}
21         </Layout.Content>
22       );
23     };
24   },
25 });