表格 分页后滚动条回归顶部

This commit is contained in:
sc 2021-06-22 14:19:16 +08:00
parent 520eb35c59
commit 3e2d1c11f7
2 changed files with 2 additions and 1 deletions

View File

@ -133,6 +133,7 @@
this.total = response.total;
this.loading = false;
}
this.$refs.scTable.$el.querySelector('.el-table__body-wrapper').scrollTop = 0
},
//
reload(){

View File

@ -111,7 +111,7 @@
var setrow = this.tableData.filter(item => item[this.defaultProps.value]===this.defaultValue[this.defaultProps.value] )
this.$refs.table.setCurrentRow(setrow[0]);
}
this.$refs.table.$el.querySelector('.el-table__body-wrapper').scrollTop = 0
})
},
//