Commit 2f94c025 authored by lisheng's avatar lisheng Committed by luckyCao

loading: 1.修复loading状态更新过快的情况下,loading的dom没有发生变化. (#15123)

* loading 修复loading状态更新过快的情况下,loading的dom没有发生变化

* revert example/play/index.vue
parent c27788f9
......@@ -45,6 +45,7 @@ loadingDirective.install = Vue => {
});
} else {
afterLeave(el.instance, _ => {
if (!el.instance.hiding) return;
el.domVisible = false;
const target = binding.modifiers.fullscreen || binding.modifiers.body
? document.body
......@@ -80,6 +81,9 @@ loadingDirective.install = Vue => {
}
});
el.domInserted = true;
} else if (el.domVisible && el.instance.hiding === true) {
el.instance.visible = true;
el.instance.hiding = false;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment