ant-design/components/affix/demo/basic.md

18 lines
251 B
Markdown
Raw Normal View History

2015-08-03 16:49:42 +08:00
# 基本
- order: 0
最简单的用法。
---
````jsx
import { Affix, Button } from 'antd';
2015-08-03 16:49:42 +08:00
2015-10-20 16:47:55 +08:00
ReactDOM.render(
2015-08-03 16:49:42 +08:00
<Affix>
<Button type="primary">固定在顶部</Button>
2015-08-03 16:49:42 +08:00
</Affix>
, document.getElementById('components-affix-demo-basic'));
````