离子幻灯片橡皮筋效果在模式中不起作用

问题描述

我正在使用带有离子芯片的离子幻灯片组件来分类(例如,所有,喜剧等,如YouTube在主屏幕上可以快速搜索)。

当我以模式打开时,此组件工作正常,但没有橡皮筋效果,因此我希望用户仅滚动到模式中的第一个和最后一个芯片。但是在模态芯片中滚动不停。

#ionSlidesComponentWithChips

 <ion-item color="dark" class="border-top-1">
  <ion-slides [options]="slideOpts">
    <ion-slide *ngFor="let category of categories">
      <ion-chip color="light" has-bouncing="true">
        <ion-label>{{category}}</ion-label>
      </ion-chip> 
    </ion-slide>
  </ion-slides>
</ion-item>

我在模式中添加了组件。

<app-header></app-header>

<app-category-slides></app-category-slides>

<ion-content>

  <ion-backdrop class="ion-margin-top"></ion-backdrop>
  <img src="assets/imgs/{{img}}.jpg">
</ion-content>

<ion-footer translucent="false" class="ion-no-border" color="dark">

  <ion-item lines="none" text-center color="dark">
    <ion-grid>
      <ion-row class="ion-align-items-center ion-text-center">
        <ion-col>
          <ion-button color="light" fill="clear">
            <span class="material-icons">
              thumb_up
            </span>

          </ion-button>
          <span class="ion-padding">2.2k</span>
        </ion-col>
        <ion-col>
          <ion-button color="light" fill="clear">
            <span class="material-icons">
              thumb_down
            </span>
          </ion-button>
          <span class="ion-padding">20</span>
        </ion-col>
        <ion-col>
          <ion-button color="light" fill="clear">
            <span class="fa fa-share"></span>            
          </ion-button>
          <span class="ion-padding">Share</span>
        </ion-col>
        <ion-col>
          <ion-button color="light" fill="clear">
            <span class="material-icons">
              favorite
            </span>
          </ion-button>
          <span class="ion-padding">Save</span>
        </ion-col>

        <ion-col>
          <ion-button color="light" fill="clear" (click)="close()">
            <span class="material-icons">
              close
            </span>
          </ion-button>
        </ion-col>

      </ion-row>

    </ion-grid>
  </ion-item>

</ion-footer>

for better understanding the problem I just uploaded video: Please click here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)