Template
Port pages for data forms, score admin, student maintenance, vacation records, menu routing, and workbench. Add team switching, dynamic menu loading, viewport scaling, and bundled local fast-crud packages.
17 lines
548 B
TypeScript
17 lines
548 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(pd?: any): {
|
|
openDialog: (opts: OpenDialogProps) => Promise<any>;
|
|
openCrudFormDialog: <R = any>(opts: OpenFormDialogProps<R>) => Promise<any>;
|
|
};
|