implement default selection (#234)

This commit is contained in:
Allen
2018-03-05 22:27:46 +08:00
committed by GitHub
parent 9382ed587b
commit a5cb806d98
5 changed files with 115 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
* [mode (**required**)](#mode)
## Optional
* [selected](#selected)
* [style](#style)
* [classes)](#classes)
* [bgColor](#bgColor)
@@ -52,6 +53,16 @@ const selectRow = {
/>
```
### <a name='selected'>selectRow.selected - [Array]</a>
`selectRow.selected` allow you have default selections on table.
```js
const selectRow = {
mode: 'checkbox',
selected: [1, 3] // should be a row keys array
};
```
### <a name='style'>selectRow.style - [Object | Function]</a>
`selectRow.style` allow you to have custom style on selected rows: