added emoji zoom for picker
This commit is contained in:
parent
94afc5ee19
commit
83f45167b6
3 changed files with 45 additions and 3 deletions
|
@ -17,6 +17,7 @@ const EmojiPicker = {
|
|||
keyword: '',
|
||||
activeGroup: 'custom',
|
||||
showingStickers: false,
|
||||
zoomEmoji: false,
|
||||
spamMode: false
|
||||
}
|
||||
},
|
||||
|
@ -60,6 +61,13 @@ const EmojiPicker = {
|
|||
},
|
||||
onStickerUploadFailed (e) {
|
||||
this.$emit('sticker-upload-failed', e)
|
||||
},
|
||||
setZoomEmoji (e, emoji) {
|
||||
this.zoomEmoji = emoji
|
||||
const { x, y } = e.target.getBoundingClientRect()
|
||||
console.log(e.target)
|
||||
this.$refs['zoom-portal'].style.left = (x - 32) + 'px'
|
||||
this.$refs['zoom-portal'].style.top = (y - 32) + 'px'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue