From f1384d16a5d267322bb9f766e4cdc2f40889ad5b Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 8 Mar 2022 17:11:39 +0800 Subject: [PATCH] fix: Tooltip arrowPointAtCenter 1px shift bug --- components/tooltip/placements.ts | 2 +- components/tooltip/style/{index.ts => index.tsx} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename components/tooltip/style/{index.ts => index.tsx} (100%) diff --git a/components/tooltip/placements.ts b/components/tooltip/placements.ts index dc90048b8..b89a794e9 100644 --- a/components/tooltip/placements.ts +++ b/components/tooltip/placements.ts @@ -37,7 +37,7 @@ export function getOverflowOptions(autoAdjustOverflow?: boolean | AdjustOverflow export default function getPlacements(config: PlacementsConfig) { const { - arrowWidth = 5, + arrowWidth = 4, horizontalArrowShift = 16, verticalArrowShift = 8, autoAdjustOverflow, diff --git a/components/tooltip/style/index.ts b/components/tooltip/style/index.tsx similarity index 100% rename from components/tooltip/style/index.ts rename to components/tooltip/style/index.tsx