Pref hooks (#113)

* pref: replace useContainerResize

* pref: replace useContainerScroll
This commit is contained in:
Hayden
2025-02-02 19:54:23 +08:00
committed by GitHub
parent f079d8bde5
commit faf4c15865
6 changed files with 11 additions and 116 deletions

View File

@@ -1,4 +1,4 @@
import { useContainerResize } from 'hooks/resize'
import { useElementSize } from '@vueuse/core'
import { type InjectionKey, type Ref, inject, provide, toRef } from 'vue'
const rem = parseFloat(getComputedStyle(document.documentElement).fontSize)
@@ -14,7 +14,7 @@ export const useContainerQueries = (
provide(containerKey, container)
const { width } = useContainerResize(container)
const { width } = useElementSize(container)
/**
* @param size unit rem