alibaba / lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
https://lowcode-engine.cn
MIT License
14.66k stars 2.55k forks source link

怎么在一个Page里引用Component #2683

Open hoifong opened 1 year ago

hoifong commented 1 year ago

schema类似如下:

{
  // ...
  componentsTree: [
    {
      componentName: "Page",
      fileName: "/TestPage",
      // ...
      children: [
        {
          componentName: "TestComponent",
          // ...
        }
      ]
    },
    {
      componentName: "Component",
      fileName: "/TestComponent"
      // ...
    }
  ]
}

我用上面方法在Page中使用了TestComponent,我看出码是正确的: lowcode-generate 但是模拟器会报错: lowcode-err

请问我要怎么样在TestPage里能够引用并使用TestComponent?

Lowcode Engine 版本: 1.1.9 Lowcode Ext 版本:1.0.6

liujuping commented 1 year ago

可以先看看这个文档。

https://lowcode-engine.cn/site/docs/faq/faq009