From 6a66d752b8f624d4715b4d2a5087b8cf19164c52 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 24 Feb 2022 14:53:36 +0800 Subject: [PATCH] fix(app-nvue): onScrollEnd => onScrollend --- packages/uni-components/dist/components.js | 4 ++-- packages/uni-components/src/nvue/swiper/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/uni-components/dist/components.js b/packages/uni-components/dist/components.js index de3be09713..ce4c1af40a 100644 --- a/packages/uni-components/dist/components.js +++ b/packages/uni-components/dist/components.js @@ -4052,7 +4052,7 @@ function useSwiperListeners(state, props2, swiperItems, trigger) { dy: props2.vertical ? -state.swiperHeight * offsetRatio : 0 }); }; - const onScrollEnd = (event) => { + const onScrollend = (event) => { const end = () => { trigger("animationfinish", getDetail()); state.currentChangeSource = "autoplay"; @@ -4085,7 +4085,7 @@ function useSwiperListeners(state, props2, swiperItems, trigger) { }); const listeners = { onScroll, - onScrollEnd, + onScrollend, onChange }; return listeners; diff --git a/packages/uni-components/src/nvue/swiper/index.tsx b/packages/uni-components/src/nvue/swiper/index.tsx index 3709ddde45..1d97b5f4aa 100644 --- a/packages/uni-components/src/nvue/swiper/index.tsx +++ b/packages/uni-components/src/nvue/swiper/index.tsx @@ -162,7 +162,7 @@ function useSwiperListeners( }) } - const onScrollEnd = (event: CustomEvent) => { + const onScrollend = (event: CustomEvent) => { const end = () => { trigger('animationfinish', getDetail()) state.currentChangeSource = 'autoplay' @@ -206,7 +206,7 @@ function useSwiperListeners( const listeners = { onScroll, - onScrollEnd, + onScrollend, onChange, } -- GitLab