alibaba / alibaba/formily

[Bug Report] 使用 @formily/vue + @formily/antdv + schema json 开发,ArrayCards 嵌套 ArrayTable 时,ArrayCards.Remove 无法实现删除功能

Open
#4,237 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/alibaba/formily/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/devbox/239c7x)

### Steps to reproduce
1. 点击ArrayCards.Addition按钮三次,新增三个 Card
2. 点击最后一个Card对应的 ArrayCards.Remove,成功删除一个
3. 再点击最后一个card对应的 ArrayCards.Remove,无法删除,也没有任何报错

### What is expected?
点击 ArrayCards.Remove 可以删除对应的 Card

### What is actually happening?
无法删除

### Package
@formily/core@2.3.2

---

每次点击新增按钮,新增card后,删除按钮只会有一次生效

将 @formily/antdv 替换为 element-plus ,问题依然存在

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and inspect the ArrayCards/ArrayTable interaction using @formily/core@2.3.2. Reproduce adding three cards, then removing the last card twice, and compare the behavior with the expected deletion of the selected card.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.