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 381a3d3103..05b036c6d5 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -988,6 +988,18 @@ const marginBottom = computed(() => { const iconSize = computed(() => { return 16 * scale.value + 'px' }) + +/** + * 保证标题容器高度最小高度不低于图标高度 + */ +const titleContainerMinHeight = computed(() => { + if (['picture-group', 'rich-text'].includes(element.value.innerType)) { + return '0px' + } else if (!titleShow.value) { + return 16 * scale.value + 4 + 'px' + } + return 16 * scale.value + 'px' +}) /** * 修改透明度 * 边框透明度为0时会是存色,顾配置低透明度