/** * @author linhd * @date 2021/8/4 10:20 * @description 单选框 */ import React, { FunctionComponent, ReactNode } from 'react'; import { LabelTooltipProps } from '../Label'; import { TooltipProps } from '../Tooltip'; import './index.scss'; export interface RadioProps { /** 样式class */ className?: string; /** style */ style?: React.CSSProperties; /** 宽度 */ width?: string; /** 标题 */ label?: ReactNode; /** 帮组提示信息 */ labelTooltip?: LabelTooltipProps; /** 大小 */ size?: 'small' | 'medium' | 'large'; /** 默认值 有值不受控组件 初始化第一次 */ defaultChecked?: boolean; /** 默认值 有值受控组件*/ checked?: boolean; /** 禁用 */ disabled?: boolean; /** * 禁用提示 */ disabledTooltip?: TooltipProps; /** inputProps */ inputProps?: { type?: string; value?: any; checked?: any; [name: string]: any; }; /** 改变事件 */ onChange?: (e: any, checked: boolean) => void; [name: string]: any; } export declare const Radio: FunctionComponent; export default Radio;