Merge pull request #12785 from dataease/pr@dev-v2@refactor_table_scroll_suspend

refactor(图表): 表格滚动到底部后停留 1.5 秒再回到顶部 #12677
This commit is contained in:
wisonic-s 2024-10-19 23:00:41 +08:00 committed by GitHub
commit 2c941b7eb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -233,7 +233,10 @@ const mouseLeave = () => {
initScroll()
}
let scrollTimer
const initScroll = () => {
scrollTimer && clearTimeout(scrollTimer)
scrollTimer = setTimeout(() => {
// *toptop<*
const customAttr = actualChart?.customAttr
const senior = actualChart?.senior
@ -279,6 +282,7 @@ const initScroll = () => {
initScroll
)
}
}, 1500)
}
const showPage = computed(() => {