fix:修复表情包箭头不显示的bug

This commit is contained in:
weifashi 2023-09-05 10:27:45 +08:00
parent a38fa4625f
commit 3c7b7e021f

View File

@ -85,7 +85,9 @@ export default {
},
mounted() {
this.initData()
if(!this.$store.state.windowPortrait){
this.onMonitorWheel()
}
},
watch: {
type() {
@ -127,7 +129,7 @@ export default {
showEmojiMenuScrollRightBtn(){
const container = this.$refs['chatEmojiMenuRef'];
const liWidth = container?.querySelector('li')?.offsetWidth || 48;
return this.emojiMenuScrollLeft < this.emoticonData.length * liWidth - 34
return this.emojiMenuScrollLeft < this.emoticonData.length * liWidth - (this.$store.state.windowPortrait ? 34 : 0)
}
},
methods: {