Added docs to popup list and popup id counter.
This commit is contained in:
parent
2e51e779e7
commit
8457fa9b3b
|
@ -136,7 +136,16 @@ export function promiseDialog<T extends Promise<any>>(
|
||||||
return promise;
|
return promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Counter for generating unique popup IDs.
|
||||||
|
* @type {number}
|
||||||
|
*/
|
||||||
let popupIdCount = 0;
|
let popupIdCount = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A reactive list of the currently opened popups. This is used in a Vue component
|
||||||
|
* in a v-for loop to render the popups.
|
||||||
|
*/
|
||||||
export const popups = ref<{
|
export const popups = ref<{
|
||||||
id: number;
|
id: number;
|
||||||
component: Component;
|
component: Component;
|
||||||
|
|
Loading…
Reference in a new issue