获取当前页面显示的el-dialog元素
文章目录
判断当前整个vue应用中是否有弹窗在显示,代码:
$("div.el-dialog__wrapper").each(function(i) {
if ($(this).css("display") !== "none" && $(this).css("position")==='fixed') {
console.log($(this)[0])
}
});判断当前整个vue应用中是否有弹窗在显示,代码:
$("div.el-dialog__wrapper").each(function(i) {
if ($(this).css("display") !== "none" && $(this).css("position")==='fixed') {
console.log($(this)[0])
}
});
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论