@ningboyz/vue 1.0.22 → 1.0.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "private": false,
5
5
  "description": "宁波甬政vue-ui库",
6
6
  "author": "nbyt-syq",
@@ -12,6 +12,7 @@
12
12
  "import": "./es/index.js"
13
13
  },
14
14
  "./es/*": "./es/*",
15
+ "./types/*": "./types/*",
15
16
  "./package.json": "./package.json"
16
17
  },
17
18
  "main": "es/index.js",
@@ -0,0 +1,16 @@
1
+ import { App } from "vue";
2
+
3
+ /**
4
+ * 组件类型
5
+ */
6
+ export type YzComponent<
7
+ P, //props
8
+ E, //event
9
+ S, //Slots
10
+ M, //methods
11
+ EM
12
+ > = {
13
+ new (): P & E & S & M & EM;
14
+ } & {
15
+ install(app: App): void;
16
+ };
@@ -1,7 +1,7 @@
1
1
  import { TWldy } from "@ningboyz/types";
2
- import { DefineYzComponentApp } from "types/components/core/component";
2
+ import { YzComponent } from "../../core/component";
3
3
 
4
- export declare const YzDesginer: DefineYzComponentApp<YzDesginerProps, {}, {}, {}, YzDesginerEmits>;
4
+ export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, {}, YzDesginerEmits>;
5
5
 
6
6
  export type YzDesginerProps = {
7
7
  listData: TWldy.IWldyDataResponse[];
@@ -10,3 +10,7 @@ export type YzDesginerProps = {
10
10
  export type YzDesginerEmits = {
11
11
  (event: "saveReport", fileName: string, json: string): void;
12
12
  };
13
+
14
+ export interface YzDesginerSlots {
15
+ title?: () => any;
16
+ }
@@ -1,16 +0,0 @@
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
- };