style: 修复跳转联动小菜单可能被上方组件遮挡问题 (#18254)

This commit is contained in:
王嘉豪
2026-04-14 16:04:38 +08:00
committed by GitHub
parent e1ecdbd20a
commit eac137a31e
2 changed files with 12 additions and 2 deletions

View File

@@ -554,6 +554,7 @@ const showPositionActive = computed(() =>
.component {
width: 100% !important;
height: 100% !important;
overflow: hidden;
}
.svg-background {

View File

@@ -2,11 +2,13 @@
<div>
<el-dropdown
:id="'view-track-bar-' + chartId"
:teleported="false"
:teleported="true"
trigger="click"
placement="bottom"
popper-class="track_bar_custom"
@visible-change="visibleChange"
>
<input id="input" ref="trackButton" type="button" hidden />
<input id="input" style="opacity: 0" ref="trackButton" type="button" />
<template #dropdown>
<div :class="{ 'data-mobile': isDataVMobile }">
<el-dropdown-menu
@@ -93,6 +95,12 @@ defineExpose({
})
</script>
<style lang="less">
.track_bar_custom {
transform: translate(50px, -30px);
}
</style>
<style lang="less" scoped>
.menu-item {
font-size: 12px;
@@ -100,6 +108,7 @@ defineExpose({
:deep(.ed-dropdown__popper) {
position: static !important;
z-index: 9999 !important; /* 添加这行 */
}
.ed-popper[x-placement^='bottom'] .popper__arrow {