提交 184c81e4 编写于 作者: Q qiang

fix: 调整 app 端 tabBar borderStyle 颜色

上级 82a32e1f
...@@ -395,12 +395,12 @@ module.exports = function (pagesJson, userManifestJson) { ...@@ -395,12 +395,12 @@ module.exports = function (pagesJson, userManifestJson) {
if (pagesJson.tabBar && pagesJson.tabBar.list && pagesJson.tabBar.list.length) { if (pagesJson.tabBar && pagesJson.tabBar.list && pagesJson.tabBar.list.length) {
const tabBar = manifestJson.plus.tabBar = Object.assign({}, pagesJson.tabBar) const tabBar = manifestJson.plus.tabBar = Object.assign({}, pagesJson.tabBar)
const borderStyles = { const borderStyles = {
black: 'rgba(0,0,0,0.8)', black: 'rgba(0,0,0,0.4)',
white: 'rgba(255,255,255,0.8)' white: 'rgba(255,255,255,0.4)'
} }
let borderStyle = tabBar.borderStyle let borderStyle = tabBar.borderStyle
if (!borderStyle) { if (!borderStyle) {
borderStyle = borderStyles.black borderStyle = 'black'
} }
if (borderStyle in borderStyles) { if (borderStyle in borderStyles) {
tabBar.borderStyle = borderStyles[borderStyle] tabBar.borderStyle = borderStyles[borderStyle]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册