diff --git a/pages/component/scroll-view/scroll-view.uvue b/pages/component/scroll-view/scroll-view.uvue index 184be4a0cd1d7b3af7e04454f2d966059650004e..1dfa594613abd7551ec4e0bf9bd93bed199279e3 100644 --- a/pages/component/scroll-view/scroll-view.uvue +++ b/pages/component/scroll-view/scroll-view.uvue @@ -26,7 +26,7 @@ 横向滚动 - + A B C @@ -77,18 +77,21 @@ } }, methods: { - upper: function (e : ScrollToUpperEvent) { + upper: function (e : UniScrollToUpperEvent) { console.log('滚动到顶部/左边',e) this.toUpperTest = e }, - lower: function (e : ScrollToLowerEvent) { + lower: function (e : UniScrollToLowerEvent) { console.log('滚动到底部/右边',e) this.toLowerTest = e }, - scroll: function (e : ScrollEvent) { + scroll: function (e : UniScrollEvent) { this.scrollTest = e this.oldScrollTop = e.detail.scrollTop }, + end: function (e : UniScrollEvent){ + console.log('滚动结束时触发',e) + }, goTop: function () { // 解决view层不同步的问题 this.scrollTop = this.oldScrollTop