Skip to content

导出体积

export-size 生成
版本:12.1.0
日期:2024-12-23T08:32:26.309Z

请注意,这是每个单独 API 的打包尺寸 (不包括 Vue)。由于我们在每个函数之下都有大量共享的实用工具,因此导入两个不同的函数并不意味着打包尺寸会是它们的总和 (通常会更小)。根据你使用的打包器和压缩器,最终结果可能会有所不同,此列表仅供参考。

@vueuse/core

Functionmin+gzipped
useDark2.8 kB
useColorMode2.69 kB
createFetch2.59 kB
useInfiniteScroll2.51 kB
useFetch2.24 kB
useMediaControls2.17 kB
useParallax1.94 kB
useSessionStorage1.82 kB
useLocalStorage1.81 kB
useScroll1.79 kB
useStorage1.78 kB
useVirtualList1.75 kB
useAnimate1.64 kB
useScreenSafeArea1.5 kB
useWebSocket1.44 kB
usePointerLock1.42 kB
useStorageAsync1.41 kB
useTimeAgo1.39 kB
useThrottledRefHistory1.37 kB
useClipboard1.35 kB
useGamepad1.34 kB
useMouseInElement1.31 kB
useDraggable1.3 kB
useUrlSearchParams1.3 kB
useDebouncedRefHistory1.28 kB
useElementBounding1.25 kB
usePointerSwipe1.24 kB
useDevicesList1.2 kB
useFocusWithin1.13 kB
useScrollLock1.12 kB
useWebNotification1.11 kB
useImage1.11 kB
useFullscreen1.1 kB
useRefHistory1.09 kB
useIdle1.08 kB
useMagicKeys1.08 kB
useSwipe1.04 kB
onClickOutside1.03 kB
useActiveElement1.02 kB
useEventSource1.02 kB
useWindowSize1.02 kB
useMouse1 kB
useWakeLock991 B
useDropZone990 B
onLongPress979 B
usePointer959 B
useTitle954 B
useClipboardItems939 B
useDateFormat932 B
useAsyncState930 B
useTransition920 B
useBreakpoints919 B
useOffsetPagination918 B
useElementSize903 B
useOnline900 B
useNetwork889 B
useWebWorkerFn875 B
usePermission869 B
useElementByPoint834 B
useBrowserLocation820 B
useTextDirection808 B
useCssVar802 B
useBattery799 B
useTextareaAutosize779 B
useBase64771 B
useScreenOrientation770 B
useDeviceMotion758 B
onStartTyping757 B
formatTimeAgo750 B
useSpeechSynthesis748 B
useElementVisibility735 B
useMousePressed735 B
onKeyPressed733 B
onKeyDown731 B
useDeviceOrientation731 B
onKeyUp730 B
useTextSelection723 B
useFocus718 B
useScriptTag713 B
useSpeechRecognition705 B
onKeyStroke702 B
useFileSystemAccess699 B
formatDate699 B
useVibrate690 B
useNavigatorLanguage681 B
useTimestamp678 B
useWindowScroll666 B
useElementHover650 B
useKeyModifier644 B
useIntersectionObserver642 B
useNow641 B
useUserMedia636 B
until631 B
useBluetooth627 B
usePageLeave625 B
watchTriggerable618 B
executeTransition614 B
useDocumentVisibility599 B
usePreferredLanguages592 B
useWindowFocus590 B
useFileDialog577 B
createReusableTemplate576 B
useMutationObserver564 B
useGeolocation558 B
refThrottled556 B
throttledRef556 B
useThrottle556 B
throttledWatch550 B
watchThrottled550 B
useMemory533 B
syncRef527 B
usePreferredContrast522 B
useResizeObserver520 B
useManualRefHistory518 B
usePreferredColorScheme515 B
useEventListener514 B
useBroadcastChannel510 B
useVModels509 B
useAsyncQueue501 B
usePreferredReducedMotion499 B
useFps497 B
useParentElement497 B
useStyleTag497 B
useDisplayMedia496 B
useThrottleFn493 B
usePreferredDark486 B
useVModel486 B
reactivePick477 B
debouncedWatch458 B
watchDebounced458 B
useMediaQuery455 B
useCycleList454 B
useInterval453 B
useFavicon445 B
debouncedRef440 B
refDebounced440 B
useDebounce440 B
ignorableWatch433 B
watchIgnorable433 B
controlledRef413 B
useTimeoutPoll411 B
useTimeout409 B
reactiveOmit403 B
useConfirmDialog402 B
refWithControl402 B
useCurrentElement401 B
throttleFilter394 B
useStepper392 B
useDebounceFn392 B
usePerformanceObserver388 B
createTemplatePromise387 B
useRafFn385 B
useIntervalFn368 B
useShare365 B
createInjectionState364 B
useArrayIncludes362 B
useSorted356 B
asyncComputed347 B
computedAsync347 B
pausableWatch347 B
watchPausable347 B
TransitionPresets345 B
watchAtMost339 B
useWebWorker325 B
reactifyObject324 B
useTimeoutFn321 B
useDevicePixelRatio309 B
toRefs309 B
watchArray301 B
debounceFilter299 B
normalizeDate291 B
reactiveComputed288 B
templateRef283 B
useEyeDropper283 B
useEventBus282 B
toReactive269 B
computedWithControl267 B
controlledComputed267 B
useObjectUrl263 B
useCloned262 B
useArrayDifference256 B
autoResetRef255 B
refAutoReset255 B
usePrevious251 B
mapGamepadToXbox360Controller247 B
useCounter247 B
useMemoize242 B
createEventHook238 B
isIOS238 B
useArrayUnique236 B
watchWithFilter233 B
createSharedComposable232 B
injectLocal229 B
provideLocal227 B
useToggle224 B
useToNumber223 B
useArrayFindLast216 B
StorageSerializers211 B
extendRef207 B
useArrayReduce203 B
makeDestructurable201 B
increaseWithUnit199 B
createReactiveFn198 B
reactify198 B
resolveRef193 B
computedEager189 B
eagerComputed189 B
setSSRHandler188 B
hyphenate187 B
getSSRHandler186 B
syncRefs185 B
camelize184 B
pausableFilter181 B
toRef180 B
useSupported176 B
whenever173 B
createFilterWrapper172 B
useLastChanged172 B
tryOnBeforeMount163 B
tryOnMounted162 B
useArraySome161 B
useArrayJoin160 B
useArrayFind159 B
createSingletonPromise157 B
useArrayEvery157 B
useArrayFindIndex157 B
useArrayMap155 B
createUnrefFn153 B
unrefElement152 B
createGlobalState152 B
useArrayFilter151 B
tryOnBeforeUnmount148 B
objectOmit145 B
useToString145 B
tryOnUnmounted144 B
computedInject142 B
objectPick141 B
refDefault140 B
watchOnce140 B
promiseTimeout138 B
useTemplateRefsList133 B
isObject133 B
DefaultMagicKeysAliasMap130 B
getLifeCycleTarget128 B
resolveUnref128 B
set127 B
tryOnScopeDispose125 B
rand124 B
breakpointsMasterCss120 B
assert120 B
defaultLocation118 B
defaultNavigator118 B
get117 B
watchImmediate117 B
defaultWindow116 B
defaultDocument114 B
useCached114 B
useMounted114 B
watchDeep113 B
breakpointsSematic111 B
containsProp111 B
clamp109 B
breakpointsBootstrapV5108 B
hasOwn107 B
noop107 B
now106 B
toValue106 B
breakpointsTailwind104 B
isDefined103 B
timestamp103 B
breakpointsVuetifyV3102 B
notNullish102 B
bypassFilter98 B
isClient97 B
breakpointsAntDesign96 B
breakpointsVuetifyV296 B
isDef94 B
objectEntries94 B
breakpointsVuetify93 B
breakpointsQuasar92 B
invoke92 B
isWorker84 B
identity83 B
breakpointsPrimeFlex82 B
breakpointsElement81 B
cloneFnJSON78 B
customStorageEventName67 B

@vueuse/components

Functionmin+gzipped
UseColorMode3.35 kB
vInfiniteScroll3.12 kB
vScroll2.49 kB
UseScreenSafeArea2.3 kB
UseImage2.24 kB
vElementSize1.85 kB
OnLongPress1.76 kB
vElementVisibility1.68 kB
VOnLongPress1.67 kB
vOnLongPress1.67 kB
VOnClickOutside1.67 kB
vOnClickOutside1.67 kB
vIntersectionObserver1.56 kB
UseDraggable1.56 kB
vOnKeyStroke1.46 kB
vResizeObserver1.45 kB
UseDark1.42 kB
UseVirtualList1.41 kB
UseOffsetPagination1.38 kB
vElementHover1.36 kB
UseElementSize1.32 kB
UseTimeAgo1.31 kB
UsePointer1.31 kB
OnClickOutside1.31 kB
UseMousePressed1.31 kB
UseMouseInElement1.3 kB
UseElementBounding1.29 kB
UseIdle1.29 kB
UseClipboard1.29 kB
UseElementVisibility1.29 kB
UseGeolocation1.29 kB
UseFullscreen1.29 kB
UsePointerLock1.29 kB
UseDevicesList1.29 kB
UseEyeDropper1.28 kB
UseMouse1.28 kB
UseTimestamp1.28 kB
UseWindowSize1.27 kB
UseNow1.27 kB
UseObjectUrl1.27 kB
UsePreferredReducedMotion1.27 kB
UsePreferredColorScheme1.27 kB
UsePreferredContrast1.26 kB
UsePageLeave1.26 kB
UseDevicePixelRatio1.26 kB
UseDocumentVisibility1.26 kB
UsePreferredDark1.26 kB
UseWindowFocus1.26 kB
UseActiveElement1.26 kB
UseDeviceMotion1.26 kB
UsePreferredLanguages1.26 kB
UseOnline1.26 kB
UseDeviceOrientation1.26 kB
UseBattery1.26 kB
UseBrowserLocation1.25 kB
UseNetwork1.25 kB
vScrollLock1.19 kB

@vueuse/math

Functionmin+gzipped
usePrecision263 B
useClamp235 B
useAverage219 B
useProjection214 B
useSum212 B
useMin211 B
useMax209 B
createProjection201 B
useMath193 B
createGenericProjection156 B
and149 B
logicAnd149 B
logicOr148 B
or148 B
useFloor146 B
useAbs145 B
useRound145 B
useTrunc144 B
useCeil143 B
logicNot141 B
not141 B

@vueuse/nuxt

Functionmin+gzipped
default801 B

@vueuse/router

Functionmin+gzipped
useRouteParams496 B
useRouteQuery487 B
useRouteHash380 B

@vueuse/integrations

Functionmin+gzipped
useAxios1.4 kB
useAsyncValidator1.14 kB
useDrauu766 B
createCookies563 B
useFocusTrap533 B
useCookies525 B
useIDBKeyval525 B
useSortable494 B
useFuse467 B
useNProgress448 B
useChangeCase429 B
useQRCode401 B
useJwt339 B
moveArrayElement270 B

@vueuse/rxjs

Functionmin+gzipped
useExtractedObservable344 B
watchExtractedObservable264 B
useSubject257 B
useObservable225 B
fromEvent178 B
useSubscription161 B
from122 B
toObserver73 B

@vueuse/firebase

Functionmin+gzipped
useFirestore653 B
useRTDB257 B
useAuth160 B

@vueuse/electron

Functionmin+gzipped
useIpcRenderer482 B
useZoomFactor322 B
useZoomLevel277 B
useIpcRendererOn267 B
useIpcRendererInvoke213 B

@vueuse/shared

Functionmin+gzipped
useDateFormat932 B
formatDate699 B
until631 B
watchTriggerable618 B
refThrottled556 B
throttledRef556 B
useThrottle556 B
throttledWatch550 B
watchThrottled550 B
syncRef527 B
useThrottleFn493 B
reactivePick477 B
debouncedWatch458 B
watchDebounced458 B
useInterval453 B
debouncedRef440 B
refDebounced440 B
useDebounce440 B
ignorableWatch433 B
watchIgnorable433 B
controlledRef413 B
useTimeout409 B
reactiveOmit403 B
refWithControl402 B
throttleFilter394 B
useDebounceFn392 B
useIntervalFn368 B
createInjectionState364 B
useArrayIncludes362 B
pausableWatch347 B
watchPausable347 B
watchAtMost339 B
reactifyObject324 B
useTimeoutFn321 B
toRefs309 B
watchArray301 B
debounceFilter299 B
normalizeDate291 B
reactiveComputed288 B
toReactive269 B
computedWithControl267 B
controlledComputed267 B
useArrayDifference256 B
autoResetRef255 B
refAutoReset255 B
useCounter247 B
createEventHook238 B
isIOS238 B
useArrayUnique236 B
watchWithFilter233 B
createSharedComposable232 B
injectLocal229 B
provideLocal227 B
useToggle224 B
useToNumber223 B
useArrayFindLast216 B
extendRef207 B
useArrayReduce203 B
makeDestructurable201 B
increaseWithUnit199 B
createReactiveFn198 B
reactify198 B
resolveRef193 B
computedEager189 B
eagerComputed189 B
hyphenate187 B
syncRefs185 B
camelize184 B
pausableFilter181 B
toRef180 B
whenever173 B
createFilterWrapper172 B
useLastChanged172 B
tryOnBeforeMount163 B
tryOnMounted162 B
useArraySome161 B
useArrayJoin160 B
useArrayFind159 B
createSingletonPromise157 B
useArrayEvery157 B
useArrayFindIndex157 B
useArrayMap155 B
createGlobalState152 B
useArrayFilter151 B
tryOnBeforeUnmount148 B
objectOmit145 B
useToString145 B
tryOnUnmounted144 B
objectPick141 B
refDefault140 B
watchOnce140 B
promiseTimeout138 B
isObject133 B
getLifeCycleTarget128 B
resolveUnref128 B
set127 B
tryOnScopeDispose125 B
rand124 B
assert120 B
get117 B
watchImmediate117 B
watchDeep113 B
containsProp111 B
clamp109 B
hasOwn107 B
noop107 B
now106 B
toValue106 B
isDefined103 B
timestamp103 B
notNullish102 B
bypassFilter98 B
isClient97 B
isDef94 B
objectEntries94 B
invoke92 B
isWorker84 B
identity83 B