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:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user