alibaba / alibaba/lowcode-engine
自定义设置器onChange,会导致JSSlot的组件丢失节点无法选中
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
## **Describe the bug (required)** / **详细描述 bug(必填)**
我现在有一个列表组件,通过设置器添加columns,column中使用了JSSlot,一旦设置器修改数据onChange后,就会导致JSSlot的节点选中不了
---
## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**
页面进入后,初始化的正常状态↓

这个是简单复现的"列表"设置器代码↓


一旦触发该设置器的onChange事件,虽然改变的数据有生效(比如添加了一行,或者修改了标题),但是会导致原本可以选中的JSSlot节点不能选中↓

---
## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**
- AliLowCodeEngine version: [e.g. 1.3.0] / 低代码引擎版本
- AliLowCodeEngineExt version: [e.g. 1.0.5] / 低代码引擎扩展包版本
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue described with a list component whose columns contain a JSSlot, then trigger the settings panel's onChange handler. Trace the JSSlot node selection behavior before and after the data update; done means updated columns still work and the original JSSlot nodes remain selectable.
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
- 28/100