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
86311693
Commit
86311693
authored
Jun 30, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:选中菜单高亮bug修复
parent
21e43782
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
src/modules/root/Menu.less
+3
-1
src/modules/root/Menu.tsx
+11
-1
No files found.
src/modules/root/Menu.less
View file @
86311693
...
@@ -63,6 +63,8 @@
...
@@ -63,6 +63,8 @@
}
}
.icon-img-box {
.icon-img-box {
// display: flex;
// display: flex;
display: inline-block;
height: 40px;
.icon-img {
.icon-img {
margin-left: 12px;
margin-left: 12px;
}
}
...
@@ -81,7 +83,7 @@
...
@@ -81,7 +83,7 @@
position: absolute;
position: absolute;
}
}
.ant-menu-item {
.ant-menu-item {
padding-left:
12px
!important;
padding-left:
0
!important;
padding-right: 0px;
padding-right: 0px;
margin: 6px 8px;
margin: 6px 8px;
width: calc(100% - 15px);
width: calc(100% - 15px);
...
...
src/modules/root/Menu.tsx
View file @
86311693
...
@@ -160,7 +160,17 @@ function Aside(props: any) {
...
@@ -160,7 +160,17 @@ function Aside(props: any) {
toggleMenu
(
item
,
item
.
groupCode
);
toggleMenu
(
item
,
item
.
groupCode
);
}
}
}
}
key=
{
item
.
groupCode
}
key=
{
item
.
groupCode
}
icon=
{
<
img
src=
{
selectKey
===
item
.
groupCode
?
item
.
selectImg
:
item
.
img
}
className=
'icon-img'
></
img
>
}
>
icon=
{
!
menuType
&&
item
.
groupCode
===
selectKeyParent
?
(
<
div
className=
'icon-img-box'
style=
{
{
backgroundColor
:
'#2966FF'
,
width
:
'40px'
}
}
>
<
img
src=
{
item
.
selectImg
}
className=
'icon-img'
/>
</
div
>
)
:
(
<
div
className=
'icon-img-box'
style=
{
{
width
:
'30px'
}
}
>
<
img
src=
{
selectKey
===
item
.
groupCode
?
item
.
selectImg
:
item
.
img
}
className=
'icon-img'
/>
</
div
>
)
}
>
{
menuType
?
item
.
groupName
:
''
}
{
menuType
?
item
.
groupName
:
''
}
</
Menu
.
Item
>
</
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