feat: add history report switcher dropdown in report detail view

This commit is contained in:
2026-06-17 10:35:56 +08:00
parent 3019390592
commit 074800b741
3 changed files with 84 additions and 0 deletions

View File

@@ -316,6 +316,24 @@ table.group-table td { border-bottom: 1px solid #f1f5f9; font-variant-numeric: t
font-size: 13px; display: flex; align-items: center; gap: 6px;
}
/* ---------- 报告历史切换下拉 ---------- */
.report-switcher {
display: flex; align-items: center; gap: 10px;
background: var(--surface); border: 1px solid var(--line);
border-radius: var(--radius); padding: 10px 16px;
margin-bottom: 14px; box-shadow: var(--shadow);
}
.report-switcher-label {
font-size: 13px; font-weight: 600; color: var(--slate); white-space: nowrap;
}
.report-switcher-select {
flex: 1; min-width: 0;
border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px;
font-size: 13px; font-family: inherit; background: var(--bg); color: var(--ink);
cursor: pointer;
}
.report-switcher-select:focus { outline: none; border-color: var(--petrol); }
/* ================================================================
打印样式(导出 PDF 用)
浏览器打印时隐藏 UI chrome保留报告内容图表 canvas 原样输出