Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

continuous 为 false 时,两张图片以上就会重复闪动 #82

Open
fengyuanzemin opened this issue Nov 22, 2018 · 0 comments
Open

Comments

@fengyuanzemin
Copy link

fengyuanzemin commented Nov 22, 2018

重现代码

<template>
  <v-swipe class="my-swipe"
    :continuous="false"
  >
    <v-swipe-item class="slide1"></v-swipe-item>
    <v-swipe-item class="slide2"></v-swipe-item>
    <v-swipe-item class="slide3"></v-swipe-item>
  </v-swipe>
</template>
<script>
import 'vue-swipe/dist/vue-swipe.css';
import { Swipe, SwipeItem } from 'vue-swipe';

export default {
  components: {
    'v-swipe': Swipe,
    'v-swipe-item': SwipeItem,
  },
};
</script>

<style>
.my-swipe {
  height: 200px;
  color: #fff;
  font-size: 30px;
  text-align: center;
}

.slide1 {
  background-color: #0089dc;
  color: #fff;
}

.slide2 {
  background-color: #ffd705;
  color: #000;
}

.slide3 {
  background-color: #ff2d4b;
  color: #fff;
}
</style>

依赖版本

"dependencies": {
    "vue": "^2.5.2",
    "vue-swipe": "^2.4.0"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant