v10.3.0
版本发布时间: 2023-07-30 23:27:22
vueuse/vueuse最新发布版本:v11.1.0(2024-09-16 17:09:03)
🚀 Features
- createReusableTemplate: Inherit attrs - by @wiidede and @antfu in https://github.com/vueuse/vueuse/issues/3226 (a32ae)
- useActiveElement: Search deeply in shadow dom - by @duoduoObama and @antfu in https://github.com/vueuse/vueuse/issues/3208 (296dc)
- useCounter: InitialValue support ref - by @Rock070 in https://github.com/vueuse/vueuse/issues/3266 (6ae3a)
-
useFocus: Support
:focus-visible
- by @onmax and @antfu in https://github.com/vueuse/vueuse/issues/3254 (80329) - useRTDB: Add errorHandler option - by @wobsoriano in https://github.com/vueuse/vueuse/issues/3232 (b5e52)
- useSorted: Accept getter function as source - by @wvffle in https://github.com/vueuse/vueuse/issues/3249 (33a12)
- useSpeechSynthesis: Add reactivity for pitch and rate - by @shestmintsev-kirill in https://github.com/vueuse/vueuse/issues/3205 (ac88f)
🐞 Bug Fixes
- build: Ensure correct typing for node esm - by @xiaoxiangmoe and @antfu in https://github.com/vueuse/vueuse/issues/3209 (e7556)
- createReusableTemplate: Camelize props - by @94726, @antfu and @wvffle in https://github.com/vueuse/vueuse/issues/3253 (d79e1)
- onClickOutside: Fix outside click on html element in ios - by @sibbng in https://github.com/vueuse/vueuse/issues/3252 (9091e)
- reactiveComputed: Unwrap reactive type - by @sxzz in https://github.com/vueuse/vueuse/issues/3215 (17a72)
- router: Improves router functions: synchronize values, adds tests, and optimize performance - by @anteriovieira, @antfu, CJBoy and tzyoo in https://github.com/vueuse/vueuse/issues/3184 (0d02f)
- toRefs: Don't trigger unwanted watchEffects - by @wvffle in https://github.com/vueuse/vueuse/issues/3260 (5309c)
- useDateFormat: Handle zero properly - by @JocelynFloresz and @antfu in https://github.com/vueuse/vueuse/issues/3272 (d6428)
-
useEventListener: Improved
useEventListener
overload - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/3246 (4f414) - useFetch: Generated payloadType on execute - by @tolking in https://github.com/vueuse/vueuse/issues/3251 (b7e3d)
- useInfiniteScroll: Improve visibility check - by @erikkkwu in https://github.com/vueuse/vueuse/issues/3212 (5ce61)
- useMediaQuery: Only add/remove event listeners on query change - by @Ingramz and @antfu in https://github.com/vueuse/vueuse/issues/3236 (f3969)
- useObjectUrl: Improve parameter type - by @ferreira-tb in https://github.com/vueuse/vueuse/issues/3239 (d3f7e)
-
usePointer: Add
pointerup
event forpressure
field - by @cunzaizhuyi and @antfu in https://github.com/vueuse/vueuse/issues/3217 (ee425) - useScroll: Support configurable window - by @sheremet-va and @antfu in https://github.com/vueuse/vueuse/issues/3229 (dde41)