perf: 知识来源使用markdown页面显示(#457)
This commit is contained in:
parent
7123733e86
commit
81bd7e3cba
@ -34,7 +34,11 @@
|
|||||||
<div class="active-button primary">{{ item.similarity?.toFixed(3) }}</div>
|
<div class="active-button primary">{{ item.similarity?.toFixed(3) }}</div>
|
||||||
<template #description>
|
<template #description>
|
||||||
<el-scrollbar height="90">
|
<el-scrollbar height="90">
|
||||||
{{ item.content }}
|
<MdPreview
|
||||||
|
ref="editorRef"
|
||||||
|
editorId="preview-only"
|
||||||
|
:modelValue="item.content"
|
||||||
|
/>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@ -67,6 +71,7 @@
|
|||||||
import { ref, watch, onBeforeUnmount } from 'vue'
|
import { ref, watch, onBeforeUnmount } from 'vue'
|
||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
import { arraySort } from '@/utils/utils'
|
import { arraySort } from '@/utils/utils'
|
||||||
|
import { MdPreview } from 'md-editor-v3'
|
||||||
const emit = defineEmits(['refresh'])
|
const emit = defineEmits(['refresh'])
|
||||||
|
|
||||||
const ParagraphDialogRef = ref()
|
const ParagraphDialogRef = ref()
|
||||||
@ -109,6 +114,12 @@ defineExpose({ open })
|
|||||||
@media only screen and (max-width: 768px) {
|
@media only screen and (max-width: 768px) {
|
||||||
.paragraph-source {
|
.paragraph-source {
|
||||||
width: 90% !important;
|
width: 90% !important;
|
||||||
|
.footer-content {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.paragraph-source-card {
|
||||||
|
height: 225px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user