UPDATE: VERSION-20260326

This commit is contained in:
libertyspy
2026-03-26 22:05:31 +08:00
parent 18ccf490e4
commit 6656479327
8 changed files with 43 additions and 18 deletions

View File

@@ -67,6 +67,7 @@ export interface ElementParameter {
defaultValue: NullableString,
description: NullableString,
templateType: NullableString,
groupIndex: number,
}
@@ -84,6 +85,7 @@ export interface GraphTaskElement extends GraphBaseElement {
inputs: any;
outputs: any;
order: number;
multiable:boolean,
variables: ElementVariable[];
parameters: ElementParameter[];
children?: GraphTaskElement[],

View File

@@ -183,6 +183,11 @@ export const useGraphCanvas = (readonly: boolean = false): UseGraphCanvas => {
emitGraphEvent('node:click', ctx);
});
graph.value.on('node:dblclick', (ctx: NodeViewPositionEventArgs<Dom.ClickEvent>) => {
console.info('node:dblclick', ctx);
emitGraphEvent('node:dblclick', ctx);
});
// 监听节点选中事件
graph.value.on('node:selected', ({ node }) => {
console.info('node select', node);