ElderJames / ant-design-blazor
- вторник, 24 марта 2020 г. в 00:21:10
CSS
🌈 An enterprise-class UI components based on Ant Design and Blazor WebAssembly.
由 WebAssembly 构建,托管在 Gitee Pages http://ant-design-blazor.gitee.io/
![]() 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†。 官网说明
与 Ant Design 设计规范定期同步,你可以在线查看同步日志。
$ dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-preview2.20160.5
$ dotnet new blazorwasm -o MyAntBlazorApp
$ cd MyAntBlazorApp
$ dotnet add package AntBlazor --version 0.0.1-nightly-55111624services.AddAntBlazor();
wwwroot/index.html(WebAssembly) 或 Pages/_Host.razor(Server) 中引入静态文件:
<link href="_content/AntBlazor/css/ant-design-blazor.css" rel="stylesheet">
<script src="_content/AntBlazor/js/ant-design-blazor.js"></script>
_Imports.razor 中加入命名空间
@using AntBlazor
.razor组件中引用啦!
<AntButton type="primary">Hello World!</AntButton>
先安装 .NET Core SDK 3.1.102 以上版本
安装 Node.js(只用于样式文件和互操作所需 TS 文件的构建)
克隆到本地开发
$ git clone git@github.com:ElderJames/ant-design-blazor.git
$ cd ant-design-blazor
$ npm install
$ npm start
打开浏览器访问 https://localhost:5001 ,详情参考本地开发文档。
推荐使用 Visual Studio 2019 开发,目前需运行
AntBlazor.Docs.ClientApp项目才能进行断点调试。
查看 这个 issue 来了解我们 2020 年的开发计划。
如果你希望参与贡献,欢迎 Pull Request,或给我们 报告 Bug 。
如果您在使用的过程中碰到问题,可以通过 钉钉群 寻求帮助,同时我们也鼓励资深用户通过下面的途径给新人提供帮助。