1、安装
npm install vue-seamless-scroll --save
2、代码
<template>
<div class="base-carousel">
<vueSeamless :data="getImgs" :class-option="optionLeft" class="seamless-warp2">
<ul class="item">
<li v-for="item in getImgs" :key="item">
<img class="img" :src="item" :key="item" />
</li>
</ul>
</vueSeamless>
</div>
</template>
<script>
import vueSeamless from 'vue-seamless-scroll'
export default {
name: 'test',
components: {
vueSeamless
},
props: {
sendVal: Array
},
data() {
return {
getImgs: [
'http://www.redrcd.com/images/big1.png',
'http://www.redrcd.com/images/big2.png',
'http://www.redrc