Table: Hack for dynamics change columns.

pull/3950/head
Liril 2017-04-01 11:52:45 +08:00 committed by 杨奕
parent 5eef48b97e
commit d233a16821
2 changed files with 3 additions and 1 deletions

View File

@ -198,6 +198,7 @@ TableStore.prototype.mutations = {
states.reserveSelection = column.reserveSelection;
}
this.updateColumns(); // hack for dynamics insert column
this.scheduleLayout();
},
@ -207,6 +208,7 @@ TableStore.prototype.mutations = {
_columns.splice(_columns.indexOf(column), 1);
}
this.updateColumns(); // hack for dynamics remove column
this.scheduleLayout();
},

View File

@ -246,7 +246,7 @@
created() {
this.tableId = 'el-table_' + tableIdSeed + '_';
this.debouncedLayout = debounce(50, true, () => this.doLayout());
this.debouncedLayout = debounce(50, () => this.doLayout());
},
computed: {