@@ -100,7 +100,6 @@ export type SlotFnBuilder = (
100100 vFor : DirectiveNode | undefined ,
101101 slotChildren : TemplateChildNode [ ] ,
102102 loc : SourceLocation ,
103- parent : ElementNode ,
104103) => FunctionExpression
105104
106105const buildClientSlotFn : SlotFnBuilder = ( props , _vForExp , children , loc ) =>
@@ -148,7 +147,7 @@ export function buildSlots(
148147 slotsProperties . push (
149148 createObjectProperty (
150149 arg || createSimpleExpression ( 'default' , true ) ,
151- buildSlotFn ( exp , undefined , children , loc , node ) ,
150+ buildSlotFn ( exp , undefined , children , loc ) ,
152151 ) ,
153152 )
154153 }
@@ -201,13 +200,7 @@ export function buildSlots(
201200 }
202201
203202 const vFor = findDir ( slotElement , 'for' )
204- const slotFunction = buildSlotFn (
205- slotProps ,
206- vFor ,
207- slotChildren ,
208- slotLoc ,
209- slotElement ,
210- )
203+ const slotFunction = buildSlotFn ( slotProps , vFor , slotChildren , slotLoc )
211204
212205 // check if this slot is conditional (v-if/v-for)
213206 let vIf : DirectiveNode | undefined
@@ -311,7 +304,7 @@ export function buildSlots(
311304 props : ExpressionNode | undefined ,
312305 children : TemplateChildNode [ ] ,
313306 ) => {
314- const fn = buildSlotFn ( props , undefined , children , loc , node )
307+ const fn = buildSlotFn ( props , undefined , children , loc )
315308 if ( __COMPAT__ && context . compatConfig ) {
316309 fn . isNonScopedSlot = true
317310 }
0 commit comments