@ningboyz/vue 1.0.18 → 1.0.20
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/es/components.d.ts +3 -0
- package/es/stimulsoft/desginer/desginer.vue.d.ts +3 -3
- package/es/stimulsoft/desginer/desginer.vue.js +48 -5
- package/es/stimulsoft/desginer/desginer.vue2.js +2 -48
- package/es/stimulsoft/desginer/index.d.ts +3 -4
- package/es/stimulsoft/desginer/index.js +4 -4
- package/package.json +3 -3
- package/components.d.ts +0 -7
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/es/stimulsoft/desginer/interface.d.ts +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: import('vue').DefineComponent<
|
|
1
|
+
import { YzDesginerProps } from 'types/components/stimulsoft/desginer/desginer';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<YzDesginerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
3
|
saveReport: (fileName: string, json: string) => any;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<YzDesginerProps> & Readonly<{
|
|
5
5
|
onSaveReport?: ((fileName: string, json: string) => any) | undefined;
|
|
6
6
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as f, ref as u, watch as v, createBlock as d, openBlock as g, unref as s } from "vue";
|
|
2
|
+
import { Designer as D } from "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
|
|
3
|
+
import R from "./factory.js";
|
|
4
|
+
import { Stimulsoft as _ } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
|
|
5
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
|
|
6
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
|
|
7
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
|
|
8
|
+
const N = /* @__PURE__ */ f({
|
|
9
|
+
__name: "desginer",
|
|
10
|
+
props: {
|
|
11
|
+
listData: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["saveReport"],
|
|
14
|
+
setup(p, { emit: i }) {
|
|
15
|
+
const a = p, r = u(), n = new _.Designer.StiDesignerOptions();
|
|
16
|
+
n.appearance.fullScreenMode = !0;
|
|
17
|
+
const c = i;
|
|
18
|
+
v(
|
|
19
|
+
() => a.listData,
|
|
20
|
+
(e) => {
|
|
21
|
+
l(e);
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
deep: !0
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
const m = (e) => {
|
|
28
|
+
e.preventDefault = !0;
|
|
29
|
+
const t = e.report.saveToJsonString(), o = e.fileName;
|
|
30
|
+
c("saveReport", o, t);
|
|
31
|
+
}, l = async (e) => {
|
|
32
|
+
try {
|
|
33
|
+
const t = new R();
|
|
34
|
+
t.setListData(e);
|
|
35
|
+
const o = t.getReport();
|
|
36
|
+
r.value = o;
|
|
37
|
+
} catch (t) {
|
|
38
|
+
console.log(t.message);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return (e, t) => (g(), d(s(D), {
|
|
42
|
+
report: r.value,
|
|
43
|
+
options: s(n),
|
|
44
|
+
onSaveReport: m
|
|
45
|
+
}, null, 8, ["report", "options"]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
5
48
|
export {
|
|
6
|
-
|
|
49
|
+
N as default
|
|
7
50
|
};
|
|
@@ -1,50 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Designer as D } from "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
|
|
3
|
-
import R from "./factory.js";
|
|
4
|
-
import { Stimulsoft as _ } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
|
|
5
|
-
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
|
|
6
|
-
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
|
|
7
|
-
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
|
|
8
|
-
const N = /* @__PURE__ */ f({
|
|
9
|
-
__name: "desginer",
|
|
10
|
-
props: {
|
|
11
|
-
listData: {}
|
|
12
|
-
},
|
|
13
|
-
emits: ["saveReport"],
|
|
14
|
-
setup(p, { emit: i }) {
|
|
15
|
-
const a = p, r = u(), n = new _.Designer.StiDesignerOptions();
|
|
16
|
-
n.appearance.fullScreenMode = !0;
|
|
17
|
-
const c = i;
|
|
18
|
-
v(
|
|
19
|
-
() => a.listData,
|
|
20
|
-
(e) => {
|
|
21
|
-
l(e);
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
deep: !0
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
const m = (e) => {
|
|
28
|
-
e.preventDefault = !0;
|
|
29
|
-
const t = e.report.saveToJsonString(), o = e.fileName;
|
|
30
|
-
c("saveReport", o, t);
|
|
31
|
-
}, l = async (e) => {
|
|
32
|
-
try {
|
|
33
|
-
const t = new R();
|
|
34
|
-
t.setListData(e);
|
|
35
|
-
const o = t.getReport();
|
|
36
|
-
r.value = o;
|
|
37
|
-
} catch (t) {
|
|
38
|
-
console.log(t.message);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
return (e, t) => (g(), d(s(D), {
|
|
42
|
-
report: r.value,
|
|
43
|
-
options: s(n),
|
|
44
|
-
onSaveReport: m
|
|
45
|
-
}, null, 8, ["report", "options"]));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
1
|
+
import f from "./desginer.vue.js";
|
|
48
2
|
export {
|
|
49
|
-
|
|
3
|
+
f as default
|
|
50
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
export declare const YzDesginer: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
|
|
4
4
|
onSaveReport?: ((fileName: string, json: string) => any) | undefined;
|
|
5
5
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
6
|
saveReport: (fileName: string, json: string) => any;
|
|
@@ -11,17 +11,16 @@ export declare const YzDesginer: {
|
|
|
11
11
|
C: {};
|
|
12
12
|
M: {};
|
|
13
13
|
Defaults: {};
|
|
14
|
-
}, Readonly<import('
|
|
14
|
+
}, Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
|
|
15
15
|
onSaveReport?: ((fileName: string, json: string) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, {}>;
|
|
17
17
|
__isFragment?: never;
|
|
18
18
|
__isTeleport?: never;
|
|
19
19
|
__isSuspense?: never;
|
|
20
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
20
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
|
|
21
21
|
onSaveReport?: ((fileName: string, json: string) => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
23
|
saveReport: (fileName: string, json: string) => any;
|
|
24
24
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
25
25
|
install(app: App): void;
|
|
26
26
|
};
|
|
27
|
-
export * from './interface';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政vue-ui库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
17
17
|
"main": "es/index.js",
|
|
18
|
-
"types": "
|
|
18
|
+
"types": "types/index.d.ts",
|
|
19
19
|
"files": [
|
|
20
20
|
"es",
|
|
21
|
-
"
|
|
21
|
+
"index.d.ts"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "vite build",
|
package/components.d.ts
DELETED