fix
This commit is contained in:
@@ -195,7 +195,7 @@ export function PrintPreview(props: PrintPreviewProps) {
|
||||
const handleExportPDF = async () => {
|
||||
const pagesData = pages();
|
||||
const a4Size = getA4Size();
|
||||
|
||||
|
||||
// 创建 jsPDF 实例
|
||||
const pdf = new jsPDF({
|
||||
orientation: orientation() === 'landscape' ? 'landscape' : 'portrait',
|
||||
@@ -217,7 +217,7 @@ export function PrintPreview(props: PrintPreviewProps) {
|
||||
pdf.addPage();
|
||||
}
|
||||
|
||||
const page = pagesData()[i];
|
||||
const page = pagesData[i];
|
||||
const cropData = cropMarks()[i];
|
||||
|
||||
// 绘制外围边框
|
||||
|
||||
+1
-20
@@ -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;
|
||||
}
|
||||
}
|
||||
@plugin "@tailwindcss/typography";
|
||||
Reference in New Issue
Block a user