-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table children 渲染报错 duplicate key #203
Comments
这个的确是有重复的key导致的 |
@tangjinzhou see this children中的 key 和父节点中的应该不影响。 |
children中的key和父节点的key也不能重复,不然 selectedRowKeys 和 expandedRowKeys 无法扁平化方式使用。 |
好吧,我看如果我先重置为空数组就没问题。具体的代码逻辑之后看看 |
先重置为空数组依然也报重复key啊 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
1.1.3
Environment
Win7/vue 2.5
Reproduction link
Steps to reproduce
点击更新,核对 console 是否有异常日志。
What is expected?
没有异常日志,且界面不卡死。
What is actually happening?
有异常日志,且卡死。
子集数据原先在列表中(但是是children),更新数据之后放到父级会有问题。应该和这个 类似。
目前我的解决方案:在更新之前先赋值为空数组。
The text was updated successfully, but these errors were encountered: