From e4996dc6dde8f301d31a025c5216e82f86e54c9e Mon Sep 17 00:00:00 2001 From: ONLY-yours <1349021570@qq.com> Date: Sun, 29 Oct 2023 13:00:54 +0800 Subject: [PATCH] :sparkles: feat: update arrow api --- src/ActionIcon/ActionIcon.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ActionIcon/ActionIcon.tsx b/src/ActionIcon/ActionIcon.tsx index 7db466df..a27b6ea8 100644 --- a/src/ActionIcon/ActionIcon.tsx +++ b/src/ActionIcon/ActionIcon.tsx @@ -35,10 +35,15 @@ export interface ActionIconProps extends Omit { */ size?: 'default' | 'large' | number; /** - * @description Mouse enter delay of tooltip + * @description 鼠标移入时候的延迟tooltip时间,默认 0.5 * @default 0.5 */ tooltipDelay?: number; + /** + * @description 是否展示小箭头,默认不展示 + * @default false + */ + arrow?: boolean; } const ActionIcon: FC = ({ @@ -48,6 +53,7 @@ const ActionIcon: FC = ({ cursor, onClick, className, + arrow = false, size, tooltipDelay = 0.5, prefixCls: customPrefixCls, @@ -83,7 +89,7 @@ const ActionIcon: FC = ({ Icon ) : (