fix(Popup): overlay z-index

This commit is contained in:
chenjiahan
2020-07-26 15:45:48 +08:00
parent 9fa7a258d7
commit 5db6e380fe
2 changed files with 13 additions and 4 deletions
+2 -1
View File
@@ -46,6 +46,7 @@ export function PopupMixin(options = {}) {
data() {
return {
inited: this.show,
currentZIndex: null,
};
},
@@ -199,7 +200,7 @@ export function PopupMixin(options = {}) {
},
updateZIndex(value = 0) {
this.$refs.root.style.zIndex = ++context.zIndex + value;
this.currentZIndex = ++context.zIndex + value;
},
},
};