File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ export function parse (
149
149
150
150
// final children cleanup
151
151
// filter out scoped slots
152
- element . children = element . children . filter ( c => ! c . slotScope )
152
+ element . children = element . children . filter ( c => ! ( c : any ) . slotScope )
153
153
// remove trailing whitespace node again
154
154
trimEndingWhitespace ( element )
155
155
@@ -642,7 +642,7 @@ function processSlotContent (el) {
642
642
el
643
643
)
644
644
}
645
- if ( ! maybeComponent ( el . parent ) ) {
645
+ if ( el . parent && ! maybeComponent ( el . parent ) ) {
646
646
warn (
647
647
`<template v-slot> can only appear at the root level inside ` +
648
648
`the receiving the component` ,
@@ -686,7 +686,7 @@ function processSlotContent (el) {
686
686
const slotContainer = slots [ name ] = createASTElement ( 'template' , [ ] , el )
687
687
slotContainer . slotTarget = name
688
688
slotContainer . slotTargetDynamic = dynamic
689
- slotContainer . children = el . children . filter ( c => ! c . slotScope )
689
+ slotContainer . children = el . children . filter ( c => ! ( c : any ) . slotScope )
690
690
slotContainer . slotScope = slotBinding . value || `_`
691
691
// remove children as they are returned from scopedSlots now
692
692
el . children = [ ]
You can’t perform that action at this time.
0 commit comments