fix
This commit is contained in:
parent
082007cf9b
commit
24c797abc6
|
|
@ -217,7 +217,7 @@ export function PrintPreview(props: PrintPreviewProps) {
|
|||
pdf.addPage();
|
||||
}
|
||||
|
||||
const page = pagesData()[i];
|
||||
const page = pagesData[i];
|
||||
const cropData = cropMarks()[i];
|
||||
|
||||
// 绘制外围边框
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue