mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-28 13:10:03 +00:00
Merge branch 'develop' of https://github.com/react-bootstrap-table/react-bootstrap-table2 into develop
This commit is contained in:
3
packages/react-bootstrap-table2/src/body.js
vendored
3
packages/react-bootstrap-table2/src/body.js
vendored
@@ -17,7 +17,6 @@ class Body extends React.Component {
|
||||
super(props);
|
||||
const {
|
||||
keyField,
|
||||
visibleColumnSize,
|
||||
cellEdit,
|
||||
selectRow,
|
||||
expandRow
|
||||
@@ -34,7 +33,7 @@ class Body extends React.Component {
|
||||
const expandRowEnabled = !!expandRow.renderer;
|
||||
|
||||
if (expandRowEnabled) {
|
||||
RowComponent = withRowExpansion(RowAggregator, visibleColumnSize);
|
||||
RowComponent = withRowExpansion(RowAggregator);
|
||||
}
|
||||
|
||||
if (selectRowEnabled) {
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from 'react';
|
||||
import ExpandRow from './expand-row';
|
||||
import ExpansionContext from '../contexts/row-expand-context';
|
||||
|
||||
export default (Component, visibleColumnSize) => {
|
||||
export default (Component) => {
|
||||
const renderWithExpansion = (props, expandRow) => {
|
||||
const key = props.value;
|
||||
|
||||
@@ -20,7 +20,7 @@ export default (Component, visibleColumnSize) => {
|
||||
/>,
|
||||
expanded ? <ExpandRow
|
||||
key={ `${key}-expanding` }
|
||||
colSpan={ visibleColumnSize }
|
||||
colSpan={ props.visibleColumnSize }
|
||||
>
|
||||
{ expandRow.renderer(props.row) }
|
||||
</ExpandRow> : null
|
||||
|
||||
Reference in New Issue
Block a user