feat(transition): support component child

This commit is contained in:
Evan You
2019-11-20 21:56:17 -05:00
parent 93561b080e
commit 79f23a2f77
6 changed files with 114 additions and 111 deletions

View File

@@ -19,7 +19,7 @@ import { AppContext } from './apiApp'
import { SuspenseBoundary } from './components/Suspense'
import { DirectiveBinding } from './directives'
import { SuspenseImpl } from './components/Suspense'
import { TransitionProps } from './components/Transition'
import { TransitionData } from './components/Transition'
export const Fragment = (Symbol(__DEV__ ? 'Fragment' : undefined) as any) as {
__isFragment: true
@@ -57,11 +57,6 @@ export interface VNodeProps {
onVnodeUpdated?: (vnode: VNode, oldVNode: VNode) => void
onVnodeBeforeUnmount?: (vnode: VNode) => void
onVnodeUnmounted?: (vnode: VNode) => void
// transition hooks, internal.
onVnodeDelayLeave?: (performLeave: () => void) => void
onVnodeBeforeRemove?: (vnode: VNode, remove: () => void) => void
onVnodeRemoved?: () => void
}
type VNodeChildAtom<HostNode, HostElement> =
@@ -98,7 +93,7 @@ export interface VNode<HostNode = any, HostElement = any> {
component: ComponentInternalInstance | null
suspense: SuspenseBoundary<HostNode, HostElement> | null
dirs: DirectiveBinding[] | null
transition: TransitionProps | null
transition: TransitionData | null
// DOM
el: HostNode | null