2020-12-28 18:30:05 +08:00
|
|
|
import * as React from 'react';
|
2020-11-20 08:58:14 +08:00
|
|
|
import InternalCheckbox, { CheckboxProps } from './Checkbox';
|
2017-03-13 10:20:25 +08:00
|
|
|
import Group from './Group';
|
2016-06-30 10:05:29 +08:00
|
|
|
|
2018-03-08 20:34:40 +08:00
|
|
|
export { CheckboxProps, CheckboxChangeEvent } from './Checkbox';
|
2017-09-25 22:14:49 +08:00
|
|
|
export { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
|
|
|
|
2020-11-20 08:58:14 +08:00
|
|
|
interface CompoundedComponent
|
|
|
|
extends React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>> {
|
|
|
|
Group: typeof Group;
|
|
|
|
__ANT_CHECKBOX: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Checkbox = InternalCheckbox as CompoundedComponent;
|
|
|
|
|
2017-03-13 10:20:25 +08:00
|
|
|
Checkbox.Group = Group;
|
2020-11-20 08:58:14 +08:00
|
|
|
Checkbox.__ANT_CHECKBOX = true;
|
|
|
|
|
2017-03-13 10:20:25 +08:00
|
|
|
export default Checkbox;
|