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;
|
states.reserveSelection = column.reserveSelection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.updateColumns(); // hack for dynamics insert column
|
||||||
this.scheduleLayout();
|
this.scheduleLayout();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -207,6 +208,7 @@ TableStore.prototype.mutations = {
|
||||||
_columns.splice(_columns.indexOf(column), 1);
|
_columns.splice(_columns.indexOf(column), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.updateColumns(); // hack for dynamics remove column
|
||||||
this.scheduleLayout();
|
this.scheduleLayout();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -246,7 +246,7 @@
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.tableId = 'el-table_' + tableIdSeed + '_';
|
this.tableId = 'el-table_' + tableIdSeed + '_';
|
||||||
this.debouncedLayout = debounce(50, true, () => this.doLayout());
|
this.debouncedLayout = debounce(50, () => this.doLayout());
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Reference in New Issue