|
|
@@ -27,6 +27,7 @@ export default class TableRow extends React.Component {
|
|
|
onExpand: PropTypes.func,
|
|
|
needIndentSpaced: PropTypes.bool,
|
|
|
className: PropTypes.string,
|
|
|
+ rowsStyle: PropTypes.object,
|
|
|
indent: PropTypes.number,
|
|
|
indentSize: PropTypes.number,
|
|
|
expandIconAsCell: PropTypes.bool,
|
|
|
@@ -137,7 +138,7 @@ export default class TableRow extends React.Component {
|
|
|
const {
|
|
|
prefixCls, columns, record, visible, index,
|
|
|
expandIconColumnIndex, expandIconAsCell, expanded, expandRowByClick,
|
|
|
- expandable, onExpand, needIndentSpaced, indent, indentSize,
|
|
|
+ expandable, onExpand, needIndentSpaced, indent, indentSize, rowsStyle
|
|
|
} = this.props;
|
|
|
|
|
|
let { className } = this.props;
|
|
|
@@ -182,6 +183,7 @@ export default class TableRow extends React.Component {
|
|
|
column={columns[i]}
|
|
|
key={columns[i].key}
|
|
|
expandIcon={isColumnHaveExpandIcon ? expandIcon : null}
|
|
|
+ rowStyle={columns[i].rowStyle || rowsStyle || {}}
|
|
|
/>
|
|
|
);
|
|
|
}
|