ant-design-vue/antdv-demo/docs/affix/demo/on-change.md

27 lines
389 B
Markdown

<cn>
#### ๅ›บๅฎš็Šถๆ€ๆ”นๅ˜็š„ๅ›ž่ฐƒ
ๅฏไปฅ่Žทๅพ—ๆ˜ฏๅฆๅ›บๅฎš็š„็Šถๆ€ใ€‚
</cn>
<us>
#### Callback
Callback with affixed state.
</us>
```vue
<template>
<a-affix :offset-top="120" @change="change">
<a-button>120px to affix top</a-button>
</a-affix>
</template>
<script>
export default {
methods: {
change(affixed) {
console.log(affixed);
},
},
};
</script>
```