refactor: reorganize component related code and types

This commit is contained in:
Evan You
2019-09-06 11:19:22 -04:00
parent 4c075803b5
commit 0f25c29119
10 changed files with 218 additions and 200 deletions

View File

@@ -14,14 +14,11 @@ return applyDirectives(h(comp), [
import { VNode, cloneVNode } from './vnode'
import { extend, isArray, isFunction } from '@vue/shared'
import { warn } from './warning'
import {
ComponentInstance,
currentRenderingInstance,
ComponentRenderProxy
} from './component'
import { ComponentInstance, currentRenderingInstance } from './component'
import { callWithAsyncErrorHandling, ErrorTypes } from './errorHandling'
import { HostNode } from './createRenderer'
import { resolveAsset } from './apiOptions'
import { resolveAsset } from './componentOptions'
import { ComponentRenderProxy } from './componentProxy'
export interface DirectiveBinding {
instance: ComponentRenderProxy | null