ant design (WIP)
This commit is contained in:
parent
c7ab5472e2
commit
7ed00cf42d
@ -15,9 +15,10 @@ namespace RBLNews.Maui
|
||||
});
|
||||
|
||||
builder.Services.AddMauiBlazorWebView();
|
||||
builder.Services.AddAntDesign();
|
||||
|
||||
#if DEBUG
|
||||
builder.Services.AddBlazorWebViewDeveloperTools();
|
||||
builder.Services.AddBlazorWebViewDeveloperTools();
|
||||
builder.Logging.AddDebug();
|
||||
#endif
|
||||
|
||||
|
||||
@ -3,3 +3,5 @@
|
||||
<h1>Hello, world!</h1>
|
||||
|
||||
Welcome to your new app.
|
||||
|
||||
<Button Type="primary">Hello World from ANT CSS!</Button>
|
||||
@ -3,4 +3,4 @@
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)" />
|
||||
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
||||
</Found>
|
||||
</Router>
|
||||
</Router>
|
||||
@ -12,6 +12,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AntDesign" Version="0.20.3" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.8" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@ -1 +1,4 @@
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@* ANT CSS DESIGN IMPORT -------------------- *@
|
||||
@using AntDesign
|
||||
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
|
||||
@ -13,6 +13,7 @@
|
||||
|
||||
<body>
|
||||
<Routes @rendermode="InteractiveServer" />
|
||||
<AntContainer @rendermode="RenderMode.InteractiveAuto" />
|
||||
<script src="_framework/blazor.web.js"></script>
|
||||
</body>
|
||||
|
||||
|
||||
@ -2,6 +2,9 @@
|
||||
@using RBLNews.Shared
|
||||
@using RBLNews.Shared.Components
|
||||
|
||||
@* ANT CSS DESIGN IMPORT -------------------- *@
|
||||
@using AntDesign
|
||||
|
||||
@* DEFAULT IMPORTS -------------------------- *@
|
||||
@using System.Net.Http
|
||||
@using System.Net.Http.Json
|
||||
|
||||
@ -5,6 +5,7 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
// Add services to the container.
|
||||
builder.Services.AddRazorComponents()
|
||||
.AddInteractiveServerComponents();
|
||||
builder.Services.AddAntDesign();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user