@ningboyz/vue 1.0.46 → 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/es/components.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { YzDesginer as t } from "./stimulsoft/desginer/index.js";
|
|
2
2
|
import { YzMessage as s } from "./message/index.js";
|
|
3
3
|
import { YzLayout as e } from "./layout/index.js";
|
|
4
|
-
const m = [t,
|
|
4
|
+
const m = [t, e, s], a = (o) => {
|
|
5
5
|
m.forEach((r) => o.use(r));
|
|
6
6
|
};
|
|
7
7
|
export {
|
package/package.json
CHANGED
package/types/all.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type App } from "vue";
|
|
2
2
|
import YzDesginer from "./components/stimulsoft/desginer/desginer";
|
|
3
|
-
import YzMessage from "./components/message/message";
|
|
4
3
|
import YzLayout from "./components/layout/layout";
|
|
4
|
+
import YzMessage from "./components/message/message";
|
|
5
5
|
interface AllComponents {
|
|
6
6
|
YzDesginer: typeof YzDesginer;
|
|
7
|
-
YzMessage: typeof YzMessage;
|
|
8
7
|
YzLayout: typeof YzLayout;
|
|
8
|
+
YzMessage: typeof YzMessage;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export function install(app: App): void;
|
|
@@ -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;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { YzComponent } from "../../core/core";
|
|
1
|
+
import { YzComponent } from "../core/core";
|
|
3
2
|
import { VxeLayoutAsideProps } from "vxe-pc-ui";
|
|
4
3
|
import { VNode } from "vue";
|
|
5
4
|
|
|
6
|
-
export declare const YzLayout: YzComponent<YzLayoutProps, {}, YzLayoutSlots,
|
|
5
|
+
export declare const YzLayout: YzComponent<YzLayoutProps, {}, YzLayoutSlots, YzLayoutMethods>;
|
|
7
6
|
|
|
8
7
|
export type YzLayoutProps = {
|
|
9
8
|
asideProps: VxeLayoutAsideProps;
|
|
10
9
|
};
|
|
11
10
|
|
|
12
|
-
export type YzLayoutEmits = {};
|
|
13
|
-
|
|
14
11
|
export type YzLayoutSlots = {
|
|
15
12
|
header?: () => VNode | string;
|
|
16
13
|
aside?: () => VNode | string;
|
|
17
14
|
body?: () => VNode | string;
|
|
18
15
|
};
|
|
19
16
|
|
|
20
|
-
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
|
+
};
|