Add mobile.ant.design link in menu, close #3079

This commit is contained in:
afc163
2017-06-12 10:41:11 +08:00
parent 28c7545030
commit 3202d28cb9
5 changed files with 9 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@ module.exports = {
'app.header.menu.components': 'Components',
'app.header.menu.spec': 'Guidelines',
'app.header.menu.resource': 'Resources',
'app.header.menu.mobile': 'Mobile',
'app.header.lang': '中文',
'app.content.edit-page': 'Edit this page on GitHub!',
'app.content.edit-demo': 'Edit this demo on GitHub!',
+1 -1
View File
@@ -71,7 +71,7 @@
.version {
width: 66px;
margin-left: 0;
margin-left: 16px;
}
#nav {
+1 -1
View File
@@ -15,7 +15,7 @@
}
}
@media only screen and (min-width: 0) and (max-width: 1080px) {
@media only screen and (min-width: 0) and (max-width: 1180px) {
.zh-cn #search-box {
display: none;
}
+5
View File
@@ -181,6 +181,11 @@ export default class Header extends React.Component {
<FormattedMessage id="app.header.menu.resource" />
</Link>
</Menu.Item>
<Menu.Item key="mobile">
<a href="//mobile.ant.design">
<FormattedMessage id="app.header.menu.mobile" />
</a>
</Menu.Item>
</Menu>,
];
+1
View File
@@ -11,6 +11,7 @@ module.exports = {
'app.header.menu.components': '组件',
'app.header.menu.spec': '指引',
'app.header.menu.resource': '资源',
'app.header.menu.mobile': '移动版',
'app.header.lang': 'EN',
'app.content.edit-page': '在 Github 上编辑此页!',
'app.content.edit-demo': '在 Github 上编辑此示例!',