Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/table/src/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -3133,7 +3133,7 @@ const Methods = {
const { showAll, enabled, contentMethod } = tooltipOpts
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 content = useCustom ? customContent : (column.type === 'html' ? overflowElem.innerHTML : overflowElem.textContent).trim()
const isCellOverflow = overflowElem.scrollWidth > overflowElem.clientWidth
if (content && (showAll || enabled || useCustom || isCellOverflow)) {
Object.assign(tooltipStore, {
Expand Down