Ionic 5 toastController不显示“关闭”按钮

问题描述 投票:0回答:1

我从Ionic 4迁移到Ionic 5,并注意到即使我使用showCloseButton:true设置ToastOptions属性,我的toastController也不显示“关闭”按钮。

我从Ionic 4迁移到Ionic 5,并注意到我的toastControllers没有显示“关闭”按钮,即使我使用showCloseButton设置ToastOptions属性:true

ionic-framework ionic4 ionic5
1个回答
0
投票

我固定了它,明确地添加了按钮数组,如下所示:

© www.soinside.com 2019 - 2024. All rights reserved.