Merge pull request #6078 from dataease/pr@dev@fix_panel-tooltips

fix(仪表板): 修复全屏模式下动态排序没有提示问题
This commit is contained in:
fit2cloudrd 2023-09-08 12:00:54 +08:00 committed by GitHub
commit 324a17350a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -35,6 +35,7 @@
:obj="{active, chart, trackMenu, searchCount, terminalType: scaleCoefficientType}"
:chart="chart"
:track-menu="trackMenu"
:in-screen="inScreen"
:search-count="searchCount"
:terminal-type="scaleCoefficientType"
:scale="scale"

View File

@ -76,6 +76,11 @@ export default {
return ['drill']
}
},
inScreen: {
type: Boolean,
required: false,
default: true
},
searchCount: {
type: Number,
required: false,
@ -594,7 +599,7 @@ export default {
chart_option.legend['pageIconInactiveColor'] = '#8c8c8c'
}
}
if (chart_option.tooltip) {
if (chart_option.tooltip && this.inScreen) {
chart_option.tooltip.appendToBody = true
}