mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
fix:修复表情包箭头不显示的bug
This commit is contained in:
parent
a38fa4625f
commit
3c7b7e021f
@ -85,7 +85,9 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initData()
|
this.initData()
|
||||||
this.onMonitorWheel()
|
if(!this.$store.state.windowPortrait){
|
||||||
|
this.onMonitorWheel()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
type() {
|
type() {
|
||||||
@ -127,7 +129,7 @@ export default {
|
|||||||
showEmojiMenuScrollRightBtn(){
|
showEmojiMenuScrollRightBtn(){
|
||||||
const container = this.$refs['chatEmojiMenuRef'];
|
const container = this.$refs['chatEmojiMenuRef'];
|
||||||
const liWidth = container?.querySelector('li')?.offsetWidth || 48;
|
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: {
|
methods: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user