diff --git a/core/frontend/src/components/canvas/customComponent/UserView.vue b/core/frontend/src/components/canvas/customComponent/UserView.vue index 14920df1e4..40be38ef3b 100644 --- a/core/frontend/src/components/canvas/customComponent/UserView.vue +++ b/core/frontend/src/components/canvas/customComponent/UserView.vue @@ -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" diff --git a/extensions/dataease-extensions-view/view-racebar/view-racebar-frontend/src/views/antv/racebar/index.vue b/extensions/dataease-extensions-view/view-racebar/view-racebar-frontend/src/views/antv/racebar/index.vue index 3d64523083..2f20897e8e 100644 --- a/extensions/dataease-extensions-view/view-racebar/view-racebar-frontend/src/views/antv/racebar/index.vue +++ b/extensions/dataease-extensions-view/view-racebar/view-racebar-frontend/src/views/antv/racebar/index.vue @@ -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 }