From 3d4a4002f75c7ac0f64ad440974b88a8fcf2691b Mon Sep 17 00:00:00 2001 From: huyueb <1062887235@qq.com> Date: Thu, 28 Sep 2017 14:29:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=90=88=E8=AE=A1?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/sum.js | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/src/lib/sum.js b/src/lib/sum.js index 7ddaf19..86fbe78 100644 --- a/src/lib/sum.js +++ b/src/lib/sum.js @@ -1,28 +1,25 @@ import React from "react"; -import Table from "../../src"; //创建新列存放 “合计” 字段 -let columns2 = {}; -columns2 = { +let columns2 = { title: "合计", key: "showSum", dataIndex: "showSum" }; -var Sum = Table => { - class SumTable extends React.Component { +let Sum = Table => { + return class SumTable extends React.Component { //无状态 constructor(props) { super(props); } - currentTitle = () => { return