mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-06 05:58:46 +08:00
8501adbd84
* fix: add displayName * rerun ci * rerun ci
27 lines
722 B
TypeScript
27 lines
722 B
TypeScript
import type * as React from 'react';
|
|
import type { CheckboxProps } from './Checkbox';
|
|
import InternalCheckbox from './Checkbox';
|
|
import Group from './Group';
|
|
|
|
export type { CheckboxChangeEvent, CheckboxProps } from './Checkbox';
|
|
export type { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
|
|
|
type CompoundedComponent = React.ForwardRefExoticComponent<
|
|
CheckboxProps & React.RefAttributes<HTMLInputElement>
|
|
> & {
|
|
Group: typeof Group;
|
|
/** @internal */
|
|
__ANT_CHECKBOX: boolean;
|
|
};
|
|
|
|
const Checkbox = InternalCheckbox as CompoundedComponent;
|
|
|
|
Checkbox.Group = Group;
|
|
Checkbox.__ANT_CHECKBOX = true;
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
Checkbox.displayName = 'Checkbox';
|
|
}
|
|
|
|
export default Checkbox;
|