提交 42b4b020 编写于 作者: Q qiang

fix(App): tabBar config with nvue

上级 dba4d8b2
......@@ -152,6 +152,7 @@ export default {
})
},
indexOf(page: string) {
const config = this.config
const itemLength = config && config.list && config.list.length
if (itemLength) {
for (let i = 0; i < itemLength; i++) {
......@@ -196,10 +197,14 @@ 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!
......@@ -207,8 +212,9 @@ export default {
},
// tabBar是否遮挡内容区域
get cover() {
const config = this.config
const array = ['extralight', 'light', 'dark']
return array.indexOf(config.blurEffect as string) >= 0
return config && array.indexOf(config.blurEffect as string) >= 0
},
setStyle({ mask }: { mask: string }) {
tabBar.setMask({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册