fix: 会商第一步隐藏继续追问与跳过此项按钮
This commit is contained in:
1 parent
b92a26cdd4
commit
a4f95a4fa9
2 files changed
+28
-16
No files matched your search
@@ -130,6 +130,11 @@ export interface Step1PanelProps {
|
||||
footerAction?: React.ReactNode;
|
||||
/** 已进入后续工作流时,隐藏默认的「进入研讨」动作。 */
|
||||
hideEnterRoundtable?: boolean;
|
||||
/**
|
||||
* 隐藏「继续追问」「跳过此项」两个快捷动作(多智能体会商页不需要;
|
||||
* 岗位会商 / 8BF 不传保持原样)。
|
||||
*/
|
||||
hideFollowupActions?: boolean;
|
||||
/**
|
||||
* 仅替换输入区的渲染插槽。消息列表、意图状态及附件状态仍由 Step1Panel
|
||||
* 统一管理,因此岗位会商定制样式时不会分叉或复制 Step 1 的业务逻辑。
|
||||
@@ -171,6 +176,7 @@ export function Step1Panel(props: Step1PanelProps) {
|
||||
enterButtonLabel = "进入多智能体研讨 >",
|
||||
footerAction,
|
||||
hideEnterRoundtable = false,
|
||||
hideFollowupActions = false,
|
||||
inputArea,
|
||||
inputDraftKey,
|
||||
initialInputText = "",
|
||||
@@ -425,23 +431,27 @@ export function Step1Panel(props: Step1PanelProps) {
|
||||
</button>
|
||||
)}
|
||||
|
||||
<button
|
||||
id="suggest-followup-btn"
|
||||
onClick={onFollowUp}
|
||||
className="bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 text-xs font-bold px-3 py-2.5 rounded-xl flex items-center gap-1.5 transition"
|
||||
>
|
||||
<Repeat className="w-3 h-3 text-slate-500" />
|
||||
继续追问
|
||||
</button>
|
||||
{!hideFollowupActions && (
|
||||
<button
|
||||
id="suggest-followup-btn"
|
||||
onClick={onFollowUp}
|
||||
className="bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 text-xs font-bold px-3 py-2.5 rounded-xl flex items-center gap-1.5 transition"
|
||||
>
|
||||
<Repeat className="w-3 h-3 text-slate-500" />
|
||||
继续追问
|
||||
</button>
|
||||
)}
|
||||
|
||||
<button
|
||||
id="skip-question-btn"
|
||||
onClick={onSkipQuestion}
|
||||
className="bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 text-xs font-bold px-3 py-2.5 rounded-xl flex items-center gap-1.5 transition"
|
||||
>
|
||||
<X className="w-3 h-3 text-slate-500" strokeWidth={2.5} />
|
||||
跳过此项
|
||||
</button>
|
||||
{!hideFollowupActions && (
|
||||
<button
|
||||
id="skip-question-btn"
|
||||
onClick={onSkipQuestion}
|
||||
className="bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 text-xs font-bold px-3 py-2.5 rounded-xl flex items-center gap-1.5 transition"
|
||||
>
|
||||
<X className="w-3 h-3 text-slate-500" strokeWidth={2.5} />
|
||||
跳过此项
|
||||
</button>
|
||||
)}
|
||||
|
||||
{footerAction ??
|
||||
(!hideEnterRoundtable && (
|
||||
|
||||
@@ -2166,6 +2166,8 @@ export default function RoundtablePlanningPage({
|
||||
onStopIntent: step1.stopIntentStream,
|
||||
onSkipQuestion: handleSkipQuestion,
|
||||
onFollowUp: handleAgentFollowUp,
|
||||
// 多智能体会商页去掉「继续追问」「跳过此项」快捷键 —— 干预走输入框直接发送即可。
|
||||
hideFollowupActions: true,
|
||||
onEnterRoundtable: () => {
|
||||
if (!step1.intentReady) {
|
||||
triggerToast("请先与任务理解智能体完成澄清,生成任务摘要后再进入");
|
||||
|
||||
Reference in new issue
Block a user