表格 分页后滚动条回归顶部
This commit is contained in:
parent
520eb35c59
commit
3e2d1c11f7
|
|
@ -133,6 +133,7 @@
|
|||
this.total = response.total;
|
||||
this.loading = false;
|
||||
}
|
||||
this.$refs.scTable.$el.querySelector('.el-table__body-wrapper').scrollTop = 0
|
||||
},
|
||||
//分页点击
|
||||
reload(){
|
||||
|
|
|
|||
|
|
@ -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
|
||||
})
|
||||
},
|
||||
//分页刷新表格
|
||||
|
|
|
|||
Loading…
Reference in New Issue