refactor: export all from optional features
This commit is contained in:
parent
b12247d638
commit
e190824812
@ -1,4 +1,4 @@
|
|||||||
import { Component, MountedComponent } from './component'
|
import { MountedComponent } from './component'
|
||||||
|
|
||||||
const bindCache = new WeakMap()
|
const bindCache = new WeakMap()
|
||||||
|
|
||||||
@ -77,6 +77,6 @@ const renderProxyHandlers = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createRenderProxy(instance: Component): MountedComponent {
|
export function createRenderProxy(instance: any): MountedComponent {
|
||||||
return new Proxy(instance, renderProxyHandlers) as MountedComponent
|
return new Proxy(instance, renderProxyHandlers) as MountedComponent
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,8 @@ export { createComponentInstance } from './componentUtils'
|
|||||||
|
|
||||||
// Optional APIs
|
// Optional APIs
|
||||||
// these are imported on-demand and can be tree-shaken
|
// these are imported on-demand and can be tree-shaken
|
||||||
export { applyDirective } from './optional/directive'
|
export * from './optional/directive'
|
||||||
export { Provide, Inject } from './optional/context'
|
export * from './optional/context'
|
||||||
|
|
||||||
// flags & types
|
// flags & types
|
||||||
export { ComponentClass, FunctionalComponent } from './component'
|
export { ComponentClass, FunctionalComponent } from './component'
|
||||||
|
@ -24,7 +24,7 @@ export interface Directive {
|
|||||||
unmounted: DirectiveHook
|
unmounted: DirectiveHook
|
||||||
}
|
}
|
||||||
|
|
||||||
type DirectiveModifiers = Record<string, boolean>
|
export type DirectiveModifiers = Record<string, boolean>
|
||||||
|
|
||||||
export function applyDirective(
|
export function applyDirective(
|
||||||
vnode: VNode,
|
vnode: VNode,
|
||||||
|
Loading…
Reference in New Issue
Block a user