import React from 'react'; import { Property } from 'csstype'; import { FormItemChildrenNative } from '../form-item'; export interface RadioProps { /** * radio内容 * @default label */ children?: React.ReactNode; /** * 当前是否选中 */ checked?: boolean; /** * radio值 * @default value */ value?: string | number; /** * radio框style */ style?: React.CSSProperties; /** * onchange方法 */ onChange?: (checked: boolean, v?: string | number) => void; /** * 文字颜色 */ color?: string; /** * 默认背景色 */ backgroundColor?: string; /** * 选中的文字颜色 */ activeColor?: string; /** * 选中的背景颜色 */ activeBackgroundColor?: string; /** * type样式 */ type?: 'normal' | 'button'; /** * 类名 */ className?: string; /** * 选择的类名 */ activeCls?: string; /** * disabled * @default false */ disabled?: boolean; /** * dot类名 */ dotCls?: string; /** * native性能优化 */ nativeRef?: React.Ref; } declare const Radio: { (props: RadioProps): React.JSX.Element; Group(props: GroupProps): React.JSX.Element; }; export interface GroupProps { value?: string | number; children?: React.ReactNode; direction?: Property.FlexDirection; onChange?: (v: string | number) => void; style?: React.CSSProperties; className?: string; disabled?: boolean; nativeRef?: React.Ref; } export default Radio;