mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
fix: 主界面最外层正常情况下出现滚动条
This commit is contained in:
parent
db4855737b
commit
f45588e811
@ -1,7 +1,7 @@
|
||||
{
|
||||
"Version": "2.0.0",
|
||||
"Title": "PureAdmin",
|
||||
"FixedHeader": false,
|
||||
"FixedHeader": true,
|
||||
"HiddenSideBar": false,
|
||||
"KeepAlive": true,
|
||||
"Locale": "zh",
|
||||
|
@ -50,22 +50,9 @@ const transition = computed(() => {
|
||||
|
||||
<style scoped>
|
||||
.app-main {
|
||||
min-height: calc(100vh - 70px);
|
||||
width: 100%;
|
||||
height: 90vh;
|
||||
height: 100vh;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.fixed-header + .app-main {
|
||||
padding-top: 50px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
.el-popup-parent--hidden {
|
||||
.fixed-header {
|
||||
padding-right: 15px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -234,19 +234,6 @@ onBeforeMount(() => {
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.fixed-header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 9;
|
||||
width: calc(100% - 210px);
|
||||
transition: width 0.28s;
|
||||
}
|
||||
|
||||
.mobile .fixed-header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.re-screen {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
@ -23,6 +23,15 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fixed-header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 9;
|
||||
width: calc(100% - 210px);
|
||||
transition: width 0.28s;
|
||||
}
|
||||
|
||||
.el-popper.is-light {
|
||||
border: none !important;
|
||||
}
|
||||
@ -402,6 +411,11 @@
|
||||
|
||||
// 手机端
|
||||
.mobile {
|
||||
.fixed-header {
|
||||
width: 100% !important;
|
||||
transition: width 0.28s;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
@ -429,9 +443,14 @@
|
||||
}
|
||||
|
||||
body[data-layout="vertical"] {
|
||||
.fixed-header + .app-main {
|
||||
padding-top: 85px;
|
||||
}
|
||||
|
||||
.hideSidebar {
|
||||
.fixed-header {
|
||||
width: calc(100% - 54px);
|
||||
width: calc(100% - 54px) !important;
|
||||
transition: width 0.28s;
|
||||
}
|
||||
|
||||
.sidebar-container {
|
||||
@ -478,6 +497,17 @@ body[data-layout="vertical"] {
|
||||
}
|
||||
}
|
||||
|
||||
body[data-layout="horizontal"] {
|
||||
.fixed-header {
|
||||
width: 100% !important;
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
.fixed-header + .app-main {
|
||||
padding-top: 98px;
|
||||
}
|
||||
}
|
||||
|
||||
// vertical模式下暗色主题
|
||||
body[data-layout="vertical"][data-theme="dark"] {
|
||||
$subMenuActiveText: #f4f4f5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user