alibaba / alibaba/lowcode-engine

【bug】右侧操作了,属性下,数组类型属性,当删除一项后,修改下面的item,会影响下一个item

Open
#2,995 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

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

A clear and concise description of what the bug is. / 请提供清晰且精确的 bug 描述

--- 右侧操作栏,属性tab,数组类型属性,一旦删除中间一条,再修改该条和之后条目的内容时,会一并修改下一条的内容。(目前必现)

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

Steps to reproduce the behavior: / 详细复现步骤:

---
1. 打开 [官方案例](https://lowcode-engine.cn/demo/demo-basic-antd/index.html);
2. 随便找个组件,属性里可配置数组形式如下图。
![image](https://github.com/alibaba/lowcode-engine/assets/8611391/1669914d-6d71-421e-807c-6200c2f8b47b)
3. 删除中间一条
![image](https://github.com/alibaba/lowcode-engine/assets/8611391/e7deb692-ff70-46d4-9cd0-8bd705c1c5b0)
4.修改4为41,5也会变成41
![image](https://github.com/alibaba/lowcode-engine/assets/8611391/97008a18-d1e2-42a9-8954-7afeb3dab5c9)

## **Expected behavior (required)** / **预期行为(必填,非常重要)**
A clear and concise description of what did you expect to happen. / 请清晰和精确的描述你预期的行为

--- 应该独立控制各自,不该影响后面。

## **Screenshots (optional)** / **bug 截图(可选)**
Sceenshots for further information. (If applicable.) / 一些有用的截图将会帮助我们更好的明确以及定位问题

--- 推测是以 序号 做了 唯一标识,删除一项后,序号变更。

## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**

--- 官方案例也如此

> (this information can be collected via [the manual plugin](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png) / 版本信息可[通过低代码用户手册插件收集](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png))

## **Additional context (optional)** / **更多额外信息(可选)**
Any other context of the problem here. / 可以追加更多的额外信息,帮助定位问题

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the official demo linked in the issue and reproduce the array-property editor case by deleting a middle item, then editing that item and the following item. Trace the array property editor entry point to identify why the edited values are not independent after deletion; done means each remaining item can be edited without changing its neighbor.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.