@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 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";
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 N = /* @__PURE__ */ f({
8
+ const O = /* @__PURE__ */ f({
9
9
  __name: "desginer",
10
10
  props: {
11
11
  listData: {}
12
12
  },
13
13
  emits: ["saveReport"],
14
- setup(p, { emit: i }) {
15
- const a = p, r = u(), n = new _.Designer.StiDesignerOptions();
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 c = i;
18
- v(
19
- () => a.listData,
17
+ const m = a;
18
+ d(
19
+ () => c.listData,
20
20
  (e) => {
21
- l(e);
21
+ u(e);
22
22
  },
23
23
  {
24
24
  deep: !0
25
25
  }
26
26
  );
27
- const m = (e) => {
27
+ const l = (e) => {
28
28
  e.preventDefault = !0;
29
29
  const t = e.report.saveToJsonString(), o = e.fileName;
30
- c("saveReport", o, t);
31
- }, l = async (e) => {
30
+ m("saveReport", o, t);
31
+ }, u = async (e) => {
32
32
  try {
33
- const t = new R();
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 (e, t) => (g(), d(s(D), {
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: m
46
+ onSaveReport: l
45
47
  }, null, 8, ["report", "options"]));
46
48
  }
47
49
  });
48
50
  export {
49
- N as default
51
+ O as default
50
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "private": false,
5
5
  "description": "宁波甬政vue-ui库",
6
6
  "author": "nbyt-syq",
package/types/all.d.ts CHANGED
@@ -17,5 +17,5 @@ declare module "vue" {
17
17
 
18
18
  export {};
19
19
 
20
- export * from "./components/core/component";
20
+ export * from "./components/core/core";
21
21
  export * from "./components/stimulsoft/desginer/desginer";
@@ -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 (): M & {
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/component";
2
+ import { YzComponent } from "../../core/core";
3
3
 
4
- export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, YzDesginerMethod>;
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 YzDesginerMethod = {
15
- onOK: () => void;
16
- } & YzDesginerEmits;
14
+ export type YzDesginerInstance = {
15
+ getJson: () => string;
16
+ };
17
17
 
18
18
  export type YzDesginerEmits = {
19
19
  (event: "saveReport", fileName: string, json: string): void;