diff --git a/src/components/GlobalFooter/demo/basic.md b/src/components/GlobalFooter/demo/basic.md index d506170962779d468a92b2e14489ff4a73b3048e..7662fa9f7ed57008dcbb879e8e13ea3282847992 100644 --- a/src/components/GlobalFooter/demo/basic.md +++ b/src/components/GlobalFooter/demo/basic.md @@ -11,12 +11,16 @@ import GlobalFooter from 'ant-design-pro/lib/GlobalFooter'; import { Icon } from 'antd'; const links = [{ + key: '帮助', title: '帮助', href: '', }, { - title: '隐私', - href: '', + key: 'github' + title: , + href: 'https://github.com/ant-design/ant-design-pro', + blankTarget: true, }, { + key: '条款', title: '条款', href: '', blankTarget: true, diff --git a/src/components/GlobalFooter/index.js b/src/components/GlobalFooter/index.js index 32b852fad229f1ba3c91422fdbc2c55d107eaf2d..36abafca5753c756d5b585075570842180bdc94e 100644 --- a/src/components/GlobalFooter/index.js +++ b/src/components/GlobalFooter/index.js @@ -11,7 +11,7 @@ export default ({ className, links, copyright }) => {
{links.map(link => ( diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 83d3552f3bd84c7fc6596ac41171eddad08999ce..2df22a33dce2401445afcaf8cd62dd70c01077b9 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -184,14 +184,17 @@ class BasicLayout extends React.PureComponent {
, href: 'https://github.com/ant-design/ant-design-pro', blankTarget: true, }, { + key: 'Ant Design', title: 'Ant Design', href: 'http://ant.design', blankTarget: true, diff --git a/src/layouts/UserLayout.js b/src/layouts/UserLayout.js index 41da648e5d0b2280c2321eabdf4b32c23fe08e93..8402341e79d802aa7f6035c88b613499987a8c53 100644 --- a/src/layouts/UserLayout.js +++ b/src/layouts/UserLayout.js @@ -11,9 +11,11 @@ const links = [{ title: '帮助', href: '', }, { + key: '隐私', title: '隐私', href: '', }, { + key: '隐私', title: '条款', href: '', }];