From a50a793306d1c96679cfd70f100c0c88f0dd6bf5 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Wed, 9 Sep 2026 19:42:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(chat):=20markdown=20=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E6=94=B9=E6=A8=AA=E7=BA=BF=E9=A3=8E=E6=A0=BC=E5=B9=B6=E6=8C=89?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E6=99=BA=E8=83=BD=E6=8D=A2=E8=A1=8C/?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 表格去除外框/圆角/底色/竖线,仅保留横线(表头 1.5px --border-strong、行 1px --border-default),首列与正文对齐 - 新增 utils/tableLayout.ts:测量表格内容自然宽度,≤ 容器×1.35 时换行显示,超出退化为整表横向滚动;ResizeObserver 随容器宽度变化重判 - MarkdownRenderer 渲染后挂载判定(onMounted/onUpdated/watch content) - 多智能体气泡表格同步同一风格;dark/light 变体移除表格背景/边框补偿 Co-authored-by: Astrion powered by Kimi-K3 --- .../src/components/chat/MarkdownRenderer.vue | 24 ++- .../styles/components/chat/_chat-area.scss | 156 ++++++++++-------- static/src/utils/tableLayout.ts | 87 ++++++++++ 3 files changed, 197 insertions(+), 70 deletions(-) create mode 100644 static/src/utils/tableLayout.ts diff --git a/static/src/components/chat/MarkdownRenderer.vue b/static/src/components/chat/MarkdownRenderer.vue index 238c1837..9e0ea153 100644 --- a/static/src/components/chat/MarkdownRenderer.vue +++ b/static/src/components/chat/MarkdownRenderer.vue @@ -23,7 +23,7 @@