u-swiper.axml
2.7 KB
<view class="u-swiper-wrap data-v-a5b2d580" style="{{'border-radius:'+(borderRadius+'rpx')+';'}}"><swiper style="{{'height:'+(height+'rpx')+';'+('background-color:'+(bgColor)+';')}}" current="{{elCurrent}}" interval="{{interval}}" circular="{{circular}}" duration="{{duration}}" autoplay="{{autoplay}}" previous-margin="{{effect3d?effect3dPreviousMargin+'rpx':'0'}}" next-margin="{{effect3d?effect3dPreviousMargin+'rpx':'0'}}" data-event-opts="{{[['change',[['change',['$event']]]],['animationEnd',[['animationfinish',['$event']]]]]}}" onChange="__e" onAnimationEnd="__e" class="data-v-a5b2d580"><swiper-item class="u-swiper-item data-v-a5b2d580" a:for="{{$root.l0}}" a:for-item="item" a:for-index="index" a:key="index"><view data-event-opts="{{[['tap',[['listClick',[index]]]]]}}" class="{{((('u-list-image-wrap')+' '+'data-v-a5b2d580')+' '+(uCurrent!=index?'u-list-scale':''))}}" style="{{'border-radius:'+(borderRadius+'rpx')+';'+('transform:'+(effect3d&&uCurrent!=index?'scaleY(0.9)':'scaleY(1)')+';')+('margin:'+(effect3d&&uCurrent!=index?'0 20rpx':0)+';')}}" catchTap="__e"><image class="u-swiper-image data-v-a5b2d580" src="{{item.$orig[name]||item.$orig}}" mode="{{imgMode}}"></image><block a:if="{{title&&item.$orig.title}}"><view class="u-swiper-title u-line-1 data-v-a5b2d580" style="{{item.s0}}">{{''+item.$orig.title+''}}</view></block></view></swiper-item></swiper><view class="u-swiper-indicator data-v-a5b2d580" style="{{'top:'+(indicatorPos=='topLeft'||indicatorPos=='topCenter'||indicatorPos=='topRight'?'12rpx':'auto')+';'+('bottom:'+(indicatorPos=='bottomLeft'||indicatorPos=='bottomCenter'||indicatorPos=='bottomRight'?'12rpx':'auto')+';')+('justify-content:'+(justifyContent)+';')+('padding:'+('0 '+(effect3d?'74rpx':'24rpx'))+';')}}"><block a:if="{{mode=='rect'}}"><block class="data-v-a5b2d580"><view class="{{((('u-indicator-item-rect')+' '+'data-v-a5b2d580')+' '+((index==uCurrent)?'u-indicator-item-rect-active':''))}}" a:for="{{list}}" a:for-item="item" a:for-index="index" a:key="index"></view></block></block><block a:if="{{mode=='dot'}}"><block class="data-v-a5b2d580"><view class="{{((('u-indicator-item-dot')+' '+'data-v-a5b2d580')+' '+((index==uCurrent)?'u-indicator-item-dot-active':''))}}" a:for="{{list}}" a:for-item="item" a:for-index="index" a:key="index"></view></block></block><block a:if="{{mode=='round'}}"><block class="data-v-a5b2d580"><view class="{{((('u-indicator-item-round')+' '+'data-v-a5b2d580')+' '+((index==uCurrent)?'u-indicator-item-round-active':''))}}" a:for="{{list}}" a:for-item="item" a:for-index="index" a:key="index"></view></block></block><block a:if="{{mode=='number'}}"><block class="data-v-a5b2d580"><view class="u-indicator-item-number data-v-a5b2d580">{{uCurrent+1+"/"+list.length}}</view></block></block></view></view>