Benjy Cui
8 years ago
5 changed files with 36 additions and 61 deletions
@ -1,24 +0,0 @@ |
|||
--- |
|||
order: 2 |
|||
title: |
|||
zh-CN: 下方固定 |
|||
en-US: Bottom |
|||
--- |
|||
|
|||
## zh-CN |
|||
|
|||
固定在屏幕下方。 |
|||
|
|||
## en-US |
|||
|
|||
Affix to bottom. |
|||
|
|||
````jsx |
|||
import { Affix, Button } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<Affix offsetBottom={20}> |
|||
<Button type="primary">20px to affix bottom</Button> |
|||
</Affix> |
|||
, mountNode); |
|||
```` |
@ -1,24 +0,0 @@ |
|||
--- |
|||
order: 1 |
|||
title: |
|||
zh-CN: 偏移 |
|||
en-US: Offset |
|||
--- |
|||
|
|||
## zh-CN |
|||
|
|||
达到一定的偏移量才触发。 |
|||
|
|||
## en-US |
|||
|
|||
Affix element according to offset value. |
|||
|
|||
````jsx |
|||
import { Affix, Button } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<Affix offsetTop={75}> |
|||
<Button type="primary">75px to affix top</Button> |
|||
</Affix> |
|||
, mountNode); |
|||
```` |
Loading…
Reference in new issue