angular - 在循环中使用时,Angular Swiper 在 Ionic 5 中重叠
问题描述
我在 Ionic 5 项目中使用 Angular Swiper。
我在水平的刷卡器中显示固定数量的离子卡,并且在一个循环中有多个垂直刷卡器。
<ng-container *ngFor="let item of List; let i = index;">
<swiper autoHeight=true>
<ng-template swiperSlide>
<ion-card></ion-card>
<ion-card></ion-card>
</ng-template>
</swiper>
</ng-container>
解决方案
推荐阅读
- powershell - 使用 PowerShell 启动进程后,在任务管理器进程中找不到进程 ID
- azure - 通过客户端 AAD 检索的客户端凭据令牌不适用于 API Azure
- java - 如何以编程方式重置recyclerview的背景按钮(滑动菜单)?
- javascript - Javascript 中的回调函数
- java - xml和java中的文件冲突
- postgresql - 为 postgres 运行多个查询(SELECT * from emp; Select * from adm;) 并在两个不同的结构中得到结果 IN GO(GOLANG)
- unit-testing - 如何在系统级别使用 VUnit
- dataframe - 如何使用 spark scala 将数据框写入带有工作表名称的 csv 文件
- android - (离子)运行时错误:无法解析 ActionSheetCmp 的所有参数:([object Object],[object Object],
- android-biometric-prompt - 如何在 android x 中使用生物识别提示实现人脸身份验证?