| | |
| | | </div> |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, onMounted } from 'vue'; |
| | | import PageLayout from '/@/layouts/page/index.vue'; |
| | | import { useDesign } from '/@/hooks/web/useDesign'; |
| | | import { useRootSetting } from '/@/hooks/setting/useRootSetting'; |
| | | import { useTransitionSetting } from '/@/hooks/setting/useTransitionSetting'; |
| | | import { useContentViewHeight } from './useContentViewHeight'; |
| | | import { defineComponent, onMounted } from 'vue' |
| | | import PageLayout from '/@/layouts/page/index.vue' |
| | | import { useDesign } from '/@/hooks/web/useDesign' |
| | | import { useRootSetting } from '/@/hooks/setting/useRootSetting' |
| | | import { useTransitionSetting } from '/@/hooks/setting/useTransitionSetting' |
| | | import { useContentViewHeight } from './useContentViewHeight' |
| | | // import registerApps from '/@/qiankun'; |
| | | import { useGlobSetting } from '/@/hooks/setting'; |
| | | import { useGlobSetting } from '/@/hooks/setting' |
| | | export default defineComponent({ |
| | | name: 'LayoutContent', |
| | | components: { PageLayout }, |
| | | setup() { |
| | | const { prefixCls } = useDesign('layout-content'); |
| | | const { getOpenPageLoading } = useTransitionSetting(); |
| | | const { getLayoutContentMode, getPageLoading } = useRootSetting(); |
| | | const globSetting = useGlobSetting(); |
| | | const openQianKun = globSetting.openQianKun; |
| | | useContentViewHeight(); |
| | | const { prefixCls } = useDesign('layout-content') |
| | | const { getOpenPageLoading } = useTransitionSetting() |
| | | const { getLayoutContentMode, getPageLoading } = useRootSetting() |
| | | const globSetting = useGlobSetting() |
| | | const openQianKun = globSetting.openQianKun |
| | | useContentViewHeight() |
| | | onMounted(() => { |
| | | // //注册openQianKun |
| | | // if (openQianKun == 'true') { |
| | |
| | | // registerApps(); |
| | | // } |
| | | // } |
| | | }); |
| | | }) |
| | | return { |
| | | prefixCls, |
| | | openQianKun, |
| | | getOpenPageLoading, |
| | | getLayoutContentMode, |
| | | getPageLoading, |
| | | }; |
| | | } |
| | | }, |
| | | }); |
| | | }) |
| | | </script> |
| | | <style lang="less"> |
| | | @prefix-cls: ~'@{namespace}-layout-content'; |
| | |
| | | position: relative; |
| | | flex: 1 1 auto; |
| | | min-height: 0; |
| | | |
| | | overflow: scroll; |
| | | &.fixed { |
| | | width: 1200px; |
| | | margin: 0 auto; |