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