mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-05-16 09:05:36 +08:00
22 lines
544 B
Markdown
22 lines
544 B
Markdown
```html
|
|
<template>
|
|
<Affix :offset-bottom="0" :target = "getTarget" @on-change="change">
|
|
<WB-button type="primary" long>距离滚动元素.right-panel底部80px</WB-button>
|
|
</Affix>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
methods: {
|
|
methods: {
|
|
change (status) {
|
|
this.$Toast(`第三个图钉当前状态:${status}`);
|
|
},
|
|
getTarget () {
|
|
return document.getElementsByClassName('right-panel')[0]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
```
|