@ningboyz/vue 1.0.20 → 1.0.21

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,6 +1,6 @@
1
1
  import { App } from 'vue';
2
2
  export declare const YzDesginer: {
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../types').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,13 +11,13 @@ export declare const YzDesginer: {
11
11
  C: {};
12
12
  M: {};
13
13
  Defaults: {};
14
- }, Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
14
+ }, Readonly<import('../../../types').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('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
20
+ } & import('vue').ComponentOptionsBase<Readonly<import('../../../types').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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "private": false,
5
5
  "description": "宁波甬政vue-ui库",
6
6
  "author": "nbyt-syq",
@@ -18,7 +18,7 @@
18
18
  "types": "types/index.d.ts",
19
19
  "files": [
20
20
  "es",
21
- "index.d.ts"
21
+ "types"
22
22
  ],
23
23
  "scripts": {
24
24
  "build": "vite build",
package/types/all.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import YzDesginer from './components/stimulsoft/desginer/desginer'
2
+ interface AllComponents {
3
+ YzDesginer: typeof YzDesginer;
4
+ }
5
+
6
+ declare module '@vue/runtime-core' {
7
+ export interface GlobalComponents extends AllComponents {}
8
+ }
9
+
10
+ export * from "./components/core/component"
11
+ export * from "./components/stimulsoft/desginer/desginer"
@@ -0,0 +1,16 @@
1
+ import { App } from "vue";
2
+
3
+ /**
4
+ * 组件类型
5
+ */
6
+ export type DefineYzComponentApp<
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 }, //methods
11
+ T = { [key: string]: any }
12
+ > = {
13
+ new (): P & E & S & M & T;
14
+ } & {
15
+ install(app: App): void;
16
+ };
@@ -0,0 +1,12 @@
1
+ import { TWldy } from "@ningboyz/types";
2
+ import { DefineYzComponentApp } from "types/components/core/component";
3
+
4
+ export declare const YzDesginer: DefineYzComponentApp<YzDesginerProps, {}, {}, {}, YzDesginerEmits>;
5
+
6
+ export type YzDesginerProps = {
7
+ listData: TWldy.IWldyDataResponse[];
8
+ };
9
+
10
+ export type YzDesginerEmits = {
11
+ (event: "saveReport", fileName: string, json: string): void;
12
+ };
@@ -0,0 +1,8 @@
1
+ import * as YzUIExport from './all'
2
+
3
+ export * from './all'
4
+
5
+ /**
6
+ * A vue based PC component library
7
+ */
8
+ export default YzUIExport