提交 6d2b535d 编写于 作者: Q qiang

chore: build

上级 fef9c847
...@@ -6208,7 +6208,6 @@ var serviceContext = (function () { ...@@ -6208,7 +6208,6 @@ var serviceContext = (function () {
} }
const TABBAR_HEIGHT = 50; const TABBAR_HEIGHT = 50;
const isIOS$1 = plus.os.name === 'iOS';
let config; let config;
/** /**
...@@ -6331,6 +6330,7 @@ var serviceContext = (function () { ...@@ -6331,6 +6330,7 @@ var serviceContext = (function () {
}); });
}, },
indexOf (page) { indexOf (page) {
const config = this.config;
const itemLength = config && config.list && config.list.length; const itemLength = config && config.list && config.list.length;
if (itemLength) { if (itemLength) {
for (let i = 0; i < itemLength; i++) { for (let i = 0; i < itemLength; i++) {
...@@ -6371,16 +6371,21 @@ var serviceContext = (function () { ...@@ -6371,16 +6371,21 @@ var serviceContext = (function () {
} }
}); });
}, },
get config () {
return config || __uniConfig.tabBar
},
get visible () { get visible () {
return visible return visible
}, },
get height () { get height () {
const config = this.config;
return (config && config.height ? parseFloat(config.height) : TABBAR_HEIGHT) + plus.navigator.getSafeAreaInsets().deviceBottom return (config && config.height ? parseFloat(config.height) : TABBAR_HEIGHT) + plus.navigator.getSafeAreaInsets().deviceBottom
}, },
// tabBar是否遮挡内容区域 // tabBar是否遮挡内容区域
get cover () { get cover () {
const config = this.config;
const array = ['extralight', 'light', 'dark']; const array = ['extralight', 'light', 'dark'];
return isIOS$1 && array.indexOf(config.blurEffect) >= 0 return config && array.indexOf(config.blurEffect) >= 0
}, },
setStyle ({ mask }) { setStyle ({ mask }) {
tabBar.setMask({ tabBar.setMask({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册