alibaba / formily

📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
https://formilyjs.org/
MIT License
11.43k stars 1.49k forks source link

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

Open zlon101 opened 2 days ago

zlon101 commented 2 days ago

Reproduction link

Edit on CodeSandbox

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 ,问题依然存在

zlon101 commented 2 days ago

https://github.com/user-attachments/assets/ac6c6455-84b7-4f9d-a8f9-270740cfa510