滚动条vue-seamless-scroll的使用
npm安装地址: https://www.npmjs.com/package/vue-seamless-scroll
npm 执行:npm install vue-seamless-scroll --save
main.js文件里面引入使用:
import scroll from 'vue-seamless-scroll'
Vue.use(scroll)
局部使用
import vueSeamlessScroll from 'vue-seamless-scroll'
export default {
components: {
vueSeamlessScroll
}
}
简单使用
<div id="app">
<vue-seamless-scroll></vue-seamless-scroll>
</div>
具体配置去浏览参考地址,一切清清楚楚