diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index c6aa001bc9..89ff4ef33a 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -254,7 +254,7 @@ const initTitle = () => { state.title_show = customStyle.text.show state.title_class.fontSize = customStyle.text.fontSize * scale.value + 'px' state.title_class.color = customStyle.text.color - state.title_class.textAlign = customStyle.text.hPosition + state.title_class.textAlign = customStyle.text.hPosition as CSSProperties['textAlign'] state.title_class.fontStyle = customStyle.text.isItalic ? 'italic' : 'normal' state.title_class.fontWeight = customStyle.text.isBolder ? 'bold' : 'normal' @@ -654,6 +654,13 @@ const titleIconStyle = computed(() => { color: canvasStyleData.value.component.seniorStyleSetting.linkageIconColor } }) +const chartHover = ref(false) +const showActionIcons = computed(() => { + if (!chartHover.value) { + return false + } + return trackMenu.value.length > 0 || state.title_remark.show +}) -
- - - - - - - - - - - - - - - - - - - - - -
+ +
+ + + + + + + + + + + + + + + + + + + + + +
+
@@ -816,4 +827,13 @@ const titleIconStyle = computed(() => { } } } +.fade-enter-active, +.fade-leave-active { + transition: opacity 0.5s ease; +} + +.fade-enter-from, +.fade-leave-to { + opacity: 0; +}