mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
419 B
419 B
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
可以获得是否固定的状态。
en-US
Callback with affixed state.
import { Affix, Button } from 'antd';
import React from 'react';
const App: React.FC = () => (
<Affix offsetTop={120} onChange={affixed => console.log(affixed)}>
<Button>120px to affix top</Button>
</Affix>
);
export default App;