@newview/report-tools 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/report-tools.js +35 -0
- package/dist/report-tools.umd.cjs +1 -1
- package/package.json +1 -1
- package/readme.md +3 -0
package/dist/report-tools.js
CHANGED
|
@@ -349308,6 +349308,41 @@ class reportTool extends BaseInstance {
|
|
|
349308
349308
|
}
|
|
349309
349309
|
return containerGraParent;
|
|
349310
349310
|
}
|
|
349311
|
+
/**
|
|
349312
|
+
* 获取报表html内容
|
|
349313
|
+
* @returns
|
|
349314
|
+
*/
|
|
349315
|
+
getReportHtml() {
|
|
349316
|
+
var _a2;
|
|
349317
|
+
const container2 = document.createElement("div");
|
|
349318
|
+
container2.setAttribute("id", "getreporthtml-container");
|
|
349319
|
+
container2.style.opacity = "0";
|
|
349320
|
+
container2.style.position = "fixed";
|
|
349321
|
+
container2.style.top = "99999999px";
|
|
349322
|
+
document.body.appendChild(container2);
|
|
349323
|
+
const Instance3 = createApp({
|
|
349324
|
+
data() {
|
|
349325
|
+
return {
|
|
349326
|
+
pageInfo: this.pageInfo,
|
|
349327
|
+
isHorizontal: this.isHorizontal
|
|
349328
|
+
};
|
|
349329
|
+
},
|
|
349330
|
+
render() {
|
|
349331
|
+
const reportPage = h$2(ReportView, {
|
|
349332
|
+
pageInfo: this.pageInfo,
|
|
349333
|
+
isHorizontal: this.isHorizontal
|
|
349334
|
+
});
|
|
349335
|
+
return reportPage;
|
|
349336
|
+
}
|
|
349337
|
+
}, {
|
|
349338
|
+
pageInfo: this.pageInfo,
|
|
349339
|
+
isHorizontal: this.isHorizontal()
|
|
349340
|
+
});
|
|
349341
|
+
Instance3.mount(container2);
|
|
349342
|
+
let html2 = container2.innerHTML;
|
|
349343
|
+
(_a2 = document.getElementById("getreporthtml-container")) == null ? void 0 : _a2.remove();
|
|
349344
|
+
return html2;
|
|
349345
|
+
}
|
|
349311
349346
|
}
|
|
349312
349347
|
export {
|
|
349313
349348
|
ReportView,
|