@ningboyz/vue 1.0.86 → 1.0.87

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.
@@ -1,11 +1,11 @@
1
- import { Stimulsoft as a } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
1
+ import { Stimulsoft as n } 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 o from "../dataUtils/stimulsoftData.js";
7
- import n from "lodash";
8
- class R {
6
+ import p from "../dataUtils/stimulsoftData.js";
7
+ import o from "lodash";
8
+ class d {
9
9
  reports = [];
10
10
  report;
11
11
  printData;
@@ -16,13 +16,13 @@ class R {
16
16
  * @param listData
17
17
  */
18
18
  constructor(t) {
19
- this.printData = t, this.report = new a.Report.StiReport();
19
+ this.printData = t, this.report = new n.Report.StiReport();
20
20
  }
21
21
  /**
22
22
  * 初始化license
23
23
  * @returns
24
24
  */
25
- setLicense = () => (o.loadLicense(), o.loadLanguage(), this);
25
+ setLicense = () => (p.initStimulsoft(), this);
26
26
  /**
27
27
  * 初始化报表
28
28
  * @returns
@@ -31,10 +31,10 @@ class R {
31
31
  for (let t = 0; t < this.printData.length; t++) {
32
32
  const r = this.printData[t];
33
33
  for (let e = 0; e < r.jsonTemplates.length; e++) {
34
- const p = r.jsonTemplates[e];
34
+ const a = r.jsonTemplates[e];
35
35
  for (let i = 0; i < r.listData.length; i++) {
36
- const l = r.listData[i], s = new a.Report.StiReport();
37
- s.load(p), o.createDataSet(s, l), this.reports.push(s);
36
+ const l = r.listData[i], s = new n.Report.StiReport();
37
+ s.load(a), p.createDataSet(s, l), this.reports.push(s);
38
38
  }
39
39
  }
40
40
  }
@@ -54,11 +54,11 @@ class R {
54
54
  return this;
55
55
  };
56
56
  print() {
57
- n.isNil(this.printData) || this.printData.length === 0 || (this.printData.forEach((t) => {
58
- n.isNil(t.jsonTemplates) || t.jsonTemplates.length === 0 || n.isNil(t.listData) || t.listData.length;
57
+ o.isNil(this.printData) || this.printData.length === 0 || (this.printData.forEach((t) => {
58
+ o.isNil(t.jsonTemplates) || t.jsonTemplates.length === 0 || o.isNil(t.listData) || t.listData.length;
59
59
  }), this.setLicense(), this.initReport(), this.mergeReport(), this.report.print());
60
60
  }
61
61
  }
62
62
  export {
63
- R as default
63
+ d as default
64
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",