From 50dd05cc96e253cbe7171e802ef0ae2dcf036853 Mon Sep 17 00:00:00 2001 From: kongmoumou <35442047+kongmoumou@users.noreply.github.com> Date: Tue, 7 Jun 2022 21:57:08 +0800 Subject: [PATCH] fix: computedWithControl source type match vue.watch --- 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