更新
This commit is contained in:
@ -306,10 +306,7 @@ const createScroll = () => {
|
||||
timer.value = setInterval(() => {
|
||||
tableWrapper.scrollTop += 1;
|
||||
//判断滚动到底部,设置为0(可视高度+距离顶部 = 整个高度)
|
||||
if (
|
||||
tableWrapper.clientHeight + tableWrapper.scrollTop ==
|
||||
tableWrapper.scrollHeight
|
||||
) {
|
||||
if ( tableWrapper.clientHeight + tableWrapper.scrollTop == tableWrapper.scrollHeight) {
|
||||
tableWrapper.scrollTop = 0;
|
||||
}
|
||||
}, 100);
|
||||
|
Reference in New Issue
Block a user