Commit 3b4c02f8 authored by 卢均锐's avatar 卢均锐

fix: 调整导航交互样式

parent 43591c9f
...@@ -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 {
......
...@@ -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
......
...@@ -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>
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment