Skip to content

Commit

Permalink
Merge pull request dataease#5399 from dataease/pr@dev@fix_chart_toolt…
Browse files Browse the repository at this point in the history
…ip_covered

fix(视图-提示): 修复提示框被遮挡
  • Loading branch information
wisonic-s authored Jun 2, 2023
2 parents 6280514 + ba27d96 commit 9e4abc0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ export default {
.component {
position: absolute;
}
.component-outer {
transform: translate(0);
}
.component-outer:hover {
box-shadow: 0px 0px 3px #0a7be0;
}
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/views/chart/components/ChartComponentG2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<div
:id="chartId"
style="width: 100%;overflow: hidden;"
class="g2-container"
:style="{height:chartHeight}"
/>
</div>
Expand Down Expand Up @@ -437,3 +438,10 @@ export default {
}
}
</script>
<style lang="less" scoped>
.g2-container {
::v-deep .g2-tooltip {
position: fixed !important;
}
}
</style>

0 comments on commit 9e4abc0

Please sign in to comment.