Commit f8916a54 by 胡锦波

1. init scrollbar 尝试添加

parent 61cdf4e8
<template> <template>
<div class="aside-panels-container"> <div class="aside-panels-container flex-fill d-flex flex-column">
<el-menu <el-menu
class="aside-menu" class="aside-menu flex-fill"
@select="changeMenu" @select="changeMenu"
@open="onOpenSub" @open="onOpenSub"
@close="onCloseSub" @close="onCloseSub"
...@@ -190,9 +190,12 @@ ...@@ -190,9 +190,12 @@
@import "~@/css/variables.less"; @import "~@/css/variables.less";
.aside-panels-container { .aside-panels-container {
width: 240px; width: 240px;
height: 100%;
border-right: 1px solid #e6e6e6;
/deep/ .aside-menu { /deep/ .aside-menu {
height: 100%; height: 100%;
border-right: 0px;
background-color: #fff; background-color: #fff;
.el-menu-item__header { .el-menu-item__header {
......
...@@ -3,19 +3,23 @@ ...@@ -3,19 +3,23 @@
<div class="flex-none"> <div class="flex-none">
<CommonHeader></CommonHeader> <CommonHeader></CommonHeader>
</div> </div>
<div class="d-flex flex-fill"> <div class="root-contaniner d-flex flex-fill">
<AsidePanels class="flex-none"></AsidePanels> <el-scrollbar class="container-scrollbar-left">
<div <AsidePanels class="flex-none"></AsidePanels>
class=" </el-scrollbar>
main-container <el-scrollbar class="container-scrollbar-right">
flex-fill <div
d-flex class="
align-items-center main-container
justify-content-center flex-fill
" d-flex
> align-items-center
<router-view class="router-page flex-fill"></router-view> justify-content-center
</div> "
>
<router-view class="router-page flex-fill"></router-view>
</div>
</el-scrollbar>
</div> </div>
</div> </div>
</template> </template>
...@@ -35,7 +39,12 @@ ...@@ -35,7 +39,12 @@
height: 100%; height: 100%;
min-width: 1200px; min-width: 1200px;
.root-contaniner {
height: 100%;
}
.main-container { .main-container {
height: 100%;
background-color: #f5f6fa; background-color: #f5f6fa;
padding: 24px; padding: 24px;
...@@ -46,4 +55,28 @@ ...@@ -46,4 +55,28 @@
} }
} }
} }
.container-scrollbar-right {
flex: 1 1 auto;
height: 100%;
}
.container-scrollbar-left,
.container-scrollbar-right {
display: flex;
flex-direction: column;
/deep/ .el-scrollbar__wrap {
display: flex;
flex-direction: column;
flex: 1 1 auto;
height: 100%;
.el-scrollbar__view {
// display: flex;
// flex-direction: column;
height: 100%;
}
}
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment