This commit is contained in:
Evan You 2016-08-05 03:10:40 -04:00
parent 59b2a0eeb3
commit c66b7566c6
2 changed files with 1 additions and 2 deletions

View File

@ -53,7 +53,6 @@ declare interface VNodeData {
};
directives?: Array<VNodeDirective>;
keepAlive?: boolean;
[key: string]: any;
}
declare type VNodeDirective = {

View File

@ -163,7 +163,7 @@ export function renderMixin (Vue: Class<Component>) {
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]