You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
419 B

9 years ago
---
order: 1
title:
zh-CN: 固定状态改变的回调
en-US: Callback
9 years ago
---
## zh-CN
9 years ago
可以获得是否固定的状态。
## en-US
Callback with affixed state.
```tsx
9 years ago
import { Affix, Button } from 'antd';
import React from 'react';
9 years ago
const App: React.FC = () => (
<Affix offsetTop={120} onChange={affixed => console.log(affixed)}>
<Button>120px to affix top</Button>
</Affix>
);
export default App;
```