Commit 5ba91f20 authored by afc163's avatar afc163

move pro doc link to header

parent 6844c413
......@@ -113,11 +113,6 @@ const menuData = [{
name: '注册结果',
path: 'register-result',
}],
}, {
name: '使用文档',
icon: 'book',
path: 'http://pro.ant.design/docs/getting-started',
target: '_blank',
}];
function formatter(data, parentPath = '', parentAuthority) {
......
import React, { PureComponent } from 'react';
import { Menu, Icon, Spin, Tag, Dropdown, Avatar, Divider } from 'antd';
import { Menu, Icon, Spin, Tag, Dropdown, Avatar, Divider, Tooltip } from 'antd';
import moment from 'moment';
import groupBy from 'lodash/groupBy';
import Debounce from 'lodash-decorators/debounce';
......@@ -94,6 +94,15 @@ export default class GlobalHeader extends PureComponent {
console.log('enter', value); // eslint-disable-line
}}
/>
<Tooltip title="使用文档">
<Link
target="_blank"
to="http://pro.ant.design/docs/getting-started"
className={styles.action}
>
<Icon type="question-circle-o" />
</Link>
</Tooltip>
<NoticeIcon
className={styles.action}
count={currentUser.notifyCount}
......
......@@ -61,6 +61,7 @@ i.trigger {
> i {
font-size: 16px;
vertical-align: middle;
color: @text-color;
}
&:hover,
&:global(.ant-popover-open) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment