wip: lifecycle hooks

This commit is contained in:
Evan You
2019-05-28 19:36:15 +08:00
parent 9dd133b1e9
commit 19ed750078
7 changed files with 225 additions and 72 deletions

View File

@@ -1,5 +1,5 @@
import { isArray, isFunction } from '@vue/shared'
import { ComponentHandle } from './component'
import { ComponentInstance } from './component'
import { HostNode } from './createRenderer'
export const Fragment = Symbol('Fragment')
@@ -24,7 +24,7 @@ export interface VNode {
props: { [key: string]: any } | null
key: string | number | null
children: string | VNodeChildren | null
component: ComponentHandle | null
component: ComponentInstance | null
// DOM
el: HostNode | null