feat(workflow): add drawer anchor navigation

This commit is contained in:
Xin Wang
2026-08-04 09:41:52 +08:00
parent a16ecd8e01
commit caa2ff65fa
7 changed files with 570 additions and 288 deletions
@@ -18,6 +18,7 @@ import {
type MessageCompletionPolicy,
type WorkflowNodeData,
} from "../specs";
import { PanelAnchor } from "./PanelAnchorNavigation";
const COMPLETION_OPTIONS: Array<{
value: MessageCompletionPolicy;
@@ -65,7 +66,8 @@ export function MessageNodePanel({
return (
<>
<SectionCard
<PanelAnchor id="speech">
<SectionCard
icon={<MessageSquareText size={15} />}
title="固定播报"
description="配置进入 Message 节点后播放的固定话术"
@@ -91,9 +93,11 @@ export function MessageNodePanel({
请输入播报内容。
</p>
)}
</SectionCard>
</SectionCard>
</PanelAnchor>
<SectionCard
<PanelAnchor id="completion">
<SectionCard
icon={<ArrowRight size={15} />}
title="继续方式"
description="控制 Message 节点何时进入下一节点"
@@ -169,7 +173,8 @@ export function MessageNodePanel({
</p>
</div>
)}
</SectionCard>
</SectionCard>
</PanelAnchor>
</>
);
}