This commit is contained in:
liuye
2023-06-30 15:46:15 +08:00
parent e3c3058a14
commit 7d90a45cf6
2 changed files with 3 additions and 2 deletions

View File

@@ -177,7 +177,7 @@
import { Loading } from "element-ui";
const PdfLoader = (ele, pdfFileName) => {
let loadingInstance = Loading.service({ fullscreen: true });
let loadingInstance = Loading.service({ fullscreen: true, text: '正在导出(请勿刷新/关闭页面)' });
ele.style.fontFamily = "宋体";
ele.style.fontSize = "16px";
ele.style.padding = "0 20px";

View File

@@ -298,8 +298,9 @@ import jsPDF from "jspdf";
import { Loading } from "element-ui";
const PdfLoader = (ele, pdfFileName) => {
let loadingInstance = Loading.service({ fullscreen: true });
let loadingInstance = Loading.service({ fullscreen: true, text: '正在导出(请勿刷新/关闭页面)' });
ele.style.fontFamily = "宋体";
ele.style.fontSize = "16px";
ele.style.padding = "0 20px";
// 预留一定的时间给dom页面渲染完成 如果你能保证dom已经渲染完成了包括图片 才去进行下面转化操作那就可以不用这个延迟器)
setTimeout(() => {