From bf3d7936bf6e4acf391c7410a025dcf5c21383db Mon Sep 17 00:00:00 2001 From: 2629878269 <2629878269@qq.com> Date: Mon, 25 Sep 2023 18:09:39 +0800 Subject: [PATCH] feat(useMutationObserver): use MaybeComputedElementRef --- packages/core/useMutationObserver/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/useMutationObserver/index.ts b/packages/core/useMutationObserver/index.ts index 64c5f982179..94201515807 100644 --- a/packages/core/useMutationObserver/index.ts +++ b/packages/core/useMutationObserver/index.ts @@ -1,6 +1,6 @@ import { tryOnScopeDispose } from '@vueuse/shared' import { watch } from 'vue-demi' -import type { MaybeElementRef } from '../unrefElement' +import type { MaybeComputedElementRef } from '../unrefElement' import { unrefElement } from '../unrefElement' import { useSupported } from '../useSupported' import type { ConfigurableWindow } from '../_configurable' @@ -18,7 +18,7 @@ export interface UseMutationObserverOptions extends MutationObserverInit, Config * @param options */ export function useMutationObserver( - target: MaybeElementRef, + target: MaybeComputedElementRef, callback: MutationCallback, options: UseMutationObserverOptions = {}, ) {