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
3b826c2e
Commit
3b826c2e
authored
Dec 03, 2018
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: sidebar opened state. #17 #18
parent
1fdaca01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
GlobalLayout.vue
src/components/page/GlobalLayout.vue
+1
-1
mixin.js
src/utils/mixin.js
+1
-1
No files found.
src/components/page/GlobalLayout.vue
View file @
3b826c2e
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</a-drawer>
</a-drawer>
</
template
>
</
template
>
<a-layout
:class=
"[layoutMode, `content-width-${contentWidth}`]"
:style=
"{ paddingLeft: fixSiderbar &&
device === 'desktop'
? `${sidebarOpened ? 256 : 80}px` : '0' }"
>
<a-layout
:class=
"[layoutMode, `content-width-${contentWidth}`]"
:style=
"{ paddingLeft: fixSiderbar &&
isDesktop()
? `${sidebarOpened ? 256 : 80}px` : '0' }"
>
<!-- layout header -->
<!-- layout header -->
<global-header
<global-header
:mode=
"layoutMode"
:mode=
"layoutMode"
...
...
src/utils/mixin.js
View file @
3b826c2e
...
@@ -15,7 +15,7 @@ const mixin = {
...
@@ -15,7 +15,7 @@ const mixin = {
fixSiderbar
:
state
=>
state
.
app
.
fixSiderbar
,
fixSiderbar
:
state
=>
state
.
app
.
fixSiderbar
,
contentWidth
:
state
=>
state
.
app
.
contentWidth
,
contentWidth
:
state
=>
state
.
app
.
contentWidth
,
autoHideHeader
:
state
=>
state
.
app
.
autoHideHeader
,
autoHideHeader
:
state
=>
state
.
app
.
autoHideHeader
,
sidebarOpened
:
state
=>
state
.
app
.
sidebar
O
pened
sidebarOpened
:
state
=>
state
.
app
.
sidebar
.
o
pened
})
})
}
}
}
}
...
...
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