Browse Source

fix: scrollbar is obscured (#3331)

pull/3332/head
xachary 2 years ago
committed by GitHub
parent
commit
3f65baf503
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/design/index.less
  2. 12
      src/layouts/default/content/index.vue

3
src/design/index.less

@ -23,8 +23,7 @@ body {
position: relative;
width: 100%;
height: 100%;
overflow: visible;
overflow-x: hidden;
overflow: hidden;
&.color-weak {
filter: invert(80%);

12
src/layouts/default/content/index.vue

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

Loading…
Cancel
Save