Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
shenshaokai
jinfa-admin
Commits
3b4c02f8
Commit
3b4c02f8
authored
Apr 14, 2022
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 调整导航交互样式
parent
43591c9f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
36 deletions
+70
-36
reset.less
src/global/styles/reset.less
+13
-0
MenuSlider.tsx
src/layouts/components/MenuSlider.tsx
+8
-8
OuterSide.tsx
src/layouts/components/OuterSide.tsx
+1
-1
MenuSlider.less
src/layouts/styles/MenuSlider.less
+48
-27
No files found.
src/global/styles/reset.less
View file @
3b4c02f8
...
@@ -126,6 +126,19 @@
...
@@ -126,6 +126,19 @@
.ant-anchor-wrapper{
.ant-anchor-wrapper{
background-color: #fff;
background-color: #fff;
}
}
// 覆写左边菜单
.ant-menu-item {
padding-left: 8px !important;
padding-right: 8px !important;
}
.ant-menu-submenu-title {
padding-left: 8px !important;
padding-right: 8px !important;
}
.anticon-border {
margin-right: 8px;
}
}
}
.ant-descriptions-item-label {
.ant-descriptions-item-label {
...
...
src/layouts/components/MenuSlider.tsx
View file @
3b4c02f8
...
@@ -92,13 +92,13 @@ const MenuSlider: React.FC<MenuSliderProps> = (props) => {
...
@@ -92,13 +92,13 @@ const MenuSlider: React.FC<MenuSliderProps> = (props) => {
sessionStorage
.
setItem
(
"currentState"
,
JSON
.
stringify
(
result
))
sessionStorage
.
setItem
(
"currentState"
,
JSON
.
stringify
(
result
))
}
}
//
const customExpandIcon = (props) => {
const
customExpandIcon
=
(
props
)
=>
{
//
if (props.isOpen) {
if
(
props
.
isOpen
)
{
//
return <DownOutlined />
return
<
DownOutlined
/>
//
} else {
}
else
{
//
return <RightOutlined />
return
<
RightOutlined
/>
//
}
}
//
}
}
return
<>
return
<>
<
OuterSider
{
...
props
}
/>
<
OuterSider
{
...
props
}
/>
...
@@ -116,7 +116,7 @@ const MenuSlider: React.FC<MenuSliderProps> = (props) => {
...
@@ -116,7 +116,7 @@ const MenuSlider: React.FC<MenuSliderProps> = (props) => {
openKeys=
{
openKeys
}
openKeys=
{
openKeys
}
mode=
"inline"
mode=
"inline"
onClick=
{
clickMenuItem
}
onClick=
{
clickMenuItem
}
//
expandIcon={customExpandIcon}
expandIcon=
{
customExpandIcon
}
>
>
{
{
menuItemsCache
menuItemsCache
...
...
src/layouts/components/OuterSide.tsx
View file @
3b4c02f8
...
@@ -70,7 +70,7 @@ const OuterSider: React.FC<OuterSiderProps> = observer((props) => {
...
@@ -70,7 +70,7 @@ const OuterSider: React.FC<OuterSiderProps> = observer((props) => {
siderMenu
.
map
(
item
=>
(
siderMenu
.
map
(
item
=>
(
<
li
key=
{
item
.
key
}
className=
{
defaultSelectedKeys
===
item
.
relationParentCode
?
styles
.
currentItem
:
''
}
>
<
li
key=
{
item
.
key
}
className=
{
defaultSelectedKeys
===
item
.
relationParentCode
?
styles
.
currentItem
:
''
}
>
<
Link
to=
{
item
.
path
}
>
<
Link
to=
{
item
.
path
}
>
<
CustomIcon
type=
{
item
.
icon
}
style=
{
{
width
:
20
,
height
:
20
}
}
/>
<
CustomIcon
type=
{
item
.
icon
}
style=
{
{
width
:
16
,
height
:
16
}
}
/>
<
label
>
{
item
.
title
}
</
label
>
<
label
>
{
item
.
title
}
</
label
>
</
Link
>
</
Link
>
</
li
>
</
li
>
...
...
src/layouts/styles/MenuSlider.less
View file @
3b4c02f8
...
@@ -36,6 +36,14 @@
...
@@ -36,6 +36,14 @@
background: #fff;
background: #fff;
}
}
.ant-menu-submenu{
.ant-menu-submenu-title{
.anticon-right{
color: #91959B;
}
}
}
.ant-menu-submenu-open{
.ant-menu-submenu-open{
.ant-menu-submenu-title{
.ant-menu-submenu-title{
color: #252D37;
color: #252D37;
...
@@ -62,10 +70,19 @@
...
@@ -62,10 +70,19 @@
opacity: 0;
opacity: 0;
}
}
.ant-menu-item {
.anticon-border{
color: #91959B;
}
}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-active {
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-active {
background: #F5F6F7;
background: #F5F6F7;
color: #252D37;
color: #252D37;
border-radius: 4px;
border-radius: 4px;
.anticon-border{
color: #252D37;
}
a {
a {
color: #252D37;
color: #252D37;
}
}
...
@@ -75,6 +92,9 @@
...
@@ -75,6 +92,9 @@
background: @menu-select-bg-color;
background: @menu-select-bg-color;
color: #00A98F;
color: #00A98F;
border-radius: 4px;
border-radius: 4px;
.anticon-border{
color: #00A98F;
}
a {
a {
color: #00A98F;
color: #00A98F;
}
}
...
@@ -150,10 +170,11 @@
...
@@ -150,10 +170,11 @@
label {
label {
display: block;
display: block;
line-height: 20px;
line-height: 20px;
//
margin-top: 4px;
margin-top: 4px;
font-size: 12px;
font-size: 12px;
font-weight: 400;
font-weight: 400;
color: rgba(151, 160, 175, 1);
color: rgba(151, 160, 175, 1);
cursor: pointer;
}
}
span {
span {
...
@@ -193,32 +214,32 @@
...
@@ -193,32 +214,32 @@
}
}
}
}
.currentItem {
//
.currentItem {
&:not(:first-child)::after {
//
&:not(:first-child)::after {
position: absolute;
//
position: absolute;
content: "";
//
content: "";
right: 0;
//
right: 0;
top: 50%;
//
top: 50%;
transform: translate(0, -50%);
//
transform: translate(0, -50%);
border-right: 8px solid #fff;
//
border-right: 8px solid #fff;
border-top: 8px solid transparent;
//
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
//
border-bottom: 8px solid transparent;
}
//
}
li {
//
li {
a{
//
a{
background: @menu-select-bg-color;
//
background: @menu-select-bg-color;
}
//
}
}
//
}
span {
//
span {
color: #00A98F !important;
//
color: #00A98F !important;
}
//
}
label {
//
label {
color: #00A98F !important;
//
color: #00A98F !important;
}
//
}
}
//
}
.menuItem {
.menuItem {
padding-left: 30px !important;
padding-left: 30px !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