From ccc9aca21c517b93b888621ef49996467b925237 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 27 Apr 2026 15:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(im):=20MessageInput=20?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=A0=8F=E6=8C=AA=E5=88=B0=E5=BA=95=E9=83=A8?= =?UTF-8?q?=20+=204=20=E5=9B=BE=E6=A0=87=E7=BB=9F=E4=B8=80=20Iconify=20+?= =?UTF-8?q?=20=E8=81=8A=E5=A4=A9=E5=8E=86=E5=8F=B2=E6=8C=AA=E5=88=B0?= =?UTF-8?q?=E5=8F=B3=E4=B8=8A=E8=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对齐微信 PC:输入区在上、操作图标在下;会话级操作(如聊天历史)统一放 header 右上角 【MessageInput.vue】 - 模板顺序对调:editor 在上 / 工具栏在下(justify-between:左 4 图标 gap-1 / 右"发 送"按钮) - editor min-height 80 → 100、padding 8/12 → 10/14,输入区视觉权重接近微信 - 4 个图标统一走 Iconify ant-design outlined 同源,避免 ep / antd 混用视觉割裂: - 表情:Sunny → ant-design:smile-outlined(Element Plus 没有 smile,必须走 Iconify) - 图片:Picture → ant-design:picture-outlined - 文件夹:Paperclip → ant-design:folder-outlined(附件 → 文件夹更贴近微信观感) - 语音:Microphone → ant-design:audio-outlined - 整条 @element-plus/icons-vue import 删除,全部改 + 的统一外壳;scoped CSS 的 :deep(svg) 继续命中,padding / hover 样式不动;DOM 实测 4 图标全部 30×30、top:761、间距 34px 完全对齐 - EmojiPicker class:bottom-9 left-3 → bottom-full left-3 mb-2,picker 从工具栏顶部向上弹出 (旧值在新布局下会浮在工具栏内部,盖住图标) - 删 defineEmits<{ openHistory }>():聊天历史挪到 ChatPanel header 后已没有调用方 【ChatPanel.vue】 - header 右上角新增"聊天历史"图标(Tickets),点击直接 historyVisible = true 弹"历史消息"抽屉 (对齐微信 PC:右上角集中放会话级操作;并列在原"聊天信息 / 群聊信息"图标左侧) - 上的 listener 摘掉,emit 链路完整解耦 --- .../components/input/MessageInput.vue | 117 +++++++++--------- 1 file changed, 60 insertions(+), 57 deletions(-) diff --git a/src/views/im/home/pages/conversation/components/input/MessageInput.vue b/src/views/im/home/pages/conversation/components/input/MessageInput.vue index 8b4106c7f..52b443281 100644 --- a/src/views/im/home/pages/conversation/components/input/MessageInput.vue +++ b/src/views/im/home/pages/conversation/components/input/MessageInput.vue @@ -2,55 +2,8 @@
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
+ +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ 发 送 + + +
@@ -95,9 +100,9 @@