统一结果总览详情弹窗主区视觉

This commit is contained in:
wkc
2026-03-25 19:12:30 +08:00
parent 3fb02f1391
commit 1e3ea8d4c9
5 changed files with 73 additions and 15 deletions

View File

@@ -16,6 +16,13 @@ const mockSource = fs.readFileSync(
),
"utf8"
);
const placeholderTab = fs.readFileSync(
path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/ProjectAnalysisPlaceholderTab.vue"
),
"utf8"
);
[
'title="项目分析"',
@@ -23,6 +30,7 @@ const mockSource = fs.readFileSync(
'top="5vh"',
"project-analysis-header",
"project-analysis-overview",
"analysis-panel",
"project-analysis-header__title",
"project-analysis-header__risk",
"project-analysis-header__meta",
@@ -48,6 +56,11 @@ const mockSource = fs.readFileSync(
assert(!dialog.includes("project-analysis-shell"), "不应继续保留内部大白卡外壳");
assert(!dialog.includes('class="source-summary"'), "当前命中模型不应停留在主区顶部");
assert(placeholderTab.includes("analysis-panel--placeholder"), "占位页签应与主区面板统一样式基线");
assert(
!placeholderTab.includes("background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%)"),
"占位页签不应继续保留旧渐变底"
);
[
"projectAnalysisTabs",