From 51c9673ac81277500503b71b8b40dee8deef76f3 Mon Sep 17 00:00:00 2001 From: qiang Date: Sat, 9 May 2020 18:04:16 +0800 Subject: [PATCH] build app-v3 --- packages/uni-app-plus/dist/index.v3.js | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/packages/uni-app-plus/dist/index.v3.js b/packages/uni-app-plus/dist/index.v3.js index 0bb18dbc..61cf65f5 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 { -- GitLab