From c66b7566c682af653dc475fab1475db5484e40ee Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 5 Aug 2016 03:10:40 -0400 Subject: [PATCH] fix flow --- flow/vnode.js | 1 - src/core/instance/render.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/flow/vnode.js b/flow/vnode.js index c9027586..07188d3b 100644 --- a/flow/vnode.js +++ b/flow/vnode.js @@ -53,7 +53,6 @@ declare interface VNodeData { }; directives?: Array; keepAlive?: boolean; - [key: string]: any; } declare type VNodeDirective = { diff --git a/src/core/instance/render.js b/src/core/instance/render.js index def5c240..89135958 100644 --- a/src/core/instance/render.js +++ b/src/core/instance/render.js @@ -163,7 +163,7 @@ export function renderMixin (Vue: Class) { if (Array.isArray(value)) { value = toObject(value) } - const data = vnode.data + const data: any = vnode.data for (const key in value) { if (key === 'class' || key === 'style') { data[key] = value[key]