取消分页滚动顶部效果

ywj_dev
曹晨晨 2 years ago
parent 1e5f232337
commit 86fab2bb90

@ -96,7 +96,8 @@ export default {
handleCurrentChange(val) {
this.$emit('pagination', { page: val, limit: this.pageSize })
if (this.autoScroll) {
scrollTo(0, 800)
//
// scrollTo(0, 800)
}
}
}

@ -0,0 +1,9 @@
export function DefaultCheck (line,dataList){
this.$nextTick(() => {
if (line === null) {
this.$refs.refDom.setCurrentRow(dataList[0]);
} else {
this.$refs.refDom.setCurrentRow(line,true);
}
});
}
Loading…
Cancel
Save