diff --git a/src/components/SiderMenu/SiderMenu.js b/src/components/SiderMenu/SiderMenu.js
index 088a3690638dfd672a6a5fa372cbd35c046dd795..9b7597e5fbf498d6146802fdd4e6fd4a623d7276 100644
--- a/src/components/SiderMenu/SiderMenu.js
+++ b/src/components/SiderMenu/SiderMenu.js
@@ -14,7 +14,7 @@ const { SubMenu } = Menu;
// icon: ,
const getIcon = (icon) => {
if (typeof icon === 'string' && icon.indexOf('http') === 0) {
- return ;
+ return ;
}
if (typeof icon === 'string') {
return ;
diff --git a/src/components/SiderMenu/index.less b/src/components/SiderMenu/index.less
index 3e79067084a05f0a6dba2037e37b3848d436b0ab..2f02116d3018d60964b29094771edc00f5b12db0 100644
--- a/src/components/SiderMenu/index.less
+++ b/src/components/SiderMenu/index.less
@@ -49,4 +49,18 @@
.drawer .drawer-content {
background: #001529;
}
+ .ant-menu-inline-collapsed {
+ & > .ant-menu-item .sider-menu-item-img + span,
+ & > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .sider-menu-item-img + span,
+ & > .ant-menu-submenu > .ant-menu-submenu-title .sider-menu-item-img + span {
+ max-width: 0;
+ display: inline-block;
+ opacity: 0;
+ }
+ }
+ .ant-menu-item .sider-menu-item-img + span,
+ .ant-menu-submenu-title .sider-menu-item-img + span {
+ transition: opacity .3s @ease-in-out, width .3s @ease-in-out;
+ opacity: 1;
+ }
}