perf: 消息会话右键时隐藏滚动条

This commit is contained in:
kuaifan 2022-02-24 09:03:15 +08:00
parent ea028ea1a1
commit fbc8a36232
3 changed files with 14 additions and 2 deletions

View File

@ -21,7 +21,8 @@
</div>
<ScrollerY
ref="list"
class="messenger-list overlay-y"
class="messenger-list"
:class="overlayClass"
@on-scroll="listScroll"
static>
<ul
@ -223,6 +224,13 @@ export default {
return num;
}
},
overlayClass() {
return {
'overlay-y': true,
'overlay-none': this.topOperateVisible === true,
}
}
},
watch: {

View File

@ -78,7 +78,6 @@
width: 100%;
overflow-x: hidden;
overflow-y: auto;
padding-right: 9px;
> ul {
&.dialog {
> li {

View File

@ -38,3 +38,8 @@
background: rgba(0, 0, 0, 0);
}
}
.overlay-none {
&::-webkit-scrollbar {
display: none;
}
}