import { FC } from 'react'; import { RadioGroupProps } from 'antd'; export interface BaseRadioGroupProps extends RadioGroupProps { /** RadioButton 的风格样式 */ buttonStyle?: 'solid'; /** 默认选中的值 */ defaultValue?: any; /** 禁选所有子单选器 */ disabled?: boolean; /** RadioGroup 下所有 input[type="radio"] 的 name 属性 */ name?: string; /** 以配置形式设置子元素 */ options?: string[] | number[] | Array<{ label: string; value: string; disabled?: boolean; }>; /** 用于设置 Radio options 类型 */ optionType?: 'default' | 'button'; /** 用于设置当前选中的值 */ value?: any; /** 选项变化时的回调函数 */ onChange?: (e: { target: { checked: boolean; }; stopPropagation: () => void; preventDefault: () => void; nativeEvent: MouseEvent; }) => void; } export type FRCRadioGroupProps = BaseRadioGroupProps; export declare const FRCRadioGroup: FC; export default FRCRadioGroup;