|
|
11 月之前 | |
|---|---|---|
| .. | ||
| __tests__ | 772b0087cb fix(suspense): handle edge case in patching list nodes within Suspense (#13306) | 11 月之前 |
| src | cd0e323fbe fix(runtime-core): avoid side effects when invoking emit handler | 11 月之前 |
| types | 4cc9ca870c types(defineComponent): support for GlobalComponents, typed Directives and respect `expose` on defineComponent (#3399) | 2 年之前 |
| LICENSE | 34989ef7fe chore: license | 6 年之前 |
| README.md | 8a99f903db style: format html&markdown files (#11531) | 1 年之前 |
| index.js | e05673f4d3 refactor: rename packages | 7 年之前 |
| package.json | d0253a0b7e release: v3.5.14 | 11 月之前 |
This package is published only for typing and building custom renderers. It is NOT meant to be used in applications.
For full exposed APIs, see src/index.ts.
import { createRenderer } from '@vue/runtime-core'
const { render, createApp } = createRenderer({
patchProp,
insert,
remove,
createElement,
// ...
})
// `render` is the low-level API
// `createApp` returns an app instance with configurable context shared
// by the entire app tree.
export { render, createApp }
export * from '@vue/runtime-core'
See @vue/runtime-dom for how a DOM-targeting renderer is implemented.