taro-sample-weapp icon indicating copy to clipboard operation
taro-sample-weapp copied to clipboard

如何把组件树(componentsTree)中的某children组件设置为根组件,从而渲染在大纲树顶端和画布最外部容器。。。

Open supersoulsoul opened this issue 2 years ago • 0 comments

image image 步骤: 1、打开宜搭表单设计器,随便拖入表单元素 2、打开隐藏的schema面板查看schema 数据结构 3、发现用户设计的真实数据是包裹在 Page -> RootContent -> FormContainer -> children中 4、得出结论:大纲树中的顶端组件和画布最外层容器都是 FormContainer 组件 ,而低代码引擎demo中渲染的根节点是Page组件 期望: 1、基于低代码引擎和demo,实现如宜搭的表单设计器结构。即:可以将children中的组件渲染在大纲树顶端,成为画布最外层容器

supersoulsoul avatar Sep 22 '22 08:09 supersoulsoul