mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
fix popup
This commit is contained in:
@@ -32,6 +32,10 @@
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
& + .zan-button--block {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
@m default {
|
||||
color: $button-default-color;
|
||||
background-color: $button-default-background-color;
|
||||
|
@@ -77,7 +77,11 @@ const PopupManager = {
|
||||
|
||||
addClass(modalDom, 'zan-modal');
|
||||
|
||||
document.body.appendChild(modalDom);
|
||||
if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
|
||||
dom.parentNode.appendChild(modalDom);
|
||||
} else {
|
||||
document.body.appendChild(modalDom);
|
||||
}
|
||||
|
||||
if (zIndex) {
|
||||
modalDom.style.zIndex = zIndex;
|
||||
|
Reference in New Issue
Block a user