feat(sfc): wip scopeId compiler support

This commit is contained in:
Evan You
2019-12-16 12:11:51 -05:00
parent b2c2d0590e
commit 51980afca2
8 changed files with 107 additions and 22 deletions

View File

@@ -175,7 +175,8 @@ export function buildSlots(
const slotFunction = createFunctionExpression(
slotProps,
slotChildren,
false,
false /* newline */,
true /* isSlot */,
slotChildren.length ? slotChildren[0].loc : slotLoc
)
@@ -244,7 +245,7 @@ export function buildSlots(
createFunctionExpression(
createForLoopParams(parseResult),
buildDynamicSlot(slotName, slotFunction),
true
true /* force newline */
)
])
)
@@ -314,7 +315,8 @@ function buildDefaultSlot(
createFunctionExpression(
slotProps,
children,
false,
false /* newline */,
true /* isSlot */,
children.length ? children[0].loc : loc
)
)