diff --git a/src/components/EmojiPicker/index.vue b/src/components/EmojiPicker/index.vue new file mode 100644 index 0000000..d1d7f56 --- /dev/null +++ b/src/components/EmojiPicker/index.vue @@ -0,0 +1,243 @@ + + + diff --git a/src/view/chat/components/chat-content.vue b/src/view/chat/components/chat-content.vue index 804cb33..baf8656 100644 --- a/src/view/chat/components/chat-content.vue +++ b/src/view/chat/components/chat-content.vue @@ -39,7 +39,11 @@
- + + +
发送
@@ -138,6 +142,19 @@ async function sendMessage(message: string) { scrollToBottom() } +const favoriteList = ref([ + // 收藏的自定义表情示例 + { + id: 'c1', + url: 'https://example.com/emoji1.png', + type: 'custom', + }, +]) + +const handleEmojiSelect = (emoji) => { + console.log('Selected emoji:', emoji) +} + // 接收socket消息来信 socket.on('chat-1v1-to-client', (message: MessageItem) => { messageList.value.push(message)