mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Popup): incorrect overlay z-index when reopened (#6429)
This commit is contained in:
parent
8a05cd529a
commit
16f54e3d75
@ -51,7 +51,10 @@ export function updateOverlay(vm: any): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function openOverlay(vm: any, config: OverlayConfig): void {
|
export function openOverlay(vm: any, config: OverlayConfig): void {
|
||||||
if (!context.find(vm)) {
|
const item = context.find(vm);
|
||||||
|
if (item) {
|
||||||
|
item.config = config;
|
||||||
|
} else {
|
||||||
const overlay = mountOverlay(vm);
|
const overlay = mountOverlay(vm);
|
||||||
context.stack.push({ vm, config, overlay });
|
context.stack.push({ vm, config, overlay });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user