From 55bd127f856869c807b7492edfcd4c36654d2065 Mon Sep 17 00:00:00 2001 From: ZhouWei <1244620067@qq.com> Date: Tue, 14 May 2024 14:19:36 +0800 Subject: [PATCH] fix(FloatButton): type prompt error --- components/float-button/interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/float-button/interface.ts b/components/float-button/interface.ts index 6561910b88..da5b25c2fc 100644 --- a/components/float-button/interface.ts +++ b/components/float-button/interface.ts @@ -20,7 +20,7 @@ export const floatButtonProps = () => { shape: stringType('circle'), tooltip: PropTypes.any, href: String, - target: functionType<() => Window | HTMLElement | null>(), + target: stringType<'_self' | '_blank' | '_parent' | '_top'>(), badge: objectType(), onClick: functionType(), };