fixed a Table bug
This commit is contained in:
parent
9a0757e343
commit
119eeafede
2 changed files with 8 additions and 4 deletions
|
@ -723,9 +723,13 @@
|
|||
watch: {
|
||||
data: {
|
||||
handler () {
|
||||
const oldDataLen = this.rebuildData.length;
|
||||
this.objData = this.makeObjData();
|
||||
this.rebuildData = this.makeDataWithSortAndFilter();
|
||||
this.handleResize();
|
||||
if (!oldDataLen) {
|
||||
this.fixedHeader();
|
||||
}
|
||||
// here will trigger before clickCurrentRow, so use async
|
||||
setTimeout(() => {
|
||||
this.cloneData = deepCopy(this.data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue