forked from github/dataease
fix(仪表板): 修复全屏模式下echart的提示不显示问题 #5960
This commit is contained in:
parent
b55f516aa1
commit
8d2f1db7bb
@ -67,6 +67,7 @@
|
||||
:scale="scale"
|
||||
:theme-style="element.commonBackground"
|
||||
:active="active"
|
||||
:in-screen="inScreen"
|
||||
@onChartClick="chartClick"
|
||||
@onJumpClick="jumpClick"
|
||||
/>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user