Skip to content

Commit 8c26ec2

Browse files
committed
✨ 修复存储源为空时文件区域高度异常问题
1 parent f4ab0ae commit 8c26ec2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/pages/file.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
empty-text=""
3434
@row-contextmenu="showFileMenu"
3535
:row-class-name="tableRowClassName"
36+
:class="{'zfile-table-empty': fileDataStore.fileList.length === 0}"
3637
@selection-change="selectRowsChange"
3738
:data="skeletonLoading ? skeletonData : fileDataStore.fileList">
3839
<template #empty>
@@ -459,6 +460,10 @@ const showDialog = (readmeText) => {
459460
// 隐藏横向滚动条
460461
@apply overflow-y-hidden;
461462
463+
&.zfile-table-empty {
464+
@apply h-full;
465+
}
466+
462467
:deep(.el-checkbox) {
463468
margin-right: 30px;
464469
}
@@ -471,6 +476,10 @@ const showDialog = (readmeText) => {
471476
font-weight: 450;
472477
}
473478
479+
:deep(.el-table__body-wrapper .el-scrollbar__view) {
480+
height: 100%;
481+
}
482+
474483
/* 表头 -- icon 位置和大小 */
475484
.el-table__header-wrapper .el-icon {
476485
@apply mr-4 top-0.5 text-sm;

0 commit comments

Comments
 (0)