Skip to content

Commit

Permalink
chore: no docTree hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Nov 16, 2024
1 parent 732b9fa commit 1d6b05c
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions components/static/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,26 @@
</el-empty>
</div>
<div v-else class="app-container">
<!-- 固定的图标 -->
<div class="sidebar-toggle" @click="toggleSidebar">
<el-icon v-if="isSidebarVisible">
<Expand />
</el-icon>
<el-icon v-else>
<Fold />
</el-icon>
</div>
<aside
v-if="isSidebarVisible && treeData && treeData.length > 0"
class="sidebar-container"
:class="{ 'sidebar-hidden': !isSidebarVisible }"
>
<sidebar
:tree-data="treeData"
:max-depth="maxDepth"
:all-expanded="allExpanded"
:expanded-ids="expandedIds"
@update-expanded-ids="handleUpdateExpandedIds"
@update-all-expanded="handleUpdateAllExpanded"
/>
<aside v-if="treeData && treeData.length > 0">
<!-- 固定的图标 -->
<div class="sidebar-toggle" @click="toggleSidebar">
<el-icon v-if="isSidebarVisible">
<Expand />
</el-icon>
<el-icon v-else>
<Fold />
</el-icon>
</div>
<div v-if="isSidebarVisible" class="sidebar-container" :class="{ 'sidebar-hidden': !isSidebarVisible }">
<sidebar
:tree-data="treeData"
:max-depth="maxDepth"
:all-expanded="allExpanded"
:expanded-ids="expandedIds"
@update-expanded-ids="handleUpdateExpandedIds"
@update-all-expanded="handleUpdateAllExpanded"
/>
</div>
</aside>
<main class="main">
<!-- 分享正文 -->
Expand Down

0 comments on commit 1d6b05c

Please sign in to comment.