nvue跟随软件
uni.onKeyboardHeightChange(item => {
// 获取系统信息
let _sysInfo = uni.getSystemInfoSync();
let _heightDiff = _sysInfo.screenHeight - _sysInfo.windowHeight
let _diff = item.height - _heightDiff
// 键盘高度
let height = _diff > 0 ? _diff : 0;
})
标签:nvue,heightDiff,height,跟随,let,diff,软件,sysInfo
From: https://www.cnblogs.com/ooo51o/p/16817576.html