Commit 5ba91f20 authored by afc163's avatar afc163

move pro doc link to header

parent 6844c413
...@@ -113,11 +113,6 @@ const menuData = [{ ...@@ -113,11 +113,6 @@ const menuData = [{
name: 'ζ³¨ε†Œη»“ζžœ', name: 'ζ³¨ε†Œη»“ζžœ',
path: 'register-result', path: 'register-result',
}], }],
}, {
name: '使用文摣',
icon: 'book',
path: 'http://pro.ant.design/docs/getting-started',
target: '_blank',
}]; }];
function formatter(data, parentPath = '', parentAuthority) { function formatter(data, parentPath = '', parentAuthority) {
......
import React, { PureComponent } from 'react'; 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 moment from 'moment';
import groupBy from 'lodash/groupBy'; import groupBy from 'lodash/groupBy';
import Debounce from 'lodash-decorators/debounce'; import Debounce from 'lodash-decorators/debounce';
...@@ -94,6 +94,15 @@ export default class GlobalHeader extends PureComponent { ...@@ -94,6 +94,15 @@ export default class GlobalHeader extends PureComponent {
console.log('enter', value); // eslint-disable-line 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 <NoticeIcon
className={styles.action} className={styles.action}
count={currentUser.notifyCount} count={currentUser.notifyCount}
......
...@@ -61,6 +61,7 @@ i.trigger { ...@@ -61,6 +61,7 @@ i.trigger {
> i { > i {
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
color: @text-color;
} }
&:hover, &:hover,
&:global(.ant-popover-open) { &: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