【功能新增】AI 大模型:支持思维导图的管理

pull/494/head
YunaiV 2024-08-10 19:07:24 +08:00
parent ab110f915c
commit 38c485b2bc
1 changed files with 10 additions and 20 deletions

View File

@ -94,16 +94,9 @@
</ContentWrap> </ContentWrap>
<!-- 思维导图的预览 --> <!-- 思维导图的预览 -->
<el-drawer <el-drawer v-model="previewVisible" :with-header="false" size="800px">
v-model="previewVisible"
:with-header="false"
size="800px"
@opened="openedHandler"
@close="closeHandler"
>
<Right <Right
ref="rightRef" v-if="previewVisible2"
v-if="drawerOpened"
:generatedContent="previewContent" :generatedContent="previewContent"
:isEnd="true" :isEnd="true"
:isGenerating="false" :isGenerating="false"
@ -175,19 +168,16 @@ const handleDelete = async (id: number) => {
} }
/** 预览操作按钮 */ /** 预览操作按钮 */
const previewVisible = ref(false) const previewVisible = ref(false) // drawer
const previewVisible2 = ref(false) // right
const previewContent = ref('') const previewContent = ref('')
const openPreview = (row: MindMapVO) => { const openPreview = async (row: MindMapVO) => {
previewContent.value = row.generatedContent previewVisible2.value = false
previewVisible.value = true previewVisible.value = true
} // drawer right width
await nextTick()
const drawerOpened = ref(false) // drawer previewVisible2.value = true
const openedHandler = () => { // drawer previewContent.value = row.generatedContent
drawerOpened.value = true
}
const closeHandler = () => { // drawerdrawerOpenedfalse
drawerOpened.value = false
} }
/** 初始化 **/ /** 初始化 **/