no message
This commit is contained in:
parent
2363e17cc1
commit
0683f8e510
@ -13,7 +13,7 @@
|
|||||||
<view class="input-area">
|
<view class="input-area">
|
||||||
<textarea v-if="!showVoiceInput" class="text-input" v-model="inputText" placeholder="我来说两句..."
|
<textarea v-if="!showVoiceInput" class="text-input" v-model="inputText" placeholder="我来说两句..."
|
||||||
@confirm="sendTextMessage" @focus="handleInputFocus" @input="handleInput"
|
@confirm="sendTextMessage" @focus="handleInputFocus" @input="handleInput"
|
||||||
:auto-height="true" :show-confirm-bar="false" :hold-keyboard="true"
|
:auto-height="true" :show-confirm-bar="false" :hold-keyboard="true" :cursor-spacing="40"
|
||||||
ref="textareaRef"
|
ref="textareaRef"
|
||||||
/>
|
/>
|
||||||
<input v-else class="voice-input-btn" :class="{ recording: isRecording }" @touchstart="startRecord"
|
<input v-else class="voice-input-btn" :class="{ recording: isRecording }" @touchstart="startRecord"
|
||||||
@ -176,9 +176,9 @@ const sendTextMessage = async () => {
|
|||||||
|
|
||||||
const textToSend = inputText.value;
|
const textToSend = inputText.value;
|
||||||
inputText.value = "";
|
inputText.value = "";
|
||||||
|
|
||||||
await sendMessage("text", textToSend);
|
await sendMessage("text", textToSend);
|
||||||
|
|
||||||
// 发送后保持焦点,不收起键盘
|
// 发送后保持焦点,不收起键盘
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
// 通过设置 focus 属性来保持键盘显示
|
// 通过设置 focus 属性来保持键盘显示
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user