refactor: split componentRenderUtils

This commit is contained in:
Evan You
2019-09-06 11:25:11 -04:00
parent 0f25c29119
commit d87bed0138
6 changed files with 126 additions and 128 deletions

View File

@@ -14,10 +14,10 @@ return applyDirectives(h(comp), [
import { VNode, cloneVNode } from './vnode'
import { extend, isArray, isFunction } from '@vue/shared'
import { warn } from './warning'
import { ComponentInstance, currentRenderingInstance } from './component'
import { ComponentInstance } from './component'
import { currentRenderingInstance } from './componentRenderUtils'
import { callWithAsyncErrorHandling, ErrorTypes } from './errorHandling'
import { HostNode } from './createRenderer'
import { resolveAsset } from './componentOptions'
import { ComponentRenderProxy } from './componentProxy'
export interface DirectiveBinding {
@@ -133,7 +133,3 @@ export function invokeDirectiveHook(
callWithAsyncErrorHandling(hook, instance, ErrorTypes.DIRECTIVE_HOOK, args)
}
}
export function resolveDirective(name: string): Directive | undefined {
return resolveAsset('directives', name) as any
}