feat: add export-to-PDF via browser print with @media print CSS

This commit is contained in:
2026-06-17 10:28:01 +08:00
parent 24956bbf75
commit 3019390592
3 changed files with 166 additions and 0 deletions

View File

@@ -109,6 +109,11 @@
<div id="report-content" hidden>
<!-- 顶部元信息条 -->
<div class="report-meta" id="report-meta"></div>
<div class="report-actions no-print">
<button class="btn btn-ghost btn-export-pdf" id="export-pdf-btn" onclick="Report.exportPdf()">
📄 导出 PDF
</button>
</div>
<!-- ① 指标均值卡片 -->
<div class="section-label">① 指标均值 OVERVIEW</div>