@ningboyz/vue 1.0.98 → 1.0.100

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.
@@ -31,7 +31,7 @@ class h {
31
31
  * 加载字体
32
32
  */
33
33
  static loadFonts = () => {
34
- const a = "printer/fonts/";
34
+ const a = "/printer/fonts/";
35
35
  this.fonts.forEach((o) => {
36
36
  switch (o.fontType) {
37
37
  case "ttf":
@@ -55,7 +55,7 @@ class h {
55
55
  * 加载语言
56
56
  */
57
57
  static loadLanguage = () => {
58
- t.Base.Localization.StiLocalization.addLocalizationFile("printer/localizations/zh.xml", !1, "中文"), t.Base.Localization.StiLocalization.cultureName = "中文";
58
+ t.Base.Localization.StiLocalization.addLocalizationFile("/printer/localizations/zh.xml", !1, "中文"), t.Base.Localization.StiLocalization.cultureName = "中文";
59
59
  };
60
60
  /**
61
61
  * 初始化
@@ -1,11 +1,12 @@
1
- import { Stimulsoft as o } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
1
+ import { Stimulsoft as s } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
2
2
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.chart.js";
3
3
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.export.js";
4
4
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.import.xlsx.js";
5
5
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.maps.js";
6
- import p from "../dataUtils/stimulsoftData.js";
7
- import s from "lodash";
8
- class d {
6
+ import a from "../dataUtils/stimulsoftData.js";
7
+ import o from "lodash";
8
+ import n from "../dataUtils/stimulsoftUtil.js";
9
+ class g {
9
10
  reports = [];
10
11
  report;
11
12
  printDatas;
@@ -16,7 +17,7 @@ class d {
16
17
  * @param listData
17
18
  */
18
19
  constructor(t) {
19
- this.printDatas = t, this.report = new o.Report.StiReport();
20
+ this.printDatas = t, this.report = new s.Report.StiReport();
20
21
  }
21
22
  /**
22
23
  * 初始化报表
@@ -25,9 +26,9 @@ class d {
25
26
  initReport = () => {
26
27
  for (let t = 0; t < this.printDatas.length; t++) {
27
28
  const r = this.printDatas[t];
28
- for (let e = 0; e < r.listData.length; e++) {
29
- const a = r.listData[e], i = new o.Report.StiReport();
30
- i.load(r.jsonTemplate), p.createDataSet(i, a), this.reports.push(i);
29
+ for (let i = 0; i < r.listData.length; i++) {
30
+ const p = r.listData[i], e = new s.Report.StiReport();
31
+ e.load(r.jsonTemplate), a.createDataSet(e, p), this.reports.push(e);
31
32
  }
32
33
  }
33
34
  return this;
@@ -39,18 +40,18 @@ class d {
39
40
  mergeReport = async () => {
40
41
  for (let t = 0; t < this.reports.length; t++) {
41
42
  const r = this.reports[t];
42
- r.render(), t === 0 ? this.report = r : r.renderedPages.toList().forEach((e) => {
43
- this.report.renderedPages.add(e.clone());
43
+ r.render(), t === 0 ? this.report = r : r.renderedPages.toList().forEach((i) => {
44
+ this.report.renderedPages.add(i.clone());
44
45
  });
45
46
  }
46
47
  return this;
47
48
  };
48
49
  print() {
49
- s.isNil(this.printDatas) || this.printDatas.length === 0 || (this.printDatas.forEach((t) => {
50
- s.isEmpty(t.jsonTemplate) || s.isNil(t.listData) || t.listData.length;
51
- }), this.initReport(), this.mergeReport(), this.report.print());
50
+ o.isNil(this.printDatas) || this.printDatas.length === 0 || (this.printDatas.forEach((t) => {
51
+ o.isEmpty(t.jsonTemplate) || o.isNil(t.listData) || t.listData.length;
52
+ }), n.initialize(), this.report = new s.Report.StiReport(), this.initReport(), this.mergeReport(), this.report.print());
52
53
  }
53
54
  }
54
55
  export {
55
- d as default
56
+ g as default
56
57
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",