From 9cb8deecd579ad0217fda77ed03074f8011307a9 Mon Sep 17 00:00:00 2001 From: Zhou Hua Date: Thu, 23 Jan 2025 13:57:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20tooltip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Item.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Item.tsx b/src/components/Item.tsx index ede5665..2c88c77 100644 --- a/src/components/Item.tsx +++ b/src/components/Item.tsx @@ -93,7 +93,10 @@ const Item = forwardRef(({ useEffect(() => { if (itemRef.current) { // eslint-disable-next-line @typescript-eslint/consistent-type-assertions - setTooltip(itemRef.current, action.desc || action.name as string); + setTooltip(itemRef.current, action.desc || action.name as string, { + placement: 'top', + delay: 50, + }); } }, [itemRef.current, action]); return (