Skip to content

Commit

Permalink
wip(x-ios): UniPage 保留 $setPageStyle & $getPageStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuWang committed Sep 29, 2024
1 parent 24069d9 commit 5746483
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/uni-app-plus/src/service/framework/page/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,16 @@ export function setupPage(component: VuePageComponent) {
const pageStyle = uniPage.getPageStyleByJS()
return new UTSJSONObject(pageStyle)
}
uniPage.$getPageStyle = (): UTSJSONObject => {
return uniPage.getPageStyle()
}

uniPage.setPageStyle = (styles: UTSJSONObject) => {
uniPage.setPageStyleByJS(styles)
}
uniPage.$setPageStyle = (styles: UTSJSONObject) => {
uniPage.setPageStyle(styles)
}

uniPage.getAndroidView = () => null
uniPage.getHTMLElement = () => null
Expand Down

0 comments on commit 5746483

Please sign in to comment.