fix: 聊天窗口不自动滚动的问题
This commit is contained in:
parent
320dd49a87
commit
be7c6e700b
@ -24,7 +24,7 @@
|
|||||||
<ScrollerY
|
<ScrollerY
|
||||||
ref="scroller"
|
ref="scroller"
|
||||||
class="dialog-scroller overlay-y"
|
class="dialog-scroller overlay-y"
|
||||||
:auto-bottom="autoBottom && !inputFocus"
|
:auto-bottom="autoBottom"
|
||||||
@on-scroll="chatScroll"
|
@on-scroll="chatScroll"
|
||||||
static>
|
static>
|
||||||
<div ref="manageList" class="dialog-list">
|
<div ref="manageList" class="dialog-list">
|
||||||
@ -347,12 +347,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onEventFocus(e) {
|
onEventFocus(e) {
|
||||||
this.inputFocus = true;
|
|
||||||
this.$emit("on-focus", e)
|
this.$emit("on-focus", e)
|
||||||
},
|
},
|
||||||
|
|
||||||
onEventblur(e) {
|
onEventblur(e) {
|
||||||
this.inputFocus = false;
|
|
||||||
this.$emit("on-blur", e)
|
this.$emit("on-blur", e)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user