Skip to content

Commit ce93c8d

Browse files
committed
fix: name warn
1 parent 7321ff2 commit ce93c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Sticky/src/Sticky.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ onMounted(() => {
3232
3333
scrollContainer.value = getScrollContainer(refSticky.value!, true)
3434
useEventListener(scrollContainer, 'scroll', handleScroll)
35-
useEventListener('resize', handleReize)
35+
useEventListener('resize', handleResize)
3636
handleScroll()
3737
})
3838
onActivated(() => {
@@ -103,7 +103,7 @@ const handleScroll = () => {
103103
reset()
104104
}
105105
}
106-
const handleReize = () => {
106+
const handleResize = () => {
107107
if (isSticky.value && refSticky.value) {
108108
width.value = refSticky.value.getBoundingClientRect().width + 'px'
109109
}

0 commit comments

Comments
 (0)