site: update sider menu order

This commit is contained in:
afc163 2017-01-22 19:16:54 +08:00
parent 7518fde405
commit 04a94a691e
6 changed files with 23 additions and 7 deletions

View File

@ -1,5 +1,5 @@
---
order: 9
order: 6
title: Change Log
toc: false
timeline: true

View File

@ -1,5 +1,5 @@
---
order: 9
order: 6
title: 更新日志
toc: false
timeline: true

View File

@ -1,5 +1,5 @@
---
order: 6
order: 9
title: i18n Solution
link: //github.com/ant-design/intl-example
---

View File

@ -1,5 +1,5 @@
---
order: 6
order: 9
title: i18n 方案
link: //github.com/ant-design/intl-example
---

View File

@ -57,6 +57,22 @@ div.main-container {
a[disabled] {
color: #ccc;
}
.menu-item-link-outside {
position: relative;
.anticon {
font-size: 12px;
color: #999;
opacity: 0;
position: absolute;
right: -4px;
top: 16px;
transition: all .3s;
}
&:hover .anticon {
opacity: 1;
}
}
}
.aside-container .chinese {

View File

@ -1,6 +1,6 @@
import React, { PropTypes } from 'react';
import { Link } from 'bisheng/router';
import { Row, Col, Menu } from 'antd';
import { Row, Col, Menu, Icon } from 'antd';
import Article from './Article';
import ComponentDoc from './ComponentDoc';
import * as utils from '../utils';
@ -110,8 +110,8 @@ export default class MainContent extends React.Component {
{text}
</Link>
) : (
<a href={item.link} target="_blank" rel="noopener noreferrer" disabled={disabled}>
{text}
<a href={item.link} target="_blank" rel="noopener noreferrer" disabled={disabled} className="menu-item-link-outside">
{text} <Icon type="export" />
</a>
);