refactor: fix popup component zIndex (#5397)

This commit is contained in:
Netfan
2025-01-15 12:32:03 +08:00
committed by GitHub
parent 27a3888e35
commit 13087a10b7
21 changed files with 62 additions and 76 deletions

View File

@@ -32,7 +32,7 @@ const { handleClick, visible } = useBackTop(props);
<VbenButton
v-if="visible"
:style="backTopStyle"
class="dark:bg-accent dark:hover:bg-heavy bg-background hover:bg-heavy data shadow-float fixed bottom-10 z-[1000] size-10 rounded-full duration-500"
class="dark:bg-accent dark:hover:bg-heavy bg-background hover:bg-heavy data shadow-float z-popup fixed bottom-10 size-10 rounded-full duration-500"
size="icon"
variant="icon"
@click="handleClick"

View File

@@ -69,7 +69,7 @@ function handleClick(menu: IContextMenuItem) {
<ContextMenuContent
:class="contentClass"
v-bind="contentProps"
class="side-content z-[1000]"
class="side-content z-popup"
>
<template v-for="menu in menusView" :key="menu.key">
<ContextMenuItem

View File

@@ -47,7 +47,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
<HoverCardContent
:class="contentClass"
v-bind="contentProps"
class="side-content z-[1000]"
class="side-content z-popup"
>
<slot></slot>
</HoverCardContent>

View File

@@ -48,7 +48,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
<PopoverContent
:class="contentClass"
class="side-content z-[1000]"
class="side-content z-popup"
v-bind="contentProps"
>
<slot></slot>