拖拽Column 为空报错问题

This commit is contained in:
jonyshi 2019-07-02 17:09:36 +08:00
parent 8aea29060a
commit 8e4fb0373c
1 changed files with 4 additions and 2 deletions

View File

@ -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];