提交 d741531a 编写于 作者: Q qiang

fix: 修正 tabBar borderStyle 颜色

上级 976b13f8
......@@ -394,7 +394,17 @@ module.exports = function (pagesJson, userManifestJson) {
// 带 tab
if (pagesJson.tabBar && pagesJson.tabBar.list && pagesJson.tabBar.list.length) {
const tabBar = manifestJson.plus.tabBar = Object.assign({}, pagesJson.tabBar)
tabBar.borderStyle = tabBar.borderStyle === 'white' ? '#ffffff' : '#c6c6c6'
const borderStyles = {
black: 'rgba(0,0,0,0.8)',
white: 'rgba(255,255,255,0.8)'
}
let borderStyle = tabBar.borderStyle
if (!borderStyle) {
borderStyle = borderStyles.black
}
if (borderStyle in borderStyles) {
tabBar.borderStyle = borderStyles[borderStyle]
}
tabBar.height = `${parseFloat(tabBar.height) || TABBAR_HEIGHT}px`
// 非纯 nvue 项目首页为 nvue 页面
if (!process.env.UNI_USING_NATIVE && isNVueEntryPage) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册