Skip to content

Commit

Permalink
fix(x): 创建 tabBar 时候传递当前页面方向,默认为竖屏
Browse files Browse the repository at this point in the history
  • Loading branch information
Otto-J committed Sep 5, 2024
1 parent 1599e86 commit 5079044
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/uni-app-plus/src/x/framework/app/tabBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ function init() {
const list = getTabList()
const style = new Map<string, any | null>()
style.set('navigationStyle', 'custom')
style.set(
'pageOrientation',
__uniConfig.globalStyle?.pageOrientation ?? 'portrait'
)
const page = getPageManager().createPage('tabBar', 'tabBar', style)
const document = page.createDocument(
new NodeData(
Expand Down

0 comments on commit 5079044

Please sign in to comment.