mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 03:54:28 +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;
|