From 3abdfb489f8cb7719ada075b85a13a2a8ab816b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=B0=98?= <237809796@qq.com> Date: Wed, 1 Jul 2026 12:27:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84:=20ChatInput=20=E6=8B=86?= =?UTF-8?q?=E5=88=86(=E6=8F=90=E5=8F=96=20SkillMention+ImageInput,=201183-?= =?UTF-8?q?>1155=E8=A1=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 提取 SkillMention.vue(/ 技能联想浮层+已选 chip) - 提取 ImageInput.vue(待发送图片预览+移除) - ChatInput 模板内联技能浮层替换为子组件 --- Batch.md | 13 +++++- src/components/ai/ChatInput.vue | 58 +++++++-------------------- src/components/ai/ImageInput.vue | 33 ++++++++++++++++ src/components/ai/SkillMention.vue | 63 ++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+), 45 deletions(-) create mode 100644 src/components/ai/ImageInput.vue create mode 100644 src/components/ai/SkillMention.vue diff --git a/Batch.md b/Batch.md index b4e0fc6..0125e52 100644 --- a/Batch.md +++ b/Batch.md @@ -386,16 +386,25 @@ ## Batch 31 — God 文件拆分第一步(MessageList) -- **提交**: `当前待提交` +- **提交**: `2c2b2d7` - **内容**: - 提取 useMessageScroll.ts(滚动跟随/锁存/回底按钮,89 行) - 提取 MessageItem.vue(单条消息按 role 渲染,171 行) - MessageList.vue 从 1552 行降至 1386 行(-166 行) - **验证**: vue-tsc + vite build 通过 +## Batch 32 — God 文件拆分第二步(ChatInput) + +- **提交**: `当前待提交` +- **内容**: + - 提取 SkillMention.vue(/@ 联想浮层,63 行) + - 提取 ImageInput.vue(图片粘贴/拖拽预览,33 行) + - ChatInput.vue 从 1183 行降至 1155 行 +- **验证**: vue-tsc + vite build 通过 + ## 后续规划批次(待推进) -### Batch 32 — ChatInput 拆分 +### Batch 33 — 多 ReAct 对接 1. 提取 SkillMention.vue(/@ 联想浮层) 2. 提取 ImageInput.vue(图片粘贴/拖拽) 3. ChatInput.vue 从 1183 行降至 ~500 行 diff --git a/src/components/ai/ChatInput.vue b/src/components/ai/ChatInput.vue index cac8e44..7e22a4a 100644 --- a/src/components/ai/ChatInput.vue +++ b/src/components/ai/ChatInput.vue @@ -1,28 +1,18 @@