<template>
<div id="mySwiper">
<div
class="swiper"
@touchstart="touchStart"
@touchmove="touchMove"
@touchend="touchEnd"
>
<slot></slot>
</div>
<div class="indicator">
<div
class="indicatorItem"
v-for="(item, index) in slideCount"
:key="index"
:class="{ active: index === currentIndex - 1 }"
></div>
</div>
</div>
</template>
<script>
export default {
name: 'Swiper',
props: {},
data: function () {
return {
slideCount: 0,
interval: 3000,
imgWidt