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
2bb97039
Commit
2bb97039
authored
Nov 25, 2020
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:更改侧边栏的颜色
parent
48650965
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
19 deletions
+29
-19
src/modules/root/Menu.jsx
+24
-13
src/modules/root/Menu.less
+5
-6
No files found.
src/modules/root/Menu.jsx
View file @
2bb97039
...
...
@@ -2,7 +2,17 @@ import React from "react";
import
{
HashRouter
as
Router
,
withRouter
,
Link
}
from
"react-router-dom"
;
import
"./Menu.less"
;
import
classNames
from
"classnames"
;
import
{
Menu
,
Icon
,
Modal
,
Badge
}
from
"antd"
;
import
{
Menu
,
Modal
,
Badge
}
from
"antd"
;
import
{
AppstoreOutlined
,
MenuUnfoldOutlined
,
MenuFoldOutlined
,
PieChartOutlined
,
DesktopOutlined
,
ContainerOutlined
,
PlayCircleOutlined
}
from
'@ant-design/icons'
;
import
Bus
from
'@/core/bus'
const
MenuItem
=
Menu
.
Item
;
...
...
@@ -48,49 +58,50 @@ class Menus extends React.Component {
key=
"1"
title=
{
<
span
>
<
Icon
type=
"mail"
/>
{
/* <Icon type="mail" /> */
}
{
!!
this
.
state
.
menuType
&&
(
<
span
>
课程管理
</
span
>
)
}
</
span
>
}
icon=
{
<
ContainerOutlined
/>
}
>
<
Menu
.
Item
key=
"1-1"
>
<
span
>
直播课
</
span
>
<
span
className=
"name"
>
直播课
</
span
>
</
Menu
.
Item
>
<
Menu
.
Item
key=
"1-2"
>
<
span
>
视频课
</
span
>
<
span
className=
"name"
>
视频课
</
span
>
</
Menu
.
Item
>
</
SubMenu
>
<
Menu
.
Item
key=
"2"
>
<
Icon
type=
"pie-chart"
/>
<
Menu
.
Item
key=
"2"
icon=
{
<
PlayCircleOutlined
/>
}
>
{
!!
this
.
state
.
menuType
&&
(
<
span
>
资料云盘
</
span
>
<
span
className=
"name"
>
资料云盘
</
span
>
)
}
</
Menu
.
Item
>
<
SubMenu
key=
"3"
title=
{
<
span
>
<
Icon
type=
"mail"
/>
{
!!
this
.
state
.
menuType
&&
(
<
span
>
课程管理
</
span
>
<
span
>
课程管理
</
span
>
)
}
</
span
>
}
icon=
{
<
PlayCircleOutlined
/>
}
>
<
Menu
.
Item
key=
"3-1"
>
<
span
>
讲师管理
</
span
>
<
span
className=
"name"
>
讲师管理
</
span
>
</
Menu
.
Item
>
<
Menu
.
Item
key=
"3-2"
>
<
span
>
用户管理
</
span
>
<
span
className=
"name"
>
用户管理
</
span
>
</
Menu
.
Item
>
<
Menu
.
Item
key=
"3-3"
>
<
span
>
课程分类
</
span
>
<
span
className=
"name"
>
课程分类
</
span
>
</
Menu
.
Item
>
<
Menu
.
Item
key=
"3-4"
>
<
span
>
店铺装修
</
span
>
<
span
className=
"name"
>
店铺装修
</
span
>
</
Menu
.
Item
>
</
SubMenu
>
</
Menu
>
...
...
src/modules/root/Menu.less
View file @
2bb97039
@import '../../core/variables.less';
@top-height: 50px;
@menu-bakg: #2
1242e
;
@active-color: #
ff853
4;
@menu-bakg: #2
B2E37
;
@active-color: #
FFB71
4;
.left-container {
position: absolute;
...
...
@@ -13,7 +13,6 @@
width: @xm-left-width;
background: @menu-bakg;
color: #FFFFFF;
.ant-menu {
padding-left: 0 !important;
background: transparent;
...
...
@@ -43,11 +42,9 @@
.icon {
margin-right: 20px
}
.fistLevel {
position: relative;
&:hover {
.ant-menu-submenu-title,
.home-title {
color: #fff !important;
...
...
@@ -528,7 +525,9 @@
}
}
}
.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
background: none !important;
}
.v4-to-v5-update-modal {
.ant-modal-body {
padding: 0 !important;
...
...
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