@ningboyz/vue 1.0.51 → 1.0.54

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,7 +1,7 @@
1
1
  import { defineComponent as f, ref as g, watch as d, createBlock as v, openBlock as D, unref as s } from "vue";
2
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";
3
+ import S from "./factory.js";
4
+ import { Stimulsoft as _ } 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";
@@ -10,9 +10,9 @@ const O = /* @__PURE__ */ f({
10
10
  props: {
11
11
  listData: {}
12
12
  },
13
- emits: ["saveReport"],
13
+ emits: ["onSaveReport"],
14
14
  setup(p, { expose: i, emit: a }) {
15
- const c = p, r = g(), n = new S.Designer.StiDesignerOptions();
15
+ const c = p, r = g(), n = new _.Designer.StiDesignerOptions();
16
16
  n.appearance.fullScreenMode = !0;
17
17
  const m = a;
18
18
  d(
@@ -30,7 +30,7 @@ const O = /* @__PURE__ */ f({
30
30
  m("saveReport", o, t);
31
31
  }, u = async (e) => {
32
32
  try {
33
- const t = new _();
33
+ const t = new S();
34
34
  t.setListData(e);
35
35
  const o = t.getReport();
36
36
  r.value = o;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.51",
3
+ "version": "1.0.54",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",
package/types/all.d.ts CHANGED
@@ -14,12 +14,6 @@ declare module "@vue/runtime-core" {
14
14
  export interface GlobalComponents extends AllComponents {}
15
15
  }
16
16
 
17
- declare module "vue" {
18
- export interface GlobalComponents extends AllComponents {}
19
- }
20
-
21
- export {};
22
-
23
17
  export * from "./components/core/core";
24
18
  export * from "./components/stimulsoft/desginer/desginer";
25
19
  export * from "./components/message/message";
@@ -1,19 +1,27 @@
1
- import { App } from "vue";
1
+ import { App, DefineSetupFnComponent, EmitsOptions, SlotsType } from "vue";
2
2
 
3
3
  /**
4
4
  * 组件类型
5
5
  */
6
- export type YzComponent<
7
- P = { [key: string]: any }, //props
8
- E = { [key: string]: any }, //event
9
- S = { [key: string]: (...args: any[]) => any }, //slots
10
- M = { [key: string]: any } //method emits
11
- > = {
12
- new (): {
13
- props: P & E;
14
- slots: S;
15
- emit: M;
16
- };
6
+ // export type YzComponent<
7
+ // P = { [key: string]: any }, //props
8
+ // E = { [key: string]: any }, //event
9
+ // S = { [key: string]: (...args: any[]) => any }, //slots
10
+ // M = { [key: string]: any } //method emits
11
+ // > = {
12
+ // new (): {
13
+ // $props: P & E;
14
+ // $slots: S;
15
+ // $emit: M;
16
+ // };
17
+ // } & {
18
+ // install(app: App): void;
19
+ // };
20
+
21
+ export type YzComponent<P extends Record<string, any>, E extends EmitsOptions, S extends SlotsType = {}> = {
22
+ props?: P;
23
+ emits?: E;
24
+ slots?: S;
17
25
  } & {
18
26
  install(app: App): void;
19
27
  };
@@ -2,7 +2,7 @@ import { YzComponent } from "../core/core";
2
2
  import { VxeLayoutAsideProps } from "vxe-pc-ui";
3
3
  import { VNode } from "vue";
4
4
 
5
- export declare const YzLayout: YzComponent<YzLayoutProps, {}, YzLayoutSlots, YzLayoutMethods>;
5
+ export declare const YzLayout: YzComponent<YzLayoutProps, YzLayoutMethods, YzLayoutSlots>;
6
6
 
7
7
  export type YzLayoutProps = {
8
8
  asideProps: VxeLayoutAsideProps;
@@ -1,7 +1,7 @@
1
1
  import { TWldy } from "@ningboyz/types";
2
- import { YzComponent } from "../../core/core";
2
+ import YzComponent from "../../core/core";
3
3
 
4
- export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, YzDesginerMethods>;
4
+ export declare const YzDesginer: YzComponent<YzDesginerProps, YzDesginerMethods, YzDesginerSlots>;
5
5
 
6
6
  export type YzDesginerProps = {
7
7
  listData: TWldy.IWldyDataResponse[];
@@ -16,5 +16,5 @@ export type YzDesginerSlots = {
16
16
  };
17
17
 
18
18
  export type YzDesginerMethods = {
19
- saveReport: [fileName: string, json: string];
19
+ onSaveReport: [fileName: string, json: string];
20
20
  };