fix: fix isShowOverflowTextTooltip function

This commit is contained in:
Rui-Sun 2024-11-19 11:25:15 +08:00
parent 2e29702be5
commit aeef53e02f

View File

@ -203,9 +203,9 @@ export class TooltipHandler {
style: table.theme.tooltipStyle
};
} else if (
(isFunction(table.internalProps.tooltip?.isShowOverflowTextTooltip) &&
table.internalProps.tooltip.isShowOverflowTextTooltip(col, row, table)) ??
table.internalProps.tooltip.isShowOverflowTextTooltip
isFunction(table.internalProps.tooltip?.isShowOverflowTextTooltip)
? table.internalProps.tooltip.isShowOverflowTextTooltip(col, row, table)
: table.internalProps.tooltip.isShowOverflowTextTooltip
) {
const overflowText = table.getCellOverflowText(col, row);
const rect = table.getCellRangeRelativeRect({ col, row });