Sweetalert2:完全禁用版本> = 9.0.0的动画的正确方法

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

版本9.0.0]之前>我使用此代码完全禁用了[[toast警报时的动画。Swal.fire({ animation : false, toast: true, .... });

现在使用版本9. *,我尝试使用此代码,其结果看起来相同

Swal.fire({ showClass : { popup : "swal2-noanimation", backdrop : "swal2-noanimation", icon : "swal2-noanimation"}, //hideClass : { popup : "swal2-noanimation", backdrop : "swal2-noanimation", icon : "swal2-noanimation"}, toast: true, .... });

如果我还启用属性

hideClass

,则无法使用方法Swal.close()隐藏警报。那么,获得与以前相同的效果的正确解决方案是什么?

在9.0.0版之前,我使用此代码完全禁用了烤面包警报上的动画。 Swal.fire({动画:假,吐司:真,...。});现在使用版本9. *,我尝试使用此代码,...

sweetalert2
1个回答
0
投票
根据预定消息:
© www.soinside.com 2019 - 2024. All rights reserved.