From aeef53e02fb124b0238c5c080d9b6e39cfa921a2 Mon Sep 17 00:00:00 2001 From: Rui-Sun Date: Tue, 19 Nov 2024 11:25:15 +0800 Subject: [PATCH] fix: fix isShowOverflowTextTooltip function --- packages/vtable/src/components/tooltip/TooltipHandler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vtable/src/components/tooltip/TooltipHandler.ts b/packages/vtable/src/components/tooltip/TooltipHandler.ts index 00f50b2b1..e3185960a 100644 --- a/packages/vtable/src/components/tooltip/TooltipHandler.ts +++ b/packages/vtable/src/components/tooltip/TooltipHandler.ts @@ -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 });