alibaba / alibaba/lowcode-engine
自定义setter的时候,会生成相关代码,如何同步到源码面板中
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
## **Describe the bug (required)** / **详细描述 bug(必填)**
自定义setter的时候,会生成相关代码,如何同步到源码面板中,
通过event.emit('codeEditor.addFunction', {
functionName: formatEventName,
templete: formatTemp,
});插入方法只能生成一个空函数,
另外可以插入到state中吗
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the event.emit('codeEditor.addFunction', ...) entry point and the source-panel handling it. Reproduce the custom-setter case to compare the generated function with the requested template, then determine whether state insertion is supported. Done means generated setter code is synchronized to the source panel and the expected state behavior is defined.
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
- 30/100