Vue Scroller is a foundational component of Vonic UI. In purpose of smooth scrolling, pull to refresh and infinite loading.
For vue 1.0, please refer to branch v1.
<div id="app">
<scroller
:on-refresh="refresh"
:on-infinite="infinite"
ref="my_scroller">
<!-- content goes here -->
</scroller>
</div>
https://github.com/wangdahoo/vue-scroller-demo
resize()
resize scroller contenttriggerPullToRefresh()
start pull-to-refresh manuallyfinishPullToRefresh()
stop pull-to-refreshfinishInfinite(isNoMoreData :Boolean)
stop infinite-loadingscrollTo(x:Integer, y:Integer, animate:Boolean)
scroll to a position in scroller contentscrollBy(x:Integer, y:Integer, animate:Boolean)
scroll by a position in scroller contentgetPosition :Object
get current position of scroller content