Skip to content

Commit

Permalink
fix(App): tabBar config with nvue
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Jun 29, 2022
1 parent 4c632c0 commit f6cc50d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/platforms/app-plus/service/framework/tab-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export default {
})
},
indexOf (page) {
const config = this.config
const itemLength = config && config.list && config.list.length
if (itemLength) {
for (let i = 0; i < itemLength; i++) {
Expand Down Expand Up @@ -170,16 +171,21 @@ export default {
}
})
},
get config () {
return config || __uniConfig.tabBar
},
get visible () {
return visible
},
get height () {
const config = this.config
return (config && config.height ? parseFloat(config.height) : TABBAR_HEIGHT) + plus.navigator.getSafeAreaInsets().deviceBottom
},
// tabBar是否遮挡内容区域
get cover () {
const config = this.config
const array = ['extralight', 'light', 'dark']
return array.indexOf(config.blurEffect) >= 0
return config && array.indexOf(config.blurEffect) >= 0
},
setStyle ({ mask }) {
tabBar.setMask({
Expand Down

0 comments on commit f6cc50d

Please sign in to comment.