整体table"无数据改"样式修改

This commit is contained in:
lSun 2026-01-26 17:09:49 +08:00
parent 2a101a5c33
commit d554ee5af6
2 changed files with 29 additions and 0 deletions

BIN
src/assets/icons/noData.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -236,3 +236,32 @@ aside {
overflow: auto;
padding: 20px;
}
/* el-table 空态:覆盖 Element UI 默认样式 */
.el-table__empty-block {
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
}
.el-table__empty-text {
width: auto; /* 覆盖 50% */
line-height: 1.2 !important; /* 🔥 干掉 60px 行高 */
font-size: 14px;
color: #999;
display: flex;
flex-direction: column;
align-items: center;
}
/* 空态图片 */
.el-table__empty-text::before {
content: '';
width: 208px;
height: 208px;
//margin-bottom: 16px;
background: url('~@/assets/icons/noData.png') no-repeat center;
background-size: contain;
}