Integrate Canvas V2 subgraphs, editable edges and AI runs

This commit is contained in:
2026-11-06 19:59:56 +08:00
parent 3478daeccb
commit 05d96abd0e
35 changed files with 1626 additions and 443 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export function CanvasTextEditor({ id, data, selected, plain = false }: { id: st
element?.focus({ preventScroll: true });
element?.setSelectionRange(element.value.length, element.value.length);
}, [editing]);
function begin() { actions.begin(); setEditing(true); }
function begin() { actions.begin(id); setEditing(true); }
const active = editing && selected;
const label = plain ? "纯文本" : data.title;
return <div className={`${styles.textEditor} ${active ? "nodrag" : ""}`}>