RVCheckbox
基于 react-virtualized 的 大数据量下的多选 checkbox 组件
Development
npm install
npm start
install
Usage
import RVCheckbox from 'rv-checkbox'<RVCheckbox = />
API
props
props | 说明 | 参数类型 | 默认值 |
---|---|---|---|
disabled | 失效状态 | boolean | false |
value | 指定选中的选项 | string[] | number[] | [] |
defaultValue | 默认选中的选项 | string[] | number[] | [] |
options | 指定可选项 | string[] | [] |
onChange | 变化时回调函数 | Function(checkedValue) | - |
filter | 是否过滤 | boolean | Function(filterText, label) | false |
height | 高度 | string | number | - |
width | 宽度 | string | number | - |