Skip to content

Commit

Permalink
fix: 调整 app 端 tabBar borderStyle 颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Oct 19, 2019
1 parent 82a32e1 commit 184c81e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,12 @@ module.exports = function (pagesJson, userManifestJson) {
if (pagesJson.tabBar && pagesJson.tabBar.list && pagesJson.tabBar.list.length) {
const tabBar = manifestJson.plus.tabBar = Object.assign({}, pagesJson.tabBar)
const borderStyles = {
black: 'rgba(0,0,0,0.8)',
white: 'rgba(255,255,255,0.8)'
black: 'rgba(0,0,0,0.4)',
white: 'rgba(255,255,255,0.4)'
}
let borderStyle = tabBar.borderStyle
if (!borderStyle) {
borderStyle = borderStyles.black
borderStyle = 'black'
}
if (borderStyle in borderStyles) {
tabBar.borderStyle = borderStyles[borderStyle]
Expand Down

0 comments on commit 184c81e

Please sign in to comment.