1.0.5 • Published 8 years ago
lujing-fe-react-allcheckbox v1.0.5
基于antd 开发的全选组件
在最新版本原生已经支持 出师未捷身先死...大家还是用原生的把
用法 可以通过这样的方式去 包含在from表单中获取
<Form.Item {...tableItemLayout} label="账单状态">
{getFieldDecorator('orderStatus', { initialValue: this.state.checkBoxVal })(
<AllCheckBox
list={this.state.checkBoxList} // 传入的数组比如[1,2,3,4]
isAll={true} // 是否全选
/>,
)}
</Form.Item>