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
119f9539
Commit
119f9539
authored
Jul 13, 2021
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:菜单栏颜色优化
parent
79fd54c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
src/modules/root/Menu.less
+3
-2
src/modules/root/Menu.tsx
+4
-3
No files found.
src/modules/root/Menu.less
View file @
119f9539
...
@@ -106,8 +106,9 @@
...
@@ -106,8 +106,9 @@
background-color: @active-color;
background-color: @active-color;
color: #fff;
color: #fff;
border-radius: 2px;
border-radius: 2px;
&:hover {
&.single-menu {
color: #fff;
background: rgba(41, 102, 255, .1) !important;
color: @active-color;
}
}
}
}
.ant-menu-submenu {
.ant-menu-submenu {
...
...
src/modules/root/Menu.tsx
View file @
119f9539
...
@@ -239,7 +239,7 @@ function Aside(props: any) {
...
@@ -239,7 +239,7 @@ function Aside(props: any) {
icon=
{
icon=
{
!
menuType
&&
item
.
groupCode
===
selectKeyParent
?
(
!
menuType
&&
item
.
groupCode
===
selectKeyParent
?
(
<
div
className=
'icon-img-box'
style=
{
{
backgroundColor
:
'#2966FF'
,
width
:
'40px'
,
height
:
'40px'
}
}
>
<
div
className=
'icon-img-box'
style=
{
{
backgroundColor
:
'#2966FF'
,
width
:
'40px'
,
height
:
'40px'
}
}
>
<
img
src=
{
item
.
selectI
mg
}
className=
'icon-img'
/>
<
img
src=
{
item
.
i
mg
}
className=
'icon-img'
/>
</
div
>
</
div
>
)
:
(
)
:
(
<
div
className=
'icon-img-box'
style=
{
{
backgroundColor
:
'#fff'
,
width
:
'40px'
,
height
:
'40px'
,
display
:
'inline-block'
}
}
>
<
div
className=
'icon-img-box'
style=
{
{
backgroundColor
:
'#fff'
,
width
:
'40px'
,
height
:
'40px'
,
display
:
'inline-block'
}
}
>
...
@@ -269,6 +269,7 @@ function Aside(props: any) {
...
@@ -269,6 +269,7 @@ function Aside(props: any) {
}
else
{
}
else
{
return
(
return
(
<
Menu
.
Item
<
Menu
.
Item
className=
"single-menu"
onClick=
{
()
=>
{
onClick=
{
()
=>
{
toggleMenu
(
item
,
item
.
groupCode
);
toggleMenu
(
item
,
item
.
groupCode
);
}
}
}
}
...
@@ -276,11 +277,11 @@ function Aside(props: any) {
...
@@ -276,11 +277,11 @@ function Aside(props: any) {
icon=
{
icon=
{
!
menuType
&&
item
.
groupCode
===
selectKeyParent
?
(
!
menuType
&&
item
.
groupCode
===
selectKeyParent
?
(
<
div
className=
'icon-img-box'
style=
{
{
backgroundColor
:
'#2966FF'
}
}
>
<
div
className=
'icon-img-box'
style=
{
{
backgroundColor
:
'#2966FF'
}
}
>
<
img
src=
{
item
.
selectI
mg
}
className=
'icon-img'
/>
<
img
src=
{
item
.
i
mg
}
className=
'icon-img'
/>
</
div
>
</
div
>
)
:
(
)
:
(
<
div
className=
'icon-img-box'
>
<
div
className=
'icon-img-box'
>
<
img
src=
{
selectKey
===
item
.
groupCode
?
item
.
selectImg
:
item
.
img
}
className=
'icon-img'
/>
<
img
src=
{
item
.
img
}
className=
'icon-img'
/>
</
div
>
</
div
>
)
)
}
>
}
>
...
...
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