重构组件,优化性能并移除不必要的属性;撤销滚动条修改;

This commit is contained in:
2026-06-03 16:58:10 +08:00
parent fa3e6b6e84
commit 06a3f32d2d
4 changed files with 30 additions and 37 deletions
-6
View File
@@ -23,8 +23,6 @@ type AgentWorkspaceProps = {
branchGroups: BranchGroup[];
branchTransition: BranchTransition | null;
isStreaming: boolean;
scrollContainerRef: React.RefObject<HTMLDivElement | null>;
onScroll: React.UIEventHandler<HTMLDivElement>;
bottomRef: React.RefObject<HTMLDivElement | null>;
speakingMessageId: string | null;
speechState: SpeechState;
@@ -157,8 +155,6 @@ export const AgentWorkspace = ({
branchGroups,
branchTransition,
isStreaming,
scrollContainerRef,
onScroll,
bottomRef,
speakingMessageId,
speechState,
@@ -220,8 +216,6 @@ export const AgentWorkspace = ({
return (
<Box
ref={scrollContainerRef}
onScroll={onScroll}
sx={{
flex: 1,
overflowY: "auto",