Skip to content
Snippets Groups Projects
Commit 5f611a9d authored by syuilo's avatar syuilo
Browse files

🎨

parent 7797e8b8
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ const emit = defineEmits<{
}>();
let up = $ref(false);
const zIndex = os.claimZIndex('high');
const zIndex = os.claimZIndex('veryLow');
onMounted(() => {
window.setTimeout(() => {
......
......@@ -153,11 +153,12 @@ export const popups = ref([]) as Ref<{
}[]>;
const zIndexes = {
veryLow: 500000,
low: 1000000,
middle: 2000000,
high: 3000000,
};
export function claimZIndex(priority: 'low' | 'middle' | 'high' = 'low'): number {
export function claimZIndex(priority: keyof typeof zIndexes = 'low'): number {
zIndexes[priority] += 100;
return zIndexes[priority];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment