mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 02:16:12 +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 internalChildren: ComponentInternalInstance[] = reactive([]);
|
||||||
const parent = getCurrentInstance()!;
|
const parent = getCurrentInstance()!;
|
||||||
|
|
||||||
const linkChildren = (value: any) => {
|
const linkChildren = (value?: any) => {
|
||||||
const link = (child: ComponentInternalInstance) => {
|
const link = (child: ComponentInternalInstance) => {
|
||||||
if (child.proxy) {
|
if (child.proxy) {
|
||||||
internalChildren.push(child);
|
internalChildren.push(child);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user