mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-06 22:17:41 +08:00
26 lines
592 B
C#
26 lines
592 B
C#
<Table DataSource="data" ScrollY="240px" PageSize="50">
|
|
<Selection />
|
|
<Column @bind-Field="@context.Name" Width="150" />
|
|
<Column @bind-Field="@context.Age" Width="150" />
|
|
<Column @bind-Field="@context.Address" />
|
|
</Table>
|
|
|
|
@code {
|
|
class Column
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
public int Age { get; set; }
|
|
|
|
public string Address { get; set; }
|
|
}
|
|
|
|
Column[] data = Enumerable.Range(0, 100).Select(i => new Column()
|
|
{
|
|
Name = $"Edward King {i}",
|
|
Age = 32,
|
|
Address = $"Edward King {i}"
|
|
}).ToArray();
|
|
|
|
}
|