v10.10.0
版本发布时间: 2024-05-27 21:16:43
vueuse/vueuse最新发布版本:v11.1.0(2024-09-16 17:09:03)
🚀 Features
- createInjectionState: Add defaultValue option - by @melishev in https://github.com/vueuse/vueuse/issues/3902 (fb468)
-
makeDestructurable: Support parameters without
as const
- by @enpitsuLin in https://github.com/vueuse/vueuse/issues/3971 (4ea13) - nuxt: Add router addon to nuxt module - by @Coiggahou2002 and rorycai in https://github.com/vueuse/vueuse/issues/3975 (2a77f)
-
onLongPress:
options.onMouseUp
callback - by @noook and Anthony Fu in https://github.com/vueuse/vueuse/issues/3791 (7346a) -
useActiveElement: Add
triggerOnRemoval
option - by @alexzhang1030 and @antfu in https://github.com/vueuse/vueuse/issues/3958 (f3515) -
useEventSource: Return
lastEventId
- by @pkc918 in https://github.com/vueuse/vueuse/issues/3984 (29bc6) - useTimeout: Target support reactivity - by @huiliangShen and banruo in https://github.com/vueuse/vueuse/issues/3923 (4eede)
- useWebWorkerFn: Support local function dependencies - by @thefeymesaleng in https://github.com/vueuse/vueuse/issues/3899 (f4028)
🐞 Bug Fixes
-
nuxt: Opt in to
import.meta.*
properties - by @danielroe in https://github.com/vueuse/vueuse/issues/3888 (1558c) -
useAnimate:
commitStyles
when finish - by @a1mersnow in https://github.com/vueuse/vueuse/issues/3990 (fba4e) - useDisplayMedia: Stop stream when screen is not shared anymore - by @robertrosman in https://github.com/vueuse/vueuse/issues/3976 (a3c6f)
- useDraggable: Should ignore right clicks - by @Justineo in https://github.com/vueuse/vueuse/issues/3850 (9f10a)
- useElementSize: Use getBoundingClientRect get element size on SVG - by @siaikin in https://github.com/vueuse/vueuse/issues/3940 (d8015)
- useFileDialog: Check if input value exists before trigger onChange - by @jinkaiqin in https://github.com/vueuse/vueuse/issues/3972 (424a2)
- useGamepad: Avoid spread to fix gamepad state - by @yue4u in https://github.com/vueuse/vueuse/issues/3913 (2ccbd)
- useMediaControls: Target params may not be ref - by @huiliangShen in https://github.com/vueuse/vueuse/issues/3921 (1fe2f)
-
useMounted: The second argument in vue2.7 should be
undefined
- by @yanbowe, @antfu and Glandos in https://github.com/vueuse/vueuse/issues/3830 (7966b) - useRouteParams: Support optional params - by @huiliangShen in https://github.com/vueuse/vueuse/issues/3934 (4a882)
- useScroll: Sync scroll val to internal state, fix #3809 - by @kongmoumou in https://github.com/vueuse/vueuse/issues/3817 and https://github.com/vueuse/vueuse/issues/3809 (317ca)
- useScrollLock: Function unlock does not work - by @loongzhu in https://github.com/vueuse/vueuse/issues/3847 (d9ee4)
- useTextareaAutosize: OnResize callback fires not only on resize - by @huiliangShen and banruo in https://github.com/vueuse/vueuse/issues/3887 (a6ede)
- useVirtualList: Add containerRef to watch list - by @eliamartani in https://github.com/vueuse/vueuse/issues/3855 (4636f)
-
useWebNotification: Detect
isSupported
with try-catch - by @9romise in https://github.com/vueuse/vueuse/issues/3980 (b291c) - useWebSocket: UrlRef changes were not being tracked - by @ferferga in https://github.com/vueuse/vueuse/issues/3870 (c2f92)