初始化 antd-pro
This commit is contained in:
37
admin-web/src/components/GlobalFooter/demo/basic.md
Normal file
37
admin-web/src/components/GlobalFooter/demo/basic.md
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
order: 0
|
||||
title: 演示
|
||||
iframe: 400
|
||||
---
|
||||
|
||||
基本页脚。
|
||||
|
||||
````jsx
|
||||
import GlobalFooter from 'ant-design-pro/lib/GlobalFooter';
|
||||
import { Icon } from 'antd';
|
||||
|
||||
const links = [{
|
||||
key: '帮助',
|
||||
title: '帮助',
|
||||
href: '',
|
||||
}, {
|
||||
key: 'github',
|
||||
title: <Icon type="github" />,
|
||||
href: 'https://github.com/ant-design/ant-design-pro',
|
||||
blankTarget: true,
|
||||
}, {
|
||||
key: '条款',
|
||||
title: '条款',
|
||||
href: '',
|
||||
blankTarget: true,
|
||||
}];
|
||||
|
||||
const copyright = <div>Copyright <Icon type="copyright" /> 2017 蚂蚁金服体验技术部出品</div>;
|
||||
|
||||
ReactDOM.render(
|
||||
<div style={{ background: '#f5f5f5', overflow: 'hidden' }}>
|
||||
<div style={{ height: 280 }} />
|
||||
<GlobalFooter links={links} copyright={copyright} />
|
||||
</div>
|
||||
, mountNode);
|
||||
````
|
||||
Reference in New Issue
Block a user