Skip to content

Commit

Permalink
fix: content fixed mode with blank page (vbenjs#3523)
Browse files Browse the repository at this point in the history
  • Loading branch information
xachary authored and WitMiao committed Jan 16, 2024
1 parent 6bae49d commit 34157dd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/layouts/default/content/index.vue
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -15,17 +13,18 @@
defineOptions({ name: 'LayoutContent' });
const { prefixCls } = useDesign('layout-content');
const { prefixCls: prefixClsScroll } = useDesign('layout-content-scroll');
const { getOpenPageLoading } = useTransitionSetting();
const { getLayoutContentMode, getPageLoading } = useRootSetting();
useContentViewHeight();
</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;
Expand Down

0 comments on commit 34157dd

Please sign in to comment.