Skip to content

Commit

Permalink
✨ feat: update arrow api
Browse files Browse the repository at this point in the history
  • Loading branch information
ONLY-yours committed Oct 29, 2023
1 parent 1e19f1d commit e4996dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ActionIcon/ActionIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ export interface ActionIconProps extends Omit<ButtonProps, 'title' | 'size'> {
*/
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<ActionIconProps> = ({
Expand All @@ -48,6 +53,7 @@ const ActionIcon: FC<ActionIconProps> = ({
cursor,
onClick,
className,
arrow = false,
size,
tooltipDelay = 0.5,
prefixCls: customPrefixCls,
Expand Down Expand Up @@ -83,7 +89,7 @@ const ActionIcon: FC<ActionIconProps> = ({
Icon
) : (
<Tooltip
arrow={false}
arrow={arrow}
overlayClassName={styles.tooltip}
title={title}
mouseEnterDelay={tooltipDelay}
Expand Down

0 comments on commit e4996dc

Please sign in to comment.