pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🧐[问题]EditableProTable 删除数据后新增一条,会被自动赋值删除掉的数据的值

Open Jhh910 opened this issue 1 year ago • 3 comments

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🧐 问题描述

https://codesandbox.io/p/sandbox/fast-hooks-7jzgk6?file=%2FApp.tsx%3A76%2C27

💻 示例代码

🚑 其他信息

Jhh910 avatar Mar 18 '25 06:03 Jhh910

目测是id的问题

rubbishmaker avatar Mar 24 '25 03:03 rubbishmaker

目测是id的问题

好像是id的问题,但是这个怎么解决呢,不想要自动显示赋值,只能显示,但是没获取到值

Image

Jhh910 avatar Apr 19 '25 08:04 Jhh910

使用uuid或者其他方式生成随机id吧

rubbishmaker avatar Apr 19 '25 09:04 rubbishmaker