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

View File

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

View File

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