logo text fadeIn

This commit is contained in:
zuiidea
2018-02-26 19:13:12 +08:00
parent cd54fcbf52
commit 98b773fdc3
3 changed files with 22 additions and 2 deletions
+18
View File
@@ -75,6 +75,8 @@
}
}
.logo {
height: 96px;
display: flex;
@@ -93,6 +95,10 @@
display: inline-block;
font-weight: 700;
color: @primary-color;
:local {
animation: fadeLeftIn 400ms linear;
animation-fill-mode: both;
}
}
}
@@ -167,3 +173,15 @@
}
}
}
// @keyframes fadeLeftIn {
// 0% {
// transform: translateX(20px);
// opacity: 0;
// }
//
// 100% {
// transform: translateX(0);
// opacity: 1;
// }
// }
+3 -1
View File
@@ -5,7 +5,9 @@ import { Link } from 'react-router-dom'
import { arrayToTree, queryArray } from 'utils'
import pathToRegexp from 'path-to-regexp'
const Menus = ({ siderFold, darkTheme, navOpenKeys, changeOpenKeys, menu, location }) => {
const Menus = ({
siderFold, darkTheme, navOpenKeys, changeOpenKeys, menu, location,
}) => {
// 生成树状
const menuTree = arrayToTree(menu.filter(_ => _.mpid !== '-1'), 'id', 'mpid')
const levelMap = {}
+1 -1
View File
@@ -20,7 +20,7 @@ const Sider = ({
<div>
<div className={styles.logo}>
<img alt="logo" src={config.logo} />
{siderFold ? '' : <span>{config.name}</span>}
<span>{siderFold ? '' : config.name}</span>
</div>
<Menus {...menusProps} />
{!siderFold ? <div className={styles.switchtheme}>