Commit ce93c8d4 by xingyu

fix: name warn

parent 7321ff21
......@@ -32,7 +32,7 @@ onMounted(() => {
scrollContainer.value = getScrollContainer(refSticky.value!, true)
useEventListener(scrollContainer, 'scroll', handleScroll)
useEventListener('resize', handleReize)
useEventListener('resize', handleResize)
handleScroll()
})
onActivated(() => {
......@@ -103,7 +103,7 @@ const handleScroll = () => {
reset()
}
}
const handleReize = () => {
const handleResize = () => {
if (isSticky.value && refSticky.value) {
width.value = refSticky.value.getBoundingClientRect().width + 'px'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment