mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 04:36:19 +08:00
377 B
377 B
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
可以获得是否固定的状态。
en-US
Callback with affixed state.
import { Affix, Button } from 'antd';
ReactDOM.render(
<Affix offsetTop={120} onChange={affixed => console.log(affixed)}>
<Button>120px to affix top</Button>
</Affix>,
mountNode
);