This commit is contained in:
cookfront 2017-03-08 21:15:44 +08:00
parent 78f948c980
commit 8dff910c64
3 changed files with 5 additions and 7 deletions

View File

@ -39,7 +39,6 @@ export default {
methods: {
handlePopupButtonClick() {
this.popupShow1 = false;
this.popupShow4 = true;
}
}

View File

@ -6,6 +6,7 @@
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.701961);
transition: background-color .5s ease-out;
}
@b popup {

View File

@ -83,7 +83,7 @@ const PopupManager = {
document.body.appendChild(modalDom);
if (zIndex && !hasModal) {
if (zIndex) {
modalDom.style.zIndex = zIndex;
}
modalDom.style.display = '';
@ -114,12 +114,10 @@ const PopupManager = {
if (modalStack.length === 0) {
setTimeout(() => {
if (modalStack.length === 0) {
if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
modalDom.style.display = 'none';
this.modalDom = null;
}
modalDom.style.display = 'none';
this.modalDom = null;
}, 200);
}
}