import React, { CSSProperties, FC } from 'react'; /** * 按钮样式类型值 */ declare type ButtonType = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'; declare type ButtonSize = 'large' | 'small'; /** * Button属性 */ interface ButtonProps { /** * 按钮样式类型. 默认:light */ type?: ButtonType; /** * 使用颜色边框而非背景色. 默认:false */ outline?: boolean; /** * 按钮大小 */ size?: ButtonSize; /** * 是否为块级按钮. 默认:false 块级按钮会填充整个块 */ block?: boolean; /** * 是否禁用. 默认:false */ disabled?: boolean; /** * 点击事件 * @param evt */ onClick?: React.MouseEventHandler; /** * 类 */ className?: string; /** * 独立样式属性 */ style?: CSSProperties; } /** * 按钮 * @param props * @constructor */ declare const OtherName: FC; export default OtherName;