Skip to content
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

TableAction onClick事件record传值未更新 #313

Closed
kenshinguan opened this issue Mar 2, 2021 · 8 comments
Closed

TableAction onClick事件record传值未更新 #313

kenshinguan opened this issue Mar 2, 2021 · 8 comments

Comments

@kenshinguan
Copy link

使用TableAction组件,onClick: 事件名.bind(null, record), 其中record的值始终是初始表格数据,不是更改后表格的数据

@JohnNiang
Copy link

有可能你拿到的数据是 deepClone 之后的数据。

@anncwb
Copy link
Collaborator

anncwb commented Mar 4, 2021

@kenshinguan 能给下你的使用方式吗,这个我没有还原出来。可以正常使用

@kenshinguan
Copy link
Author

kenshinguan commented Mar 5, 2021 via email

@kenshinguan
Copy link
Author

@anncwb 代码文件已发送至您邮箱,谢谢!

@anncwb
Copy link
Collaborator

anncwb commented Mar 7, 2021

@kenshinguan 没收到。你贴下主要代码就可以了

@anncwb
Copy link
Collaborator

anncwb commented Mar 7, 2021

或者尝试下系统管理模块,看看可不可以,我测试是可以的

@kenshinguan
Copy link
Author

@anncwb 原因找到了,需要设置ignoreKeepAlive为true,TableAction才能获取更新数据,考虑到性能,可否优化TableAction,使得ignoreKeepAlive为false也能获取更新数据

@anncwb
Copy link
Collaborator

anncwb commented Mar 8, 2021

closed 7156e47

@anncwb anncwb closed this as completed Mar 8, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants