@lazycatcloud/lzc-toolkit 0.0.13 → 0.0.14

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.
@@ -1,9 +1,17 @@
1
- import { type ComponentOptions, type VNodeProps } from "vue";
1
+ import { type VNodeProps } from "vue";
2
2
  import { type DialogProps } from "./Dialog.vue";
3
3
  export * from "./keys";
4
+ interface Constructor<P = any> {
5
+ __isFragment?: never;
6
+ __isTeleport?: never;
7
+ __isSuspense?: never;
8
+ new (...args: any[]): {
9
+ $props: P;
10
+ };
11
+ }
4
12
  declare type DialogControllerOptions = Omit<DialogProps, "visiable">;
5
13
  export declare function dialogController(dialogProps?: DialogControllerOptions): {
6
- create: <P>(component: ComponentOptions<P, any, any, any, any, any, any, any>, componentProps?: (VNodeProps & P) | undefined) => {
14
+ create: <P>(component: Constructor<P>, componentProps?: (VNodeProps & P) | undefined) => {
7
15
  close: () => void;
8
16
  };
9
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",