forked from github/dataease
fix(仪表板): 修复全屏模式下echart的提示不显示问题 #5960
This commit is contained in:
parent
b55f516aa1
commit
8d2f1db7bb
@ -67,6 +67,7 @@
|
|||||||
:scale="scale"
|
:scale="scale"
|
||||||
:theme-style="element.commonBackground"
|
:theme-style="element.commonBackground"
|
||||||
:active="active"
|
:active="active"
|
||||||
|
:in-screen="inScreen"
|
||||||
@onChartClick="chartClick"
|
@onChartClick="chartClick"
|
||||||
@onJumpClick="jumpClick"
|
@onJumpClick="jumpClick"
|
||||||
/>
|
/>
|
||||||
|
@ -65,6 +65,11 @@ export default {
|
|||||||
MapController
|
MapController
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
inScreen: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
active: {
|
active: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
@ -409,7 +414,7 @@ export default {
|
|||||||
chart_option.legend['pageIconInactiveColor'] = '#8c8c8c'
|
chart_option.legend['pageIconInactiveColor'] = '#8c8c8c'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (chart_option.tooltip) {
|
if (chart_option.tooltip && this.inScreen) {
|
||||||
chart_option.tooltip.appendToBody = true
|
chart_option.tooltip.appendToBody = true
|
||||||
}
|
}
|
||||||
this.myEcharts(chart_option)
|
this.myEcharts(chart_option)
|
||||||
|
Loading…
Reference in New Issue
Block a user