diff --git a/packages/uni-app-plus/dist/index.v3.js b/packages/uni-app-plus/dist/index.v3.js index 0bb18dbc6bdc75e3cf2f3e1f3a423dfdc42945f3..61cf65f53280bbf231b54eb8b198d317423d7262 100644 --- a/packages/uni-app-plus/dist/index.v3.js +++ b/packages/uni-app-plus/dist/index.v3.js @@ -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 {