我有一個在 Ionic 5 Angular 上撰寫的 Ionic 專案,其中有一些使用 SweetAlerts2 的彈出視窗。
今天我決定將 Ionic 更新為 Ionic6,而 SweetAlerts2 彈出視窗看起來不正確。就像警報只在標題上可見,其他一切都是空白的。
問題截圖:
Ionic6 可視化問題
代碼:
swal.fire({
html:
'<br><label style="font-size:80%">Example Alert</label>',
showDenyButton: true,
confirmButtonText: "Confirm",
denyButtonText: "Deny",
denyButtonColor: 'grey',
confirmButtonColor: 'var(--ion-color-primary)',
})
重現問題的存盤庫
uj5u.com熱心網友回復:
這個問題已經解決了
只需將此選項與 Ionic Framework 一起使用。
heightAuto: false
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/481820.html
標籤:javascript 有角度的 离子框架 离子6
