mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
854cdb4352
* type: optimize CompoundedComponent type * chore: fix * type: fix type * chore: fix * type: fix type * type: add ts-ignore * fix: fix * chore: revert
29 lines
618 B
TypeScript
29 lines
618 B
TypeScript
import Group from './group';
|
|
import InternalRadio from './radio';
|
|
import Button from './radioButton';
|
|
|
|
export {
|
|
RadioChangeEvent,
|
|
RadioChangeEventTarget,
|
|
RadioGroupButtonStyle,
|
|
RadioGroupContextProps,
|
|
RadioGroupOptionType,
|
|
RadioGroupProps,
|
|
RadioProps,
|
|
RadioRef,
|
|
} from './interface';
|
|
export { Button, Group };
|
|
|
|
type CompoundedComponent = typeof InternalRadio & {
|
|
Group: typeof Group;
|
|
Button: typeof Button;
|
|
/** @internal */
|
|
__ANT_RADIO: boolean;
|
|
};
|
|
|
|
const Radio = InternalRadio as CompoundedComponent;
|
|
Radio.Button = Button;
|
|
Radio.Group = Group;
|
|
Radio.__ANT_RADIO = true;
|
|
export default Radio;
|