Closed yhwtest closed 2 years ago
我点击边的时候 怎么获取到边(edge)的数据 这样可以获取到点的数据 commandService.executeCommand( XFlowGraphCommands.SAVE_GRAPH_DATA.id, { saveGraphDataService: async (meta, graph) => { console.log(meta,'meta');
/** 当前选中节点数据 */ const nodes = await MODELS.SELECTED_NODES.useValue(modelService); nodes[0].data.data = data; return { err: null, data: graph, meta }; }, } );
commandService.executeCommand<NsGraphCmd.SaveGraphData.IArgs>( XFlowGraphCommands.SAVE_GRAPH_DATA.id, { saveGraphDataService: async (meta, graph) => { console.log(meta,'meta'); /** 当前选中节点数据 */ const nodes = await MODELS.SELECTED_NODES.useValue(modelService); nodes[0].data.data = data; return { err: null, data: graph, meta }; }, } );
none。。。。。。
No response
none
This thread has been automatically locked because it has not had recent activity.
Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the feature you'd like to request
我点击边的时候 怎么获取到边(edge)的数据 这样可以获取到点的数据 commandService.executeCommand(
XFlowGraphCommands.SAVE_GRAPH_DATA.id,
{
saveGraphDataService: async (meta, graph) => {
console.log(meta,'meta');
Describe the solution you'd like
Describe alternatives you've considered
none。。。。。。
Your Example Website or App
No response
Screenshots or Videos
No response