fix:修改ToolFun文件添加类型
This commit is contained in:
1 parent
4cbb60cbb3
commit
091485d3ec
4 files changed
+13
-13
No files matched your search
Vendored
+2
-2
@@ -293,7 +293,7 @@ declare global {
|
||||
const useWindowFocus: typeof import('@vueuse/core')['useWindowFocus']
|
||||
const useWindowScroll: typeof import('@vueuse/core')['useWindowScroll']
|
||||
const useWindowSize: typeof import('@vueuse/core')['useWindowSize']
|
||||
const utils: typeof import('./utils/index.js')['default']
|
||||
const utils: typeof import('./utils/index')['default']
|
||||
const watch: typeof import('vue')['watch']
|
||||
const watchArray: typeof import('@vueuse/core')['watchArray']
|
||||
const watchAtMost: typeof import('@vueuse/core')['watchAtMost']
|
||||
@@ -609,7 +609,7 @@ declare module 'vue' {
|
||||
readonly useWindowFocus: UnwrapRef<typeof import('@vueuse/core')['useWindowFocus']>
|
||||
readonly useWindowScroll: UnwrapRef<typeof import('@vueuse/core')['useWindowScroll']>
|
||||
readonly useWindowSize: UnwrapRef<typeof import('@vueuse/core')['useWindowSize']>
|
||||
readonly utils: UnwrapRef<typeof import('./utils/index.js')['default']>
|
||||
readonly utils: UnwrapRef<typeof import('./utils/index')['default']>
|
||||
readonly watch: UnwrapRef<typeof import('vue')['watch']>
|
||||
readonly watchArray: UnwrapRef<typeof import('@vueuse/core')['watchArray']>
|
||||
readonly watchAtMost: UnwrapRef<typeof import('@vueuse/core')['watchAtMost']>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import bg from '@/static/image/feed-plan/bg.png'
|
||||
import circle from '@/static/image/feed-plan/circle.png'
|
||||
import message from '@/static/image/feed-plan/message.png'
|
||||
import ToolFun from '@/utils'
|
||||
import ToolFun from '@/utils/index'
|
||||
|
||||
interface ListItem {
|
||||
img: string
|
||||
|
||||
@@ -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