From bd7fb1257211d807be8d271422aa75781e72b06d Mon Sep 17 00:00:00 2001 From: wisonic Date: Fri, 7 Nov 2025 17:02:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=AD=97=E6=AE=B5=E8=BE=83=E5=A4=9A=E6=97=B6?= =?UTF-8?q?=E8=A1=A8=E5=A4=B4=E5=88=86=E7=BB=84=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=88=86=E7=BB=84=E8=8F=9C=E5=8D=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E4=BD=8D=20#16791?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/table/TableHeaderGroupConfig.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderGroupConfig.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderGroupConfig.vue index 9402344126..fcaaff06c9 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderGroupConfig.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderGroupConfig.vue @@ -168,6 +168,20 @@ const renderTable = (chart: ChartObj) => { width: containerDom.getBoundingClientRect().width, height: containerDom.offsetHeight, tooltip: { + autoAdjustBoundary: null, + adjustPosition(positionInfo) { + const { + position: { x, y } + } = positionInfo + const scrollWidth = containerDom.scrollLeft + const groupMenuContainer = document.getElementById(menuGroupId.value) + const menuWidth = groupMenuContainer?.offsetWidth || 120 + const containerWidth = containerDom.offsetWidth + if (x - scrollWidth + menuWidth > containerWidth) { + return { x: x - menuWidth, y: y + 10 } + } + return { x: x, y: y + 10 } + }, getContainer: () => containerDom, renderTooltip: sheet => new GroupMenu(sheet), style: { @@ -624,6 +638,7 @@ class GroupMenu extends BaseTooltip { :deep(span) { cursor: pointer; padding: 5px 10px; + word-break: keep-all; &:hover { background-color: var(--ed-fill-color-light); }