Fix(AI):[#3647]点击输入框,对话记录同步上移
This commit is contained in:
@@ -3,9 +3,6 @@
|
||||
:class="{
|
||||
'focus': inputOnFocus
|
||||
}"
|
||||
:style="{
|
||||
'transform': 'translateY(-' + (keyboardHeight + 'px') + ')'
|
||||
}"
|
||||
class="fix-page-bottom"
|
||||
>
|
||||
<view v-if="inputModel === 'input'" class="bottom-body flex-center-between">
|
||||
@@ -29,7 +26,7 @@
|
||||
<input
|
||||
v-model.trim="prompt"
|
||||
:show-confirm-bar="false"
|
||||
:adjust-position="false"
|
||||
:adjust-position="true"
|
||||
:disabled="loading"
|
||||
:maxlength="-1"
|
||||
class="inp"
|
||||
@@ -148,16 +145,14 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
promptInputFocusHandle() {
|
||||
this.$emit('focus', 1)
|
||||
setTimeout(() => {
|
||||
this.inputOnFocus = true
|
||||
this.$emit('focus', 1)
|
||||
}, 200)
|
||||
}, 100)
|
||||
},
|
||||
promptInputBlurHandle() {
|
||||
setTimeout(() => {
|
||||
this.inputOnFocus = false
|
||||
this.$emit('focus', 0)
|
||||
}, 200)
|
||||
this.$emit('focus', 0)
|
||||
this.inputOnFocus = false
|
||||
},
|
||||
toggleInputModel() {
|
||||
if (!this.token) {
|
||||
|
||||
Reference in New Issue
Block a user