refactor(manager): 优化全局空状态、错误图片占位并升级遗留消息语法

- 增加表格与树组件全局空状态 (el-empty) 样式规范
- 补齐视图图片语义化 alt,并添加全局图片加载异常 SVG 占位兜底
- 将砍价/秒杀/自定义面板中的 $Message 兼容语法替换为 ElMessage
- 清理冗余依赖 vuex,将 sass-loader 调整至 devDependencies
This commit is contained in:
pikachu1995@126.com
2026-10-20 13:51:21 +08:00
parent 3cb60139d5
commit 8fd353a766
22 changed files with 123 additions and 63 deletions

View File

@@ -119,3 +119,30 @@
#nprogress .peg {
box-shadow: 0 0 4px var(--el-color-primary, #409eff), 0 0 2px var(--el-color-primary, #409eff);
}
/* 统一空状态:表格 / 树 / 列表无数据时的展示(未自定义 #empty 插槽的页面均生效) */
.el-table__empty-block {
min-height: 160px;
}
.el-table__empty-text,
.el-tree__empty-text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
line-height: 1.5;
color: #909399;
font-size: 14px;
&::before {
content: "";
display: block;
width: 64px;
height: 64px;
margin-bottom: 8px;
opacity: 0.7;
background: no-repeat center / contain
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23c0c4cc' stroke-width='2' stroke-linejoin='round'><path d='M8 36l8-20h32l8 20v12a4 4 0 0 1-4 4H12a4 4 0 0 1-4-4V36z'/><path d='M8 36h16a8 8 0 0 0 16 0h16'/></svg>");
}
}