This commit is contained in:
hyper 2026-02-27 20:54:28 +08:00
parent 082007cf9b
commit 24c797abc6
2 changed files with 3 additions and 22 deletions

View File

@ -217,7 +217,7 @@ export function PrintPreview(props: PrintPreviewProps) {
pdf.addPage();
}
const page = pagesData()[i];
const page = pagesData[i];
const cropData = cropMarks()[i];
// 绘制外围边框

View File

@ -1,21 +1,2 @@
@import "tailwindcss";
@plugin "@tailwindcss/typography";
/* 打印样式 */
@media print {
body {
visibility: hidden;
}
article > div > *:nth-child(1) {
margin-top: 0;
}
body .print-root {
visibility: visible;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
width: 100vw;
gap: 0;
}
}