1.1.0 • Published 4 years ago
vue-trans-swiper v1.1.0
vue-trans-swiper
hosts
127.0.0.1 dev.doubanio.com # 本地开发
功能
修改 vant-swipe 的位移,使他可以展示左右两边的图片
使用
npm install vue-trans-swiper
import CustomTransSwipe from 'vue-trans-swiper';
Vue.use(CustomTransSwipe);
<van-swipe :autoplay="3000"
:width="width"
:height="swipeHeight"
class="swiper-custom nose-to-tail">
给元素加上特定class: nose-to-tail