]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: basic setup wiring
authorEvan You <yyx990803@gmail.com>
Tue, 28 May 2019 12:06:44 +0000 (20:06 +0800)
committerEvan You <yyx990803@gmail.com>
Tue, 28 May 2019 12:06:44 +0000 (20:06 +0800)
packages/runtime-core/src/component.ts

index 52690bc5f2d0795547d409b4d9b0fb55a35af8e2..21d2e07d1ccac0e923183f61fba92b18b9b2a35f 100644 (file)
@@ -160,14 +160,14 @@ export function setupStatefulComponent(instance: ComponentInstance) {
 }
 
 export function renderComponentRoot(instance: ComponentInstance): VNode {
-  const { type, vnode, proxy, $state, $slots } = instance
+  const { type, vnode, proxy, bindings, $slots } = instance
   if (!type) debugger
   const { 0: props, 1: attrs } = resolveProps(
     (vnode as VNode).props,
     type.props
   )
   const renderArg = {
-    state: $state,
+    state: bindings || EMPTY_OBJ,
     slots: $slots,
     props,
     attrs