From 4fa0ddd2b41e2626e8d19eaa9422cdd659cf279f Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Fri, 20 Sep 2019 20:49:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E5=B1=85=E4=B8=AD=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/ui/table/DataGrid.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShadowEditor.Web/src/ui/table/DataGrid.jsx b/ShadowEditor.Web/src/ui/table/DataGrid.jsx index 6ecda717..942ec789 100644 --- a/ShadowEditor.Web/src/ui/table/DataGrid.jsx +++ b/ShadowEditor.Web/src/ui/table/DataGrid.jsx @@ -49,10 +49,10 @@ class DataGrid extends React.Component { {columns.map(col => { if (col.type === 'number') { const value = col.renderer ? col.renderer(i + 1, row, col) : (i + 1); - return {value}; + return {value}; } else { const value = col.renderer ? col.renderer(row[col.field]) : row[col.field]; - return {value}; + return {value}; } })} ;