提交 1c72eb11 编写于 作者: Q qiang

feat: mp-weixin getSystemInfo safeAreaInsets

上级 e6e5427e
import previewImage from '../../helpers/normalize-preview-image'
function addSafeAreaInsets (result) {
if (result.safeArea) {
const safeArea = result.safeArea
result.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: result.windowWidth - safeArea.right,
bottom: result.windowHeight - safeArea.bottom
}
}
}
export const protocols = {
previewImage
previewImage,
getSystemInfo: {
returnValue: addSafeAreaInsets
},
getSystemInfoSync: {
returnValue: addSafeAreaInsets
}
}
export const todos = [
'vibrate'
export const todos = [
'vibrate'
]
export const canIUses = []
export const canIUses = []
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册