From a334bb45e668b68ad158432273974b679157ebba Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Fri, 9 Oct 2020 19:53:00 +0800 Subject: [PATCH] types(@vant/use): linkChildren param is optional --- packages/vant-use/src/useRelation/useChildren.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant-use/src/useRelation/useChildren.ts b/packages/vant-use/src/useRelation/useChildren.ts index 53de68d75..dce0b72b7 100644 --- a/packages/vant-use/src/useRelation/useChildren.ts +++ b/packages/vant-use/src/useRelation/useChildren.ts @@ -61,7 +61,7 @@ export function useChildren(key: string | symbol) { const internalChildren: ComponentInternalInstance[] = reactive([]); const parent = getCurrentInstance()!; - const linkChildren = (value: any) => { + const linkChildren = (value?: any) => { const link = (child: ComponentInternalInstance) => { if (child.proxy) { internalChildren.push(child);