Vue iscroll directive
An iscroll directive for Vue
Install
npm install viscroll
USE
Use this directive in the vue components
<template>
<div v-iscroll>
</div>
<div v-iscroll="iscrollConf">
</div>
<div v-iscroll=getIscroll>
</div>
</template>
<script>
import VIscroll from 'viscroll';
Vue.use(VIscroll, {
mouseWheel: true,
click: false,
preventDefault: true,
tap: false,
bounce: false,
disableTouch: true
});
export {
data() {
return {
iscrollConf: {
mouseWheel: true,
vScrollbar: true,
click: true,
preventDefault: true,
tap: true,
bounce: false,
disableTouch: true
}
}
},
methods: {
getIscroll(iscroll) {
}
}
}
</script>