From 925e85712d9b7f7a6e3cb7b910086b0b1813fc6f Mon Sep 17 00:00:00 2001 From: yuntian001 Date: Wed, 21 Dec 2022 17:00:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=A0=B7=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/meTable/hooks/print.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/meTable/hooks/print.ts b/src/components/meTable/hooks/print.ts index 68a56821..93624188 100644 --- a/src/components/meTable/hooks/print.ts +++ b/src/components/meTable/hooks/print.ts @@ -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; } @@ -67,12 +67,7 @@ export default async (elTable: ELTableInstance, title = '', head: string[] = []) width:auto !important } `); - head.unshift( - '', - ); + head.unshift(''); head.unshift( '