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