wip(srr): slot outlet

This commit is contained in:
Evan You
2020-02-05 21:04:40 -05:00
parent 7a63103a11
commit 9b3b6962df
14 changed files with 263 additions and 120 deletions

View File

@@ -41,7 +41,7 @@ import { injectProp } from '../utils'
export const transformIf = createStructuralDirectiveTransform(
/^(if|else|else-if)$/,
(node, dir, context) => {
return processIfBranches(node, dir, context, (ifNode, branch, isRoot) => {
return processIf(node, dir, context, (ifNode, branch, isRoot) => {
// Exit callback. Complete the codegenNode when all children have been
// transformed.
return () => {
@@ -72,7 +72,7 @@ export const transformIf = createStructuralDirectiveTransform(
)
// target-agnostic transform used for both Client and SSR
export function processIfBranches(
export function processIf(
node: ElementNode,
dir: DirectiveNode,
context: TransformContext,