no message

This commit is contained in:
kuaifan 2022-06-03 18:05:26 +08:00
parent d900355bfd
commit 6eeeb733e2
7 changed files with 19 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
163e5664c310868b
22277e060a04d43c

View File

@ -382,10 +382,10 @@ export default {
if (this.isSpecVersion) {
// ios11.0-11.3 scrollTopscrolIntoViewbug
//
} else {
} else if (!this.$isDesktop) {
this.timerScroll = setInterval(() => {
if (this.quill?.hasFocus()) {
$A.scrollToView(this.$refs.editor, true)
this.$refs.editor.scrollIntoViewIfNeeded();
} else {
clearInterval(this.timerScroll);
}

View File

@ -6,6 +6,7 @@
@drop.prevent="chatPasteDrag($event, 'drag')"
@dragover.prevent="chatDragOver(true, $event)"
@dragleave.prevent="chatDragOver(false, $event)">
<!--顶部导航-->
<slot name="head">
<div class="dialog-nav" :class="{completed:$A.dialogCompleted(dialogData)}">
<div class="dialog-back" @click="onBack">
@ -63,6 +64,8 @@
</ETooltip>
</div>
</slot>
<!--消息列表-->
<DynamicScroller
ref="scroller"
class="dialog-scroller scrollbar-overlay"
@ -105,6 +108,8 @@
</DynamicScrollerItem>
</template>
</DynamicScroller>
<!--底部输入-->
<div class="dialog-footer" :class="{newmsg: msgNew > 0 && allMsgs.length > 0}" @click="onActive">
<div class="dialog-newmsg" @click="onToBottom">{{$L('' + msgNew + '条新消息')}}</div>
<DialogUpload
@ -129,9 +134,8 @@
@on-emoji-visible-change="onEventEmojiVisibleChange"
:placeholder="$L('输入消息...')"/>
</div>
<div v-if="dialogDrag" class="drag-over" @click="dialogDrag=false">
<div class="drag-text">{{$L('拖动到这里发送')}}</div>
</div>
<!--长按右键-->
<div class="operate-position" :style="operateStyles">
<Dropdown
trigger="custom"
@ -179,6 +183,11 @@
</Dropdown>
</div>
<!--拖动提示-->
<div v-if="dialogDrag" class="drag-over" @click="dialogDrag=false">
<div class="drag-text">{{$L('拖动到这里发送')}}</div>
</div>
<!--拖动发送提示-->
<Modal
v-model="pasteShow"