Files
wehub-resource-sync 2114b14ee0
Sync main into demo / sync (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:26 +08:00

22 lines
614 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** 答题卡表单字段定义 */
export interface Field {
label: string;
type: 'choice' | 'number' | 'text';
options?: string[];
hint?: string;
repeatable?: boolean;
/** 判定语义(前端不使用,仅透传给 bench_env judge */
matcher?: 'exact' | 'number' | 'date' | 'time' | 'duration';
/** repeatable 时的比较方式(前端不使用) */
compare?: 'sequence' | 'set';
}
/** 答题卡应用状态 */
export interface AnswerSheetState {
question: string | null;
hint: string | null;
fields: Field[];
answers: Record<string, string | string[]>;
submitted: boolean;
}