uni-app的轮播 swiper


在uni-app中自带了swiper的代码块,可以用来制作轮播图

在我们输入的时候可以时候用快捷方式创建我们的代码块 usw来选择你对应的代码块创建

<swiper :indicator-dots="true" :autoplay="true"   class="banner">
<swiper-item>
  <image src="../../static/index/batmanvssuperman.png" mode="" class="banner"></image>
</swiper-item>
<swiper-item>
  <image src="../../static/index/batmanvssuperman.png" mode="" class="banner"></image>
</swiper-item>
</swiper>

<style>

.banner{

width:100%;

height:440upx

}

</style>

官网链接地址:https://uniapp.dcloud.io/component/swiper


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM