提交 51c9673a 编写于 作者: Q qiang

build app-v3

上级 f24ccc2b
......@@ -9182,36 +9182,19 @@ var serviceContext = (function () {
}
}
function setTabBarStyle$2 ({
color,
selectedColor,
backgroundColor,
borderStyle
}) {
function setTabBarStyle$2 (style = {}) {
if (!isTabBarPage()) {
return {
errMsg: 'setTabBarStyle:fail not TabBar page'
}
}
const style = {};
const borderStyles = {
black: 'rgba(0,0,0,0.4)',
white: 'rgba(255,255,255,0.4)'
};
if (color) {
style.color = color;
}
if (selectedColor) {
style.selectedColor = selectedColor;
}
if (backgroundColor) {
style.backgroundColor = backgroundColor;
}
const borderStyle = style.borderStyle;
if (borderStyle in borderStyles) {
borderStyle = borderStyles[borderStyle];
}
if (borderStyle) {
style.borderStyle = borderStyle;
style.borderStyle = borderStyles[borderStyle];
}
tabBar$1.setTabBarStyle(style);
return {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册