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

feat(uni-app-x web): getPageStyle获取的属性内增加默认值

上级 3ad0d0e0
......@@ -160,11 +160,12 @@ export function initPage(vm: ComponentPublicInstance) {
navigationBarBackgroundColor: pageMeta.navigationBar.backgroundColor,
navigationBarTextStyle: pageMeta.navigationBar.titleColor,
navigationBarTitleText: pageMeta.navigationBar.titleText,
titleImage: pageMeta.navigationBar.titleImage,
navigationStyle: pageMeta.navigationBar.style,
disableScroll: pageMeta.disableScroll,
enablePullDownRefresh: pageMeta.enablePullDownRefresh,
onReachBottomDistance: pageMeta.onReachBottomDistance,
titleImage: pageMeta.navigationBar.titleImage || '',
navigationStyle: pageMeta.navigationBar.style || 'default',
disableScroll: pageMeta.disableScroll || false,
enablePullDownRefresh: pageMeta.enablePullDownRefresh || false,
onReachBottomDistance:
pageMeta.onReachBottomDistance || ON_REACH_BOTTOM_DISTANCE,
})
}
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.
先完成此消息的编辑!
想要评论请 注册