Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
a96ed9fe
Commit
a96ed9fe
authored
Jul 27, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 菜单添加样式
parent
e44927b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
MyProgress.tsx
src/components/mui/MyProgress.tsx
+6
-3
index.module.css
src/views/MenuLayout/index.module.css
+1
-6
index.tsx
src/views/MenuLayout/index.tsx
+2
-2
No files found.
src/components/mui/MyProgress.tsx
View file @
a96ed9fe
/*
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-07-11 11:56:58
* @LastEditors: 吴永生
#A02208 yongsheng.wu@wholion
.com
* @LastEditTime: 2022-07-2
5 15:58:25
* @LastEditors: 吴永生
15770852798@163
.com
* @LastEditTime: 2022-07-2
7 14:30:57
* @FilePath: /bkunyun/src/components/mui/MyProgress.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -58,7 +58,10 @@ const MyProgress = (props: IMyProgressProps) => {
height
:
"6px"
,
background
:
"#F0F2F5"
,
},
bar
:
backgroundColorInfo
,
bar
:
{
borderRadius
:
3
,
...
backgroundColorInfo
},
},
},
},
...
...
src/views/MenuLayout/index.module.css
View file @
a96ed9fe
...
...
@@ -15,9 +15,6 @@
height
:
calc
(
100vh
-
57px
);
overflow
:
scroll
;
}
.list
{
/* background-color: red; */
}
.listItem
{
padding
:
8px
25px
;
height
:
38px
;
...
...
@@ -28,9 +25,7 @@
line-height
:
22px
;
}
.listItem
:hover
{
border-left
:
3px
solid
#1370ff
;
color
:
#1370ff
;
background-color
:
#ebedf0
;
background-color
:
#EEF1F5
;
}
.active
{
border-left
:
3px
solid
#1370ff
;
...
...
src/views/MenuLayout/index.tsx
View file @
a96ed9fe
...
...
@@ -25,7 +25,7 @@ const MenuLayout = observer(() => {
<
Box
className=
{
style
.
container
}
>
<
Box
className=
{
style
.
aside
}
>
<
CurrentProject
/>
<
List
className=
{
style
.
list
}
>
<
List
>
{
permissionStore
.
sidebarRouters
.
map
((
item
,
index
)
=>
{
if
(
item
.
show
)
{
return
(
...
...
@@ -33,7 +33,7 @@ const MenuLayout = observer(() => {
key=
{
"sidebar"
+
index
}
className=
{
classnames
({
[
style
.
listItem
]:
true
,
[
style
.
active
]:
item
.
path
===
pathname
,
[
style
.
active
]:
`/v3${item.path}`
===
pathname
,
})
}
onClick=
{
()
=>
item
.
type
===
"page"
&&
navigate
(
item
.
path
)
}
>
...
...
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