fix: content fixed mode with blank page (#3523)
This commit is contained in:
parent
50276cb602
commit
49fdb6c986
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue