Skip to content

Commit 0b6cb3a

Browse files
authored
chore: rename childrens to children (#1990)
1 parent db09870 commit 0b6cb3a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/core/src/Primitive/Slot.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ export const Slot = defineComponent({
99
if (!slots.default)
1010
return null
1111

12-
const childrens = renderSlotFragments(slots.default())
13-
const firstNonCommentChildrenIndex = childrens.findIndex(child => child.type !== Comment)
12+
const children = renderSlotFragments(slots.default())
13+
const firstNonCommentChildrenIndex = children.findIndex(child => child.type !== Comment)
1414
if (firstNonCommentChildrenIndex === -1)
15-
return childrens
15+
return children
1616

17-
const firstNonCommentChildren = childrens[firstNonCommentChildrenIndex]
17+
const firstNonCommentChildren = children[firstNonCommentChildrenIndex]
1818

1919
// Remove props ref from being inferred
2020
delete firstNonCommentChildren.props?.ref
@@ -28,11 +28,11 @@ export const Slot = defineComponent({
2828
: attrs
2929
const cloned = cloneVNode({ ...firstNonCommentChildren, props: {} }, mergedProps)
3030

31-
if (childrens.length === 1)
31+
if (children.length === 1)
3232
return cloned
3333

34-
childrens[firstNonCommentChildrenIndex] = cloned
35-
return childrens
34+
children[firstNonCommentChildrenIndex] = cloned
35+
return children
3636
}
3737
},
3838
})

0 commit comments

Comments
 (0)