修改:优化发送表情

feature/im
安浩浩 2024-04-28 22:37:48 +08:00
parent da42381c8b
commit 8eb43bdd01
1 changed files with 6 additions and 2 deletions

View File

@ -61,13 +61,17 @@ const checkAtMembers = (text) => {
//emojis
const isShowEmojisBox = ref(false)
const emojisBox = ref(null)
onClickOutside(emojisBox, () => {
onClickOutside(emojisBox, (event) => {
console.log('>>>>>关闭模态框')
isShowEmojisBox.value = false
event.stopPropagation()
})
const showEmojisBox = () => {
console.log('>>>>>展开模态框')
if (!isShowEmojisBox.value) {
isShowEmojisBox.value = true
}
}
//emoji
const addOneEmoji = (emoji) => {
console.log('>>>>>>emoji', emoji)