vue-slimscroll
Vue-slimscroll is a directive plugin for Vue.js, which can transforms any div into a scrollable area with a nice scrollbar
38,058
| Install | |
|---|---|
npm install vue-slimscroll |
|
| Latest Version: | 1.0.1 |
| License: | MIT |
| Last Updated: | Dec 18, 2017 |
| Links: | npm |
Maintainer: traveller_wjoe
vue-slimscroll
Vue-slimscroll is a directive plugin for Vue.js, which can transforms any div into a scrollable area with a nice scrollbar.
The original jQuery version is herehttps://github.com/rochal/jQuery-slimScroll.
Install
- Install it by using npm.
npm i vue-slimscroll
- Import it at
vueproject.
import Vue rom 'vue'
import VueSlimScroll from 'vue-slimscroll'
...
Vue.use(VueSlimScroll)
Usage
Using the v-slimscroll directive
<template>
<div v-slimscroll>
...
</div>
</template>
Using directive with options
<template>
<div v-slimscroll="options">
...
</div>
</template>
<script>
export default {
data:{
return (){
options:{
height:'100%',
size:0
}
}
}
}
</script>
The
optionsis same as jQuery version. See their documentation
License
Version History
| Version | Released | License |
|---|---|---|
| 1.0.1 | MIT | |
| 1.0.0 | MIT |