@ningboyz/vue 1.0.20 → 1.0.22
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 +3 -3
- package/types/all.d.ts +11 -0
- package/types/components/core/component.ts +16 -0
- package/types/components/stimulsoft/desginer/desginer.d.ts +12 -0
- package/types/index.d.ts +8 -0
- package/es/components.d.ts +0 -3
- package/es/index.d.ts +0 -3
- package/es/stimulsoft/desginer/desginer.vue.d.ts +0 -7
- package/es/stimulsoft/desginer/factory.d.ts +0 -14
- package/es/stimulsoft/desginer/index.d.ts +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政vue-ui库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"keywords": [],
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"types": "./
|
|
11
|
+
"types": "./types/index.d.ts",
|
|
12
12
|
"import": "./es/index.js"
|
|
13
13
|
},
|
|
14
14
|
"./es/*": "./es/*",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"types": "types/index.d.ts",
|
|
19
19
|
"files": [
|
|
20
20
|
"es",
|
|
21
|
-
"
|
|
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
|
+
};
|
package/types/index.d.ts
ADDED
package/es/components.d.ts
DELETED
package/es/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { YzDesginerProps } from 'types/components/stimulsoft/desginer/desginer';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<YzDesginerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
-
saveReport: (fileName: string, json: string) => any;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<YzDesginerProps> & Readonly<{
|
|
5
|
-
onSaveReport?: ((fileName: string, json: string) => any) | undefined;
|
|
6
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TWldy } from '@ningboyz/types';
|
|
2
|
-
import { Stimulsoft } from 'stimulsoft-reports-js-vuejs/designer';
|
|
3
|
-
declare class Factory {
|
|
4
|
-
private listData;
|
|
5
|
-
private report;
|
|
6
|
-
constructor(listData?: TWldy.IWldyDataResponse[]);
|
|
7
|
-
setListData: (listData: TWldy.IWldyDataResponse[]) => void;
|
|
8
|
-
getReport: () => Stimulsoft.Report.StiReport;
|
|
9
|
-
private getDataSet;
|
|
10
|
-
private listItem2DataTable;
|
|
11
|
-
private listData2DataTable;
|
|
12
|
-
private getRow;
|
|
13
|
-
}
|
|
14
|
-
export default Factory;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
export declare const YzDesginer: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
|
|
4
|
-
onSaveReport?: ((fileName: string, json: string) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
-
saveReport: (fileName: string, json: string) => any;
|
|
7
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
8
|
-
P: {};
|
|
9
|
-
B: {};
|
|
10
|
-
D: {};
|
|
11
|
-
C: {};
|
|
12
|
-
M: {};
|
|
13
|
-
Defaults: {};
|
|
14
|
-
}, Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
|
|
15
|
-
onSaveReport?: ((fileName: string, json: string) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, {}>;
|
|
17
|
-
__isFragment?: never;
|
|
18
|
-
__isTeleport?: never;
|
|
19
|
-
__isSuspense?: never;
|
|
20
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
|
|
21
|
-
onSaveReport?: ((fileName: string, json: string) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
|
-
saveReport: (fileName: string, json: string) => any;
|
|
24
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
25
|
-
install(app: App): void;
|
|
26
|
-
};
|