提交 1c20c040 编写于 作者: DCloud-yyl's avatar DCloud-yyl

修复滚动折叠导航栏在scroll-view下拉时出现闪烁背景的问题

上级 e88d27dc
......@@ -24,7 +24,7 @@
},
methods: {
onScroll(e : ScrollEvent) {
(this.$refs['header'] as ComponentPublicInstance).$data['scrollTop'] = e.detail.scrollTop
(this.$refs['header'] as ComponentPublicInstance).$data['scrollTop'] = (e.detail.scrollTop<0?0:e.detail.scrollTop)
},
back() {
// uni.navigateBack() // 这么写用不了
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册