@ningboyz/vue 1.0.47 → 1.0.48
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
|
@@ -3,18 +3,10 @@ import { App } from "vue";
|
|
|
3
3
|
/**
|
|
4
4
|
* 组件类型
|
|
5
5
|
*/
|
|
6
|
-
export type YzComponent<
|
|
7
|
-
|
|
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
|
-
> = {
|
|
13
|
-
new (): {
|
|
6
|
+
export type YzComponent<P = { [key: string]: any }, E = { [key: string]: any }, S = { [key: string]: (...args: any[]) => any }, M = { [key: string]: any }> = {
|
|
7
|
+
new (): M & {
|
|
14
8
|
$props: P & E;
|
|
15
9
|
$slots: S;
|
|
16
|
-
$emit: M;
|
|
17
|
-
$refs: R;
|
|
18
10
|
};
|
|
19
11
|
} & {
|
|
20
12
|
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,
|
|
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
|
|
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,
|
|
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
|
+
};
|