Skip to content

Commit

Permalink
fix(quickapp): pull-down-refresh page-scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode authored and luckyadam committed Dec 26, 2019
1 parent d7b61b4 commit a888c20
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/taro-components-qa/src/components/taro-page/index.ux
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,28 @@
}
},
data () {
let showTabBar = false
const pageInstance = this.$app.pageInstaceMap[this.pagepath]
let showTabBar = false,
enablepulldownrefresh = false,
enablepagescroll = false
if (this.tabbar && this.tabbar.list.length) {
this.tabbar.list.forEach(item => {
if (addLeadingSlash(item.pagePath) === addLeadingSlash(this.pagepath)) {
showTabBar = true
}
})
}
if (pageInstance) {
if (pageInstance.onPullDownRefresh) {
onPullDownRefresh = true
} else if (pageInstance.onPageScroll || pageInstance.onReachBottom) {
enablepagescroll = true
}
}
return {
showTabBar,
enablepulldownrefresh,
enablepagescroll,
isPageRefreshing: false,
tabBarData: {}
}
Expand Down

0 comments on commit a888c20

Please sign in to comment.