Skip to content

Commit a5432c1

Browse files
committed
chore: improve code
1 parent 40db67f commit a5432c1

File tree

1 file changed

+2
-2
lines changed
  • packages/compiler-core/src/transforms

1 file changed

+2
-2
lines changed

packages/compiler-core/src/transforms/vSlot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ export function buildSlots(
139139
hasDynamicSlots = hasScopeRef(node, context.identifiers)
140140
}
141141

142-
let vForProps: ExpressionNode | undefined
143142
let vFor: DirectiveNode | undefined
143+
let vForProps: ExpressionNode | undefined
144144

145145
// 1. Check for slot with slotProps on component itself.
146146
// <Comp v-slot="{ prop }"/>
@@ -207,7 +207,7 @@ export function buildSlots(
207207
hasDynamicSlots = true
208208
}
209209

210-
let vFor = findDir(slotElement, 'for')
210+
vFor = findDir(slotElement, 'for')
211211
if (vFor) vForProps = vFor.exp
212212
const slotFunction = buildSlotFn(slotProps, vForProps, slotChildren, slotLoc)
213213

0 commit comments

Comments
 (0)