fix(仪表板): 修复全屏模式下echart的提示不显示问题 #5960

This commit is contained in:
wangjiahao 2023-09-07 11:15:03 +08:00
parent b55f516aa1
commit 8d2f1db7bb
2 changed files with 7 additions and 1 deletions

View File

@ -67,6 +67,7 @@
:scale="scale"
:theme-style="element.commonBackground"
:active="active"
:in-screen="inScreen"
@onChartClick="chartClick"
@onJumpClick="jumpClick"
/>

View File

@ -65,6 +65,11 @@ export default {
MapController
},
props: {
inScreen: {
type: Boolean,
required: false,
default: true
},
active: {
type: Boolean,
required: false,
@ -409,7 +414,7 @@ export default {
chart_option.legend['pageIconInactiveColor'] = '#8c8c8c'
}
}
if (chart_option.tooltip) {
if (chart_option.tooltip && this.inScreen) {
chart_option.tooltip.appendToBody = true
}
this.myEcharts(chart_option)