Commit d233a168 authored by Liril's avatar Liril Committed by 杨奕

Table: Hack for dynamics change columns.

parent 5eef48b9
......@@ -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();
},
......
......@@ -246,7 +246,7 @@
created() {
this.tableId = 'el-table_' + tableIdSeed + '_';
this.debouncedLayout = debounce(50, true, () => this.doLayout());
this.debouncedLayout = debounce(50, () => this.doLayout());
},
computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment