Skip to content

Commit

Permalink
refactor(x-web): UniPage 移除 safeArea
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuWang committed Jan 7, 2025
1 parent 94b96a2 commit 44cc99e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/uni-h5/src/x/framework/setup/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import type { RouteLocationNormalizedLoadedGeneric } from 'vue-router'
import { isDialogPageInstance } from '../helpers/utils'
import { getWindowInfo } from '../../../service/api/device/getWindowInfo'
import type { SafeArea, SafeAreaInsets } from '@dcloudio/uni-app-x/types/uni'
import type { UniSafeAreaInsets } from '@dcloudio/uni-app-x/types/native/UniSafeAreaInsets'

let escBackPageNum = 0
type PageStyle = {
Expand Down Expand Up @@ -49,10 +49,7 @@ class UniPageImpl implements UniPage {
get innerHeight(): number {
return getWindowInfo().windowHeight
}
get safeArea(): SafeArea {
return getWindowInfo().safeArea
}
get safeAreaInsets(): SafeAreaInsets {
get safeAreaInsets(): UniSafeAreaInsets {
return getWindowInfo().safeAreaInsets
}
getPageStyle(): UTSJSONObject {
Expand Down

0 comments on commit 44cc99e

Please sign in to comment.