diff --git a/packages/table/src/methods.js b/packages/table/src/methods.js index cc4a74c3a63aefd2a168b0da4ae9a1a01cfc71ef..0574b56975e656e15aeeeb7e7295c6dd37458866 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,