vue3-yuanma/packages/runtime-core/src/index.ts

86 lines
2.5 KiB
TypeScript
Raw Normal View History

2019-08-23 01:38:00 +00:00
// Public API ------------------------------------------------------------------
2019-08-22 15:12:37 +00:00
export { createComponent } from './apiCreateComponent'
export { nextTick } from './scheduler'
2019-08-20 13:38:00 +00:00
export * from './apiReactivity'
export * from './apiWatch'
export * from './apiLifecycle'
2019-06-19 09:31:49 +00:00
export * from './apiInject'
2019-08-22 15:12:37 +00:00
2019-08-23 01:38:00 +00:00
// Advanced API ----------------------------------------------------------------
// For raw render function users
2019-08-23 19:27:17 +00:00
export { h } from './h'
2019-08-23 01:38:00 +00:00
export {
createVNode,
cloneVNode,
mergeProps,
openBlock,
createBlock
} from './vnode'
2019-08-22 21:12:39 +00:00
// VNode type symbols
export { Text, Comment, Fragment, Portal, Suspense } from './vnode'
2019-08-22 21:12:39 +00:00
// VNode flags
2019-08-22 15:12:37 +00:00
export { PublicShapeFlags as ShapeFlags } from './shapeFlags'
export { PublicPatchFlags as PatchFlags } from '@vue/shared'
2019-08-23 01:38:00 +00:00
// For advanced plugins
export { getCurrentInstance } from './component'
// For custom renderers
export { createRenderer } from './createRenderer'
export {
handleError,
callWithErrorHandling,
callWithAsyncErrorHandling
} from './errorHandling'
2019-08-23 01:38:00 +00:00
2019-09-20 04:24:16 +00:00
// Internal, for compiler generated code
// should sync with '@vue/compiler-core/src/runtimeConstants.ts'
2019-09-06 15:25:11 +00:00
export { applyDirectives } from './directives'
2019-09-22 20:50:57 +00:00
export { resolveComponent, resolveDirective } from './helpers/resolveAssets'
export { renderList } from './helpers/renderList'
export { toString } from './helpers/toString'
2019-09-25 00:51:48 +00:00
export { toHandlers } from './helpers/toHandlers'
2019-09-28 00:29:20 +00:00
export { renderSlot } from './helpers/renderSlot'
export { createSlots } from './helpers/createSlots'
export { capitalize, camelize } from '@vue/shared'
2019-08-31 20:36:36 +00:00
2019-09-20 04:24:16 +00:00
// Internal, for integration with runtime compiler
export { registerRuntimeCompiler } from './component'
2019-09-20 04:24:16 +00:00
2019-08-23 01:38:00 +00:00
// Types -----------------------------------------------------------------------
2019-09-03 22:11:04 +00:00
export { App, AppConfig, AppContext, Plugin } from './apiApp'
2019-09-06 16:58:31 +00:00
export { RawProps, RawChildren, RawSlots } from './h'
2019-09-03 22:11:04 +00:00
export { VNode, VNodeTypes } from './vnode'
2019-09-06 16:58:31 +00:00
export {
Component,
FunctionalComponent,
ComponentInternalInstance,
RenderFunction
2019-09-06 16:58:31 +00:00
} from './component'
export {
ComponentOptions,
ComponentOptionsWithoutProps,
2019-10-08 13:26:09 +00:00
ComponentOptionsWithObjectProps as ComponentOptionsWithProps,
2019-09-06 16:58:31 +00:00
ComponentOptionsWithArrayProps
} from './apiOptions'
export { ComponentPublicInstance } from './componentProxy'
2019-08-23 01:38:00 +00:00
export { RendererOptions } from './createRenderer'
export { Slot, Slots } from './componentSlots'
2019-10-08 13:26:09 +00:00
export {
Prop,
PropType,
ComponentPropsOptions,
ComponentObjectPropsOptions
} from './componentProps'
2019-09-06 16:58:31 +00:00
export {
Directive,
DirectiveBinding,
DirectiveHook,
DirectiveArguments
} from './directives'
2019-09-10 16:11:08 +00:00
export { SuspenseBoundary } from './suspense'