17 lines
540 B
TypeScript
17 lines
540 B
TypeScript
import { DynamicallyCrudOptions, OpenDialogProps } from "../d";
|
|
import { ComponentInternalInstance, VNode } from "vue";
|
|
export type FormWrapperInstance = {
|
|
id: string;
|
|
vNode: VNode;
|
|
vm: ComponentInternalInstance;
|
|
props: any;
|
|
};
|
|
export type OpenFormDialogProps<R = any> = {
|
|
crudOptions: DynamicallyCrudOptions<R>;
|
|
context?: any;
|
|
};
|
|
export declare function useFormWrapper(): {
|
|
openDialog: (opts: OpenDialogProps) => Promise<any>;
|
|
openCrudFormDialog: <R = any>(opts: OpenFormDialogProps<R>) => Promise<any>;
|
|
};
|