Ionic 3 Refresher startY

Ionic 3 Refresher startY

你能告诉我如何将 startYIonic refresher 一起使用吗?我用过像 below.But 它不起作用?似乎 startYgetter 唯一的方法不是吗?我们不能为 it.Which 设置一个值是 Bad :(

我的用例:

此时可以从屏幕上的任何位置触发下拉刷新。 Ionic 上是否有一个选项,用于触发拉动的手势仅在从屏幕的最上部完成拉动时有效?

<ion-refresher (ionRefresh)="getData($event)" [pullMin]="180" startY="80">
    <ion-refresher-content pullingIcon="arrow-dropdown" pullingText="Pull to refresh" refreshingSpinner="crescent" refreshingText="Refreshing...">
    </ion-refresher-content>
  </ion-refresher>

新:

目前您不能。他们将来会提供此功能。 Set Refresher startY position

旧:

这是用户在页面中开始拉动刷新的Y位置。你可以这样取。

refreshList(refresher) {
  this.myService.getList().then((data) => {
    console.log(refresher.startY);
    refresher.complete();
  });
}

我认为您不能像问题中提到的那样设置一个值。