LayoutContent.tsx 702 B

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