提交 87be17cf 编写于 作者: 雪洛's avatar 雪洛

chore(harmony): 调整代码依赖

上级 4c745056
export {
onKeyboardHeightChange,
offKeyboardHeightChange,
} from '@dcloudio/uni-app-plus/src/service/api/keyboard/keyboard'
import { ON_KEYBOARD_HEIGHT_CHANGE } from '@dcloudio/uni-shared'
import { defineOffApi, defineOnApi } from '@dcloudio/uni-api'
function onKeyboardHeightChangeCallback(res: any) {
UniServiceJSBridge.invokeOnCallback(ON_KEYBOARD_HEIGHT_CHANGE, res)
}
export const onKeyboardHeightChange = defineOnApi<
typeof uni.onKeyboardHeightChange
>(ON_KEYBOARD_HEIGHT_CHANGE, () => {
UniServiceJSBridge.on(
ON_KEYBOARD_HEIGHT_CHANGE,
onKeyboardHeightChangeCallback
)
})
export const offKeyboardHeightChange = defineOffApi<
typeof uni.offKeyboardHeightChange
>(ON_KEYBOARD_HEIGHT_CHANGE, () => {
UniServiceJSBridge.off(
ON_KEYBOARD_HEIGHT_CHANGE,
onKeyboardHeightChangeCallback
)
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册