@ningboyz/vue 1.0.23 → 1.0.25

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.23",
3
+ "version": "1.0.25",
4
4
  "private": false,
5
5
  "description": "宁波甬政vue-ui库",
6
6
  "author": "nbyt-syq",
package/types/all.d.ts CHANGED
@@ -1,11 +1,13 @@
1
- import YzDesginer from './components/stimulsoft/desginer/desginer'
1
+ import YzDesginer from "./components/stimulsoft/desginer/desginer";
2
2
  interface AllComponents {
3
- YzDesginer: typeof YzDesginer;
3
+ YzDesginer: typeof YzDesginer;
4
4
  }
5
5
 
6
- declare module '@vue/runtime-core' {
6
+ export function install(app: App): void;
7
+
8
+ declare module "@vue/runtime-core" {
7
9
  export interface GlobalComponents extends AllComponents {}
8
10
  }
9
11
 
10
- export * from "./components/core/component"
11
- export * from "./components/stimulsoft/desginer/desginer"
12
+ export * from "./components/core/component";
13
+ export * from "./components/stimulsoft/desginer/desginer";
@@ -4,13 +4,15 @@ import { App } from "vue";
4
4
  * 组件类型
5
5
  */
6
6
  export type YzComponent<
7
- P, //props
8
- E, //event
9
- S, //Slots
10
- M, //methods
11
- EM
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
12
11
  > = {
13
- new (): P & E & S & M & EM;
12
+ new (): M & {
13
+ $props: P & E;
14
+ $slots: S;
15
+ };
14
16
  } & {
15
17
  install(app: App): void;
16
18
  };