Skip to content

Commit

Permalink
暂时移除键盘高度检测代码,测试效果
Browse files Browse the repository at this point in the history
  • Loading branch information
lvzhenbo committed May 19, 2024
1 parent 949cc20 commit 786041e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/components/Editor/CommendTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,22 +200,22 @@
}
};
onMounted(() => {
// 因 Web 端跨域问题导致不可用,暂时不考虑 web 端
if (isPlatform('hybrid')) {
Keyboard.addListener('keyboardWillShow', (info) => {
keyboardHeight.value = info.keyboardHeight + 'px';
});
Keyboard.addListener('keyboardWillHide', () => {
keyboardHeight.value = '0px';
});
}
});
onUnmounted(() => {
if (isPlatform('hybrid')) {
Keyboard.removeAllListeners();
}
});
// onMounted(() => {
// // 因 Web 端跨域问题导致不可用,暂时不考虑 web 端
// if (isPlatform('hybrid')) {
// Keyboard.addListener('keyboardWillShow', (info) => {
// keyboardHeight.value = info.keyboardHeight + 'px';
// });
// Keyboard.addListener('keyboardWillHide', () => {
// keyboardHeight.value = '0px';
// });
// }
// });
// onUnmounted(() => {
// if (isPlatform('hybrid')) {
// Keyboard.removeAllListeners();
// }
// });
</script>

<style scoped>
Expand Down

0 comments on commit 786041e

Please sign in to comment.