2 Commity 1f02b2e26f ... fc30ac6d3d

Autor SHA1 Wiadomość Data
  sa03 fc30ac6d3d 处理ios系统下窗体闪烁的bug 5 lat temu
  sa03 effc7c821a 处理ios系统下窗体闪烁的bug 5 lat temu
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      _src/components/chatMini/chatMini.vue

+ 7 - 0
_src/components/chatMini/chatMini.vue

@@ -247,6 +247,10 @@ export default {
     inputMsg (val, newval) {
       let ele = this.$refs.chatInput
       this.inputHeight = 'auto'
+
+      // 处理ios系统下窗体闪烁的bug
+      this.$refs.scrollWrap.style.overflowY = 'hidden'
+
       this.$nextTick(() => {
         this.inputHeight = Math.max(18, Math.min(ele.scrollHeight, 75)) + 'px'
       })
@@ -707,6 +711,9 @@ export default {
       return false
     },
     handleBlur () {
+      // 处理ios系统下窗体闪烁的bug
+      this.$refs.scrollWrap.style.overflowY = 'scroll'
+
       this.updateChatInputFocus(false)
     },
     placeEnd (el) {