在vue中引入swipe,出现的轮播图是竖向的,为什么不在一排排着,
<div class="banner">
<mt-swipe :auto="4000">
<mt-swipe-item>
<a href="#">
<img src="./1.png" alt="">
</a>
</mt-swipe-item>
<mt-swipe-item>
<a href="#">
<img src="./3.jpg" alt="">
</a>
</mt-swipe-item>
<mt-swipe-item>
<a href="#">
<img src="./4.jpg" alt="">
</a>
</mt-swipe-item>
</mt-swipe>
</div>
<script>
import Vue from 'vue'
import { Swipe, SwipeItem } from 'mint-ui'
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
</script>
慕后森
相关分类