CN-430 DNS Dashboard添加满屏翻页效果

This commit is contained in:
hyx
2022-04-13 20:34:43 +08:00
parent 3f0181de1e
commit 0bf3534f0d
6 changed files with 68 additions and 13 deletions

View File

@@ -185,7 +185,6 @@ export default {
this.$refs.panelChartList.groupParentCalcHeight(params.chart, params.childrenList)
},
wholeScreenScroll (e) {
return
if (this.scroll.prevent) {
return
}
@@ -206,11 +205,11 @@ export default {
// 向上滚动若top在clientHeight内则滚动到最顶部
this.scroll.prevScrollTop = currentScrollTop
if (currentScrollTop < clientHeight) {
//console.info('up', this.scroll.prevScrollTop, currentScrollTop)
// console.info('up', this.scroll.prevScrollTop, currentScrollTop)
scrollToTop(e.target, 0, 200, 'up')
setTimeout(() => {
this.scroll.prevScrollTop = e.target.scrollTop
//console.info('up2', this.scroll.prevScrollTop, currentScrollTop)
// console.info('up2', this.scroll.prevScrollTop, currentScrollTop)
}, 210)
}
}