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
da3dc6f9
Commit
da3dc6f9
authored
Nov 24, 2018
by
sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: settings
parent
ce015964
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
SettingDrawer.vue
src/components/setting/SettingDrawer.vue
+9
-3
No files found.
src/components/setting/SettingDrawer.vue
View file @
da3dc6f9
...
@@ -108,10 +108,10 @@
...
@@ -108,10 +108,10 @@
<div
slot=
"title"
>
下滑时隐藏 Header
</div>
<div
slot=
"title"
>
下滑时隐藏 Header
</div>
</a-list-item-meta>
</a-list-item-meta>
</a-list-item>
</a-list-item>
<a-list-item>
<a-list-item
>
<a-switch
slot=
"actions"
size=
"small"
:defaultChecked=
"fixedSideMenu"
@
change=
"handleFixedSideMenu"
/>
<a-switch
slot=
"actions"
size=
"small"
:d
isabled=
"(layoutMode === 'topmenu')"
:d
efaultChecked=
"fixedSideMenu"
@
change=
"handleFixedSideMenu"
/>
<a-list-item-meta>
<a-list-item-meta>
<div
slot=
"title"
>
固定侧边菜单
</div>
<div
slot=
"title"
:style=
"{ textDecoration: layoutMode === 'topmenu' ? 'line-through' : 'unset' }"
>
固定侧边菜单
</div>
</a-list-item-meta>
</a-list-item-meta>
</a-list-item>
</a-list-item>
</a-list>
</a-list>
...
@@ -214,6 +214,8 @@
...
@@ -214,6 +214,8 @@
},
},
handleLayout
(
mode
)
{
handleLayout
(
mode
)
{
this
.
$store
.
dispatch
(
'ToggleLayoutMode'
,
mode
)
this
.
$store
.
dispatch
(
'ToggleLayoutMode'
,
mode
)
// 因为顶部菜单不能固定左侧菜单栏,所以强制关闭
this
.
handleFixedSideMenu
(
false
);
},
},
changeColor
(
color
)
{
changeColor
(
color
)
{
if
(
this
.
primaryColor
!==
color
)
{
if
(
this
.
primaryColor
!==
color
)
{
...
@@ -228,6 +230,10 @@
...
@@ -228,6 +230,10 @@
this
.
$store
.
dispatch
(
'ToggleFixedHeaderHidden'
,
autoHidden
)
this
.
$store
.
dispatch
(
'ToggleFixedHeaderHidden'
,
autoHidden
)
},
},
handleFixedSideMenu
(
fixed
)
{
handleFixedSideMenu
(
fixed
)
{
if
(
this
.
layoutMode
===
'topmenu'
)
{
this
.
$store
.
dispatch
(
'ToggleFixedSidemenu'
,
false
)
return
;
}
this
.
$store
.
dispatch
(
'ToggleFixedSidemenu'
,
fixed
)
this
.
$store
.
dispatch
(
'ToggleFixedSidemenu'
,
fixed
)
}
}
},
},
...
...
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