@ningboyz/vue 1.0.68 → 1.0.69
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,53 +1,54 @@
|
|
|
1
|
-
import { defineComponent as u, ref as g, watch as
|
|
2
|
-
import { Designer as
|
|
3
|
-
import
|
|
4
|
-
import { Stimulsoft as
|
|
1
|
+
import { defineComponent as u, ref as g, watch as U, createBlock as h, openBlock as L, unref as i } from "vue";
|
|
2
|
+
import { Designer as z } from "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
|
|
3
|
+
import S from "./factory.js";
|
|
4
|
+
import { Stimulsoft as n } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
|
|
5
5
|
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
|
|
6
6
|
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
|
|
7
7
|
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
|
|
8
|
-
const
|
|
8
|
+
const y = /* @__PURE__ */ u({
|
|
9
9
|
__name: "desginer",
|
|
10
10
|
props: {
|
|
11
11
|
templateJson: {},
|
|
12
12
|
listData: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["saveReport"],
|
|
15
|
-
setup(
|
|
16
|
-
|
|
17
|
-
s
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
setup(p, { expose: l, emit: c }) {
|
|
16
|
+
n.Base.StiLicense.key = "6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkVaUjYnRU/wphl9h6TkK9UtvGvwIZ/qCzU7vjHmM5RWbvCAfAhZhn+eMayEo4PRtUFJINrdMkfnVj1/HeyPgSgAKdpQpP1wzGj2ri5UgGNU8p7Pi59UAegRyUxjTI96rT+khTJIcSoTTPkqZwt0uC+IGtEdehlDchk7madvSLA9guSEZZuSHsc+adQ93NZogak6uo7LbqRh2xC23iGH4sValMR9CBxAsjWUYJH0yrcXODeYrX6ARDlVCW40MGOMrYnx/2W3O8L26oTyAFEdQ1TN1KzYjP4zenjvu4KBAWIopWG6Gk2ydffI0zldxHaPeEl0Lt6U77ykFtsXqW5fN/9t040SfeZfzMAq2ZoVGXPXKCjBo+asFZHrxn7iLpsxF7zwWkYIto8ObpimosoY0on8aLx7At7Qo3VaUOST48gIdqBabUpVz3O9h8UULJa23nlwMVMXheIMMmp6ACD9Bupla/giERFXIYIfpE4eFCD93sR2Cq2f8jdm5Z9B/faB8j4iz0IugVhK4BYhw2q9jAufdWTIx3nsE2Qw7ah0jNsgkR9kWWnHQ3qI/lwFLcFr81SVgyNpFzZ/zcV6vM+xaqbuEMivQx5uFx9WLOMU/ZYkyV8Hi/IEmU+O72NObJtWDxnhUkl4iV0WsYT2V2EU8t0NZP9SBCrLU+rd0SERAdGnRUfoJrm8mXPgcN6+FGNyTgiw0Do8oLU/Skqa/TohVeT", n.Base.Localization.StiLocalization.addLocalizationFile("../localizations/zh.xml", !1, "中文"), n.Base.Localization.StiLocalization.cultureName = "中文";
|
|
17
|
+
const a = p, s = g(), r = new n.Designer.StiDesignerOptions();
|
|
18
|
+
r.appearance.fullScreenMode = !0;
|
|
19
|
+
const m = c;
|
|
20
|
+
U(
|
|
21
|
+
() => [a.templateJson, a.listData],
|
|
21
22
|
(e) => {
|
|
22
23
|
console.log(e);
|
|
23
24
|
const o = e[0], t = e[1];
|
|
24
|
-
|
|
25
|
+
d(o, t);
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
deep: !0
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
|
-
const
|
|
31
|
+
const f = (e) => {
|
|
31
32
|
e.preventDefault = !0;
|
|
32
33
|
const o = e.report.saveToJsonString(), t = e.fileName;
|
|
33
|
-
|
|
34
|
-
},
|
|
34
|
+
m("saveReport", t, o);
|
|
35
|
+
}, d = async (e, o) => {
|
|
35
36
|
try {
|
|
36
|
-
const t = new
|
|
37
|
-
|
|
37
|
+
const t = new S();
|
|
38
|
+
s.value = t.setListData(o).loadJson(e).getReport();
|
|
38
39
|
} catch (t) {
|
|
39
40
|
console.log(t.message);
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
|
-
return
|
|
43
|
+
return l({
|
|
43
44
|
getJson: () => "hello world"
|
|
44
|
-
}), (e, o) => (
|
|
45
|
-
report:
|
|
46
|
-
options:
|
|
47
|
-
onSaveReport:
|
|
45
|
+
}), (e, o) => (L(), h(i(z), {
|
|
46
|
+
report: s.value,
|
|
47
|
+
options: i(r),
|
|
48
|
+
onSaveReport: f
|
|
48
49
|
}, null, 8, ["report", "options"]));
|
|
49
50
|
}
|
|
50
51
|
});
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
+
y as default
|
|
53
54
|
};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import o from "./desginer.vue.js";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
a.Base.Localization.StiLocalization.addLocalizationFile("../localizations/zh.xml", !1, "中文");
|
|
6
|
-
a.Base.Localization.StiLocalization.cultureName = "中文";
|
|
7
|
-
o.install = (i) => {
|
|
8
|
-
i.component(o.name, o);
|
|
2
|
+
import m from "./factory.js";
|
|
3
|
+
o.install = (t) => {
|
|
4
|
+
t.component(o.name, o);
|
|
9
5
|
};
|
|
10
|
-
const
|
|
6
|
+
const c = o, i = m;
|
|
11
7
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
i as StimulsoftFactory,
|
|
9
|
+
c as YzDesginer
|
|
14
10
|
};
|