提交 0c14b8e2 编写于 作者: fxy060608's avatar fxy060608

feat(app-plus): backgroundColor=>(background,backgroundColorTop)

上级 a386a78e
...@@ -42,6 +42,16 @@ export function parseWebviewStyle (id, path, routeOptions = {}) { ...@@ -42,6 +42,16 @@ export function parseWebviewStyle (id, path, routeOptions = {}) {
} }
}) })
const backgroundColor = routeOptions.window.backgroundColor
if (backgroundColor) {
if (!webviewStyle.background) {
webviewStyle.background = backgroundColor
}
if (!webviewStyle.backgroundColorTop) {
webviewStyle.backgroundColorTop = backgroundColor
}
}
const titleNView = parseTitleNView(routeOptions) const titleNView = parseTitleNView(routeOptions)
if (titleNView) { if (titleNView) {
if ( if (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册