import React from 'react'; export interface Props { /** * 是否选中 */ checked?: boolean; /** * 是否为部分选择状态 */ indeterminate?: boolean; /** * 是否不可用 */ disabled?: boolean; /** * 是否只读 */ readOnly?: boolean; /** * 名称 */ name?: string; /** * 复选框的值 */ value?: string; /** * 复选框发生状态变化时调用的回调函数 */ onChange?: (checked: boolean) => void; /** * 添加自定义类名 */ className?: string; /** * tab键索引 */ tabIndex?: number; /** * 引用input元素 */ inputRef?: React.RefObject | ((dom: HTMLInputElement) => void); /** * 给input元素应用上新的属性 */ inputProps?: React.DetailedHTMLProps, HTMLInputElement>; /** * 给input元素应用上样式类 */ inputClassName?: string; /** * 点击时的回调函数 */ onClick?: (event: React.MouseEvent) => void; /** * 指定颜色 */ color?: string; /** * true 表示是密集模式 */ dense?: boolean; } /** * 复选框按钮 */ export default function BaseCheckboxButton(props: Props): JSX.Element;