feat: 消息的调整

This commit is contained in:
2026-01-21 22:48:20 +08:00
parent 34ad0ed8e3
commit 14d213c4a8
5 changed files with 78 additions and 22 deletions

View File

@@ -1,7 +1,11 @@
<template>
<div class="text-sm text-gray-700 flex flex-row">
<div v-html="compiledMarkdown"></div>
<ChatLoading v-if="msg.isLoading" />
<div class="max-w-[75%] flex flex-col">
<slot name="header"></slot>
<div class="text-sm text-gray-700 flex flex-row">
<div v-html="compiledMarkdown"></div>
<ChatLoading v-if="msg.isLoading" />
</div>
<slot name="footer"></slot>
</div>
</template>
@@ -12,6 +16,7 @@ import MarkdownIt from 'markdown-it'
import hljs from 'highlight.js'
import 'highlight.js/styles/github.css'
import ChatLoading from './ChatLoading.vue';
import { sl } from 'element-plus/es/locale/index.mjs';
interface Props {
msg: ChatMessage