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

97 lines
2.8 KiB
TypeScript
Raw Normal View History

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