fix:修改ToolFun文件添加类型

This commit is contained in:
zlong committed 2024-11-18 00:08:22 +08:00
1 parent 4cbb60cbb3
commit 091485d3ec
5 files changed
+14 -14

No files matched your search

-10
View File
@@ -1,10 +0,0 @@
class ToolFun {
static getSafeHeight() {
const systemInfo = uni.getSystemInfoSync()
const safeAreaInsetBottom = systemInfo.safeAreaInsets.bottom + systemInfo.safeAreaInsets.top
const menuButtonInfoHeight = uni.getMenuButtonBoundingClientRect().height + 60
return safeAreaInsetBottom + menuButtonInfoHeight
}
}
export default ToolFun
+10
View File
@@ -0,0 +1,10 @@
class ToolFun {
static getSafeHeight(): number {
const systemInfo: UniApp.GetSystemInfoResult = uni.getSystemInfoSync()
const safeAreaInsetBottom: number = systemInfo.safeAreaInsets.bottom + systemInfo.safeAreaInsets.top
const menuButtonInfoHeight: number = uni.getMenuButtonBoundingClientRect().height + 60
return safeAreaInsetBottom + menuButtonInfoHeight
}
}
export default ToolFun