<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 上都起不到任何作用。我期望的效果是跳过某个特殊的滑块。
10月7号了还没答复。。。
麻烦提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。