We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
有个需求 在node setData设置业务数据后,在双击该节点拿到最新数据进行后续交互:
但发现 在node:change:data事件的回调中 node的store已拿到了最新值且画布已重新渲染为最新值,但在node:dblclick回调中拿到的还是旧值
none
graph.on('node:dblclick', ({ node }) => { //拿到最新业务数据 });
No response
The text was updated successfully, but these errors were encountered:
请问这个解决了吗?有解决方案吗?@lunar9621
Sorry, something went wrong.
No branches or pull requests
Describe the bug
有个需求 在node setData设置业务数据后,在双击该节点拿到最新数据进行后续交互:
但发现 在node:change:data事件的回调中 node的store已拿到了最新值且画布已重新渲染为最新值,但在node:dblclick回调中拿到的还是旧值
Your Example Website or App
none
Steps to Reproduce the Bug or Issue
{
data:{ time: new Date().getTime() },
},
{
deep: false,
},
)
console.log('dblclickdata', node.getData());
});
Expected behavior
graph.on('node:dblclick', ({ node }) => {
//拿到最新业务数据
});
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: