mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 23:29:30 +08:00
4f7ac9f6bc
* fix: tooltip cannot close on disabled Radio * test: add test
29 lines
738 B
TypeScript
29 lines
738 B
TypeScript
import type * as React from 'react';
|
|
import Group from './group';
|
|
import type { RadioProps } from './interface';
|
|
import InternalRadio from './radio';
|
|
import Button from './radioButton';
|
|
|
|
export {
|
|
RadioChangeEvent,
|
|
RadioChangeEventTarget,
|
|
RadioGroupButtonStyle,
|
|
RadioGroupContextProps,
|
|
RadioGroupOptionType,
|
|
RadioGroupProps,
|
|
RadioProps,
|
|
} from './interface';
|
|
export { Button, Group };
|
|
interface CompoundedComponent
|
|
extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
|
|
Group: typeof Group;
|
|
Button: typeof Button;
|
|
__ANT_RADIO: boolean;
|
|
}
|
|
|
|
const Radio = InternalRadio as CompoundedComponent;
|
|
Radio.Button = Button;
|
|
Radio.Group = Group;
|
|
Radio.__ANT_RADIO = true;
|
|
export default Radio;
|