From: Evan You Date: Tue, 28 May 2019 12:06:44 +0000 (+0800) Subject: wip: basic setup wiring X-Git-Tag: v3.0.0-alpha.0~989 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42dce36bf16e1a81a15bb1d2b4dbceea7f00d496;p=thirdparty%2Fvuejs%2Fcore.git wip: basic setup wiring --- diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 52690bc5f2..21d2e07d1c 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -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