42 lines
910 B
Plaintext
42 lines
910 B
Plaintext
@using Entities.DTO
|
|
@using TechHelper.Client.Exam
|
|
|
|
<MudPaper Class=@Class Elevation=@Elevation Outlined="false">
|
|
|
|
<MudText Typo="Typo.subtitle1">
|
|
<b>@Index</b> @((MarkupString)Question.Title.Replace("\n", "<br />"))
|
|
@if (Score > 0)
|
|
{
|
|
<MudText Typo="Typo.body2" Class="d-inline ml-2">(@Score 分)</MudText>
|
|
}
|
|
</MudText>
|
|
|
|
@if (!string.IsNullOrEmpty(Question.Options))
|
|
{
|
|
<div class="mt-2">
|
|
@foreach (var option in Question.Options.ParseOptionsFromText())
|
|
{
|
|
var tempOption = option;
|
|
<p>@((MarkupString)(tempOption.Replace("\n", "<br />")))</p>
|
|
}
|
|
</div>
|
|
}
|
|
|
|
</MudPaper>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public QuestionDto Question { get; set; } = new QuestionDto();
|
|
|
|
[Parameter]
|
|
public byte Index { get; set; } = 0;
|
|
|
|
[Parameter]
|
|
public byte Score { get; set; } = 0;
|
|
|
|
[Parameter]
|
|
public string Class { get; set; } = string.Empty;
|
|
|
|
[Parameter]
|
|
public int Elevation { get; set; }
|
|
} |