v11.1.0
版本发布时间: 2024-09-16 17:09:03
vueuse/vueuse最新发布版本:v11.1.0(2024-09-16 17:09:03)
🚀 Features
-
useCurrentElement: Try to infer type from
$el
- by @KazariEX in https://github.com/vueuse/vueuse/issues/4202 (8e141) - useDropZone: Add multiple prop to control multi-file drop - by @danngossinga and Dan T. Ngossinga in https://github.com/vueuse/vueuse/issues/4227 (3b94d)
-
useFileDialog: Return
onCancel
handler - by @AndreyYolkin in https://github.com/vueuse/vueuse/issues/4184 (30452)
🐞 Bug Fixes
- computedAsync: Type signature - by @ferferga in https://github.com/vueuse/vueuse/issues/4207 (45b18)
-
onClickOutside: Make
ignore
accept reactive values - by @CernyMatej in https://github.com/vueuse/vueuse/issues/4211 (aa5e3) - onClickOutside: Improve cross-browser compatibility - by @Onion-L and @antfu in https://github.com/vueuse/vueuse/issues/4185 (9e598)
- useArrayFilter: Match type to Array.prototype.filter - by @Jesse205 in https://github.com/vueuse/vueuse/issues/4175 (71fd1)
- useDraggable: Draggable component not work with container - by @huiliangShen in https://github.com/vueuse/vueuse/issues/4192 (7f25b)
- useFocusWithin: Make useFocusWhithin match the behavior of the :focus-within - by @ben-lau in https://github.com/vueuse/vueuse/issues/4134 (c5407)
- useInfiniteScroll: Stop watch when unmounted - by @zyyv in https://github.com/vueuse/vueuse/issues/4110 (f30cc)
-
useIntersectionObserver: Add
Document
type for root - by @phk422 in https://github.com/vueuse/vueuse/issues/4210 (6b584) -
useMouseInElement: Allow
el
to be instanceof Element - by @FRSgit in https://github.com/vueuse/vueuse/issues/4189 (4dcc2) - useNetwork: Return immutable values - by @rudnovd in https://github.com/vueuse/vueuse/issues/4187 (99179)
- useResizeObserver: Update type - by @phk422 in https://github.com/vueuse/vueuse/issues/4218 (044dd)