提交 6a66d752 编写于 作者: fxy060608's avatar fxy060608

fix(app-nvue): onScrollEnd => onScrollend

上级 34b1303b
...@@ -4052,7 +4052,7 @@ function useSwiperListeners(state, props2, swiperItems, trigger) { ...@@ -4052,7 +4052,7 @@ function useSwiperListeners(state, props2, swiperItems, trigger) {
dy: props2.vertical ? -state.swiperHeight * offsetRatio : 0 dy: props2.vertical ? -state.swiperHeight * offsetRatio : 0
}); });
}; };
const onScrollEnd = (event) => { const onScrollend = (event) => {
const end = () => { const end = () => {
trigger("animationfinish", getDetail()); trigger("animationfinish", getDetail());
state.currentChangeSource = "autoplay"; state.currentChangeSource = "autoplay";
...@@ -4085,7 +4085,7 @@ function useSwiperListeners(state, props2, swiperItems, trigger) { ...@@ -4085,7 +4085,7 @@ function useSwiperListeners(state, props2, swiperItems, trigger) {
}); });
const listeners = { const listeners = {
onScroll, onScroll,
onScrollEnd, onScrollend,
onChange onChange
}; };
return listeners; return listeners;
......
...@@ -162,7 +162,7 @@ function useSwiperListeners( ...@@ -162,7 +162,7 @@ function useSwiperListeners(
}) })
} }
const onScrollEnd = (event: CustomEvent) => { const onScrollend = (event: CustomEvent) => {
const end = () => { const end = () => {
trigger('animationfinish', getDetail()) trigger('animationfinish', getDetail())
state.currentChangeSource = 'autoplay' state.currentChangeSource = 'autoplay'
...@@ -206,7 +206,7 @@ function useSwiperListeners( ...@@ -206,7 +206,7 @@ function useSwiperListeners(
const listeners = { const listeners = {
onScroll, onScroll,
onScrollEnd, onScrollend,
onChange, onChange,
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册