ant-design/components/radio/index.jsx

21 lines
353 B
React
Raw Normal View History

2015-07-16 18:23:25 +08:00
var Radio = require('rc-radio');
var React = require('react');
2015-07-16 22:41:27 +08:00
2015-07-16 18:23:25 +08:00
var AntRadio = React.createClass({
getDefaultProps() {
2015-07-16 22:41:27 +08:00
return {
prefixCls: 'ant-radio'
};
},
render() {
2015-07-17 16:56:40 +08:00
return (
<label>
2015-07-17 17:31:56 +08:00
<Radio {...this.props} children={null} />
2015-07-17 16:56:40 +08:00
{this.props.children}
</label>
);
2015-07-16 18:23:25 +08:00
}
});
2015-07-16 22:41:27 +08:00
2015-07-16 18:23:25 +08:00
module.exports = AntRadio;