TDesignBlazor
0.7.1
TDesign.Docs.ServerSide是服務端託管TDesign.Docs.WebAssembly是純客戶端託管Edge / IE | Firefox | Chrome | Safari | Opera | Electron |
|---|---|---|---|---|---|
| Edge 16 / IE 11† | 522 | 57 | 11 | 44 | Chromium 57 |
由於WebAssembly 的限制,Blazor WebAssembly 不支持IE 瀏覽器,但Blazor Server 支持IE 11†。 詳見官網說明。 從.NET 5 開始,Blazor 不再官方支持IE 11。詳見Blazor: Updated browser support。社區項目Blazor.Polyfill 提供了非官方支持。
從Nuget 直接安裝
> Install-Package TDesign在項目中註冊服務
builder . Service . AddTDesign ( ) ;在wwwroot/index.html (WebAssembly) 或Pages/_Host.cshtml (Server) 中引入靜態文件:
< link rel =" stylesheet " href =" _content/TDesign/tdesign-blazor.css " />在_Imports.razor中加入命名空間
@using TDesign在App.razor增加TDesignContainer組件,用於動態組件的渲染
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
<!--增加组件-->
<TDesignContainer/>
我們的貢獻者非常感謝每一個項目貢獻者的辛勤付出
如果您在此過程中遇到任何問題,請通過以下渠道尋求幫助:
我們鼓勵有經驗的用戶幫助新手,並會授予勳章。
本項目採用了貢獻者契約定義的行為準則,以澄清我們社區的預期行為。請仔細閱讀行為準則。