[摘要]swiper滑块组件说明:滑块视图容器,用于展示图片,可以通过用户拖拽和设置自动切换属性控制图片的切换下面是WXML代码:[XML] 纯文本查看 复制代码[/align]<swiper ind...
swiper滑块组件说明:
下面是WXML代码:
[XML] 纯文本查看 复制代码
[/align]
<swiper indicator-dots="{{indicatorDots}}"
autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
<block wx:for="{{imgUrls}}">
<swiper-item>
<image src="{{item}}" class="slide-image" width="355" height="150"/>
</swiper-item>
</block>
</swiper>
<button bindtap="changeIndicatorDots"> indicator-dots </button>
<button bindtap="changeAutoplay"> autoplay </button>
<slider bindchange="intervalChange" show-value min="500" max="2000"/> interval
<slider bindchange="durationChange" show-value min="1000" max="10000"/> duration