🚀 Add Example && Upgrade Eslint
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
<div
|
||||
v-if="showPlaceHolder"
|
||||
:style="stylePlaceHolder"
|
||||
></div>
|
||||
/>
|
||||
<div
|
||||
ref="scroll-affix"
|
||||
:style="affixStyle"
|
||||
class="scroll-affix-container"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -49,6 +49,9 @@ export default {
|
||||
this.createAffix()
|
||||
})
|
||||
},
|
||||
beforeDestroy () {
|
||||
document.removeEventListener('scroll', this.scrollListener)
|
||||
},
|
||||
methods: {
|
||||
getInstanceRect () {
|
||||
return this.instance.getBoundingClientRect()
|
||||
@@ -110,9 +113,6 @@ export default {
|
||||
this.stylePlaceHolder = {}
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy () {
|
||||
document.removeEventListener('scroll', this.scrollListener)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user