TDesign.Docs.ServerSide is server-side hostingTDesign.Docs.WebAssembly is pure client hosting Edge / IE | Firefox | Chrome | Safari | Opera | Electron |
|---|---|---|---|---|---|
| Edge 16 / IE 11† | 522 | 57 | 11 | 44 | Chromium 57 |
Due to WebAssembly restrictions, Blazor WebAssembly does not support IE browsers, but Blazor Server supports IE 11†. See the official website instructions for details. Starting with .NET 5, Blazor no longer officially supports IE 11. See Blazor: Updated browser support for details. Community project Blazor.Polyfill provides unofficial support.
Install directly from Nuget
> Install-Package TDesignRegister a service in the project
builder . Service . AddTDesign ( ) ; Introduce static files in wwwroot/index.html (WebAssembly) or Pages/_Host.cshtml (Server):
< link rel =" stylesheet " href =" _content/TDesign/tdesign-blazor.css " /> Add namespace to _Imports.razor
@using TDesign Add TDesignContainer component in App.razor for dynamic component rendering
<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/>
Our Contributors Thank you very much for your hard work for every project contributor
If you have any problems along the way, please seek help through the following channels:
Experienced users are encouraged to help newbies and will award medals.
This project adopts a code of conduct defined by the Contributor’s Contract to clarify the expected behavior in our community. Please read the code of conduct carefully.