Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
d74030c3
Unverified
Commit
d74030c3
authored
Mar 02, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: edge sider height
parent
a22763ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
GlobalLayout.vue
src/components/page/GlobalLayout.vue
+14
-0
No files found.
src/components/page/GlobalLayout.vue
View file @
d74030c3
...
@@ -121,6 +121,18 @@ export default {
...
@@ -121,6 +121,18 @@ export default {
this
.
menus
=
this
.
mainMenu
.
find
((
item
)
=>
item
.
path
===
'/'
).
children
this
.
menus
=
this
.
mainMenu
.
find
((
item
)
=>
item
.
path
===
'/'
).
children
this
.
collapsed
=
!
this
.
sidebarOpened
this
.
collapsed
=
!
this
.
sidebarOpened
},
},
mounted
()
{
const
userAgent
=
navigator
.
userAgent
if
(
userAgent
.
indexOf
(
'Edge'
)
>
-
1
)
{
this
.
$nextTick
(()
=>
{
this
.
collapsed
=
!
this
.
collapsed
setTimeout
(()
=>
{
this
.
collapsed
=
!
this
.
collapsed
},
16
)
})
}
},
methods
:
{
methods
:
{
...
mapActions
([
'setSidebar'
]),
...
mapActions
([
'setSidebar'
]),
toggle
()
{
toggle
()
{
...
@@ -158,6 +170,7 @@ export default {
...
@@ -158,6 +170,7 @@ export default {
}
}
.layout.ant-layout
{
.layout.ant-layout
{
height
:
auto
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
&.mobile,&.tablet
{
&.mobile,&.tablet
{
...
@@ -488,6 +501,7 @@ export default {
...
@@ -488,6 +501,7 @@ export default {
box-shadow
:
2px
0
6px
rgba
(
0
,
21
,
41
,
.35
);
box-shadow
:
2px
0
6px
rgba
(
0
,
21
,
41
,
.35
);
position
:
relative
;
position
:
relative
;
z-index
:
10
;
z-index
:
10
;
height
:
auto
;
.
ant-layout-sider-children
:
hover
{
.
ant-layout-sider-children
:
hover
{
overflow-y
:
auto
;
overflow-y
:
auto
;
...
...
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