mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 21:17:36 +08:00
78b10019e4
* feat(module:table): virtualizing * turn off virtualizing by default * add document and demo * NET_6_0 => NET6_0 * update table selection * update Table.razor.cs * update table files * Update table files * update table files * update table files * update table files * update table files * update table files * update table files * update Virtualizing.razor * Update AntDesign.csproj * Update TableRow.razor * update files * Update AntDesign.csproj * update table files * update Virtualizing.razor * add DefaultExpandMaxLevel * rename Virtualizing to EnableVirtualization Co-authored-by: James Yeung <shunjiey@hotmail.com>
28 lines
786 B
C#
28 lines
786 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.Collections.Generic;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.Components.Rendering;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public class ForeachLoop<TItem> : ComponentBase
|
|
{
|
|
[Parameter]
|
|
public IEnumerable<TItem> Items { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment<TItem> ChildContent { get; set; }
|
|
|
|
protected override void BuildRenderTree(RenderTreeBuilder builder)
|
|
{
|
|
foreach (var item in Items)
|
|
{
|
|
ChildContent(item)(builder);
|
|
}
|
|
}
|
|
}
|
|
}
|