mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
popup
This commit is contained in:
parent
78f948c980
commit
8dff910c64
@ -39,7 +39,6 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handlePopupButtonClick() {
|
handlePopupButtonClick() {
|
||||||
this.popupShow1 = false;
|
|
||||||
this.popupShow4 = true;
|
this.popupShow4 = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
background-color: rgba(0, 0, 0, 0.701961);
|
background-color: rgba(0, 0, 0, 0.701961);
|
||||||
|
transition: background-color .5s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@b popup {
|
@b popup {
|
||||||
|
@ -83,7 +83,7 @@ const PopupManager = {
|
|||||||
|
|
||||||
document.body.appendChild(modalDom);
|
document.body.appendChild(modalDom);
|
||||||
|
|
||||||
if (zIndex && !hasModal) {
|
if (zIndex) {
|
||||||
modalDom.style.zIndex = zIndex;
|
modalDom.style.zIndex = zIndex;
|
||||||
}
|
}
|
||||||
modalDom.style.display = '';
|
modalDom.style.display = '';
|
||||||
@ -114,12 +114,10 @@ const PopupManager = {
|
|||||||
|
|
||||||
if (modalStack.length === 0) {
|
if (modalStack.length === 0) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (modalStack.length === 0) {
|
|
||||||
if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
|
if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
|
||||||
|
|
||||||
modalDom.style.display = 'none';
|
modalDom.style.display = 'none';
|
||||||
this.modalDom = null;
|
this.modalDom = null;
|
||||||
}
|
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user