import { ButtonProps } from 'antd'; import React, { ReactNode } from 'react'; import { SparkIconFontProps } from '../IconFont'; export interface SparkButtonProps extends ButtonProps { /** * @description 按钮大小 * @descriptionEn size of the button * @default 'middle' */ size?: 'small' | 'middle' | 'large'; /** * @description 类型 * @descriptionEn type of the button * @default 'deafult' */ type?: 'primary' | 'dashed' | 'link' | 'text' | 'default' | 'primaryLess' | 'textCompact'; /** * @description hover上去tooltip的内容 * @descriptionEn content of the tooltip */ tooltipContent?: string | ReactNode; /** * @description 百炼图标iconfont的key,依赖ConfigProvider传入的iconfont,例如bl-icon-add * @descriptionEn key of the iconfont, depends on the iconfont of the ConfigProvider, such as bl-icon-add */ iconType?: string; /** * @description 图标大小 * @descriptionEn size of the icon */ iconSize?: SparkIconFontProps['size']; } declare const Button: React.ForwardRefExoticComponent>; export default Button;