@using Entities.DTO @using TechHelper.Client.Exam @if (ParsedExam != null) { @ParsedExam.Title @ParsedExam.Description } else { 加载试卷中... } @code { [Parameter] public ExamDto ParsedExam { get; set; } = new ExamDto(); [Parameter] public EventCallback ClickedStruct { get; set; } [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; } = ""; private void HandleClickedStruct(ExamQuestionDto dto) { ClickedStruct.InvokeAsync(dto); } }