@ningboyz/vue 1.0.47 → 1.0.49

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.47",
3
+ "version": "1.0.49",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",
@@ -3,18 +3,11 @@ import { App } from "vue";
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
- R = { [key: string]: any } //refs
12
- > = {
6
+ export type YzComponent<P = { [key: string]: any }, E = { [key: string]: any }, S = { [key: string]: (...args: any[]) => any }, M = { [key: string]: any }> = {
13
7
  new (): {
14
8
  $props: P & E;
15
9
  $slots: S;
16
10
  $emit: M;
17
- $refs: R;
18
11
  };
19
12
  } & {
20
13
  install(app: App): void;
@@ -2,18 +2,16 @@ 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, YzLayoutEmits, YzLayoutInstance>;
5
+ export declare const YzLayout: YzComponent<YzLayoutProps, {}, YzLayoutSlots, YzLayoutMethods>;
6
6
 
7
7
  export type YzLayoutProps = {
8
8
  asideProps: VxeLayoutAsideProps;
9
9
  };
10
10
 
11
- export type YzLayoutEmits = {};
12
-
13
11
  export type YzLayoutSlots = {
14
12
  header?: () => VNode | string;
15
13
  aside?: () => VNode | string;
16
14
  body?: () => VNode | string;
17
15
  };
18
16
 
19
- export type YzLayoutInstance = {};
17
+ export type YzLayoutMethods = {};
@@ -1,7 +1,7 @@
1
1
  import { TWldy } from "@ningboyz/types";
2
2
  import { YzComponent } from "../../core/core";
3
3
 
4
- export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, YzDesginerEmits, YzDesginerInstance>;
4
+ export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, YzDesginerMethods>;
5
5
 
6
6
  export type YzDesginerProps = {
7
7
  listData: TWldy.IWldyDataResponse[];
@@ -11,10 +11,10 @@ export type YzDesginerInstance = {
11
11
  getJson: () => string;
12
12
  };
13
13
 
14
- export type YzDesginerEmits = {
15
- (event: "saveReport", fileName: string, json: string): void;
16
- };
17
-
18
14
  export type YzDesginerSlots = {
19
15
  title?: () => any;
20
16
  };
17
+
18
+ export type YzDesginerMethods = {
19
+ (event: "saveReport", fileName: string, json: string): void;
20
+ };