feat: 更改结构
After Width: | Height: | Size: 15 KiB |
@ -1,5 +1,14 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<HeadContent>
|
||||
<link rel="stylesheet" href="_content/BlazorSharedDemo.SharedUI/css/SharedUI.css" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="_content/BlazorSharedDemo.SharedUI/favicon/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="_content/BlazorSharedDemo.SharedUI/favicon/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="_content/BlazorSharedDemo.SharedUI/favicon/favicon-16x16.png">
|
||||
<link rel="manifest" href="_content/BlazorSharedDemo.SharedUI/favicon/site.webmanifest">
|
||||
<link rel="shortcut icon" href="_content/BlazorSharedDemo.SharedUI/favicon/favicon.ico">
|
||||
</HeadContent>
|
||||
<main>
|
||||
@Body
|
||||
</main>
|
||||
|
||||
|
||||
|
@ -0,0 +1,24 @@
|
||||
<div>
|
||||
<ul>
|
||||
<li>
|
||||
<img src="_content/BlazorSharedDemo.SharedUI/images/01.jpg" alt="" />
|
||||
</li>
|
||||
<li>
|
||||
<img src="_content/BlazorSharedDemo.SharedUI/images/02.jpg" alt="" />
|
||||
</li>
|
||||
<li>
|
||||
<img src="_content/BlazorSharedDemo.SharedUI/images/03.jpg" alt="" />
|
||||
</li>
|
||||
<li>
|
||||
<img src="_content/BlazorSharedDemo.SharedUI/images/04.jpg" alt="" />
|
||||
</li>
|
||||
<li>
|
||||
<img src="_content/BlazorSharedDemo.SharedUI/images/05.jpg" alt="" />
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
@ -1,2 +1,6 @@
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@using Microsoft.AspNetCore.Components.Routing
|
||||
|
||||
@using BlazorSharedDemo.SharedUI
|
||||
@using BlazorSharedDemo.SharedUI.Pages
|
||||
@using BlazorSharedDemo.SharedUI.Shared
|
||||
|
After Width: | Height: | Size: 688 KiB |
After Width: | Height: | Size: 750 KiB |
After Width: | Height: | Size: 762 KiB |
After Width: | Height: | Size: 684 KiB |
After Width: | Height: | Size: 785 KiB |
After Width: | Height: | Size: 890 KiB |
After Width: | Height: | Size: 671 KiB |
After Width: | Height: | Size: 682 KiB |
After Width: | Height: | Size: 739 KiB |
After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,12 @@
|
||||
<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="new[] { typeof(BlazorSharedDemo.SharedUI.MainLayout).Assembly }">
|
||||
<Found Context="routeData">
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
||||
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
||||
</Found>
|
||||
<NotFound>
|
||||
<PageTitle>未找到路由</PageTitle>
|
||||
<LayoutView Layout="@typeof(MainLayout)">
|
||||
<p role="alert">抱歉,此路由地址不存在!</p>
|
||||
</LayoutView>
|
||||
</NotFound>
|
||||
</Router>
|
@ -1,3 +1,4 @@
|
||||
@page "/"
|
||||
@*路由不能与共享Razor类库的路由重复*@
|
||||
@page "/app-index"
|
||||
|
||||
<h1>Hello, world!</h1>
|
||||
<h1>Wasl Hello</h1>
|
||||
|
After Width: | Height: | Size: 15 KiB |