2016-09-21 11:54:53 +08:00
|
|
|
import React from 'react';
|
2016-03-21 21:16:38 +08:00
|
|
|
import Radio from './radio';
|
2015-11-06 22:03:09 +08:00
|
|
|
|
2016-08-10 10:26:42 +08:00
|
|
|
export interface RadioButtonProps {
|
|
|
|
value: string | number;
|
|
|
|
style?: React.CSSProperties;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default class RadioButton extends React.Component<RadioButtonProps, any> {
|
2017-03-17 17:54:02 +08:00
|
|
|
static __ANT_RADIO_BUTTON = true;
|
|
|
|
|
2016-03-28 23:21:47 +08:00
|
|
|
static defaultProps = {
|
|
|
|
prefixCls: 'ant-radio-button',
|
2016-07-13 11:14:24 +08:00
|
|
|
};
|
2015-11-06 22:03:09 +08:00
|
|
|
render() {
|
|
|
|
return (
|
2016-03-21 21:16:38 +08:00
|
|
|
<Radio {...this.props} />
|
2015-11-06 22:03:09 +08:00
|
|
|
);
|
|
|
|
}
|
2016-03-28 23:21:47 +08:00
|
|
|
}
|