|
@@ -1,6 +1,7 @@
|
|
|
import Vue from 'vue';
|
|
|
import Loading from './loading.vue';
|
|
|
import { addClass, removeClass, getStyle } from 'element-ui/src/utils/dom';
|
|
|
+import { PopupManager } from 'element-ui/src/utils/popup';
|
|
|
import afterLeave from 'element-ui/src/utils/after-leave';
|
|
|
const Mask = Vue.extend(Loading);
|
|
|
|
|
@@ -13,6 +14,7 @@ loadingDirective.install = Vue => {
|
|
|
if (binding.modifiers.fullscreen) {
|
|
|
el.originalPosition = getStyle(document.body, 'position');
|
|
|
el.originalOverflow = getStyle(document.body, 'overflow');
|
|
|
+ el.maskStyle.zIndex = PopupManager.nextZIndex();
|
|
|
|
|
|
addClass(el.mask, 'is-fullscreen');
|
|
|
insertDom(document.body, el, binding);
|
|
@@ -71,7 +73,7 @@ loadingDirective.install = Vue => {
|
|
|
el.instance.$emit('after-leave');
|
|
|
} else {
|
|
|
el.instance.visible = true;
|
|
|
- };
|
|
|
+ }
|
|
|
});
|
|
|
el.domInserted = true;
|
|
|
}
|