1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

types(@vant/use): linkChildren param is optional

This commit is contained in:
chenjiahan 2020-10-09 19:53:00 +08:00
parent 683cc88c54
commit a334bb45e6

@ -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);