fix: antv 提示偏移

This commit is contained in:
wisonic-s 2023-11-16 18:46:15 +08:00
parent 5be7ab1d2a
commit 89f439a091
3 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<div <div
:style="getOutStyleDefault(config.style)" :style="getOutStyleDefault(config.style)"
class="component component-outer" class="component component-outer"
:class="{'component-active': filterActive}" :class="{'component-active': filterActive, 'user-view': config.component === 'user-view'}"
@click="handleClick" @click="handleClick"
@mousedown="elementMouseDown" @mousedown="elementMouseDown"
> >
@ -405,4 +405,7 @@ export default {
z-index: 0; z-index: 0;
} }
} }
.user-view {
transform: translate(0);
}
</style> </style>

View File

@ -33,7 +33,7 @@
/> />
<chart-component-g2 <chart-component-g2
v-else-if="!chart.type.includes('text') && chart.type !== 'label' && !chart.type.includes('table') && renderComponent() === 'antv'" v-else-if="!chart.type.includes('text') && chart.type !== 'label' && !chart.type.includes('table') && renderComponent() === 'antv'"
class="chart-class" class="chart-class show-in-dialog"
:chart="chart" :chart="chart"
/> />
<chart-component-s2 <chart-component-s2

View File

@ -482,7 +482,7 @@ export default {
} }
} }
.fullscreen { .fullscreen, .show-in-dialog {
.g2-container { .g2-container {
::v-deep .g2-tooltip { ::v-deep .g2-tooltip {
position: absolute !important; position: absolute !important;