Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
ba152088
Commit
ba152088
authored
Jun 30, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:选中菜单高亮bug修复
parent
37f7083a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/modules/root/Menu.less
+5
-0
src/modules/root/Menu.tsx
+4
-4
No files found.
src/modules/root/Menu.less
View file @
ba152088
...
...
@@ -64,10 +64,15 @@
.icon-img-box {
// display: flex;
display: inline-block;
width: 40px;
height: 40px;
.icon-img {
margin-left: 12px;
}
margin-right: 0 !important;
}
.icon-img-title {
margin-left: 0 !important;
}
.icon-img {
width: 18px;
...
...
src/modules/root/Menu.tsx
View file @
ba152088
...
...
@@ -134,7 +134,7 @@ function Aside(props: any) {
</
div
>
)
}
title=
{
menuType
?
<
span
>
{
item
.
groupName
}
</
span
>
:
''
}
title=
{
menuType
?
<
span
className=
'icon-img-title'
>
{
item
.
groupName
}
</
span
>
:
''
}
onTitleClick=
{
()
=>
onOpenChange
(
item
.
groupCode
)
}
>
{
item
.
children
.
map
((
_item
:
any
,
_index
:
any
)
=>
{
if
(
ctx
.
xmState
.
storeUserPermissionList
.
indexOf
(
_item
.
groupCode
)
===
-
1
)
{
...
...
@@ -162,16 +162,16 @@ function Aside(props: any) {
key=
{
item
.
groupCode
}
icon=
{
!
menuType
&&
item
.
groupCode
===
selectKeyParent
?
(
<
div
className=
'icon-img-box'
style=
{
{
backgroundColor
:
'#2966FF'
,
width
:
'40px'
}
}
>
<
div
className=
'icon-img-box'
style=
{
{
backgroundColor
:
'#2966FF'
}
}
>
<
img
src=
{
item
.
selectImg
}
className=
'icon-img'
/>
</
div
>
)
:
(
<
div
className=
'icon-img-box'
style=
{
{
width
:
'30px'
}
}
>
<
div
className=
'icon-img-box'
>
<
img
src=
{
selectKey
===
item
.
groupCode
?
item
.
selectImg
:
item
.
img
}
className=
'icon-img'
/>
</
div
>
)
}
>
{
menuType
?
item
.
groupName
:
''
}
{
menuType
?
<
span
className=
'icon-img-title'
>
{
item
.
groupName
}
</
span
>
:
''
}
</
Menu
.
Item
>
);
}
...
...
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