Files
TechHelper/TechHelper.Client/Pages/Exam/ExamView.razor
2025-06-12 19:01:05 +08:00

36 lines
948 B
Plaintext

@using Entities.DTO
@using TechHelper.Client.Exam
@if (ParsedExam != null)
{
<MudPaper Height="@Height" Class="@Class" Style="@Style" Width="@Width">
<MudText Class="d-flex justify-content-center" Typo="Typo.h6"> @ParsedExam.AssignmentTitle </MudText>
<MudText Typo="Typo.body1"> @ParsedExam.Description </MudText>
<ExamGroupView MajorQGList="@ParsedExam.QuestionGroups.SubQuestionGroups" Elevation="1" Class="ma-0 pa-2" />
</MudPaper>
}
else
{
<MudPaper Class="justify-content-center">
<MudProgressCircular Indeterminate="true" Color="Color.Primary" />
<MudText Class="ml-4">加载试卷中...</MudText>
</MudPaper>
}
@code {
[Parameter]
public ExamDto ParsedExam { get; set; } = new ExamDto();
[Parameter]
public string Height { get; set; } = "100%";
[Parameter]
public string Width { get; set; } = "100%";
[Parameter]
public string Class { get; set; } = "";
[Parameter]
public string Style { get; set; } = "";
}