feat: directives

This commit is contained in:
Evan You
2019-08-31 22:17:46 -04:00
parent 0f0ca4ae7c
commit 9b428c6d83
4 changed files with 60 additions and 32 deletions

View File

@@ -127,9 +127,6 @@ export function invokeDirectiveHook(
instance: ComponentInstance | null,
vnode: VNode
) {
if (hook == null) {
return
}
const args = [vnode]
if (isArray(hook)) {
for (let i = 0; i < hook.length; i++) {