wip(ssr): renderer support for optimized and manual slots

This commit is contained in:
Evan You
2020-01-28 22:58:02 -05:00
parent a7b0954f14
commit 6b1ce00621
9 changed files with 86 additions and 37 deletions

View File

@@ -2,7 +2,7 @@ import {
VNode,
VNodeProps,
createVNode,
VNodeChildren,
VNodeArrayChildren,
Fragment,
Portal,
isVNode
@@ -62,7 +62,7 @@ type RawChildren =
| number
| boolean
| VNode
| VNodeChildren
| VNodeArrayChildren
| (() => any)
// fake constructor type returned from `defineComponent`
@@ -85,11 +85,11 @@ export function h(
): VNode
// fragment
export function h(type: typeof Fragment, children?: VNodeChildren): VNode
export function h(type: typeof Fragment, children?: VNodeArrayChildren): VNode
export function h(
type: typeof Fragment,
props?: RawProps | null,
children?: VNodeChildren
children?: VNodeArrayChildren
): VNode
// portal (target prop is required)