From 9552ae5f198b4f6cdc31b10dfd58f0080a1c5d8c Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Fri, 28 Feb 2025 11:54:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E6=9D=BF=E9=A1=B5=E9=9D=A2=E5=AF=BC=E5=87=BA?= =?UTF-8?q?PDF=E4=BB=A5=E5=8F=8A=E5=9B=BE=E7=89=87=EF=BC=8C=E6=9C=80?= =?UTF-8?q?=E5=80=BC=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA=E7=A9=BA=E7=99=BD?= =?UTF-8?q?=20=E7=9A=84=E9=97=AE=E9=A2=98=20#15093?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/extremumUitl.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/extremumUitl.ts b/core/core-frontend/src/views/chart/components/js/extremumUitl.ts index e72176af04..6117111a2a 100644 --- a/core/core-frontend/src/views/chart/components/js/extremumUitl.ts +++ b/core/core-frontend/src/views/chart/components/js/extremumUitl.ts @@ -79,7 +79,8 @@ function createExtremumDiv(id, value, formatterCfg, chart) { transform: translateX(-50%); opacity: 1; transition: opacity 0.2s ease-in-out; - white-space:nowrap;` + white-space:nowrap; + overflow:auto;` ) div.textContent = valueFormatter(value, formatterCfg) const span = document.createElement('span') @@ -223,6 +224,7 @@ export const createExtremumPoint = (chart, ev) => { divParent.style.zIndex = '1' divParent.style.opacity = '0' divParent.style.transition = 'opacity 0.2s ease-in-out' + divParent.style.overflow = 'visible' // 将父标注加入到图表中 const containerElement = document.getElementById(chart.container) containerElement.insertBefore(divParent, containerElement.firstChild)