Files
bio_frontend/composables/popupManager.ts

15 lines
254 B
TypeScript
Raw Permalink Normal View History

2025-08-22 14:01:30 +09:00
import { ref } from 'vue'
let baseZIndex = 1000;
++baseZIndex;
const currentZ = ref(baseZIndex)
export function usePopupZIndex() {
function nextZIndex() {
currentZ.value += 1
return currentZ.value
}
return { nextZIndex }
}