4 comments (4 comments)0 reactions (0 reactions)1 assignee (1 assignee)TypeScript2,228 forks (2,228 forks)batch import
help wanted
Repository metrics
- Stars
- 12,714 stars (12,714 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
背景
ProjectSchema.config在我的实际需求中会比较容易变化。
之前的方案是修改ProjectSchema,再用project.importSchema去更新,并用project.onChangeDocument去监听变化,但是这种方案会引发https://github.com/alibaba/lowcode-engine/issues/1122 问题。 官方没对这个api没有很清晰的描述,我只能假定该方法只适合初始化是调用。于是改成,project.setConfig方式修改config。但这个api无法被监听。
Contributor guide
- Research direction
- Investigate how ProjectSchema and its config property are used, and how onChangeDocument is implemented. Then design a similar event emitter pattern for config changes, likely by modifying the Project class to emit a 'configChange' event when setConfig is called.
- Tech stack
- typescript
- Domain
- frontenddeveloper experience
- Issue type
- Feature
- Prerequisites
- TypeScriptGit