Skip to content

Commit

Permalink
fix: 修复表格打印样式错误
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Dec 21, 2022
1 parent a61c66f commit 925e857
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/meTable/hooks/print.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function createHtmlPage(content: string, title = '', head: string[] = [])
export function createFrame(): HTMLIFrameElement {
const frame = document.createElement('iframe');
frame.className = 'me--print-frame';
frame.style.cssText='display:none';
frame.style.cssText = 'display:none';
return frame;
}

Expand Down Expand Up @@ -67,12 +67,7 @@ export default async (elTable: ELTableInstance, title = '', head: string[] = [])
width:auto !important
}
</style>`);
head.unshift(
'<link rel="stylesheet" href="' +
window.location.origin +
(await import('@/styles/index.scss?url')).default +
'"/>',
);
head.unshift('<style>' + (await import('@/styles/index.scss?inline')).default + '</style>');
head.unshift(
'<link rel="stylesheet" href="' +
window.location.origin +
Expand Down

0 comments on commit 925e857

Please sign in to comment.