@lingcz/vue-keep-scroll
v1.1.1
Published
cache position of scrolls and resume it
Downloads
3
Readme
install
npm install @lingcz/vue-keep-scroll --save
# or
yarn add @lingcz/vue-keep-scroll
usage
<template>
<div>
<div class="container" style="overflow-y: scroll;"></div>
</div>
</template>
<script>
import vueKeepScroll from '@lingczvue-keep-scroll'
export default {
mixins: [vueKeepScroll('.container', { x: true })]
}
</script>