diff --git a/src/assets/icons/noData.png b/src/assets/icons/noData.png new file mode 100644 index 00000000..0e9eb354 Binary files /dev/null and b/src/assets/icons/noData.png differ diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 48666db7..a559cef7 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -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; +}