import * as React from 'react'; import { ViewProps } from 'remax/one'; import { Props as SpaceProps } from '../space'; type CheckboxValue = string | number; export interface CheckBoxProps extends ViewProps { /** * 当前是否选中 */ checked?: boolean; /** * 值 * @default value */ value?: CheckboxValue; /** * checkbox内容 * @default label */ children?: React.ReactNode; /** * onchange方法 */ onChange?: (checked: boolean, e?: any, v?: CheckboxValue) => void; /** * 选中时的勾选icon颜色 */ iconColor?: string; /** * 是否是圆型的 */ isRound?: boolean; /** * 选中的类名 */ activeCls?: boolean; /** * 类名 */ className?: string; /** * box的类名 */ boxCls?: string; /** * box选中的类名 */ boxActiveCls?: string; /** * type样式 */ type?: 'normal' | 'button'; /** * disabled * @default false */ disabled?: boolean; } declare const Checkbox: { (props: CheckBoxProps): React.JSX.Element; Group(props: GroupProps): React.JSX.Element; }; export interface GroupProps extends SpaceProps { value?: CheckboxValue[]; children?: React.ReactNode; disabled?: boolean; onChange?: (v?: CheckboxValue[]) => void; } export default Checkbox;