chore: rename & property missing (#335)

This commit is contained in:
HcySunYang
2019-10-21 22:00:23 +08:00
committed by Evan You
parent 65bd838cb8
commit 71f3826f99
5 changed files with 6 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ const comp = resolveComponent('comp')
const foo = resolveDirective('foo')
const bar = resolveDirective('bar')
return applyDirectives(h(comp), [
return withDirectives(h(comp), [
[foo, this.x],
[bar, this.y]
])
@@ -129,7 +129,7 @@ export function withDirectives(vnode: VNode, directives: DirectiveArguments) {
applyDirective(vnode.props, instance, dir, value, arg, modifiers)
}
} else if (__DEV__) {
warn(`applyDirectives can only be used inside render functions.`)
warn(`withDirectives can only be used inside render functions.`)
}
return vnode
}