mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-30 05:13:43 +00:00
logo text fadeIn
This commit is contained in:
@@ -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;
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user