mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-27 15:41:45 +01:00
14 lines
262 B
TypeScript
14 lines
262 B
TypeScript
const show = ref(false);
|
|
const debouncedShow = debouncedRef(show, 1000);
|
|
|
|
const delayedShow = computed({
|
|
set(newVal: boolean) {
|
|
show.value = newVal;
|
|
},
|
|
get() {
|
|
return debouncedShow.value;
|
|
},
|
|
});
|
|
|
|
export const globalShowPopup = () => delayedShow;
|