我有一个Ionic项目写在Ionic 5角,有一些弹出窗口使用SweetAlerts2。
今天,我决定将Ionic更新为Ionic6,SweetAlerts2弹出窗口看起来不太对。与此类似,警报仅在标题上可见,其他所有内容都为空白。
问题的截图:
代码:
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)',
})
发布于 2022-05-25 05:58:21
https://stackoverflow.com/questions/72362374
复制相似问题