diff --git a/src/components/layout/bread.jsx b/src/components/layout/bread.jsx index 4fbcebd..9102f7e 100644 --- a/src/components/layout/bread.jsx +++ b/src/components/layout/bread.jsx @@ -1,6 +1,5 @@ import React, {PropTypes} from 'react' import {Breadcrumb, Icon} from 'antd' -import {Link} from 'dva/router' import styles from './main.less' import {config, menu} from '../../utils' @@ -31,13 +30,11 @@ function Bread({location}) { }) const breads = pathNames.map((item, key) => { return ( - - - {pathSet[item].icon - ? - : ''} - {pathSet[item].name} - + + {pathSet[item].icon + ? + : ''} + {pathSet[item].name} ) }) @@ -45,7 +42,9 @@ function Bread({location}) { return (
- 仪表盘 + + 主页 + {breads}
diff --git a/src/components/layout/common.less b/src/components/layout/common.less index 5822f27..22cada1 100644 --- a/src/components/layout/common.less +++ b/src/components/layout/common.less @@ -4,6 +4,7 @@ body { background-color: #f8f8f8; } // scrollbar + ::-webkit-scrollbar-corner { background-color: transparent; } @@ -32,3 +33,18 @@ body { ::-webkit-scrollbar:hover { background-color: transparent; } + +:global .ant-breadcrumb { + & > span { + &:last-child { + color: #999; + font-weight: normal; + } + } +} + +:global .ant-breadcrumb-link { + .anticon + span { + margin-left: 4px; + } +}