2024-12-01 11:56:54 +00:00
|
|
|
|
import { IBaseProps } from '../_util/base';
|
2024-11-10 07:01:22 +00:00
|
|
|
|
export interface IRadioProps extends IBaseProps {
|
2024-12-01 11:56:54 +00:00
|
|
|
|
/**
|
|
|
|
|
* @description 组件值,选中时 change 事件会携带的 value。
|
|
|
|
|
*/
|
|
|
|
|
value?: string;
|
|
|
|
|
defaultChecked?: boolean;
|
|
|
|
|
/**
|
|
|
|
|
* @description radio 的颜色,同 CSS 色值。
|
|
|
|
|
*/
|
|
|
|
|
color?: string;
|
|
|
|
|
checked?: boolean;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
onChange?: (checked: boolean, e: any) => void;
|
2024-11-10 07:01:22 +00:00
|
|
|
|
}
|
|
|
|
|
export declare const RadioDefaultProps: Partial<IRadioProps>;
|