From 0521328465d9b8b2e003f9244d73eb82e451edc8 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Fri, 17 Jun 2022 18:32:22 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E9=94=99=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/tutorial/hello-world.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/tutorial/hello-world.md b/docs/src/tutorial/hello-world.md index 23a4d81f..07a2d5df 100644 --- a/docs/src/tutorial/hello-world.md +++ b/docs/src/tutorial/hello-world.md @@ -281,7 +281,7 @@ const render = async ({ renderer }: StageCore) => { 以上就是一个简单的搭建编辑器的示例,安装上面的步骤完成后会发现,可以添加组件,也可选中组件,但是无法拖动,配置属性中的样式也无法生效,这是因为上述的render函数并不完整,没有处理dsl中style,下一节将详细介绍runtime的搭建,将不再使用render函数的方式而是使用[runtimeUrl](../api/editor/editor.md#runtimeurl)。 ::: tip -并不是render函数不好,但是从设计上将,render函数还是让渲染逻辑落到了编辑中,@tmagic/editor的设计是希望做到渲染也编辑器解耦 +并不是render函数不好,但是从设计上将,render函数还是让渲染逻辑落到了编辑器中,@tmagic/editor的设计是希望做到渲染跟编辑器解耦 ::: [源码](https://github.com/jia000/tmagic-tutorial)