Blazor with MatBlazor 在 AuthorizeView 中使用 MatTableRow 会导致相同的参数名称错误

Blazor with MatBlazor using MatTableRow in AuthorizeView causes same parameter name error

错误:

The child content element 'MatTableRow' of component 'MatTable' uses the same parameter name ('context') as enclosing child content element 'Authorized' of component 'AuthorizeView'.

代码:

<AuthorizeView>
    <Authorized>
        <h3>Products</h3>
        <MatTable Items="@sortedData" class="mat-elevation-z5" ShowPaging="false" UseSortHeaderRow="true" Striped="true"
                  FilterByColumnName="Label" DebounceMilliseconds="150" AllowSelection="true" SelectionChanged="SelectionChangedEvent">
            <MatTableHeader>
                <MatSortHeaderRow SortChanged="@SortData">
                    <MatSortHeader SortId="Label"><span style="width:600px">Label</span></MatSortHeader>
                    <MatSortHeader SortId="UseCases">Use cases</MatSortHeader>
                </MatSortHeaderRow>
            </MatTableHeader>
            <MatTableRow>
                <td>@context.Label</td>
                <td>@context.UseCases</td>
            </MatTableRow>
        </MatTable>
    </Authorized>
</AuthorizeView>

通过像这样的参数指定上下文来解决它:

<MatTableRow Context="tableRowContext">
    <td>@tableRowContext.Label</td>
    <td>@tableRowContext.UseCases</td>
</MatTableRow>