tab, component, popup 변경
This commit is contained in:
		
							
								
								
									
										15
									
								
								composables/popupManager.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								composables/popupManager.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
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 }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user