fix cell level performace, remain select all

This commit is contained in:
AllenFang
2018-09-01 12:56:57 +08:00
parent 640ada7659
commit 8c10867b8c
12 changed files with 165 additions and 131 deletions

View File

@@ -4,7 +4,7 @@ import BootstrapTable from 'react-bootstrap-table-next';
import cellEditFactory from 'react-bootstrap-table2-editor';
import { productsGenerator } from 'utils/common';
const products = productsGenerator(5000);
const products = productsGenerator(5);
const columns = [{
dataField: 'id',
@@ -23,7 +23,6 @@ export default () => (
keyField="id"
data={ products }
columns={ columns }
selectRow={ { mode: 'checkbox' } }
cellEdit={ cellEditFactory({
mode: 'click'
}) }