提交 cd1bb170 编写于 作者: shutao-dc's avatar shutao-dc

update custom-refresher.uvue

上级 de3a0618
......@@ -12,19 +12,19 @@
</view>
<refresh-box slot="refresher" :state="state" :pullingDistance="pullingDistance"></refresh-box>
</scroll-view>
</template>
</template>
<script>
import refreshBox from './refresh-box/refresh-box.uvue';
export default {
components:{refreshBox},
data() {
return {
components:{refreshBox},
data() {
return {
refresherTriggered:false,
refresherThreshold:40,
pullingDistance:0,
resetting: false
}
resetting: false
}
},
computed:{
state():number{
......@@ -40,8 +40,8 @@
return 0
}
}
},
methods: {
},
methods: {
onRefresherpulling(e:RefresherEvent){
// console.log('onRefresherpulling',e.detail.dy)
this.pullingDistance = e.detail.dy
......@@ -50,6 +50,7 @@
this.refresherTriggered = true
setTimeout(()=>{
this.refresherTriggered = false
this.resetting = true
},1500)
},
onRefreshrestore() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册