/** * @file Icon 组建 */ import { FC, DOMAttributes, CSSProperties, MouseEventHandler } from 'react'; /** * 圆角 Icon/Button */ export declare const ButtonIcon: FC<{ /** * font awesome icon */ icon: string; /** * size of the button */ size?: 'small' | 'default'; /** * default 为默认,背景色透明;gray 为背景色浅灰色。 */ type?: 'default' | 'gray'; /** * borderRadius 默认为 4px */ borderRadius?: string; /** * 传入 onClick 时 cursor 会变为 pointer */ onClick?: MouseEventHandler; style?: CSSProperties; className?: string; /** * 有些组件需要子组件接收一些鼠标事件才能正常运行(如 Popover、Dropdown 等) */ onMouseEnter?: MouseEventHandler; onMouseLeave?: MouseEventHandler; /** * 是否禁用 */ disabled?: boolean; } & DOMAttributes>;