v9.7.0
版本发布时间: 2022-12-16 23:47:48
vueuse/vueuse最新发布版本:v11.1.0(2024-09-16 17:09:03)
🚀 Features
- createEeventHook: Auto dispose - by @ARZarkesh and @antfu in https://github.com/vueuse/vueuse/issues/2518 (fdd4d)
- useBreakpoints: Add breakpoints for Master CSS - by @imsus in https://github.com/vueuse/vueuse/issues/2529 (30c5b)
-
useRafFn: Add
delta
andtimestamp
- by @innocenzi in https://github.com/vueuse/vueuse/issues/2493 (692d0) -
useTimeAgo: Add
floor
andceil
value calculation - by @userquin and @antfu in https://github.com/vueuse/vueuse/issues/2543 (a7dc6) - useTimeAgo: Custom units, number rounding - by @antfu (324de)
🐞 Bug Fixes
- Reference - by @antfu (ea497)
- useActiveElement: Ignore blur for relatedTarget - by @dpschen in https://github.com/vueuse/vueuse/issues/2540 (88b44)
-
useDraggable: Use
clientX
instead ofpageX
, close #2053 - by @stefnotch in https://github.com/vueuse/vueuse/issues/2054 and https://github.com/vueuse/vueuse/issues/2053 (c9186) - useGeolocation: Implement immediate option - by @ebisbe in https://github.com/vueuse/vueuse/issues/2472 (161fd)
- useIntervalFn: Watch computed refs instead of just refs - by @innocenzi in https://github.com/vueuse/vueuse/issues/2539 (8bb7b)
- useMagicKeys: Also clear 'current' on @focus - by @hartmut (@blur)
- useStyleTag: Allow multiline CSS - by @jameswragg in https://github.com/vueuse/vueuse/issues/2476 (cfcc2)
- useTextareaAutosize: Support changes of element width - by @dpschen in https://github.com/vueuse/vueuse/issues/2541 (ebd48)
-
useTimeAgo: Add
showSecond
prop to component - by @CS-Birb in https://github.com/vueuse/vueuse/issues/2547 (0c333) - useWindowScroll: Use configured window onScroll - by @94726 in https://github.com/vueuse/vueuse/issues/2545 (5df0a)