feat. header 컴포넌트 반응형 제작
This commit is contained in:
@@ -4,7 +4,7 @@ import { useWindowScroll } from '@vueuse/core'
|
||||
export const useScrollStore = defineStore('scrollStore', () => {
|
||||
const { x: windowX, y: windowY } = useWindowScroll({ behavior: 'smooth' })
|
||||
|
||||
const stoveGnbHeight = 48
|
||||
const stoveGnbHeight = 48 as number
|
||||
const scrollXValue = ref('0px')
|
||||
const isPassedStoveGnb = ref(false)
|
||||
|
||||
@@ -27,6 +27,7 @@ export const useScrollStore = defineStore('scrollStore', () => {
|
||||
}
|
||||
|
||||
return {
|
||||
stoveGnbHeight,
|
||||
scrollXValue,
|
||||
isPassedStoveGnb,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user