<!-- 预览模式 -->
<view class="custom-swiper-component">
  <block a:if="{{mode === 'multi'}}">
    <swiper class="swiper-block {{swiperClass}}" changing-class="{{changingClass}}" active-class="{{activeClass}}" acceleration="{{acceleration}}" disable-touch="{{disableTouch}}" swipe-ratio="{{swipeRatio}}" swipe-speed="{{swipeSpeed}}" touch-angle="{{touchAngle}}" easing-function="{{easingFunction}}" adjust-height="{{adjustHeight}}" adjust-vertical-height="{{adjustVerticalHeight}}" disable-programmatic-animation="{{disableProgrammaticAnimation}}" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" circular="{{circular}}" snap-to-edge="{{snapToEdge}}" previous-margin="{{previousMargin}}" next-margin="{{nextMargin}}" interval="{{interval}}" current="{{current}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}" onChange="onChange" onAnimationEnd="onAnimationEnd" onTransition="onTransition">
      <block a:for="{{images}}" a:index="{{index}}">
        <swiper-item class="swiper-item">
            <view class="swiper-slot {{current === index ? 'active' : 'common'}}">
              <slot data="{{{item, index, current}}}">
              </slot>
            </view>
          </swiper-item>
      </block>
    </swiper>
  </block>
  <!-- 普通模式 -->
  <block a:else>
    <swiper class="swiper-block {{swiperClass}}" changing-class="{{changingClass}}" active-class="{{activeClass}}" acceleration="{{acceleration}}" disable-touch="{{disableTouch}}" swipe-ratio="{{swipeRatio}}" swipe-speed="{{swipeSpeed}}" touch-angle="{{touchAngle}}" easing-function="{{easingFunction}}" adjust-height="{{adjustHeight}}" adjust-vertical-height="{{adjustVerticalHeight}}" disable-programmatic-animation="{{disableProgrammaticAnimation}}" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" circular="{{circular}}" snap-to-edge="{{snapToEdge}}" previous-margin="{{perviousMargin}}" next-margin="{{nextMargin}}" interval="{{interval}}" current="{{current}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}" onChange="onChange" onAnimationEnd="onAnimationEnd" onTransition="onTransition">
      <block a:for="{{images}}" a:index="{{index}}">
        <swiper-item class="swiper-item">
          <view class="swiper-slot">
              <slot data="{{{item, index, current}}}">
              </slot>
          </view>
        </swiper-item>
      </block>
    </swiper>
  </block>
</view>
