@@ -65,7 +65,7 @@ class TableHeader extends Component {
65
65
! this . props . expandColumnBeforeSelectColumn &&
66
66
< ExpandRowHeaderColumn rowCount = { rowCount + 1 } />
67
67
] ) ;
68
- const { sortIndicator, sortList, onSort, reset } = this . props ;
68
+ const { sortIndicator, sortList, onSort, reset, version } = this . props ;
69
69
70
70
React . Children . forEach ( this . props . children , ( elm ) => {
71
71
if ( elm === null || elm === undefined ) {
@@ -81,11 +81,11 @@ class TableHeader extends Component {
81
81
}
82
82
if ( ( rowSpan + rowIndex ) === ( rowCount + 1 ) ) {
83
83
rows [ rowIndex ] . push ( React . cloneElement (
84
- elm , { reset, key : rowKey ++ , onSort, sort, sortIndicator, isOnlyHead : false }
84
+ elm , { reset, key : rowKey ++ , onSort, sort, sortIndicator, isOnlyHead : false , version }
85
85
) ) ;
86
86
} else {
87
87
rows [ rowIndex ] . push ( React . cloneElement (
88
- elm , { key : rowKey ++ , isOnlyHead : true }
88
+ elm , { key : rowKey ++ , isOnlyHead : true , version }
89
89
) ) ;
90
90
}
91
91
} ) ;
@@ -160,7 +160,8 @@ TableHeader.propTypes = {
160
160
reset : PropTypes . bool ,
161
161
expandColumnVisible : PropTypes . bool ,
162
162
expandColumnComponent : PropTypes . func ,
163
- expandColumnBeforeSelectColumn : PropTypes . bool
163
+ expandColumnBeforeSelectColumn : PropTypes . bool ,
164
+ version : PropTypes . string
164
165
} ;
165
166
166
167
export default TableHeader ;
0 commit comments