1.0.6 • Published 4 years ago
react-custom-switch v1.0.6
react-custom-switch
react定制化switch
usage
npm i react-custom-switch -S
import Switch from 'react-custom-switch';
render() {
return (
<Switch {...switchprops} />
)
}
props
dataSource: 传入的配置数组 {label: string, value: string | number} defaultValue: 默认值 onChange: 回调函数 className: 个人定制化样式