vue3-yuanma/packages/renderer-dom/src/index.ts

18 lines
499 B
TypeScript
Raw Normal View History

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