获取当前页面显示的el-dialog元素

判断当前整个vue应用中是否有弹窗在显示,代码:

$("div.el-dialog__wrapper").each(function(i) {
  if ($(this).css("display") !== "none" && $(this).css("position")==='fixed') {
   console.log($(this)[0])
  }
});

你可能感兴趣的:(前端vue.js)