2018-09-20 09:51:21 +08:00
|
|
|
import { createRenderer, VNode } from '@vue/core'
|
|
|
|
import { queueJob } from '@vue/scheduler'
|
2018-09-19 23:35:38 +08:00
|
|
|
|
|
|
|
import { nodeOps } from './nodeOps'
|
|
|
|
import { patchData } from './patchData'
|
|
|
|
import { teardownVNode } from './teardownVNode'
|
|
|
|
|
2018-09-20 09:51:21 +08:00
|
|
|
const { render: _render } = createRenderer({
|
2018-09-19 23:35:38 +08:00
|
|
|
queueJob,
|
|
|
|
nodeOps,
|
|
|
|
patchData,
|
|
|
|
teardownVNode
|
|
|
|
})
|
|
|
|
|
2018-09-20 09:51:21 +08:00
|
|
|
type publicRender = (node: VNode | null, container: HTMLElement) => void
|
|
|
|
export const render = _render as publicRender
|
2018-09-19 23:35:38 +08:00
|
|
|
|
2018-09-20 09:51:21 +08:00
|
|
|
// nextTick from scheduler
|
|
|
|
export { nextTick } from '@vue/scheduler'
|
2018-09-19 23:35:38 +08:00
|
|
|
|
2018-09-20 09:51:21 +08:00
|
|
|
// re-export everything from core
|
|
|
|
// h, Component, observer API, flags & types
|
|
|
|
export * from '@vue/core'
|