vue 基于vue-seamless-scroll无缝滚动
安装vue-seamless-scroll
npm install vue-seamless-scroll --save
引入组件 在main.js全局引入或者在组件内局部引入
//全局引入 vue无缝轮播插件
import scroll from 'vue-seamless-scroll'
Vue.use(scroll)
//局部引入 vue无缝轮播插件
<vue-seamless-scroll></vue-seamless-scroll>
import vueSeamlessScroll from 'vue-seamless-scroll'
components: {
vueSeamlessScroll
},
完整代码如下
<template>
<div class="" style="padding: 50px;">
<div class="page-example3" style="">
<vue-seamless-scroll :data="listData" :class-option=