26 lines
744 B
TypeScript
26 lines
744 B
TypeScript
import { defineComponent } from 'vue';
|
|
import { Layout } from 'ant-design-vue';
|
|
// hooks
|
|
|
|
import { ContentEnum } from '/@/enums/appEnum';
|
|
import { appStore } from '/@/store/modules/app';
|
|
// import { RouterView } from 'vue-router';
|
|
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} `}>
|
|
{{
|
|
default: () => <PageLayout />,
|
|
}}
|
|
</Layout.Content>
|
|
);
|
|
};
|
|
},
|
|
});
|