From ce93c8d4e959a835a43410b58f532cc6dac563da Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 31 Oct 2023 14:04:43 +0800 Subject: [PATCH] fix: name warn --- src/components/Sticky/src/Sticky.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Sticky/src/Sticky.vue b/src/components/Sticky/src/Sticky.vue index b958544a..28ecbcb8 100644 --- a/src/components/Sticky/src/Sticky.vue +++ b/src/components/Sticky/src/Sticky.vue @@ -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' }