鸿蒙系统,scroll-view 组件设置:refresher-enabled="true"后,整体页面滑动到最下部后(中间需停顿一下),无法再上滑。
视频见附件
<template>
<scroll-view class="content" scroll-y :refresher-enabled="true" >
<view v-for="(item, index) in ary" :key="index">
{{item 'xxz' index}}
</view>
</scroll-view>
</template>
<script>
export default {
data() {
return {
title: 'Hello',
ary: new Array(60).fill(2),
refresherTriggered: false
}
},
onLoad() {
},
methods: {
refresherrefresh() {
setTimeout(() => {
this.refresherTriggered = false
}, 1000)
},
scrolltolower() {
}
}
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
</style>