fix(视图-提示): 修复提示框被遮挡

This commit is contained in:
wisonic-s 2023-06-02 23:34:41 +08:00
parent 6280514d0b
commit ba27d96b32
2 changed files with 11 additions and 0 deletions

View File

@ -345,6 +345,9 @@ export default {
.component {
position: absolute;
}
.component-outer {
transform: translate(0);
}
.component-outer:hover {
box-shadow: 0px 0px 3px #0a7be0;
}

View File

@ -33,6 +33,7 @@
<div
:id="chartId"
style="width: 100%;overflow: hidden;"
class="g2-container"
:style="{height:chartHeight}"
/>
</div>
@ -437,3 +438,10 @@ export default {
}
}
</script>
<style lang="less" scoped>
.g2-container {
::v-deep .g2-tooltip {
position: fixed !important;
}
}
</style>