- 编辑区
+ {this.contentType === 'USER' && (
+
+ )}
+
+ {this.contentType === 'USER' && (
+
+ {this.isLoading ? (
+
this.stopQuestion()}
+ >
+ {StopIcon} 终止编辑
+
+ ) : (
+
this.sendQuestion(this.textareaContent)}
+ >
+ {SendIcon}
+
+ )}
+
+ )}
+
+ {this.contentType === 'ASSISTANT' && (
+
+ )}
+
+ {this.actions.map(action => {
+ if (action.itemType === 'divider')
+ return
;
+ return (
+
this.handleAction(e, action.actionName!)}
+ >
+ {action.icon}
+ {action.title}
+
+ );
+ })}