UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

29 lines (28 loc) 942 B
/// <reference types="react" /> import React from 'react'; export interface RadioGroupProps { prefixCls?: string; className?: string; /** 选项变化时的回调函数*/ onChange?: React.FormEventHandler<any>; /** 用于设置当前选中的值*/ value?: string | number; /** 默认选中的值*/ defaultValue?: string | number; /** 大小,只对按钮样式生效*/ size?: 'large' | 'default' | 'small'; style?: React.CSSProperties; disabled?: boolean; onMouseEnter?: React.FormEventHandler<any>; onMouseLeave?: React.FormEventHandler<any>; } export default class RadioGroup extends React.Component<RadioGroupProps, any> { static defaultProps: { disabled: boolean; }; constructor(props: any); componentWillReceiveProps(nextProps: any): void; shouldComponentUpdate(...args: any[]): any; onRadioChange: (ev: any) => void; render(): JSX.Element; }