From ab9d38a6843f4e3987a9d1f0f66d4378cb24688b Mon Sep 17 00:00:00 2001 From: kongmoumou <35442047+kongmoumou@users.noreply.github.com> Date: Sun, 19 Jun 2022 13:37:43 +0800 Subject: [PATCH] fix(computedWithControl): source type match vue.watch (#1674) --- packages/shared/computedWithControl/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/computedWithControl/index.ts b/packages/shared/computedWithControl/index.ts index 6ebb7742696..fd45ad038a1 100644 --- a/packages/shared/computedWithControl/index.ts +++ b/packages/shared/computedWithControl/index.ts @@ -8,7 +8,7 @@ import type { Fn } from '../utils' * @param source * @param fn */ -export function computedWithControl(source: WatchSource, fn: () => T) { +export function computedWithControl(source: WatchSource | WatchSource[], fn: () => T) { let v: T = undefined! let track: Fn let trigger: Fn