导出
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user