Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
30be2a08
Commit
30be2a08
authored
May 26, 2020
by
若依
Committed by
Gitee
May 26, 2020
Browse files
Options
Browse Files
Download
Plain Diff
!22 tagview & sidebar 主题颜色与element ui(全局)同步
Merge pull request !22 from 北风/master
parents
2bd787f6
98bb78a9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
335 additions
and
303 deletions
+335
-303
ruoyi-ui/src/layout/components/Sidebar/index.vue
ruoyi-ui/src/layout/components/Sidebar/index.vue
+49
-46
ruoyi-ui/src/layout/components/TagsView/index.vue
ruoyi-ui/src/layout/components/TagsView/index.vue
+286
-257
No files found.
ruoyi-ui/src/layout/components/Sidebar/index.vue
View file @
30be2a08
<
template
>
<
template
>
<div
:class=
"
{'has-logo':showLogo}">
<div
:class=
"
{'has-logo':showLogo}">
<logo
v-if=
"showLogo"
:collapse=
"isCollapse"
/>
<logo
v-if=
"showLogo"
:collapse=
"isCollapse"
/>
<el-scrollbar
wrap-class=
"scrollbar-wrapper"
>
<el-scrollbar
wrap-class=
"scrollbar-wrapper"
>
<el-menu
<el-menu
:default-active=
"activeMenu"
:default-active=
"activeMenu"
:collapse=
"isCollapse"
:collapse=
"isCollapse"
:background-color=
"variables.menuBg"
:background-color=
"variables.menuBg"
:text-color=
"variables.menuText"
:text-color=
"variables.menuText"
:unique-opened=
"true"
:unique-opened=
"true"
:active-text-color=
"variables.menuActiveText"
:active-text-color=
"settings.theme"
:collapse-transition=
"false"
:collapse-transition=
"false"
mode=
"vertical"
mode=
"vertical"
>
>
<sidebar-item
v-for=
"route in permission_routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
<sidebar-item
</el-menu>
v-for=
"route in permission_routes"
</el-scrollbar>
:key=
"route.path"
</div>
:item=
"route"
:base-path=
"route.path"
/>
</el-menu>
</el-scrollbar>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapGetters
}
from
'
vuex
'
import
{
mapGetters
,
mapState
}
from
"
vuex
"
;
import
Logo
from
'
./Logo
'
import
Logo
from
"
./Logo
"
;
import
SidebarItem
from
'
./SidebarItem
'
import
SidebarItem
from
"
./SidebarItem
"
;
import
variables
from
'
@/assets/styles/variables.scss
'
import
variables
from
"
@/assets/styles/variables.scss
"
;
export
default
{
export
default
{
components
:
{
SidebarItem
,
Logo
},
components
:
{
SidebarItem
,
Logo
},
computed
:
{
computed
:
{
...
mapGetters
([
...
mapState
([
"
settings
"
]),
'
permission_routes
'
,
...
mapGetters
([
"
permission_routes
"
,
"
sidebar
"
]),
'
sidebar
'
activeMenu
()
{
]),
const
route
=
this
.
$route
;
activeMenu
()
{
const
{
meta
,
path
}
=
route
;
const
route
=
this
.
$route
// if set path, the sidebar will highlight the path you set
const
{
meta
,
path
}
=
route
if
(
meta
.
activeMenu
)
{
// if set path, the sidebar will highlight the path you set
return
meta
.
activeMenu
;
if
(
meta
.
activeMenu
)
{
}
return
meta
.
activeMenu
return
path
;
}
},
return
path
showLogo
()
{
},
return
this
.
$store
.
state
.
settings
.
sidebarLogo
;
showLogo
()
{
},
return
this
.
$store
.
state
.
settings
.
sidebarLogo
variables
()
{
},
return
variables
;
variables
()
{
},
return
variables
isCollapse
()
{
},
return
!
this
.
sidebar
.
opened
;
isCollapse
()
{
}
return
!
this
.
sidebar
.
opened
}
}
}
};
}
</
script
>
</
script
>
ruoyi-ui/src/layout/components/TagsView/index.vue
View file @
30be2a08
This diff is collapsed.
Click to expand it.
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