ionic-framework - 我的滑块覆盖流效果在 Ionic 4 中不起作用
问题描述
我在我的 Ionic 4 应用程序中工作,我已将封面流效果添加到我的滑块中,但它不起作用。
这是我的tab1.page.html:
<ion-slides class="swiper-container swiper-container-3d" pager="false" [options]="slidesOpts" #slides>
<ion-slide class="swiper-wrapper">
</ion-slide>
<ion-slide class="swiper-wrapper">
</ion-slide>
<ion-slide class="swiper-wrapper">
</ion-slide>
<ion-slide class="swiper-wrapper">
</ion-slide>
</ion-slides>
这是我的tab1.page.ts:
import { IonSlides } from '@ionic/angular';
@ViewChild('slides') slides: IonSlides;
slidesOpts = {
effect: 'coverflow',
spaceBetween: 0,
initialSlide: 1,
slidesPerView : 2.6,
slidesOffsetBefore: 11,
slidesOffsetAfter: 11,
direction: 'horizontal',
centeredSlides: true,
coverflowEffect: {
rotate: 20,
stretch: 20,
depth: 200,
shadow: true,
slideShadows: true,
shadowOffset: 20,
modifier: 1,
}
};
但它没有显示覆盖流效果。它正在显示简单的效果滑块。
任何帮助深表感谢。
解决方案
推荐阅读
- android-fragments - 从活动中单击时更改片段画布上的颜色
- powershell - 如何在PowerShell中通过FTP上传数据库备份文件
- angular - Angular 6:为“root”提供 HTTP_INTERCEPTORS
- javascript - 如何根据对象的属性创建接口?
- android - 自定义 URL 方案不是 Outlook (iOS/Android) 中的链接
- nattable - 将 json 解析为 Nattable
- json - 组合多个 json 输出查询
- python - 通过单击作为超链接制作的 QLabel 打开一个 .pdf
- linux - 我无法在 CENTOS 7 中启动 SonarQube,因为 PID 不断快速变化
- elasticsearch - Elasticsearch 脚本 - 无关的 if 语句