This commit is contained in:
2026-09-24 16:25:22 +08:00
commit 7428184f01
1198 changed files with 314515 additions and 0 deletions
@@ -0,0 +1,10 @@
type cacelCall = () => void;
export const keyboardHeightChange = (callback : (h : number) => void) : cacelCall => {
const fun = (result) => {
callback(result.height)
}
wx.onKeyboardHeightChange(fun)
return () => {
wx.offKeyboardHeightChange(fun)
}
}