react复选框组件x-checkbox,它依赖于checkbox组件,主要是复选框封装.
npm install --save x-checkbox
render() {
return (
<checkbox name = {checkboxName} value = {value} checked ={true/false} disabled = {true/false} onChange = {function(){}} text = "checkbox text">checkbox text </checkbox>
)
}
checkbox 的名称,name;
checkbox 选中的值
checkbox 是否默认选中
checkbox 是否禁用
checkbox 改变触发的事件
checkbox 显示的文本内容
https://github.com/react-xui/x-checkbox
react xui组件一直在持续更新中,欢迎大家关注https://github.com/react-xui