mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
481fd209e2
* chore: 🆙 upgrade typescript-eslint * fix some lint * fix: some eslint errors * Update package.json * chore: 🆙 upgrade typescript-eslint * fix some lint * fix: some eslint errors * Update package.json * fix no use before define * Update package.json * fix lint Co-authored-by: yoyo837 <yoyo837@hotmail.com> Co-authored-by: Tom Xu <ycxzhkx@gmail.com>
27 lines
678 B
TypeScript
27 lines
678 B
TypeScript
import * as React from 'react';
|
|
import InternalRadio from './radio';
|
|
import Group from './group';
|
|
import Button from './radioButton';
|
|
import { RadioProps } from './interface';
|
|
|
|
export {
|
|
RadioGroupButtonStyle,
|
|
RadioGroupOptionType,
|
|
RadioGroupProps,
|
|
RadioGroupContextProps,
|
|
RadioProps,
|
|
RadioChangeEventTarget,
|
|
RadioChangeEvent,
|
|
} from './interface';
|
|
interface CompoundedComponent
|
|
extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
|
|
Group: typeof Group;
|
|
Button: typeof Button;
|
|
}
|
|
|
|
const Radio = InternalRadio as CompoundedComponent;
|
|
Radio.Button = Button;
|
|
Radio.Group = Group;
|
|
export { Button, Group };
|
|
export default Radio;
|