From 8e4fb0373c7f618da1d0ca80b718f5439b94600d Mon Sep 17 00:00:00 2001 From: jonyshi Date: Tue, 2 Jul 2019 17:09:36 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=8B=96=E6=8B=BDColumn=20=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/TableHeader.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/TableHeader.js b/src/TableHeader.js index a8df4cd..16303d0 100644 --- a/src/TableHeader.js +++ b/src/TableHeader.js @@ -146,10 +146,12 @@ class TableHeader extends Component { this.eventListen(events,'remove',this.table.tr[0]); } - - eventListen(events,type,eventSource){ if(!this.table)return; + if(!eventSource){ + console.log("Please set the attributes of column !"); + return; + } let {tr} = this.table; for (let i = 0; i < events.length; i++) { const _event = events[i];