alibaba / alibaba/lowcode-engine

怎么在一个Page里引用Component

Open
#2,683 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

schema类似如下:
```js
{
// ...
componentsTree: [
{
componentName: "Page",
fileName: "/TestPage",
// ...
children: [
{
componentName: "TestComponent",
// ...
}
]
},
{
componentName: "Component",
fileName: "/TestComponent"
// ...
}
]
}
```
我用上面方法在Page中使用了TestComponent,我看出码是正确的:
![lowcode-generate](https://github.com/alibaba/lowcode-engine/assets/26846467/290c8634-0e59-4330-92b4-a0c22252c46b)
但是模拟器会报错:
![lowcode-err](https://github.com/alibaba/lowcode-engine/assets/26846467/a4840ca2-93a3-4a45-b456-822bec4bb7a4)

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

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the simulator error from the supplied componentsTree schema using Lowcode Engine 1.1.9 and Lowcode Ext 1.0.6, then compare the generated output with the simulator's component resolution behavior. Done means TestPage can render and use TestComponent without the reported simulator error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.