Commit c9ea4161 authored by hetech's avatar hetech Committed by 杨奕

MessageBox: remove hidden class when using MessageBox twice (#11371)

parent b726aa02
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
opened: false, opened: false,
bodyPaddingRight: null, bodyPaddingRight: null,
computedBodyPaddingRight: 0, computedBodyPaddingRight: 0,
withoutHiddenClass: false, withoutHiddenClass: true,
rendered: false rendered: false
}; };
}, },
...@@ -216,6 +216,7 @@ export default { ...@@ -216,6 +216,7 @@ export default {
document.body.style.paddingRight = this.bodyPaddingRight; document.body.style.paddingRight = this.bodyPaddingRight;
removeClass(document.body, 'el-popup-parent--hidden'); removeClass(document.body, 'el-popup-parent--hidden');
} }
this.withoutHiddenClass = true;
} }
} }
}; };
......
...@@ -13,7 +13,6 @@ const Popup = Object.assign({}, VuePopup, { ...@@ -13,7 +13,6 @@ const Popup = Object.assign({}, VuePopup, {
describe('Mixin:vue-popup', () => { describe('Mixin:vue-popup', () => {
let vm; let vm;
before(() => { before(() => {
document.body.className = '';
const modals = document.querySelectorAll('.v-modal'); const modals = document.querySelectorAll('.v-modal');
[].forEach.call(modals, modal => { [].forEach.call(modals, modal => {
modal && modal &&
......
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