Added doc comment to popup
This commit is contained in:
parent
a516383c66
commit
a505f36252
|
@ -197,6 +197,15 @@ type EmitsExtractor<T> = {
|
|||
[K in keyof T as K extends `onVnode${string}` ? never : K extends `on${infer E}` ? Uncapitalize<E> : K extends string ? never : K]: T[K];
|
||||
};
|
||||
|
||||
/**
|
||||
* Opens a popup with the specified component, props, and events.
|
||||
*
|
||||
* @template T - The type of the component.
|
||||
* @param {T} component - The Vue component to display in the popup.
|
||||
* @param {ComponentProps<T>} props - The props to pass to the component.
|
||||
* @param {ComponentEmit<T>} [events={}] - The events to bind to the component.
|
||||
* @returns {{ dispose: () => void }} An object containing a dispose function to close the popup.
|
||||
*/
|
||||
export function popup<T extends Component>(
|
||||
component: T,
|
||||
props: ComponentProps<T>,
|
||||
|
|
Loading…
Reference in a new issue