fix: content fixed mode with blank page (#3523)

This commit is contained in:
xachary 2024-01-10 14:32:34 +08:00 committed by GitHub
parent 50276cb602
commit 49fdb6c986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,6 @@
<template>
<div :class="[prefixCls, getLayoutContentMode]" v-loading="getOpenPageLoading && getPageLoading">
<div :class="[prefixClsScroll]">
<PageLayout />
</div>
<PageLayout />
</div>
</template>
<script lang="ts" setup>
@ -15,7 +13,6 @@
defineOptions({ name: 'LayoutContent' });
const { prefixCls } = useDesign('layout-content');
const { prefixCls: prefixClsScroll } = useDesign('layout-content-scroll');
const { getOpenPageLoading } = useTransitionSetting();
const { getLayoutContentMode, getPageLoading } = useRootSetting();
@ -23,9 +20,11 @@
</script>
<style lang="less">
@prefix-cls: ~'@{namespace}-layout-content';
@prefix-cls-scroll: ~'@{namespace}-layout-content-scroll';
.@{prefix-cls} {
display: flex;
position: relative;
flex-direction: column;
flex-grow: 1;
width: 100%;
height: 0;