提交 e0c13bba 编写于 作者: 雪洛's avatar 雪洛

fix: 修复纯nvue模式下获取windowHeight不正确的BUG

上级 f1940982
......@@ -15,13 +15,32 @@ export function parseTitleNView (routeOptions) {
)
) {
return false
}
const titleImage = windowOptions.titleImage || ''
const transparentTitle = windowOptions.transparentTitle || 'none'
const titleNViewTypeList = {
'none': 'default',
'auto': 'transparent',
'always': 'float'
}
const ret = {
autoBackButton: !routeOptions.meta.isQuit,
backgroundColor: windowOptions.navigationBarBackgroundColor || '#000000',
titleText: windowOptions.navigationBarTitleText || '',
titleColor: windowOptions.navigationBarTextStyle === 'black' ? '#000000' : '#ffffff'
titleText: titleImage === '' ? windowOptions.navigationBarTitleText || '' : '',
titleColor: windowOptions.navigationBarTextStyle === 'black' ? '#000000' : '#ffffff',
type: titleNViewTypeList[transparentTitle],
backgroundColor: transparentTitle !== 'always' ? windowOptions.navigationBarBackgroundColor || '#000000' : 'rgba(0,0,0,0)',
tags: titleImage === '' ? [] : [{
'tag': 'img',
'src': titleImage,
'position': {
'left': 'auto',
'top': 'auto',
'width': 'auto',
'height': '26px'
}
}]
}
routeOptions.meta.statusBarStyle = windowOptions.navigationBarTextStyle === 'black' ? 'dark' : 'light'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册