增加无文章时的占位提示

This commit is contained in:
xiaozzzi 2023-10-04 17:34:01 +08:00
parent 3b014df43a
commit 2278c20eba
2 changed files with 12 additions and 2 deletions

View File

@ -87,6 +87,9 @@
</el-sub-menu>
</div>
</el-menu>
<div v-else class="doc-trees-empty-placeholder">
暂无文档可点击上方 添加
</div>
</div>
<!-- 右键菜单, 添加到 body -->

View File

@ -4,6 +4,7 @@
.doc-trees-container {
@include box(100%, calc(100% - 90px));
// 图片文档菜单中需要有 padding-top
padding-top: 8px;
* {
@ -14,12 +15,18 @@
width: 100%;
}
.doc-trees-empty-placeholder {
padding: 0 20px;
color: var(--bl-text-color-light);
font-size: 13.5px;
}
.doc-trees {
@include box(100%, 100%);
font-weight: 200;
border: 0;
// overflow-y: overlay;
overflow-y: scroll;
overflow-y: overlay;
// overflow-y: scroll;
// 基础的 padding
--el-menu-base-level-padding: 25px;
// 每级别的的缩进