fix:修改ToolFun文件添加类型
This commit is contained in:
1 parent
4cbb60cbb3
commit
091485d3ec
5 files changed
+14
-14
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user