mirror of https://github.com/ElemeFE/element
Table: Hack for dynamics change columns.
parent
5eef48b97e
commit
d233a16821
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue