File tree Expand file tree Collapse file tree 12 files changed +72
-35
lines changed
.template.config/templates Expand file tree Collapse file tree 12 files changed +72
-35
lines changed Original file line number Diff line number Diff line change 17
17
18
18
- uses : actions/setup-dotnet@v1
19
19
with :
20
- dotnet-version : 7 .0.100
20
+ dotnet-version : 8 .0.100
21
21
22
22
- uses : actions/setup-node@v1
23
23
with :
Original file line number Diff line number Diff line change 23
23
- name : Setup .NET Core
24
24
uses : actions/setup-dotnet@v1
25
25
with :
26
- dotnet-version : 7 .0.100
26
+ dotnet-version : 8 .0.100
27
27
28
28
- uses : actions/setup-node@v1
29
29
with :
Original file line number Diff line number Diff line change 15
15
- name : Setup .NET Core
16
16
uses : actions/setup-dotnet@v1
17
17
with :
18
- dotnet-version : 7 .0.100
18
+ dotnet-version : 8 .0.100
19
19
20
20
- uses : actions/setup-node@v1
21
21
with :
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 >net7 .0</TargetFramework >
4
+ <TargetFramework >net8 .0</TargetFramework >
5
5
<Nullable >enable</Nullable >
6
6
<ImplicitUsings >enable</ImplicitUsings >
7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
- <PackageReference Include =" AntDesign.Charts" Version =" 0.3.1 " />
11
- <PackageReference Include =" AntDesign.ProLayout" Version =" 0.14.4 " />
12
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 7 .0.0" />
13
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 7 .0.0" PrivateAssets =" all" />
14
- <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 7 .0.0" />
15
- <PackageReference Include =" System.Net.Http.Json" Version =" 7 .0.0" />
10
+ <PackageReference Include =" AntDesign.Charts" Version =" 0.4.0 " />
11
+ <PackageReference Include =" AntDesign.ProLayout" Version =" 0.16.2 " />
12
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 8 .0.0" />
13
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 8 .0.0" PrivateAssets =" all" />
14
+ <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 8 .0.0" />
15
+ <PackageReference Include =" System.Net.Http.Json" Version =" 8 .0.0" />
16
16
</ItemGroup >
17
17
18
18
<!-- #if (UseNodeJS) -->
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net7 .0</TargetFramework >
4
+ <TargetFramework >net8 .0</TargetFramework >
5
5
<Nullable >enable</Nullable >
6
6
<ImplicitUsings >enable</ImplicitUsings >
7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Server" Version =" 7 .0.0" />
10
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Server" Version =" 8 .0.0" />
11
11
</ItemGroup >
12
12
13
13
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net7 .0</TargetFramework >
4
+ <TargetFramework >net8 .0</TargetFramework >
5
5
<Nullable >enable</Nullable >
6
6
<ImplicitUsings >enable</ImplicitUsings >
7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
- <PackageReference Include =" AntDesign.Charts" Version =" 0.3.1 " />
11
- <PackageReference Include =" AntDesign.ProLayout" Version =" 0.14.4 " />
12
- <PackageReference Include =" System.Net.Http.Json" Version =" 7 .0.0" />
10
+ <PackageReference Include =" AntDesign.Charts" Version =" 0.4.0 " />
11
+ <PackageReference Include =" AntDesign.ProLayout" Version =" 0.16.2 " />
12
+ <PackageReference Include =" System.Net.Http.Json" Version =" 8 .0.0" />
13
13
</ItemGroup >
14
14
15
15
<!-- #if (UseNodeJS) -->
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 >net7 .0</TargetFramework >
4
+ <TargetFramework >net8 .0</TargetFramework >
5
5
<RazorLangVersion >3.0</RazorLangVersion >
6
6
</PropertyGroup >
7
7
8
8
<ItemGroup >
9
- <PackageReference Include =" AntDesign.Charts" Version =" 0.3.1 " />
10
- <PackageReference Include =" AntDesign.ProLayout" Version =" 0.14.4 " />
11
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 7 .0.0" />
12
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 7 .0.0" PrivateAssets =" all" />
13
- <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 7 .0.0" />
14
- <PackageReference Include =" System.Net.Http.Json" Version =" 7 .0.0" />
9
+ <PackageReference Include =" AntDesign.Charts" Version =" 0.4.0 " />
10
+ <PackageReference Include =" AntDesign.ProLayout" Version =" 0.16.2 " />
11
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 8 .0.0" />
12
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 8 .0.0" PrivateAssets =" all" />
13
+ <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 8 .0.0" />
14
+ <PackageReference Include =" System.Net.Http.Json" Version =" 8 .0.0" />
15
15
</ItemGroup >
16
16
17
17
<!-- #if (UseNodeJS) -->
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 >net7 </TargetFramework >
4
+ <TargetFramework >net8 </TargetFramework >
5
5
<RazorLangVersion >3.0</RazorLangVersion >
6
6
<AssemblyName >AntDesign.Pro.Template</AssemblyName >
7
7
<RootNamespace >AntDesign.Pro.Template</RootNamespace >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" AntDesign.Charts" Version =" 0.3.1 " />
12
- <PackageReference Include =" AntDesign.ProLayout" Version =" 0.14.4 " />
13
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 7 .0.0" />
14
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 7 .0.0" PrivateAssets =" all" />
15
- <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 7 .0.0" />
16
- <PackageReference Include =" System.Net.Http.Json" Version =" 7 .0.0" />
11
+ <PackageReference Include =" AntDesign.Charts" Version =" 0.4.0 " />
12
+ <PackageReference Include =" AntDesign.ProLayout" Version =" 0.16.2 " />
13
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 8 .0.0" />
14
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 8 .0.0" PrivateAssets =" all" />
15
+ <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 8 .0.0" />
16
+ <PackageReference Include =" System.Net.Http.Json" Version =" 8 .0.0" />
17
17
</ItemGroup >
18
18
19
19
<PropertyGroup Condition =" '$(SolutionDir)'==''" >
Original file line number Diff line number Diff line change 1
1
<Router AppAssembly =" @typeof(Program).Assembly" >
2
2
<Found Context =" routeData" >
3
- <RouteView RouteData =" @routeData" DefaultLayout =" @typeof(BasicLayout)" />
3
+ <CascadingValue Value =" routeData" >
4
+ <RouteView RouteData =" @routeData" DefaultLayout =" @typeof(BasicLayout)" />
5
+ </CascadingValue >
4
6
</Found >
5
7
<NotFound >
6
8
<LayoutView Layout =" @typeof(BasicLayout)" >
Original file line number Diff line number Diff line change 1
1
@namespace AntDesign.Pro.Template
2
2
@inherits LayoutComponentBase
3
3
4
- <AntDesign .ProLayout.BasicLayout
5
- Logo =" @(" https: //gw.alipayobjects.com /zos /rmsportal /KDpgvguMpGfqaHPjicRK.svg " )"
6
- MenuData =" MenuData" >
4
+ <AntDesign .ProLayout.BasicLayout Logo =" @(" https: //gw.alipayobjects.com /zos /rmsportal /KDpgvguMpGfqaHPjicRK.svg " )"
5
+ MenuData =" MenuData"
6
+ MenuAccordion
7
+ Collapsed =" collapsed"
8
+ OnCollapse =" e=>collapsed=e" >
9
+ <HeaderContentRender >
10
+ <Space Size =" @(" 24 " )" >
11
+ <SpaceItem >
12
+ <Icon Class =" action" Type =" @(collapsed?" menu-unfold " :" menu-fold " )" OnClick =" Toggle" />
13
+ </SpaceItem >
14
+ <SpaceItem >
15
+ <Icon Class =" action" Type =" reload" Theme =" outline" OnClick =" Reload" />
16
+ </SpaceItem >
17
+ </Space >
18
+ </HeaderContentRender >
7
19
<RightContentRender >
8
20
<AntDesign .Pro.Template.Components.RightContent />
9
21
</RightContentRender >
10
22
<ChildContent >
11
- @Body
23
+ <ReuseTabs ></ReuseTabs >
24
+ @* @Body *@
12
25
</ChildContent >
13
26
<FooterRender >
14
27
<FooterView Copyright =" 2021 Ant Design Blazor" Links =" Links" ></FooterView >
17
30
<SettingDrawer />
18
31
19
32
@inject HttpClient HttpClient
33
+ @inject ReuseTabsService TabService ;
20
34
@code
21
35
{
36
+ bool collapsed ;
37
+
22
38
private MenuDataItem [] MenuData { get ; set ; } = { };
23
39
24
40
protected override async Task OnInitializedAsync ()
25
41
{
26
42
await base .OnInitializedAsync ();
27
43
MenuData = await HttpClient .GetFromJsonAsync <MenuDataItem []>(" data/menu.json" );
44
+
45
+ // workaround for the reusetabs issue that can't open the default page.
46
+ // will fix in next release. https://github.com/ant-design-blazor/ant-design-blazor/pull/3519
47
+ TabService .ReloadPage ();
28
48
}
29
49
30
50
public LinkItem [] Links { get ; set ; } =
51
71
BlankTarget = true ,
52
72
}
53
73
};
74
+
75
+ void Toggle ()
76
+ {
77
+ collapsed = ! collapsed ;
78
+ }
79
+
80
+ void Reload ()
81
+ {
82
+ TabService .ReloadPage ();
83
+ }
54
84
}
You can’t perform that action at this time.
0 commit comments