From ccdc64a61bc4d2744f0d717b92ec73c09bb06197 Mon Sep 17 00:00:00 2001 From: huayj Date: Sat, 24 Aug 2019 14:15:12 +0800 Subject: [PATCH] =?UTF-8?q?column=E5=8A=A0=E5=85=A5=E5=B1=9E=E6=80=A7fontC?= =?UTF-8?q?olor=E5=92=8CbgColor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/TableCell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TableCell.js b/src/TableCell.js index e92f8e7..ef4e628 100644 --- a/src/TableCell.js +++ b/src/TableCell.js @@ -72,7 +72,7 @@ class TableCell extends Component{ render() { const { record, indentSize, clsPrefix, indent, index, expandIcon, column ,fixed,showSum, bodyDisplayInRow,lazyStartIndex,lazyEndIndex} = this.props; - const { dataIndex, render, fieldType, linkConfig } = column; + const { dataIndex, render, fieldType, linkConfig, fontColor, bgColor } = column; let {className = ''} = column; let text = objectPath.get(record, dataIndex); @@ -141,7 +141,7 @@ class TableCell extends Component{ className={className} onClick={this.handleClick} title={title} - + style={{color:fontColor,backgroundColor:bgColor}} > {indentText} {expandIcon}