Skip to content

Commit

Permalink
feat: finish icon replace
Browse files Browse the repository at this point in the history
  • Loading branch information
tao1991123 committed Jan 11, 2019
1 parent 79ef9f4 commit 13fc275
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint no-undef:0, no-unused-expressions:0, array-callback-return:0 */
import React, { Component } from 'react';
import { Nav } from '@alifd/next';
import Icon from '@icedesign/foundation-symbol';
import { withRouter, Link } from 'react-router-dom';
import { asideMenuConfig } from '../../../../menuConfig';
const {Item} = Nav;
Expand Down Expand Up @@ -31,8 +32,9 @@ export default class BasicLayout extends Component {
asideMenuConfig.length > 0 &&
asideMenuConfig.map((nav) => {
return (
<Item key={nav.path} icon={nav.icon}>
<Item key={nav.path}>
<Link to={nav.path} >
{nav.icon ? <Icon size="small" type={nav.icon}/> : null}
<span className={styleNames.iceMenuLinkText}>{nav.name}</span>
</Link>
</Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,37 @@ const asideMenuConfig = [
{
name: '工作台',
path: '/dashboard',
icon: 'edit',
icon: 'home',
},
{
name: '拆预收案',
path: '/dismantling',
icon: 'attachment',
icon: 'cascades',
},
{
name: '案款账号分配',
path: '/allocation',
icon: 'account',
icon: 'person',
},
{
name: '当事人自助收案',
path: '/selfhelp',
icon: 'calendar',
icon: 'exchange',
},
{
name: '在办案件列表',
path: '/list',
icon: 'filter',
icon: 'ol-list',
},
{
name: '批量处理',
path: '/batch',
icon: 'picture',
icon: 'copy',
},
{
name: '案件录入',
path: '/new',
icon: 'download',
icon: 'copy',
},
];

Expand Down

0 comments on commit 13fc275

Please sign in to comment.