mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
21 lines
353 B
JavaScript
21 lines
353 B
JavaScript
var Radio = require('rc-radio');
|
|
var React = require('react');
|
|
|
|
var AntRadio = React.createClass({
|
|
getDefaultProps() {
|
|
return {
|
|
prefixCls: 'ant-radio'
|
|
};
|
|
},
|
|
render() {
|
|
return (
|
|
<label>
|
|
<Radio {...this.props} children={null} />
|
|
{this.props.children}
|
|
</label>
|
|
);
|
|
}
|
|
});
|
|
|
|
module.exports = AntRadio;
|