mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
no message
This commit is contained in:
parent
b00c6a9268
commit
45e663fcf8
@ -79,7 +79,7 @@ export default {
|
|||||||
const eventRect = data.event.target.getBoundingClientRect();
|
const eventRect = data.event.target.getBoundingClientRect();
|
||||||
this.styles = {
|
this.styles = {
|
||||||
left: `${eventRect.left}px`,
|
left: `${eventRect.left}px`,
|
||||||
top: `${eventRect.top}px`,
|
top: `${eventRect.top + this.windowScrollY}px`,
|
||||||
width: `${eventRect.width}px`,
|
width: `${eventRect.width}px`,
|
||||||
height: `${eventRect.height}px`,
|
height: `${eventRect.height}px`,
|
||||||
}
|
}
|
||||||
@ -109,7 +109,7 @@ export default {
|
|||||||
const eventRect = this.menuTarget.getBoundingClientRect();
|
const eventRect = this.menuTarget.getBoundingClientRect();
|
||||||
this.styles = {
|
this.styles = {
|
||||||
left: `${eventRect.left}px`,
|
left: `${eventRect.left}px`,
|
||||||
top: `${eventRect.top}px`,
|
top: `${eventRect.top + this.windowScrollY}px`,
|
||||||
width: `${eventRect.width}px`,
|
width: `${eventRect.width}px`,
|
||||||
height: `${eventRect.height}px`,
|
height: `${eventRect.height}px`,
|
||||||
};
|
};
|
||||||
@ -188,7 +188,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.styles = {
|
this.styles = {
|
||||||
left: `${eventRect.left}px`,
|
left: `${eventRect.left}px`,
|
||||||
top: `${eventRect.top}px`,
|
top: `${eventRect.top + this.windowScrollY}px`,
|
||||||
width: `${eventRect.width}px`,
|
width: `${eventRect.width}px`,
|
||||||
height: `${eventRect.height}px`,
|
height: `${eventRect.height}px`,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
</EPopover>
|
</EPopover>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ref="inputWrapper" class="chat-input-wrapper" @click.stop="focus">
|
<div ref="inputWrapper" class="chat-input-wrapper">
|
||||||
<!-- 回复、修改 -->
|
<!-- 回复、修改 -->
|
||||||
<div v-if="quoteData" class="chat-quote">
|
<div v-if="quoteData" class="chat-quote">
|
||||||
<div v-if="quoteUpdate" class="quote-label">{{$L('编辑消息')}}</div>
|
<div v-if="quoteUpdate" class="quote-label">{{$L('编辑消息')}}</div>
|
||||||
@ -78,7 +78,7 @@
|
|||||||
</ETooltip>
|
</ETooltip>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- 图片文件 -->
|
<!-- 加号更多 -->
|
||||||
<li>
|
<li>
|
||||||
<EPopover
|
<EPopover
|
||||||
ref="more"
|
ref="more"
|
||||||
@ -1305,6 +1305,7 @@ export default {
|
|||||||
onClickEditor() {
|
onClickEditor() {
|
||||||
this.clearSearchKey()
|
this.clearSearchKey()
|
||||||
this.updateEmojiQuick(this.value)
|
this.updateEmojiQuick(this.value)
|
||||||
|
this.focus()
|
||||||
inputLoadAdd(this._uid)
|
inputLoadAdd(this._uid)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -235,15 +235,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--底部输入-->
|
<!--底部输入-->
|
||||||
<div ref="footer" class="dialog-footer" @click="onActive">
|
<div ref="footer" class="dialog-footer" @click="onClickFooter">
|
||||||
<div
|
<!--上传组件-->
|
||||||
v-if="scrollTail > 500 || (msgNew > 0 && allMsgs.length > 0)"
|
|
||||||
class="dialog-goto"
|
|
||||||
v-touchclick="onToBottom">
|
|
||||||
<Badge :overflow-count="999" :count="msgNew">
|
|
||||||
<i class="taskfont"></i>
|
|
||||||
</Badge>
|
|
||||||
</div>
|
|
||||||
<DialogUpload
|
<DialogUpload
|
||||||
ref="chatUpload"
|
ref="chatUpload"
|
||||||
class="chat-upload"
|
class="chat-upload"
|
||||||
@ -252,6 +245,18 @@
|
|||||||
@on-progress="chatFile('progress', $event)"
|
@on-progress="chatFile('progress', $event)"
|
||||||
@on-success="chatFile('success', $event)"
|
@on-success="chatFile('success', $event)"
|
||||||
@on-error="chatFile('error', $event)"/>
|
@on-error="chatFile('error', $event)"/>
|
||||||
|
|
||||||
|
<!--滚动到底部-->
|
||||||
|
<div
|
||||||
|
v-if="scrollTail > 500 || (msgNew > 0 && allMsgs.length > 0)"
|
||||||
|
class="dialog-goto"
|
||||||
|
v-touchclick="onToBottom">
|
||||||
|
<Badge :overflow-count="999" :count="msgNew">
|
||||||
|
<i class="taskfont"></i>
|
||||||
|
</Badge>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--待办-->
|
||||||
<div v-if="todoShow" class="chat-bottom-menu">
|
<div v-if="todoShow" class="chat-bottom-menu">
|
||||||
<div class="bottom-menu-label">{{$L('待办')}}:</div>
|
<div class="bottom-menu-label">{{$L('待办')}}:</div>
|
||||||
<ul class="scrollbar-hidden">
|
<ul class="scrollbar-hidden">
|
||||||
@ -260,6 +265,8 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!--菜单-->
|
||||||
<div v-else-if="quickShow" class="chat-bottom-menu">
|
<div v-else-if="quickShow" class="chat-bottom-menu">
|
||||||
<ul class="scrollbar-hidden">
|
<ul class="scrollbar-hidden">
|
||||||
<li v-for="item in quickMsgs" @click.stop="sendQuick(item, $event)">
|
<li v-for="item in quickMsgs" @click.stop="sendQuick(item, $event)">
|
||||||
@ -267,6 +274,8 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!--禁言、停用、输入-->
|
||||||
<div v-if="isMute" class="chat-mute">
|
<div v-if="isMute" class="chat-mute">
|
||||||
{{$L('禁言发言')}}
|
{{$L('禁言发言')}}
|
||||||
</div>
|
</div>
|
||||||
@ -2518,6 +2527,11 @@ export default {
|
|||||||
this.$emit("on-active");
|
this.$emit("on-active");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onClickFooter() {
|
||||||
|
this.$refs.input?.focus();
|
||||||
|
this.onActive();
|
||||||
|
},
|
||||||
|
|
||||||
onToBottom() {
|
onToBottom() {
|
||||||
this.msgNew = 0;
|
this.msgNew = 0;
|
||||||
const scroller = this.$refs.scroller;
|
const scroller = this.$refs.scroller;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 722f44028ab1afeb32ce33ff1dad9b11e26f863b
|
Subproject commit 6f1927596166ba861579f645281e12f68af4f0c5
|
||||||
Loading…
x
Reference in New Issue
Block a user