Skip to content

Commit

Permalink
chore(compiler-vapor): simplify impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Doctor-wu committed May 19, 2024
1 parent e454717 commit 47008f7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/compiler-vapor/src/generators/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,9 @@ function genLoopSlot(
[
...genMulti(
['(', ')', ', '],
value?.content
? value.content
: key?.content || index?.content
? '_'
: undefined,
key?.content ? key.content : index?.content ? '__' : undefined,
index?.content,
rawValue ? rawValue : rawKey || rawIndex ? '_' : undefined,
rawKey ? rawKey : rawIndex ? '__' : undefined,
rawIndex,
),
' => (',
...slotExpr,
Expand Down

0 comments on commit 47008f7

Please sign in to comment.