收藏
回答

小程序swiper组件的display-multiple-items的使用方法

我想用swiper组件实现 一个界面显示多个滑块

比如我一页里面想可以看到四个滑块

但是使用display-multiple-items属性之后 没有效果



<swiper display-multiple-items="4" autoplay="true">

<swiper-item class="item" wx:for="{{compere}}" wx:key="{{index}}" style="display: flex;flex-direction: column;align-items: center;justify-content: center;">

<image class="item-head" src="{{item.icon}}"></image>

<view class="item-name">{{item.nickName}}</view>

</swiper-item>

</swiper>


回答关注问题邀请回答
收藏

3 个回答

  • LastLeaf
    LastLeaf
    2018-01-31

    请问项目设置中的基础库版本是?

    2018-01-31
    有用
    回复 5
  • ziiiiiiiiii
    ziiiiiiiiii
    2018-11-09

    我也遇到了这中情况,基础库是1.7.4,但是吧基础库调成1.9.1就可以正常显示了,应该是基础库的问题

    2018-11-09
    有用
    回复
  • 卌卝
    卌卝
    2018-09-05

    你的这个问题解决没???

    2018-09-05
    有用
    回复 2
    • 阿紫
      阿紫
      2018-09-05

      没有 你呢

      2018-09-05
      回复
    • 卌卝
      卌卝
      2018-09-05回复阿紫

      不知道怎么解决


      2018-09-05
      回复
登录 后发表内容