|
|
@@ -173,6 +173,7 @@ export default class TableRow extends React.Component {
|
|
|
}
|
|
|
const isColumnHaveExpandIcon = (expandIconAsCell || expandRowByClick)
|
|
|
? false : (i === expandIconColumnIndex);
|
|
|
+ let rowStyle = columns[i].rowStyle;
|
|
|
cells.push(
|
|
|
<TableCell
|
|
|
prefixCls={prefixCls}
|
|
|
@@ -183,7 +184,7 @@ export default class TableRow extends React.Component {
|
|
|
column={columns[i]}
|
|
|
key={columns[i].key}
|
|
|
expandIcon={isColumnHaveExpandIcon ? expandIcon : null}
|
|
|
- rowStyle={columns[i].rowStyle || rowsStyle || {}}
|
|
|
+ rowStyle={(rowStyle && JSON.stringify(rowStyle) !== "{}") ? rowStyle : (rowsStyle || {})}
|
|
|
/>
|
|
|
);
|
|
|
}
|