@newview/report-tools 1.0.10 → 1.0.11
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 +4 -4
- package/dist/report-tools.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/report-tools.js
CHANGED
|
@@ -358428,7 +358428,7 @@ class SendDocMgmtTmplInstance extends BaseInstance {
|
|
|
358428
358428
|
});
|
|
358429
358429
|
}
|
|
358430
358430
|
}
|
|
358431
|
-
const
|
|
358431
|
+
const ReportView_vue_vue_type_style_index_0_scoped_e572bde8_lang = "";
|
|
358432
358432
|
const _hoisted_1 = { id: "reportPrintContainer" };
|
|
358433
358433
|
const _hoisted_2 = ["id"];
|
|
358434
358434
|
const _hoisted_3 = { key: 0 };
|
|
@@ -358445,6 +358445,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
358445
358445
|
key: page.name
|
|
358446
358446
|
}, [
|
|
358447
358447
|
createBaseVNode("div", {
|
|
358448
|
+
id: "table_container",
|
|
358448
358449
|
style: normalizeStyle([{ "position": "relative" }, { width: Number((_a2 = page.width) == null ? void 0 : _a2.replace("px", "")) + 0 + "px", backgroundColor: "white" }])
|
|
358449
358450
|
}, [
|
|
358450
358451
|
createBaseVNode("table", {
|
|
@@ -358501,7 +358502,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
358501
358502
|
}), 128))
|
|
358502
358503
|
]);
|
|
358503
358504
|
}
|
|
358504
|
-
const ReportView = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
358505
|
+
const ReportView = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e572bde8"]]);
|
|
358505
358506
|
class reportTool extends BaseInstance {
|
|
358506
358507
|
constructor(direction, pageSize) {
|
|
358507
358508
|
super();
|
|
@@ -359199,8 +359200,7 @@ class reportTool extends BaseInstance {
|
|
|
359199
359200
|
*/
|
|
359200
359201
|
getPrintBody(element2, printSize) {
|
|
359201
359202
|
let containerGraParent = $(`<div class="reportPrintContainer" style="width: ${printSize.isTransverse ? printSize.height : printSize.width}; height: ${printSize.isTransverse ? printSize.width : printSize.height}; position: relative; background-color: white; border: 2px solid #fff; overflow: visible; box-sizing: border-box; break-after: page;"></div>`);
|
|
359202
|
-
let cloneElement =
|
|
359203
|
-
cloneElement.css("display", "block");
|
|
359203
|
+
let cloneElement = element2.querySelector("#table_container").cloneNode(true);
|
|
359204
359204
|
if (($(element2).width() ?? 0) > ($(element2).height() ?? 0)) {
|
|
359205
359205
|
let horizontalContainer = $(`<div style="display: block; text-align: center; width: ${printSize.width}; height: ${printSize.height};padding: 20mm 20mm 20mm 25mm; box-sizing: border-box; transform: rotate(-90deg); margin-top: ${printSize.reportPaperType == 1 ? "42.8885mm" : "60.7885mm"}; margin-left:${printSize.reportPaperType == 1 ? "-43.5923mm" : "-62.3923mm"} ;"></div>`);
|
|
359206
359206
|
let horizontalContainerParent = $(`<div style="display: inline-block; position: relative;"></div>`);
|