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

View File

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