swiper skip-hidden-item-layout 属性无效
<swiper
allowSlideNext="{{false}}"
indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" circular="{{circular}}" vertical="{{vertical}}"
interval="{{interval}}" duration="{{duration}}" previous-margin="{{previousMargin}}px" next-margin="{{nextMargin}}px"
>
<block wx:for="{{background}}" wx:key="*this">
<swiper-item wx:if="{{index == 1}}" hidden="{{true}}" skip-hidden-item-layout="{{true}}">
<view class="swiper-item {{item}}">view>
swiper-item> <swiper-item skip-hidden-item-layout="{{true}}" wx:else> <view class=“swiper-item {{item}}”>view> swiper-item> block> swiper>
skip-hidden-item-layout 属性,我放到swiper 上或者swiper-item 上都起不到任何作用。我期望的效果是跳过某个特殊的滑块。
1 回复