vear:添加返回按钮,唤醒键盘
This commit is contained in:
@@ -227,8 +227,12 @@
|
||||
placeholder-class="inputplaceholder"
|
||||
class="input"
|
||||
@confirm="sendMessage"
|
||||
@click="handleInputClick"
|
||||
@focus="handleInputFocus"
|
||||
:disabled="isTyping"
|
||||
:adjust-position="true"
|
||||
:focus="inputFocused"
|
||||
cursor-spacing="20"
|
||||
placeholder="请输入您想找的岗位信息或就政策信息【比如:设计师、10000-12000、广州】【比如:今年喀什地区高校毕业生有什么就业政策】"
|
||||
v-show="!isVoice"
|
||||
/>
|
||||
@@ -439,6 +443,7 @@ const feebackData = ref(null);
|
||||
// 删除功能相关状态
|
||||
const isSelectMode = ref(false);
|
||||
const selectedMessages = ref([]);
|
||||
const inputFocused = ref(false);
|
||||
// ref for DOM element
|
||||
const voiceBtn = ref(null);
|
||||
const feeback = ref(null);
|
||||
@@ -1357,6 +1362,22 @@ function closeFile() {
|
||||
showfile.value = false;
|
||||
}
|
||||
|
||||
function handleInputClick() {
|
||||
inputFocused.value = false;
|
||||
nextTick(() => {
|
||||
inputFocused.value = true;
|
||||
});
|
||||
console.log('[键盘] 点击输入框,尝试唤起键盘');
|
||||
}
|
||||
|
||||
function handleInputFocus() {
|
||||
console.log('[键盘] 输入框已获得焦点,键盘应已弹出');
|
||||
$api.msg('输入框已激活');
|
||||
nextTick(() => {
|
||||
scrollToBottom();
|
||||
});
|
||||
}
|
||||
|
||||
function copyMarkdown(value) {
|
||||
$api.copyText(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user