应用广场 滚动
This commit is contained in:
parent
e026c97a73
commit
cdc3b9c215
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-08-09 09:31:25
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-08-09 16:53:01
|
||||
* @LastEditTime: 2022-08-09 18:07:59
|
||||
* @Description: 应用资源
|
||||
-->
|
||||
<template>
|
||||
|
@ -109,7 +109,10 @@
|
|||
const scrollTop = dom.scrollTop
|
||||
const scrollHeight = dom.scrollHeight
|
||||
// console.log('滚动条滚动', clientHeight, scrollTop, scrollHeight, dom)
|
||||
if (clientHeight + scrollTop === scrollHeight) {
|
||||
if (
|
||||
clientHeight + scrollTop <= scrollHeight + 1 &&
|
||||
clientHeight + scrollTop >= scrollHeight - 1
|
||||
) {
|
||||
console.log('竖向滚动条已经滚动到底部')
|
||||
if (flag.value) {
|
||||
flag.value = false
|
||||
|
|
Loading…
Reference in New Issue