import * as React from "react"; import { ConfigConsumerProps } from "../Config"; interface IRadioProps { /** * 组件包含的内容 * * @default null **/ children?: React.ReactNode; /** * 自定义组件类名 * * @default '' **/ className?: string; /** * 按钮样式 * * @default false **/ buttonStyle?: boolean; /** * 文字按钮样式 * * @default false **/ fontStyle?: boolean; /** * 内容选框 * * @default 99 **/ contentStyle?: boolean; /** * 选中 * * @default false **/ checked?: boolean; /** * 默认选中 * * @default false **/ defaultChecked?: boolean; /** * 禁用 * * @default false **/ disabled?: boolean; /** * 根据 value 进行比较,判断是否选中 * * @default **/ value?: any; /** * 组的值,用来确定当前选中 * * @default **/ groupValue?: any; /** * name * * @default '' **/ name?: string; /** * 默认前缀 * * @default 'lg' **/ prefixCls?: string; } interface IRadioState { /** * 组件包含的内容 * * @default false **/ isChecked?: boolean; } declare class Radio extends React.PureComponent { static defaultProps: { children: null; className: string; buttonStyle: boolean; fontStyle: boolean; contentStyle: boolean; }; constructor(props: IRadioProps, context: any); componentWillReceiveProps(nextProps: any): void; change: () => void; renderRadio: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Radio;