Kaynağa Gözat

fix flow error

Evan You 10 yıl önce
ebeveyn
işleme
48f22c9b17
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      src/core/vdom/vnode.js

+ 2 - 0
src/core/vdom/vnode.js

@@ -11,6 +11,7 @@ export default class VNode {
   key: string | number | void;
   componentOptions: VNodeComponentOptions | void;
   child: Component | void;
+  parent: VNode | void;
 
   constructor (
     tag?: string,
@@ -32,6 +33,7 @@ export default class VNode {
     this.key = data && data.key
     this.componentOptions = componentOptions
     this.child = undefined
+    this.parent = undefined
   }
 
   setChildren (children?: Array<VNode>) {