@ningboyz/vue 1.0.21 → 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.21",
3
+ "version": "1.0.23",
4
4
  "private": false,
5
5
  "description": "宁波甬政vue-ui库",
6
6
  "author": "nbyt-syq",
@@ -8,10 +8,11 @@
8
8
  "keywords": [],
9
9
  "exports": {
10
10
  ".": {
11
- "types": "./es/index.d.ts",
11
+ "types": "./types/index.d.ts",
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,3 +0,0 @@
1
- import { App } from 'vue';
2
- export declare const install: (app: App) => void;
3
- export * from './stimulsoft/desginer';
package/es/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import * as YzUI from './components';
2
- export * from './components';
3
- export default YzUI;
@@ -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').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').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').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
- };
@@ -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
- };