import React, { CSSProperties } from 'react'; export interface ProIconProps { /** * @description 图标的名称 * @default - */ type: string; /** * @description 图标的大小,同时设置图标的width以及height * @default 14 */ size?: number; /** * @description 图标旋转角度(IE9 无效) * * @default - */ rotate?: number; /** * @description 图标是否旋转loading * * @default false */ spin?: boolean; /** * @description 图标的颜色,svg的fill属性 * * @default - */ color?: string; /** * @description 禁用 * @default false */ disabled?: boolean; /** * @description 是否跟随主题色 * @default false */ theme?: boolean; /** * @description 图标的点击事件 * @default ()=>{} */ onClick?: React.MouseEventHandler; /** * @description 图标的className * @default - */ className?: string; /** * @description 计算后的 svg 元素样式,style的优先级高过size/color/rotate属性 * @default - */ style?: CSSProperties; }