File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/core/src/Primitive Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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} )
You can’t perform that action at this time.
0 commit comments