= ({
{idx + 1}. {q.text}
{!inputOnly && q.multiSelect && (
-
+
{multiSelectLabel}
)}
@@ -244,7 +244,7 @@ export const AskUserQuestionsCard: React.FC = ({
placeholder={q.placeholder || (q.type === 'password' ? '输入密码' : '输入你的回答...')}
value={customText[q.id] || ''}
onChange={(e) => setCustomText((p) => ({ ...p, [q.id]: e.target.value }))}
- className="w-full rounded-lg border border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-background,#fff)] px-3 py-1.5 text-xs text-[var(--agent-foreground,#111827)] outline-none placeholder:text-[var(--agent-muted-foreground,#6b7280)] focus:border-[var(--agent-primary,#18181b)] focus:ring-1 focus:ring-[var(--agent-primary,#18181b)] disabled:cursor-not-allowed disabled:opacity-60"
+ className="w-full rounded-lg border border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-background,#fff)] px-3 py-1.5 text-xs text-[var(--agent-foreground,#111827)] outline-none placeholder:text-[var(--agent-muted-foreground,#4b5563)] focus:border-[var(--agent-primary,#18181b)] focus:ring-1 focus:ring-[var(--agent-primary,#18181b)] disabled:cursor-not-allowed disabled:opacity-60"
/>
)}
@@ -269,7 +269,7 @@ export const AskUserQuestionsCard: React.FC = ({
'rounded-full border px-3 py-1.5 text-xs font-medium transition-all duration-200',
selected
? 'border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-muted,#f3f4f6)] text-[var(--agent-foreground,#111827)] ring-1 ring-[var(--agent-border,#e5e7eb)]'
- : 'border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-card-bg,#fff)] text-[var(--agent-muted-foreground,#6b7280)] hover:bg-[var(--agent-muted,#f3f4f6)] hover:text-[var(--agent-foreground,#111827)]',
+ : 'border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-card-bg,#fff)] text-[var(--agent-muted-foreground,#4b5563)] hover:bg-[var(--agent-muted,#f3f4f6)] hover:text-[var(--agent-foreground,#111827)]',
isReadOnly ? 'cursor-not-allowed opacity-60' : 'cursor-pointer',
].join(' ')}
>
@@ -287,7 +287,7 @@ export const AskUserQuestionsCard: React.FC = ({
disabled={isReadOnly}
onClick={() => enterCustom(q.id)}
className={[
- 'rounded-full border border-dashed border-[var(--agent-border,#e5e7eb)] px-3 py-1.5 text-xs font-medium text-[var(--agent-muted-foreground,#6b7280)] transition-all duration-200 hover:bg-[var(--agent-muted,#f3f4f6)] hover:text-[var(--agent-foreground,#111827)]',
+ 'rounded-full border border-dashed border-[var(--agent-border,#e5e7eb)] px-3 py-1.5 text-xs font-medium text-[var(--agent-muted-foreground,#4b5563)] transition-all duration-200 hover:bg-[var(--agent-muted,#f3f4f6)] hover:text-[var(--agent-foreground,#111827)]',
isReadOnly ? 'cursor-not-allowed opacity-60' : 'cursor-pointer',
].join(' ')}
>
@@ -309,13 +309,13 @@ export const AskUserQuestionsCard: React.FC = ({
onChange={(e) =>
setCustomText((p) => ({ ...p, [q.id]: e.target.value }))
}
- className="flex-1 rounded-lg border border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-background,#fff)] px-3 py-1.5 text-xs text-[var(--agent-foreground,#111827)] outline-none placeholder:text-[var(--agent-muted-foreground,#6b7280)] focus:border-[var(--agent-primary,#18181b)] focus:ring-1 focus:ring-[var(--agent-primary,#18181b)] disabled:cursor-not-allowed disabled:opacity-60"
+ className="flex-1 rounded-lg border border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-background,#fff)] px-3 py-1.5 text-xs text-[var(--agent-foreground,#111827)] outline-none placeholder:text-[var(--agent-muted-foreground,#4b5563)] focus:border-[var(--agent-primary,#18181b)] focus:ring-1 focus:ring-[var(--agent-primary,#18181b)] disabled:cursor-not-allowed disabled:opacity-60"
/>
@@ -329,14 +329,14 @@ export const AskUserQuestionsCard: React.FC = ({
{payload.outro && (
-
+
{payload.outro}
)}
{!isReadOnly && onSubmit && (
-
+
{bottomHint}
{renderSectionStats && (
-
+
{asReactNode(renderSectionStats(section))}
)}
@@ -142,13 +142,13 @@ export const CoverageReportCard: React.FC
= ({
-
+
{weakPoints.length === 0 ? (
emptyWeakPointsLabel ? (
-
+
{emptyWeakPointsLabel}
@@ -169,7 +169,7 @@ export const CoverageReportCard: React.FC
= ({
{point.name}
{point.sectionName ? ` · ${point.sectionName}` : ''}
-
+
正确率 {pct(point.accuracy)} · {point.recommendation}
@@ -182,10 +182,10 @@ export const CoverageReportCard: React.FC
= ({
{wp.name}
{wp.sectionName && (
- · {wp.sectionName}
+ · {wp.sectionName}
)}
- · 正确率 {pct(wp.accuracy)}
- {wp.recommendation}
+ · 正确率 {pct(wp.accuracy)}
+ {wp.recommendation}
))}
@@ -194,7 +194,7 @@ export const CoverageReportCard: React.FC = ({
{payload.actions?.allowRemediateQuiz && onRemediate && weakPoints.length > 0 && (
-
+
{remediateHint}