tmagic-editor/docs/guide/runtime.md
roymondchen 3eb8cc0614 docs: 完善 editor/form/runtime/stage 等 API 文档参数与说明
补全方法的参数类型、返回值类型与详情说明,规范字段编辑器/字段配置/运行时 API 等文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-07 17:33:58 +08:00

872 B
Raw Blame History

RUNTIME

本章详细介绍如何深入理解tmagic-editor的打包以及如何根据需求定制修改tmagic-editor的页面打包发布方案。页面发布、打包相关的定制化开发需要使用tmagic-editor的业务方搭建好基于开源tmagic-editor的管理平台、存储服务等配套设施。

runtime 是什么

runtime是用来解析DSL的执行环境用于渲染 DSL 呈现页面。

编辑器生成出来的DSL需要通过 runtime 来渲染。

实现一个 runtime

:::tip 可以使用npm create tmagic 来快速创建一个runtime项目。 :::

创建出来的项目会包含page、playground两个目录。

.
├── page
├── playground

page用于生产环境

playground用于编辑器中

:::tip 想要了解DSL的解析以及runtime与编辑器的通信可以前往教程 :::