From 5ba91f2019048751dd0cfda76e4353a761367b36 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 2 Feb 2018 17:41:41 +0800 Subject: [PATCH] move pro doc link to header --- src/common/menu.js | 5 ----- src/components/GlobalHeader/index.js | 11 ++++++++++- src/components/GlobalHeader/index.less | 1 + 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/common/menu.js b/src/common/menu.js index 75f47dcf..21b58d7a 100644 --- a/src/common/menu.js +++ b/src/common/menu.js @@ -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) { diff --git a/src/components/GlobalHeader/index.js b/src/components/GlobalHeader/index.js index f43be9d2..608e4223 100644 --- a/src/components/GlobalHeader/index.js +++ b/src/components/GlobalHeader/index.js @@ -1,5 +1,5 @@ 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 }} /> + + + + + i { font-size: 16px; vertical-align: middle; + color: @text-color; } &:hover, &:global(.ant-popover-open) { -- GitLab