ActionIcon中的ref属性改为可选。

This commit is contained in:
徐涛 2025-03-31 22:33:50 +08:00
parent ddfc2fff15
commit 199bd8c3e5

View File

@ -7,7 +7,7 @@ type ActionIconProps = {
icon: IconProps['icon'];
onClick?: MouseEventHandler<HTMLButtonElement>;
extendClassName?: HTMLButtonElement['className'];
ref: RefObject<HTMLButtonElement>;
ref?: RefObject<HTMLButtonElement>;
};
export function ActionIcon({ icon, onClick, extendClassName, ref }: ActionIconProps) {