Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: xuelongqy/vue-easyrefresh
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.6
Choose a base ref
...
head repository: xuelongqy/vue-easyrefresh
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 9, 2019

  1. scrollTo修改为公共方法

    KnoYo committed Aug 9, 2019
    Copy the full SHA
    20a1663 View commit details
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/components/EasyRefresh/EasyRefresh.vue
10 changes: 6 additions & 4 deletions src/components/EasyRefresh/EasyRefresh.vue
Original file line number Diff line number Diff line change
@@ -202,6 +202,11 @@
return this.content as HTMLElement
}
// 滚动到指定位置
public scrollTo(top: number, animate: boolean) {
this.scroller.scrollTo(0, top, animate, null)
}
// 改变Header状态
private changeHeaderStatus(status: HeaderCallBackStatus) {
if (this.headerStatusChanged) {
@@ -215,10 +220,7 @@
}
}
// 滚动到指定位置
private scrollTo(top: number, animate: boolean) {
this.scroller.scrollTo(0, top, animate, null)
}
// 滚动到指定位置(可越界)
private scrollPublishTo(top: number, animate: boolean) {
this.scroller.scrollPublishTo(0, top, animate)
}