feat: 键盘弹起在安卓上挡住输入框的问题修复
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
<textarea
|
||||
ref="textareaRef"
|
||||
v-if="!isVoiceMode"
|
||||
:class="['textarea', ios ? 'ios' : 'android']"
|
||||
class="textarea"
|
||||
type="text"
|
||||
cursor-spacing="65"
|
||||
cursor-spacing="20"
|
||||
confirm-type="send"
|
||||
v-model="inputMessage"
|
||||
auto-height
|
||||
@@ -93,11 +93,6 @@ const keyboardHeight = ref(0);
|
||||
const isVoiceMode = ref(false);
|
||||
const visibleWaveBtn = ref(false);
|
||||
|
||||
// 判断当前平台是否为iOS
|
||||
const ios = computed(() => {
|
||||
return uni.getSystemInfoSync().platform === "ios";
|
||||
});
|
||||
|
||||
// 保持和父组件同步
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
|
||||
Reference in New Issue
Block a user