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.
ant-design-vue/components/affix/demo/on-change.md

385 B

#### 固定状态改变的回调 可以获得是否固定的状态。 #### Callback Callback with affixed state.
<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>