This commit is contained in:
AllenFang
2018-12-20 23:20:12 +08:00
parent 9d2a6a1b23
commit bc4697bf95
3 changed files with 9 additions and 5 deletions
@@ -1,4 +1,5 @@
/* eslint react/prop-types: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import BootstrapTable from 'react-bootstrap-table-next';
@@ -33,7 +34,7 @@ const expandRow = {
}
return <b>+</b>;
},
expandColumnRenderer: ({ expanded }) => {
expandColumnRenderer: ({ expanded, rowKey }) => {
if (expanded) {
return (
<b>-</b>