2016-06-23 23:12:18 +08:00
|
|
|
---
|
|
|
|
order: 0
|
2016-09-21 11:28:38 +08:00
|
|
|
title:
|
2016-07-11 11:40:20 +08:00
|
|
|
zh-CN: 基本
|
|
|
|
en-US: Basic
|
2016-06-23 23:12:18 +08:00
|
|
|
---
|
|
|
|
|
2016-07-11 11:40:20 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-06-24 13:53:19 +08:00
|
|
|
最简单的用法。
|
2016-06-23 23:12:18 +08:00
|
|
|
|
2016-07-11 11:40:20 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
The most basic usage.
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
````jsx
|
2016-06-23 23:12:18 +08:00
|
|
|
import { BackTop } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
2016-06-24 13:53:19 +08:00
|
|
|
<div>
|
|
|
|
<BackTop />
|
2016-11-11 16:28:10 +08:00
|
|
|
Scroll down to see the bottom-right
|
|
|
|
<strong style={{ color: 'rgba(64, 64, 64, 0.6)' }}> gray </strong>
|
|
|
|
button.
|
2016-10-30 12:43:59 +08:00
|
|
|
</div>,
|
|
|
|
mountNode
|
|
|
|
);
|
2016-06-23 23:12:18 +08:00
|
|
|
````
|