no message

This commit is contained in:
kuaifan 2022-06-10 17:32:30 +08:00
parent 18e41eba4d
commit 6b97696593

View File

@ -73,7 +73,7 @@
<DynamicScroller <DynamicScroller
ref="scroller" ref="scroller"
class="dialog-scroller scrollbar-overlay" class="dialog-scroller scrollbar-overlay"
:style="{opacity: scrollerShow ? 1 : 0}" :style="{opacity: scrollOpacity ? 1 : 0}"
:disabled="touchBackInProgress" :disabled="touchBackInProgress"
:items="allMsgs" :items="allMsgs"
:min-item-size="58" :min-item-size="58"
@ -329,7 +329,7 @@ export default {
dialogDrag: false, dialogDrag: false,
groupInfoShow: false, groupInfoShow: false,
scrollerShow: true, scrollOpacity: true,
navStyle: {}, navStyle: {},
@ -501,7 +501,7 @@ export default {
allMsgList(newList, oldList) { allMsgList(newList, oldList) {
const {scrollE} = this.scrollInfo(); const {scrollE} = this.scrollInfo();
if (oldList.length === 0) { if (oldList.length === 0) {
this.scrollerShow = false; this.scrollOpacity = false;
} }
this.allMsgs = newList; this.allMsgs = newList;
// //
@ -514,9 +514,9 @@ export default {
} }
// //
this.allMsgTimer && clearTimeout(this.allMsgTimer); this.allMsgTimer && clearTimeout(this.allMsgTimer);
if (!this.scrollerShow) { if (!this.scrollOpacity) {
this.allMsgTimer = setTimeout(_=>{ this.allMsgTimer = setTimeout(_=>{
this.scrollerShow = true; this.scrollOpacity = true;
},100) },100)
} }
}, },