From 25a44f69fe753ac3bdcc5fa94442924eb957ad8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=9D=A4=E9=B9=8F?= Date: Tue, 30 Jul 2024 15:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=95=E5=85=83=E6=A0=BC?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=B8=BA=E5=A4=9A=E8=A1=8C=E6=BA=A2=E5=87=BA?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=98=BE=E7=A4=BA=E5=90=90=E5=8F=B8=EF=BC=8C?= =?UTF-8?q?=E5=8E=9F=E6=9C=AC=E5=8F=AA=E6=9C=89=E5=8D=95=E8=A1=8C=E6=89=8D?= =?UTF-8?q?=E6=9C=89=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/table/src/methods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/table/src/methods.js b/packages/table/src/methods.js index cc4a74c3a..0574b5697 100644 --- a/packages/table/src/methods.js +++ b/packages/table/src/methods.js @@ -3106,7 +3106,7 @@ const Methods = { const customContent = contentMethod ? contentMethod(params) : null const useCustom = contentMethod && !XEUtils.eqNull(customContent) const content = useCustom ? customContent : (column.type === 'html' ? overflowElem.innerText : overflowElem.textContent).trim() - const isCellOverflow = overflowElem.scrollWidth > overflowElem.clientWidth + const isCellOverflow = (overflowElem.scrollWidth > overflowElem.clientWidth) || (overflowElem.scrollHeight > overflowElem.offsetHeight) if (content && (showAll || enabled || useCustom || isCellOverflow)) { Object.assign(tooltipStore, { row, -- Gitee