Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,13 @@ export class PageContext {
(pageJson as any).tabBar = (pageJson as any).tabBar || {};
(pageJson as any).tabBar.list = list
}

const { list: __, ...restTabBarProps } = tabBar
Object.keys(restTabBarProps).forEach((key) => {
if (!(key in (pageJson.tabBar as any))) {
(pageJson.tabBar as any)[key] = restTabBarProps[key]
}
})
}

return pageJson
Expand Down