alibaba / alibaba/lowcode-engine

自定义设置器onChange,会导致JSSlot的组件丢失节点无法选中

Open
#1,814 4 comments 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

## **Describe the bug (required)** / **详细描述 bug(必填)**

我现在有一个列表组件,通过设置器添加columns,column中使用了JSSlot,一旦设置器修改数据onChange后,就会导致JSSlot的节点选中不了

---

## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**

页面进入后,初始化的正常状态↓
![72cdc0bba1a6b5a1ab86eabe8a7f313](https://user-images.githubusercontent.com/36667646/228446146-fcd72704-8b16-4ff4-b924-6147ecb80af6.png)
这个是简单复现的"列表"设置器代码↓
![857ca1345c9ddbb4223fabfda533297](https://user-images.githubusercontent.com/36667646/228446393-e895f6d4-fdc5-4d3d-ad11-c253fdff4993.png)
![image](https://user-images.githubusercontent.com/36667646/228446952-68c48ed6-2695-4552-a216-6056e053ba59.png)

一旦触发该设置器的onChange事件,虽然改变的数据有生效(比如添加了一行,或者修改了标题),但是会导致原本可以选中的JSSlot节点不能选中↓
![1f49f35c5f93da5840e2d328f896e14](https://user-images.githubusercontent.com/36667646/228446746-ad6d66b0-7f57-4e21-bbef-48dbae9b9e6e.png)

---

## **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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.