ant-design-vue/components/affix/demo/on-change.md

27 lines
385 B
Markdown

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