import { ComponentType } from 'react'; import { CommonEventFunction, FormItemProps, StandardProps } from './common'; export interface CheckboxGroupProps extends StandardProps, FormItemProps { /** * 中选中项发生改变是触发 change 事件 * * detail = {value:[选中的checkbox的value的数组]} * */ onChange?: CommonEventFunction; } declare const CheckboxGroup: ComponentType; export interface CheckboxProps extends StandardProps { /** * 标识,选中时触发的 change 事件,并携带 的 value */ value: string; /** * 是否禁用 */ disabled?: boolean; /** * 当前是否选中,可用来设置默认选中 */ checked?: boolean; /** * checkbox的颜色,同css的color */ color?: string; } declare const Checkbox: ComponentType; export { CheckboxGroup, Checkbox };