Browse Source

修复@相关的部分bug

master
xsx 11 months ago
parent
commit
aa073611f2
  1. 4
      im-web/src/components/chat/ChatAtBox.vue
  2. 4
      im-web/src/components/chat/ChatGroupMember.vue
  3. 3
      im-web/src/components/chat/ChatInput.vue

4
im-web/src/components/chat/ChatAtBox.vue

@ -88,13 +88,13 @@ export default {
this.close();
},
scrollToActive() {
if (this.activeIdx * 35 - this.$refs.scrollBox.wrap.clientHeight > this.$refs.scrollBox.wrap.scrollTop) {
if (this.activeIdx * 40 - this.$refs.scrollBox.wrap.clientHeight > this.$refs.scrollBox.wrap.scrollTop) {
this.$refs.scrollBox.wrap.scrollTop += 140;
if (this.$refs.scrollBox.wrap.scrollTop > this.$refs.scrollBox.wrap.scrollHeight) {
this.$refs.scrollBox.wrap.scrollTop = this.$refs.scrollBox.wrap.scrollHeight
}
}
if (this.activeIdx * 35 < this.$refs.scrollBox.wrap.scrollTop) {
if (this.activeIdx * 40 < this.$refs.scrollBox.wrap.scrollTop) {
this.$refs.scrollBox.wrap.scrollTop -= 140;
if (this.$refs.scrollBox.wrap.scrollTop < 0) {
this.$refs.scrollBox.wrap.scrollTop = 0;

4
im-web/src/components/chat/ChatGroupMember.vue

@ -48,6 +48,10 @@ export default {
white-space: nowrap;
box-sizing: border-box;
&.active {
background: #E1EAF7;
}
.member-name {
padding-left: 10px;
height: 100%;

3
im-web/src/components/chat/ChatInput.vue

@ -238,8 +238,9 @@ export default {
},
onBlur(e) {
if(!this.atIng){
this.updateRange();
}
},
onMousedown() {
if (this.atIng) {

Loading…
Cancel
Save