-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathindex.ts
135 lines (129 loc) · 2.75 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// Core API ------------------------------------------------------------------
export const version = __VERSION__
export {
// core
type Ref,
reactive,
ref,
readonly,
computed,
// utilities
unref,
proxyRefs,
isRef,
toRef,
toValue,
toRefs,
isProxy,
isReactive,
isReadonly,
isShallow,
// advanced
customRef,
triggerRef,
shallowRef,
shallowReactive,
shallowReadonly,
markRaw,
toRaw,
// effect
stop,
ReactiveEffect,
onEffectCleanup,
// effect scope
effectScope,
EffectScope,
getCurrentScope,
onScopeDispose,
// baseWatch
onWatcherCleanup,
getCurrentWatcher,
} from '@vue/reactivity'
export { nextTick } from './scheduler'
export {
getCurrentInstance,
type ComponentInternalInstance,
type Component,
type ObjectComponent,
type FunctionalComponent,
type SetupFn,
} from './component'
export { withCtx } from './componentRenderContext'
export { renderEffect } from './renderEffect'
export {
watch,
watchEffect,
watchPostEffect,
watchSyncEffect,
type WatchEffect,
type WatchOptions,
type WatchOptionsBase,
type WatchCallback,
type WatchSource,
type WatchStopHandle,
} from './apiWatch'
export {
withDirectives,
type Directive,
type DirectiveBinding,
type DirectiveHook,
type ObjectDirective,
type FunctionDirective,
type DirectiveArguments,
type DirectiveModifiers,
} from './directives'
export { template, children, next } from './dom/template'
export { insert, prepend, remove, createTextNode } from './dom/element'
export { setStyle } from './dom/style'
export {
setText,
setHtml,
setClass,
setAttr,
setDOMProp,
setDynamicProp,
setDynamicProps,
} from './dom/prop'
export { on, delegate, delegateEvents, setDynamicEvents } from './dom/event'
export { setRef } from './dom/templateRef'
export { defineComponent } from './apiDefineComponent'
export {
type InjectionKey,
inject,
provide,
hasInjectionContext,
} from './apiInject'
export {
onBeforeMount,
onMounted,
onBeforeUpdate,
onUpdated,
onBeforeUnmount,
onUnmounted,
// onActivated,
// onDeactivated,
// onRenderTracked,
// onRenderTriggered,
onErrorCaptured,
// onServerPrefetch,
} from './apiLifecycle'
export { useAttrs, useSlots } from './apiSetupHelpers'
export {
createVaporApp,
type App,
type AppConfig,
type AppContext,
} from './apiCreateVaporApp'
export { createIf } from './apiCreateIf'
export { createFor } from './apiCreateFor'
export { createComponent } from './apiCreateComponent'
export { resolveComponent, resolveDirective } from './helpers/resolveAssets'
// **Internal** DOM-only runtime directive helpers
export {
vModelText,
vModelCheckbox,
vModelRadio,
vModelSelect,
vModelDynamic,
} from './directives/vModel'
export { vShow } from './directives/vShow'