mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
16 lines
267 B
JavaScript
16 lines
267 B
JavaScript
var Switch = require('rc-switch');
|
|
var React = require('react');
|
|
|
|
var AntSwitch = React.createClass({
|
|
getDefaultProps() {
|
|
return {
|
|
prefixCls: 'ant-switch'
|
|
};
|
|
},
|
|
render() {
|
|
return <Switch {...this.props}/>;
|
|
}
|
|
});
|
|
|
|
module.exports = AntSwitch;
|