@@ -100,7 +100,6 @@ export type SlotFnBuilder = (
100
100
vFor : DirectiveNode | undefined ,
101
101
slotChildren : TemplateChildNode [ ] ,
102
102
loc : SourceLocation ,
103
- parent : ElementNode ,
104
103
) => FunctionExpression
105
104
106
105
const buildClientSlotFn : SlotFnBuilder = ( props , _vForExp , children , loc ) =>
@@ -148,7 +147,7 @@ export function buildSlots(
148
147
slotsProperties . push (
149
148
createObjectProperty (
150
149
arg || createSimpleExpression ( 'default' , true ) ,
151
- buildSlotFn ( exp , undefined , children , loc , node ) ,
150
+ buildSlotFn ( exp , undefined , children , loc ) ,
152
151
) ,
153
152
)
154
153
}
@@ -201,13 +200,7 @@ export function buildSlots(
201
200
}
202
201
203
202
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 )
211
204
212
205
// check if this slot is conditional (v-if/v-for)
213
206
let vIf : DirectiveNode | undefined
@@ -311,7 +304,7 @@ export function buildSlots(
311
304
props : ExpressionNode | undefined ,
312
305
children : TemplateChildNode [ ] ,
313
306
) => {
314
- const fn = buildSlotFn ( props , undefined , children , loc , node )
307
+ const fn = buildSlotFn ( props , undefined , children , loc )
315
308
if ( __COMPAT__ && context . compatConfig ) {
316
309
fn . isNonScopedSlot = true
317
310
}
0 commit comments