fix: content fixed mode with blank page (#3523)
This commit is contained in:
parent
50276cb602
commit
49fdb6c986
|
|
@ -1,9 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="[prefixCls, getLayoutContentMode]" v-loading="getOpenPageLoading && getPageLoading">
|
<div :class="[prefixCls, getLayoutContentMode]" v-loading="getOpenPageLoading && getPageLoading">
|
||||||
<div :class="[prefixClsScroll]">
|
|
||||||
<PageLayout />
|
<PageLayout />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import PageLayout from '@/layouts/page/index.vue';
|
import PageLayout from '@/layouts/page/index.vue';
|
||||||
|
|
@ -15,7 +13,6 @@
|
||||||
defineOptions({ name: 'LayoutContent' });
|
defineOptions({ name: 'LayoutContent' });
|
||||||
|
|
||||||
const { prefixCls } = useDesign('layout-content');
|
const { prefixCls } = useDesign('layout-content');
|
||||||
const { prefixCls: prefixClsScroll } = useDesign('layout-content-scroll');
|
|
||||||
const { getOpenPageLoading } = useTransitionSetting();
|
const { getOpenPageLoading } = useTransitionSetting();
|
||||||
const { getLayoutContentMode, getPageLoading } = useRootSetting();
|
const { getLayoutContentMode, getPageLoading } = useRootSetting();
|
||||||
|
|
||||||
|
|
@ -23,9 +20,11 @@
|
||||||
</script>
|
</script>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
@prefix-cls: ~'@{namespace}-layout-content';
|
@prefix-cls: ~'@{namespace}-layout-content';
|
||||||
@prefix-cls-scroll: ~'@{namespace}-layout-content-scroll';
|
|
||||||
|
|
||||||
.@{prefix-cls} {
|
.@{prefix-cls} {
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
flex-direction: column;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue