feat: 消息的调整
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user