This commit is contained in:
AllenFang
2019-07-21 16:52:28 +08:00
parent d7e1f1dfd0
commit db22bb9adb
3 changed files with 5 additions and 4 deletions
@@ -18,9 +18,9 @@ const columns = [{
}];
const expandRow = {
renderer: row => (
renderer: (row, rowIndex) => (
<div>
<p>{ `This Expand row is belong to rowKey ${row.id}` }</p>
<p>{ `This Expand row is belong to rowKey ${row.id} and index: ${rowIndex}` }</p>
<p>You can render anything here, also you can add additional data on every row object</p>
<p>expandRow.renderer callback will pass the origin row object to you</p>
</div>