从这次分享开始我通过制作一个ToDo应用来介绍Balzor的开发。
准备工作项目准备
- 打开上一次分享内容创建项目
2.修改\wwwroot\css\app.css
文件,只保留以下代码用于配置程序发生未捕获异常时的提示样式
#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; } #blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
- 修改
index.htm
文件,移除对‘bootstrap’样式的引用,因为我们使用ant-design-blazor
来做UI
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" /><!--此行代码删除-->
引入ant-design-blazor包
✨ 特性