This commit is contained in:
dap 2024-09-25 20:54:19 +08:00
parent be54bfb2b7
commit 245e14ec34

View File

@ -158,20 +158,23 @@ function handleClose() {
:title="modalTitle" :title="modalTitle"
> >
<div v-if="currentCodeData" class="flex gap-[8px]"> <div v-if="currentCodeData" class="flex gap-[8px]">
<Tree <div class="h-[calc(100vh-80px)] w-[300px] overflow-y-scroll">
v-if="treeData.length > 0" <Tree
:tree-data="treeData" v-if="treeData.length > 0"
class="w-[300px]" :show-line="{ showLeafIcon: false }"
default-expand-all :tree-data="treeData"
@select="handleSelect" :virtual="false"
> default-expand-all
<template #title="{ title, icon }"> @select="handleSelect"
<div class="flex items-center gap-[16px]"> >
<Icon :icon="icon" /> <template #title="{ title, icon }">
<span>{{ title }}</span> <div class="flex items-center gap-[16px]">
</div> <Icon :icon="icon" />
</template> <span>{{ title }}</span>
</Tree> </div>
</template>
</Tree>
</div>
<CodeMirror <CodeMirror
v-model="codeContent" v-model="codeContent"
:language="language" :language="language"