u-swiper.wxml
1.7 KB
<view class="u-swiper data-v-d16ee43a" style="{{'background-color:' + t + ';' + ('height:' + v) + ';' + ('border-radius:' + w)}}"><view wx:if="{{a}}" class="u-swiper__loading data-v-d16ee43a"><u-loading-icon wx:if="{{b}}" class="data-v-d16ee43a" u-i="d16ee43a-0" bind:__l="__l" u-p="{{b}}"></u-loading-icon></view><swiper wx:else class="u-swiper__wrapper data-v-d16ee43a" style="{{'height:' + d}}" bindchange="{{e}}" circular="{{f}}" interval="{{g}}" duration="{{h}}" autoplay="{{i}}" current="{{j}}" currentItemId="{{k}}" previousMargin="{{l}}" nextMargin="{{m}}" acceleration="{{n}}" displayMultipleItems="{{o}}" easingFunction="{{p}}"><swiper-item wx:for="{{c}}" wx:for-item="item" wx:key="q" class="u-swiper__wrapper__item data-v-d16ee43a"><view class="u-swiper__wrapper__item__wrapper data-v-d16ee43a" style="{{item.p}}"><image wx:if="{{item.a}}" class="u-swiper__wrapper__item__wrapper__image data-v-d16ee43a" src="{{item.b}}" mode="{{item.c}}" bindtap="{{item.d}}" style="{{'height:' + item.e + ';' + ('border-radius:' + item.f)}}"></image><video wx:if="{{item.g}}" class="u-swiper__wrapper__item__wrapper__video data-v-d16ee43a" id="{{item.h}}" enable-progress-gesture="{{false}}" src="{{item.i}}" poster="{{item.j}}" title="{{item.k}}" style="{{'height:' + item.l}}" controls bindtap="{{item.m}}"></video><text wx:if="{{item.n}}" class="u-swiper__wrapper__item__wrapper__title u-line-1 data-v-d16ee43a">{{item.o}}</text></view></swiper-item></swiper><view class="u-swiper__indicator data-v-d16ee43a" style="{{s}}"><block wx:if="{{$slots.indicator}}"><slot name="indicator"></slot></block><block wx:else><u-swiper-indicator wx:if="{{q}}" class="data-v-d16ee43a" u-i="d16ee43a-1" bind:__l="__l" u-p="{{r}}"></u-swiper-indicator></block></view></view>