Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
胡锦波
/
org-manager-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f8916a54
authored
Apr 07, 2022
by
胡锦波
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1. init scrollbar 尝试添加
parent
61cdf4e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
15 deletions
src/views/pages/aside-panels/aside-panels.vue
src/views/pages/main.vue
src/views/pages/aside-panels/aside-panels.vue
View file @
f8916a54
<
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
{
...
...
src/views/pages/main.vue
View file @
f8916a54
...
@@ -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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment