first
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
export function usePageScroll() {
|
||||
const scrollTop = ref(0)
|
||||
onPageScroll((e) => {
|
||||
scrollTop.value = e.scrollTop
|
||||
})
|
||||
|
||||
return {
|
||||
scrollTop
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user