mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 11:07:51 +08:00
fix flow
This commit is contained in:
parent
59b2a0eeb3
commit
c66b7566c6
@ -53,7 +53,6 @@ declare interface VNodeData {
|
||||
};
|
||||
directives?: Array<VNodeDirective>;
|
||||
keepAlive?: boolean;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
declare type VNodeDirective = {
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user