'admin-20.12.31:处理主布局切换页面elementPlus滚动条高度不变的bug'
This commit is contained in:
parent
c482f693fe
commit
e59abb4509
@ -47,8 +47,7 @@ body,
|
|||||||
@extend .el-scrollbar;
|
@extend .el-scrollbar;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
.el-scrollbar__view {
|
.layout-container-header-main {
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
@ -62,6 +61,15 @@ body,
|
|||||||
.h100 {
|
.h100 {
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
|
.vh100 {
|
||||||
|
height: 100vh !important;
|
||||||
|
}
|
||||||
|
.max100vh {
|
||||||
|
max-height: 100vh !important;
|
||||||
|
}
|
||||||
|
.min100vh {
|
||||||
|
min-height: 100vh !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* 字体大小全局样式
|
/* 字体大小全局样式
|
||||||
------------------------------- */
|
------------------------------- */
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
------------------------------- */
|
------------------------------- */
|
||||||
.breadcrumb-enter-active,
|
.breadcrumb-enter-active,
|
||||||
.breadcrumb-leave-active {
|
.breadcrumb-leave-active {
|
||||||
transition: all 0.3s ease;
|
transition: all 0.2s ease;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
.breadcrumb-enter-from,
|
.breadcrumb-enter-from,
|
||||||
|
@ -10,3 +10,28 @@ $sm: 768px;
|
|||||||
$md: 992px;
|
$md: 992px;
|
||||||
$lg: 1200px;
|
$lg: 1200px;
|
||||||
$xl: 1920px;
|
$xl: 1920px;
|
||||||
|
|
||||||
|
/* 页面宽度小于576px
|
||||||
|
------------------------------- */
|
||||||
|
@media screen and (max-width: $xs) {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 页面宽度小于768px
|
||||||
|
------------------------------- */
|
||||||
|
@media screen and (max-width: $sm) {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 页面宽度大于768px小于992px
|
||||||
|
------------------------------- */
|
||||||
|
@media screen and (min-width: $sm) and (max-width: $md) {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 页面宽度大于992px小于1200px
|
||||||
|
------------------------------- */
|
||||||
|
@media screen and (min-width: $md) and (max-width: $lg) {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 页面宽度大于1920px
|
||||||
|
------------------------------- */
|
||||||
|
@media screen and (min-width: $xl) {
|
||||||
|
}
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
@import './index.scss';
|
|
||||||
|
|
||||||
/* 页面宽度小于576px
|
|
||||||
------------------------------- */
|
|
||||||
@media screen and (max-width: $xs) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 页面宽度小于768px
|
|
||||||
------------------------------- */
|
|
||||||
@media screen and (max-width: $sm) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 页面宽度大于768px小于992px
|
|
||||||
------------------------------- */
|
|
||||||
@media screen and (min-width: $sm) and (max-width: $md) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 页面宽度大于992px小于1200px
|
|
||||||
------------------------------- */
|
|
||||||
@media screen and (min-width: $md) and (max-width: $lg) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 页面宽度大于1920px
|
|
||||||
------------------------------- */
|
|
||||||
@media screen and (min-width: $xl) {
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-main>
|
<el-main>
|
||||||
<el-scrollbar class="layout-scrollbar">
|
<el-scrollbar class="layout-scrollbar" style="min-height: calc(100vh - 84px);">
|
||||||
<router-view v-slot="{ Component }">
|
<router-view v-slot="{ Component }">
|
||||||
<transition appear :name="transitionName" mode="out-in">
|
<transition appear :name="transitionName" mode="out-in">
|
||||||
<div :key="key">
|
<div :key="key">
|
||||||
|
@ -3,8 +3,10 @@
|
|||||||
<Aside />
|
<Aside />
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
|
<div class="layout-container-header-main">
|
||||||
<Header />
|
<Header />
|
||||||
<Main />
|
<Main />
|
||||||
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</el-container>
|
</el-container>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
@ -130,7 +130,7 @@ export default {
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 34px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: #606266;
|
color: #606266;
|
||||||
|
Loading…
Reference in New Issue
Block a user