From 321818f7efd0741836f75b11d88864ed9b26cc23 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Sat, 4 Apr 2026 14:47:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=9E=81=E7=AE=80?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=EF=BC=88Minimal=20Mode=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增了一个全新的消息显示模式,提供更简洁的对话体验。 主要功能: - 新增 MinimalBlocks.vue 组件,实现极简风格的消息块展示 - 在 ChatArea.vue 中集成极简模式渲染逻辑 - 在个性化设置中添加"极简模式"选项(blockDisplayMode) - 支持三种显示模式:堆叠模式、极简模式、传统模式 技术实现: - 使用 personalization store 管理显示模式状态 - 通过 computed 属性动态切换渲染组件 - 保持与现有堆叠模式和传统模式的兼容性 用户体验: - 更清爽的界面布局 - 减少视觉干扰 - 适合快速浏览对话内容 Co-Authored-By: Claude Sonnet 4.5 --- static/src/components/chat/ChatArea.vue | 24 +- static/src/components/chat/MinimalBlocks.vue | 609 ++++++++++++++++++ .../personalization/PersonalizationDrawer.vue | 53 +- static/src/stores/personalization.ts | 26 +- .../styles/components/chat/_chat-area.scss | 9 + 5 files changed, 684 insertions(+), 37 deletions(-) create mode 100644 static/src/components/chat/MinimalBlocks.vue diff --git a/static/src/components/chat/ChatArea.vue b/static/src/components/chat/ChatArea.vue index ee5dd2a..d8129ed 100644 --- a/static/src/components/chat/ChatArea.vue +++ b/static/src/components/chat/ChatArea.vue @@ -49,7 +49,20 @@ -