@ningboyz/vue 1.0.38 → 1.0.40
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,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as f, ref as
|
|
2
|
-
import { Designer as
|
|
3
|
-
import
|
|
4
|
-
import { Stimulsoft as
|
|
1
|
+
import { defineComponent as f, ref as g, watch as d, createBlock as v, openBlock as D, unref as s } from "vue";
|
|
2
|
+
import { Designer as R } from "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
|
|
3
|
+
import _ from "./factory.js";
|
|
4
|
+
import { Stimulsoft as S } 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 O = /* @__PURE__ */ f({
|
|
9
9
|
__name: "desginer",
|
|
10
10
|
props: {
|
|
11
11
|
listData: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["saveReport"],
|
|
14
|
-
setup(p, {
|
|
15
|
-
const
|
|
14
|
+
setup(p, { expose: i, emit: a }) {
|
|
15
|
+
const c = p, r = g(), n = new S.Designer.StiDesignerOptions();
|
|
16
16
|
n.appearance.fullScreenMode = !0;
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
() =>
|
|
17
|
+
const m = a;
|
|
18
|
+
d(
|
|
19
|
+
() => c.listData,
|
|
20
20
|
(e) => {
|
|
21
|
-
|
|
21
|
+
u(e);
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
deep: !0
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
const
|
|
27
|
+
const l = (e) => {
|
|
28
28
|
e.preventDefault = !0;
|
|
29
29
|
const t = e.report.saveToJsonString(), o = e.fileName;
|
|
30
|
-
|
|
31
|
-
},
|
|
30
|
+
m("saveReport", o, t);
|
|
31
|
+
}, u = async (e) => {
|
|
32
32
|
try {
|
|
33
|
-
const t = new
|
|
33
|
+
const t = new _();
|
|
34
34
|
t.setListData(e);
|
|
35
35
|
const o = t.getReport();
|
|
36
36
|
r.value = o;
|
|
@@ -38,13 +38,15 @@ const N = /* @__PURE__ */ f({
|
|
|
38
38
|
console.log(t.message);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
return (
|
|
41
|
+
return i({
|
|
42
|
+
getJson: () => "hello world"
|
|
43
|
+
}), (e, t) => (D(), v(s(R), {
|
|
42
44
|
report: r.value,
|
|
43
45
|
options: s(n),
|
|
44
|
-
onSaveReport:
|
|
46
|
+
onSaveReport: l
|
|
45
47
|
}, null, 8, ["report", "options"]));
|
|
46
48
|
}
|
|
47
49
|
});
|
|
48
50
|
export {
|
|
49
|
-
|
|
51
|
+
O as default
|
|
50
52
|
};
|
package/package.json
CHANGED
package/types/all.d.ts
CHANGED
|
@@ -7,11 +7,14 @@ export type YzComponent<
|
|
|
7
7
|
P = { [key: string]: any }, //props
|
|
8
8
|
E = { [key: string]: any }, //event
|
|
9
9
|
S = { [key: string]: (...args: any[]) => any }, //slots
|
|
10
|
-
M = { [key: string]: any } //method emits
|
|
10
|
+
M = { [key: string]: any }, //method emits
|
|
11
|
+
R = { [key: string]: any } //refs
|
|
11
12
|
> = {
|
|
12
|
-
new ():
|
|
13
|
+
new (): {
|
|
13
14
|
$props: P & E;
|
|
14
15
|
$slots: S;
|
|
16
|
+
$emit: M;
|
|
17
|
+
$refs: R;
|
|
15
18
|
};
|
|
16
19
|
} & {
|
|
17
20
|
install(app: App): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TWldy } from "@ningboyz/types";
|
|
2
|
-
import { YzComponent } from "../../core/
|
|
2
|
+
import { YzComponent } from "../../core/core";
|
|
3
3
|
|
|
4
|
-
export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots,
|
|
4
|
+
export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, YzDesginerEmits, YzDesginerInstance>;
|
|
5
5
|
|
|
6
6
|
export namespace YzDesginerPropTypes {
|
|
7
7
|
export type ListData = TWldy.IWldyDataResponse[];
|
|
@@ -11,9 +11,9 @@ export type YzDesginerProps = {
|
|
|
11
11
|
listData: YzDesginerPropTypes.ListData;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export type
|
|
15
|
-
|
|
16
|
-
}
|
|
14
|
+
export type YzDesginerInstance = {
|
|
15
|
+
getJson: () => string;
|
|
16
|
+
};
|
|
17
17
|
|
|
18
18
|
export type YzDesginerEmits = {
|
|
19
19
|
(event: "saveReport", fileName: string, json: string): void;
|