File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
frameworks/keyed/blazor-wasm/src Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 32
32
</div >
33
33
<table class =" table table-hover table-striped test-data" >
34
34
<tbody id =" tbody" >
35
- @foreach ( var item in data )
36
- {
35
+ <Virtualize Items =" @data" Context =" item" >
37
36
<tr @key =" item.Id" class =" @((item.Id == selected ? " danger " : " " ))" >
38
37
<td class =" col-md-1" >@item.Id </td >
39
38
<td class =" col-md-4" >
48
47
</td >
49
48
<td class =" col-md-6" ></td >
50
49
</tr >
51
- }
50
+ </ Virtualize >
52
51
</tbody >
53
52
</table >
54
53
<span class =" preloadicon glyphicon glyphicon-remove" aria-hidden =" true" ></span >
Original file line number Diff line number Diff line change 3
3
@using Microsoft .AspNetCore .Components .Forms
4
4
@using Microsoft .AspNetCore .Components .Routing
5
5
@using Microsoft .AspNetCore .Components .Web
6
+ @using Microsoft .AspNetCore .Components .Web .Virtualization
6
7
@using Microsoft .JSInterop
7
8
@using blazor_wasm
8
9
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.BlazorWebAssembly" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5.0</TargetFramework >
4
+ <TargetFramework >net6.0</TargetFramework >
5
+ </PropertyGroup >
6
+
7
+ <PropertyGroup Condition =" '$(Configuration)'=='Release'" >
8
+ <RunAOTCompilation >True</RunAOTCompilation >
5
9
</PropertyGroup >
6
10
7
11
<ItemGroup >
8
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 5 .0.0-rc.2.20475.17 " />
9
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 5 .0.0-rc.2.20475.17 " PrivateAssets =" all" />
10
- <PackageReference Include =" System.Net.Http.Json" Version =" 5 .0.0-rc.2.20475.5 " />
12
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 6 .0.0" />
13
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 6 .0.0" PrivateAssets =" all" />
14
+ <PackageReference Include =" System.Net.Http.Json" Version =" 6 .0.0" />
11
15
</ItemGroup >
12
16
13
17
</Project >
Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
- "version" : " 5 .0.100-rc.2.20479.15 "
3
+ "version" : " 6 .0.100"
4
4
}
5
5
}
You can’t perform that action at this time.
0 commit comments