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

feat: getPageStyle、setPageStyle支持backgroundColorContent

上级 63ad82b6
......@@ -142,16 +142,8 @@ export function initPage(vm: ComponentPublicInstance) {
case 'navigationStyle':
pageMeta.navigationBar.style = style[key]
break
case 'disableScroll':
pageMeta.disableScroll = style[key]
break
case 'enablePullDownRefresh':
pageMeta.enablePullDownRefresh = style[key]
break
case 'onReachBottomDistance':
pageMeta.onReachBottomDistance = style[key]
break
default:
pageMeta[key] = style[key]
break
}
}
......@@ -166,6 +158,7 @@ export function initPage(vm: ComponentPublicInstance) {
enablePullDownRefresh: pageMeta.enablePullDownRefresh || false,
onReachBottomDistance:
pageMeta.onReachBottomDistance || ON_REACH_BOTTOM_DISTANCE,
backgroundColorContent: pageMeta.backgroundColorContent,
})
}
currentPagesMap.set(normalizeRouteKey(page.path, page.id), vm)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册