Skip to content

Commit

Permalink
fix: somethings no need
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode authored and luckyadam committed Dec 31, 2019
1 parent dbc27c5 commit 0598df6
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/taro-components-qa/src/components/taro-page/index.ux
Original file line number Diff line number Diff line change
Expand Up @@ -99,27 +99,16 @@
},
data () {
const pageInstance = this.$app.pageInstaceMap[this.pagepath]
let showTabBar = false,
enablepulldownrefresh = false,
enablepagescroll = false
let showTabBar = 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 0598df6

Please sign in to comment.