diff --git a/pages/template/custom-refresher/custom-refresher.uvue b/pages/template/custom-refresher/custom-refresher.uvue index 3334047912d4e469eb133fd615605d94f817aa39..476aeea1482e0597bd0247c54458d21ffb272640 100644 --- a/pages/template/custom-refresher/custom-refresher.uvue +++ b/pages/template/custom-refresher/custom-refresher.uvue @@ -5,10 +5,8 @@ @refresherrefresh="onRefresherrefresh" :refresher-threshold="refresherThreshold" > - - - item-{{i}} - + + item-{{i}} @@ -23,14 +21,14 @@ refresherTriggered:false, refresherThreshold:40, pullingDistance:0, - resetting: false + resetting: false } }, computed:{ state():number{ - if (this.resetting) { - return 3; - } + if (this.resetting) { + return 3; + } if(this.refresherTriggered){ return 2 } @@ -45,9 +43,9 @@ onRefresherpulling(e:RefresherEvent){ // console.log('onRefresherpulling',e.detail.dy) this.pullingDistance = e.detail.dy - if (this.pullingDistance.toDouble() == 0.0) { - this.resetting = false; - } + if (this.pullingDistance.toDouble() == 0.0) { + this.resetting = false; + } }, onRefresherrefresh(){ this.refresherTriggered = true @@ -66,26 +64,23 @@